| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
 | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for [LLVM] [1.1]. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
 | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 6 | # | 
 | 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
 | 8 | # Free Software Foundation, Inc. | 
 | 9 | # This configure script is free software; the Free Software Foundation | 
 | 10 | # gives unlimited permission to copy, distribute and modify it. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11 | ## --------------------- ## | 
 | 12 | ## M4sh Initialization.  ## | 
 | 13 | ## --------------------- ## | 
 | 14 |  | 
 | 15 | # Be Bourne compatible | 
 | 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 17 |   emulate sh | 
 | 18 |   NULLCMD=: | 
 | 19 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 20 |   # is contrary to our usage.  Disable this feature. | 
 | 21 |   alias -g '${1+"$@"}'='"$@"' | 
 | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 23 |   set -o posix | 
 | 24 | fi | 
 | 25 |  | 
 | 26 | # Support unset when possible. | 
 | 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
 | 28 |   as_unset=unset | 
 | 29 | else | 
 | 30 |   as_unset=false | 
 | 31 | fi | 
 | 32 |  | 
 | 33 |  | 
 | 34 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 35 | $as_unset ENV MAIL MAILPATH | 
 | 36 | PS1='$ ' | 
 | 37 | PS2='> ' | 
 | 38 | PS4='+ ' | 
 | 39 |  | 
 | 40 | # NLS nuisances. | 
 | 41 | for as_var in \ | 
 | 42 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 43 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 44 |   LC_TELEPHONE LC_TIME | 
 | 45 | do | 
 | 46 |   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
 | 47 |     eval $as_var=C; export $as_var | 
 | 48 |   else | 
 | 49 |     $as_unset $as_var | 
 | 50 |   fi | 
 | 51 | done | 
 | 52 |  | 
 | 53 | # Required to use basename. | 
 | 54 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 55 |   as_expr=expr | 
 | 56 | else | 
 | 57 |   as_expr=false | 
 | 58 | fi | 
 | 59 |  | 
 | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 61 |   as_basename=basename | 
 | 62 | else | 
 | 63 |   as_basename=false | 
 | 64 | fi | 
 | 65 |  | 
 | 66 |  | 
 | 67 | # Name of the executable. | 
 | 68 | as_me=`$as_basename "$0" || | 
 | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 70 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 71 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 72 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 73 | echo X/"$0" | | 
 | 74 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 75 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 76 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 77 |   	  s/.*/./; q'` | 
 | 78 |  | 
 | 79 |  | 
 | 80 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 81 | # Avoid depending upon Character Ranges. | 
 | 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 85 | as_cr_digits='0123456789' | 
 | 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 87 |  | 
 | 88 | # The user is always right. | 
 | 89 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 90 |   echo "#! /bin/sh" >conf$$.sh | 
 | 91 |   echo  "exit 0"   >>conf$$.sh | 
 | 92 |   chmod +x conf$$.sh | 
 | 93 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
 | 94 |     PATH_SEPARATOR=';' | 
 | 95 |   else | 
 | 96 |     PATH_SEPARATOR=: | 
 | 97 |   fi | 
 | 98 |   rm -f conf$$.sh | 
 | 99 | fi | 
 | 100 |  | 
 | 101 |  | 
 | 102 |   as_lineno_1=$LINENO | 
 | 103 |   as_lineno_2=$LINENO | 
 | 104 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 105 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 106 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 107 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 108 |   # relative or not. | 
 | 109 |   case $0 in | 
 | 110 |     *[\\/]* ) as_myself=$0 ;; | 
 | 111 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 112 | for as_dir in $PATH | 
 | 113 | do | 
 | 114 |   IFS=$as_save_IFS | 
 | 115 |   test -z "$as_dir" && as_dir=. | 
 | 116 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 117 | done | 
 | 118 |  | 
 | 119 |        ;; | 
 | 120 |   esac | 
 | 121 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 122 |   # in which case we are not to be found in the path. | 
 | 123 |   if test "x$as_myself" = x; then | 
 | 124 |     as_myself=$0 | 
 | 125 |   fi | 
 | 126 |   if test ! -f "$as_myself"; then | 
 | 127 |     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
 | 128 |    { (exit 1); exit 1; }; } | 
 | 129 |   fi | 
 | 130 |   case $CONFIG_SHELL in | 
 | 131 |   '') | 
 | 132 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 134 | do | 
 | 135 |   IFS=$as_save_IFS | 
 | 136 |   test -z "$as_dir" && as_dir=. | 
 | 137 |   for as_base in sh bash ksh sh5; do | 
 | 138 | 	 case $as_dir in | 
 | 139 | 	 /*) | 
 | 140 | 	   if ("$as_dir/$as_base" -c ' | 
 | 141 |   as_lineno_1=$LINENO | 
 | 142 |   as_lineno_2=$LINENO | 
 | 143 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 144 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 145 |   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
 | 146 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 147 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
 | 148 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 149 | 	     export CONFIG_SHELL | 
 | 150 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 151 | 	   fi;; | 
 | 152 | 	 esac | 
 | 153 |        done | 
 | 154 | done | 
 | 155 | ;; | 
 | 156 |   esac | 
 | 157 |  | 
 | 158 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 159 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 160 |   # line-number line before each line; the second 'sed' does the real | 
 | 161 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 162 |   # with the numbered line, and appends trailing '-' during | 
 | 163 |   # substitution so that $LINENO is not a special case at line end. | 
 | 164 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 165 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 166 |   sed '=' <$as_myself | | 
 | 167 |     sed ' | 
 | 168 |       N | 
 | 169 |       s,$,-, | 
 | 170 |       : loop | 
 | 171 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 172 |       t loop | 
 | 173 |       s,-$,, | 
 | 174 |       s,^['$as_cr_digits']*\n,, | 
 | 175 |     ' >$as_me.lineno && | 
 | 176 |   chmod +x $as_me.lineno || | 
 | 177 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
 | 178 |    { (exit 1); exit 1; }; } | 
 | 179 |  | 
 | 180 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 181 |   # (the dirname of $[0] is not the place where we might find the | 
 | 182 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 183 |   . ./$as_me.lineno | 
 | 184 |   # Exit status is that of the last command. | 
 | 185 |   exit | 
 | 186 | } | 
 | 187 |  | 
 | 188 |  | 
 | 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 190 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 191 | ' ECHO_T='	' ;; | 
 | 192 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 193 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 194 | esac | 
 | 195 |  | 
 | 196 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 197 |   as_expr=expr | 
 | 198 | else | 
 | 199 |   as_expr=false | 
 | 200 | fi | 
 | 201 |  | 
 | 202 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 203 | echo >conf$$.file | 
 | 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 205 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 206 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 207 |   if test -f conf$$.exe; then | 
 | 208 |     # Don't use ln at all; we don't have any links | 
 | 209 |     as_ln_s='cp -p' | 
 | 210 |   else | 
 | 211 |     as_ln_s='ln -s' | 
 | 212 |   fi | 
 | 213 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 214 |   as_ln_s=ln | 
 | 215 | else | 
 | 216 |   as_ln_s='cp -p' | 
 | 217 | fi | 
 | 218 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 219 |  | 
 | 220 | if mkdir -p . 2>/dev/null; then | 
 | 221 |   as_mkdir_p=: | 
 | 222 | else | 
 | 223 |   as_mkdir_p=false | 
 | 224 | fi | 
 | 225 |  | 
 | 226 | as_executable_p="test -f" | 
 | 227 |  | 
 | 228 | # Sed expression to map a string onto a valid CPP name. | 
 | 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
 | 230 |  | 
 | 231 | # Sed expression to map a string onto a valid variable name. | 
 | 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
 | 233 |  | 
 | 234 |  | 
 | 235 | # IFS | 
 | 236 | # We need space, tab and new line, in precisely that order. | 
 | 237 | as_nl=' | 
 | 238 | ' | 
 | 239 | IFS=" 	$as_nl" | 
 | 240 |  | 
 | 241 | # CDPATH. | 
 | 242 | $as_unset CDPATH | 
 | 243 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 244 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 245 |  | 
 | 246 | # Check that we are running under the correct shell. | 
 | 247 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 248 |  | 
 | 249 | case X$ECHO in | 
 | 250 | X*--fallback-echo) | 
 | 251 |   # Remove one level of quotation (which was required for Make). | 
 | 252 |   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
 | 253 |   ;; | 
 | 254 | esac | 
 | 255 |  | 
 | 256 | echo=${ECHO-echo} | 
 | 257 | if test "X$1" = X--no-reexec; then | 
 | 258 |   # Discard the --no-reexec flag, and continue. | 
 | 259 |   shift | 
 | 260 | elif test "X$1" = X--fallback-echo; then | 
 | 261 |   # Avoid inline document here, it may be left over | 
 | 262 |   : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 263 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 264 |   # Yippee, $echo works! | 
 | 265 |   : | 
 | 266 | else | 
 | 267 |   # Restart under the correct shell. | 
 | 268 |   exec $SHELL "$0" --no-reexec ${1+"$@"} | 
 | 269 | fi | 
 | 270 |  | 
 | 271 | if test "X$1" = X--fallback-echo; then | 
 | 272 |   # used as fallback echo | 
 | 273 |   shift | 
 | 274 |   cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 275 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 276 | EOF | 
 | 277 |   exit 0 | 
 | 278 | fi | 
 | 279 |  | 
 | 280 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 281 | # if CDPATH is set. | 
 | 282 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
 | 283 |  | 
 | 284 | if test -z "$ECHO"; then | 
 | 285 | if test "X${echo_test_string+set}" != Xset; then | 
 | 286 | # find a string as large as possible, as long as the shell can cope with it | 
 | 287 |   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
 | 288 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
 | 289 |     if (echo_test_string="`eval $cmd`") 2>/dev/null && | 
 | 290 |        echo_test_string="`eval $cmd`" && | 
 | 291 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
 | 292 |     then | 
 | 293 |       break | 
 | 294 |     fi | 
 | 295 |   done | 
 | 296 | fi | 
 | 297 |  | 
 | 298 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 299 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 300 |    test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 301 |   : | 
 | 302 | else | 
 | 303 |   # The Solaris, AIX, and Digital Unix default echo programs unquote | 
 | 304 |   # backslashes.  This makes it impossible to quote backslashes using | 
 | 305 |   #   echo "$something" | sed 's/\\/\\\\/g' | 
 | 306 |   # | 
 | 307 |   # So, first we look for a working echo in the user's PATH. | 
 | 308 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 309 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 310 |   for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 311 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 312 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
 | 313 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 314 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
 | 315 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 316 |       echo="$dir/echo" | 
 | 317 |       break | 
 | 318 |     fi | 
 | 319 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 320 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 321 |  | 
 | 322 |   if test "X$echo" = Xecho; then | 
 | 323 |     # We didn't find a better echo, so look for alternatives. | 
 | 324 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
 | 325 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
 | 326 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 327 |       # This shell has a builtin print -r that does the trick. | 
 | 328 |       echo='print -r' | 
 | 329 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
 | 330 | 	 test "X$CONFIG_SHELL" != X/bin/ksh; then | 
 | 331 |       # If we have ksh, try running configure again with it. | 
 | 332 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 333 |       export ORIGINAL_CONFIG_SHELL | 
 | 334 |       CONFIG_SHELL=/bin/ksh | 
 | 335 |       export CONFIG_SHELL | 
 | 336 |       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
 | 337 |     else | 
 | 338 |       # Try using printf. | 
 | 339 |       echo='printf %s\n' | 
 | 340 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 341 | 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 342 | 	 test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 343 | 	# Cool, printf works | 
 | 344 | 	: | 
 | 345 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 346 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 347 | 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 348 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 349 | 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
 | 350 | 	export CONFIG_SHELL | 
 | 351 | 	SHELL="$CONFIG_SHELL" | 
 | 352 | 	export SHELL | 
 | 353 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 354 |       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 355 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 356 | 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 357 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 358 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 359 |       else | 
 | 360 | 	# maybe with a smaller string... | 
 | 361 | 	prev=: | 
 | 362 |  | 
 | 363 | 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
 | 364 | 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
 | 365 | 	  then | 
 | 366 | 	    break | 
 | 367 | 	  fi | 
 | 368 | 	  prev="$cmd" | 
 | 369 | 	done | 
 | 370 |  | 
 | 371 | 	if test "$prev" != 'sed 50q "$0"'; then | 
 | 372 | 	  echo_test_string=`eval $prev` | 
 | 373 | 	  export echo_test_string | 
 | 374 | 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
 | 375 | 	else | 
 | 376 | 	  # Oops.  We lost completely, so just stick with echo. | 
 | 377 | 	  echo=echo | 
 | 378 | 	fi | 
 | 379 |       fi | 
 | 380 |     fi | 
 | 381 |   fi | 
 | 382 | fi | 
 | 383 | fi | 
 | 384 |  | 
 | 385 | # Copy echo and quote the copy suitably for passing to libtool from | 
 | 386 | # the Makefile, instead of quoting the original, which is used later. | 
 | 387 | ECHO=$echo | 
 | 388 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
 | 389 |    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
 | 390 | fi | 
 | 391 |  | 
 | 392 |  | 
 | 393 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 394 |  | 
 | 395 | tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` | 
 | 396 |  | 
 | 397 | tagnames=`echo "$tagnames,F77" | sed 's/^,//'` | 
 | 398 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 399 | # Name of the host. | 
 | 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
 | 401 | # so uname gets run too. | 
 | 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 403 |  | 
 | 404 | exec 6>&1 | 
 | 405 |  | 
 | 406 | # | 
 | 407 | # Initializations. | 
 | 408 | # | 
 | 409 | ac_default_prefix=/usr/local | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 410 | ac_config_libobj_dir=. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 411 | cross_compiling=no | 
 | 412 | subdirs= | 
 | 413 | MFLAGS= | 
 | 414 | MAKEFLAGS= | 
 | 415 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 416 |  | 
 | 417 | # Maximum number of lines to put in a shell here document. | 
 | 418 | # This variable seems obsolete.  It should probably be removed, and | 
 | 419 | # only ac_max_sed_lines should be used. | 
 | 420 | : ${ac_max_here_lines=38} | 
 | 421 |  | 
 | 422 | # Identity of this package. | 
 | 423 | PACKAGE_NAME='[LLVM]' | 
 | 424 | PACKAGE_TARNAME='--llvm--' | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 425 | PACKAGE_VERSION='[1.1]' | 
 | 426 | PACKAGE_STRING='[LLVM] [1.1]' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 427 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
 | 428 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 429 | ac_subdirs_all="$ac_subdirs_all projects/${i}" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 430 | # Factoring default headers for most tests. | 
 | 431 | ac_includes_default="\ | 
 | 432 | #include <stdio.h> | 
 | 433 | #if HAVE_SYS_TYPES_H | 
 | 434 | # include <sys/types.h> | 
 | 435 | #endif | 
 | 436 | #if HAVE_SYS_STAT_H | 
 | 437 | # include <sys/stat.h> | 
 | 438 | #endif | 
 | 439 | #if STDC_HEADERS | 
 | 440 | # include <stdlib.h> | 
 | 441 | # include <stddef.h> | 
 | 442 | #else | 
 | 443 | # if HAVE_STDLIB_H | 
 | 444 | #  include <stdlib.h> | 
 | 445 | # endif | 
 | 446 | #endif | 
 | 447 | #if HAVE_STRING_H | 
 | 448 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
 | 449 | #  include <memory.h> | 
 | 450 | # endif | 
 | 451 | # include <string.h> | 
 | 452 | #endif | 
 | 453 | #if HAVE_STRINGS_H | 
 | 454 | # include <strings.h> | 
 | 455 | #endif | 
 | 456 | #if HAVE_INTTYPES_H | 
 | 457 | # include <inttypes.h> | 
 | 458 | #else | 
 | 459 | # if HAVE_STDINT_H | 
 | 460 | #  include <stdint.h> | 
 | 461 | # endif | 
 | 462 | #endif | 
 | 463 | #if HAVE_UNISTD_H | 
 | 464 | # include <unistd.h> | 
 | 465 | #endif" | 
 | 466 |  | 
 | 467 | ac_unique_file=""Makefile.config.in"" | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS PYTHON QMTEST ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR LIBOBJS LTLIBOBJS' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 469 | ac_subst_files='' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 470 |  | 
 | 471 | # Initialize some variables set by options. | 
 | 472 | ac_init_help= | 
 | 473 | ac_init_version=false | 
 | 474 | # The variables have the same names as the options, with | 
 | 475 | # dashes changed to underlines. | 
 | 476 | cache_file=/dev/null | 
 | 477 | exec_prefix=NONE | 
 | 478 | no_create= | 
 | 479 | no_recursion= | 
 | 480 | prefix=NONE | 
 | 481 | program_prefix=NONE | 
 | 482 | program_suffix=NONE | 
 | 483 | program_transform_name=s,x,x, | 
 | 484 | silent= | 
 | 485 | site= | 
 | 486 | srcdir= | 
 | 487 | verbose= | 
 | 488 | x_includes=NONE | 
 | 489 | x_libraries=NONE | 
 | 490 |  | 
 | 491 | # Installation directory options. | 
 | 492 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 493 | # and all the variables that are supposed to be based on exec_prefix | 
 | 494 | # by default will actually change. | 
 | 495 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 496 | bindir='${exec_prefix}/bin' | 
 | 497 | sbindir='${exec_prefix}/sbin' | 
 | 498 | libexecdir='${exec_prefix}/libexec' | 
 | 499 | datadir='${prefix}/share' | 
 | 500 | sysconfdir='${prefix}/etc' | 
 | 501 | sharedstatedir='${prefix}/com' | 
 | 502 | localstatedir='${prefix}/var' | 
 | 503 | libdir='${exec_prefix}/lib' | 
 | 504 | includedir='${prefix}/include' | 
 | 505 | oldincludedir='/usr/include' | 
 | 506 | infodir='${prefix}/info' | 
 | 507 | mandir='${prefix}/man' | 
 | 508 |  | 
 | 509 | ac_prev= | 
 | 510 | for ac_option | 
 | 511 | do | 
 | 512 |   # If the previous option needs an argument, assign it. | 
 | 513 |   if test -n "$ac_prev"; then | 
 | 514 |     eval "$ac_prev=\$ac_option" | 
 | 515 |     ac_prev= | 
 | 516 |     continue | 
 | 517 |   fi | 
 | 518 |  | 
 | 519 |   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
 | 520 |  | 
 | 521 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 522 |  | 
 | 523 |   case $ac_option in | 
 | 524 |  | 
 | 525 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 526 |     ac_prev=bindir ;; | 
 | 527 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 528 |     bindir=$ac_optarg ;; | 
 | 529 |  | 
 | 530 |   -build | --build | --buil | --bui | --bu) | 
 | 531 |     ac_prev=build_alias ;; | 
 | 532 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 533 |     build_alias=$ac_optarg ;; | 
 | 534 |  | 
 | 535 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 536 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 537 |     ac_prev=cache_file ;; | 
 | 538 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 539 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 540 |     cache_file=$ac_optarg ;; | 
 | 541 |  | 
 | 542 |   --config-cache | -C) | 
 | 543 |     cache_file=config.cache ;; | 
 | 544 |  | 
 | 545 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 546 |     ac_prev=datadir ;; | 
 | 547 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 548 |   | --da=*) | 
 | 549 |     datadir=$ac_optarg ;; | 
 | 550 |  | 
 | 551 |   -disable-* | --disable-*) | 
 | 552 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 553 |     # Reject names that are not valid shell variable names. | 
 | 554 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 555 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 556 |    { (exit 1); exit 1; }; } | 
 | 557 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 558 |     eval "enable_$ac_feature=no" ;; | 
 | 559 |  | 
 | 560 |   -enable-* | --enable-*) | 
 | 561 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 562 |     # Reject names that are not valid shell variable names. | 
 | 563 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 564 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 565 |    { (exit 1); exit 1; }; } | 
 | 566 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
 | 567 |     case $ac_option in | 
 | 568 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 569 |       *) ac_optarg=yes ;; | 
 | 570 |     esac | 
 | 571 |     eval "enable_$ac_feature='$ac_optarg'" ;; | 
 | 572 |  | 
 | 573 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 574 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 575 |   | --exec | --exe | --ex) | 
 | 576 |     ac_prev=exec_prefix ;; | 
 | 577 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 578 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 579 |   | --exec=* | --exe=* | --ex=*) | 
 | 580 |     exec_prefix=$ac_optarg ;; | 
 | 581 |  | 
 | 582 |   -gas | --gas | --ga | --g) | 
 | 583 |     # Obsolete; use --with-gas. | 
 | 584 |     with_gas=yes ;; | 
 | 585 |  | 
 | 586 |   -help | --help | --hel | --he | -h) | 
 | 587 |     ac_init_help=long ;; | 
 | 588 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 589 |     ac_init_help=recursive ;; | 
 | 590 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 591 |     ac_init_help=short ;; | 
 | 592 |  | 
 | 593 |   -host | --host | --hos | --ho) | 
 | 594 |     ac_prev=host_alias ;; | 
 | 595 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 596 |     host_alias=$ac_optarg ;; | 
 | 597 |  | 
 | 598 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 599 |   | --includ | --inclu | --incl | --inc) | 
 | 600 |     ac_prev=includedir ;; | 
 | 601 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 602 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 603 |     includedir=$ac_optarg ;; | 
 | 604 |  | 
 | 605 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 606 |     ac_prev=infodir ;; | 
 | 607 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 608 |     infodir=$ac_optarg ;; | 
 | 609 |  | 
 | 610 |   -libdir | --libdir | --libdi | --libd) | 
 | 611 |     ac_prev=libdir ;; | 
 | 612 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 613 |     libdir=$ac_optarg ;; | 
 | 614 |  | 
 | 615 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 616 |   | --libexe | --libex | --libe) | 
 | 617 |     ac_prev=libexecdir ;; | 
 | 618 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 619 |   | --libexe=* | --libex=* | --libe=*) | 
 | 620 |     libexecdir=$ac_optarg ;; | 
 | 621 |  | 
 | 622 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 623 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 624 |   | --locals | --local | --loca | --loc | --lo) | 
 | 625 |     ac_prev=localstatedir ;; | 
 | 626 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 627 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 628 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 629 |     localstatedir=$ac_optarg ;; | 
 | 630 |  | 
 | 631 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 632 |     ac_prev=mandir ;; | 
 | 633 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 634 |     mandir=$ac_optarg ;; | 
 | 635 |  | 
 | 636 |   -nfp | --nfp | --nf) | 
 | 637 |     # Obsolete; use --without-fp. | 
 | 638 |     with_fp=no ;; | 
 | 639 |  | 
 | 640 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 641 |   | --no-cr | --no-c | -n) | 
 | 642 |     no_create=yes ;; | 
 | 643 |  | 
 | 644 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 645 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 646 |     no_recursion=yes ;; | 
 | 647 |  | 
 | 648 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 649 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 650 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 651 |     ac_prev=oldincludedir ;; | 
 | 652 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 653 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 654 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 655 |     oldincludedir=$ac_optarg ;; | 
 | 656 |  | 
 | 657 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 658 |     ac_prev=prefix ;; | 
 | 659 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 660 |     prefix=$ac_optarg ;; | 
 | 661 |  | 
 | 662 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 663 |   | --program-pre | --program-pr | --program-p) | 
 | 664 |     ac_prev=program_prefix ;; | 
 | 665 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 666 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 667 |     program_prefix=$ac_optarg ;; | 
 | 668 |  | 
 | 669 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 670 |   | --program-suf | --program-su | --program-s) | 
 | 671 |     ac_prev=program_suffix ;; | 
 | 672 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 673 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 674 |     program_suffix=$ac_optarg ;; | 
 | 675 |  | 
 | 676 |   -program-transform-name | --program-transform-name \ | 
 | 677 |   | --program-transform-nam | --program-transform-na \ | 
 | 678 |   | --program-transform-n | --program-transform- \ | 
 | 679 |   | --program-transform | --program-transfor \ | 
 | 680 |   | --program-transfo | --program-transf \ | 
 | 681 |   | --program-trans | --program-tran \ | 
 | 682 |   | --progr-tra | --program-tr | --program-t) | 
 | 683 |     ac_prev=program_transform_name ;; | 
 | 684 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 685 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 686 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 687 |   | --program-transform=* | --program-transfor=* \ | 
 | 688 |   | --program-transfo=* | --program-transf=* \ | 
 | 689 |   | --program-trans=* | --program-tran=* \ | 
 | 690 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 691 |     program_transform_name=$ac_optarg ;; | 
 | 692 |  | 
 | 693 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 694 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 695 |     silent=yes ;; | 
 | 696 |  | 
 | 697 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 698 |     ac_prev=sbindir ;; | 
 | 699 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 700 |   | --sbi=* | --sb=*) | 
 | 701 |     sbindir=$ac_optarg ;; | 
 | 702 |  | 
 | 703 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 704 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 705 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 706 |   | --sha | --sh) | 
 | 707 |     ac_prev=sharedstatedir ;; | 
 | 708 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 709 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 710 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 711 |   | --sha=* | --sh=*) | 
 | 712 |     sharedstatedir=$ac_optarg ;; | 
 | 713 |  | 
 | 714 |   -site | --site | --sit) | 
 | 715 |     ac_prev=site ;; | 
 | 716 |   -site=* | --site=* | --sit=*) | 
 | 717 |     site=$ac_optarg ;; | 
 | 718 |  | 
 | 719 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 720 |     ac_prev=srcdir ;; | 
 | 721 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 722 |     srcdir=$ac_optarg ;; | 
 | 723 |  | 
 | 724 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 725 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 726 |     ac_prev=sysconfdir ;; | 
 | 727 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 728 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 729 |     sysconfdir=$ac_optarg ;; | 
 | 730 |  | 
 | 731 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 732 |     ac_prev=target_alias ;; | 
 | 733 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 734 |     target_alias=$ac_optarg ;; | 
 | 735 |  | 
 | 736 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 737 |     verbose=yes ;; | 
 | 738 |  | 
 | 739 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 740 |     ac_init_version=: ;; | 
 | 741 |  | 
 | 742 |   -with-* | --with-*) | 
 | 743 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 744 |     # Reject names that are not valid shell variable names. | 
 | 745 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 746 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 747 |    { (exit 1); exit 1; }; } | 
 | 748 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 749 |     case $ac_option in | 
 | 750 |       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
 | 751 |       *) ac_optarg=yes ;; | 
 | 752 |     esac | 
 | 753 |     eval "with_$ac_package='$ac_optarg'" ;; | 
 | 754 |  | 
 | 755 |   -without-* | --without-*) | 
 | 756 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 757 |     # Reject names that are not valid shell variable names. | 
 | 758 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
 | 759 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 760 |    { (exit 1); exit 1; }; } | 
 | 761 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
 | 762 |     eval "with_$ac_package=no" ;; | 
 | 763 |  | 
 | 764 |   --x) | 
 | 765 |     # Obsolete; use --with-x. | 
 | 766 |     with_x=yes ;; | 
 | 767 |  | 
 | 768 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 769 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 770 |     ac_prev=x_includes ;; | 
 | 771 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 772 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 773 |     x_includes=$ac_optarg ;; | 
 | 774 |  | 
 | 775 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 776 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 777 |     ac_prev=x_libraries ;; | 
 | 778 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 779 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 780 |     x_libraries=$ac_optarg ;; | 
 | 781 |  | 
 | 782 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 783 | Try \`$0 --help' for more information." >&2 | 
 | 784 |    { (exit 1); exit 1; }; } | 
 | 785 |     ;; | 
 | 786 |  | 
 | 787 |   *=*) | 
 | 788 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 789 |     # Reject names that are not valid shell variable names. | 
 | 790 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 791 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 792 |    { (exit 1); exit 1; }; } | 
 | 793 |     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
 | 794 |     eval "$ac_envvar='$ac_optarg'" | 
 | 795 |     export $ac_envvar ;; | 
 | 796 |  | 
 | 797 |   *) | 
 | 798 |     # FIXME: should be removed in autoconf 3.0. | 
 | 799 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 800 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 801 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 802 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 803 |     ;; | 
 | 804 |  | 
 | 805 |   esac | 
 | 806 | done | 
 | 807 |  | 
 | 808 | if test -n "$ac_prev"; then | 
 | 809 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 810 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 811 |    { (exit 1); exit 1; }; } | 
 | 812 | fi | 
 | 813 |  | 
 | 814 | # Be sure to have absolute paths. | 
 | 815 | for ac_var in exec_prefix prefix | 
 | 816 | do | 
 | 817 |   eval ac_val=$`echo $ac_var` | 
 | 818 |   case $ac_val in | 
 | 819 |     [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
 | 820 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 821 |    { (exit 1); exit 1; }; };; | 
 | 822 |   esac | 
 | 823 | done | 
 | 824 |  | 
 | 825 | # Be sure to have absolute paths. | 
 | 826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
 | 827 |               localstatedir libdir includedir oldincludedir infodir mandir | 
 | 828 | do | 
 | 829 |   eval ac_val=$`echo $ac_var` | 
 | 830 |   case $ac_val in | 
 | 831 |     [\\/$]* | ?:[\\/]* ) ;; | 
 | 832 |     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 833 |    { (exit 1); exit 1; }; };; | 
 | 834 |   esac | 
 | 835 | done | 
 | 836 |  | 
 | 837 | # There might be people who depend on the old broken behavior: `$host' | 
 | 838 | # used to hold the argument of --host etc. | 
 | 839 | # FIXME: To remove some day. | 
 | 840 | build=$build_alias | 
 | 841 | host=$host_alias | 
 | 842 | target=$target_alias | 
 | 843 |  | 
 | 844 | # FIXME: To remove some day. | 
 | 845 | if test "x$host_alias" != x; then | 
 | 846 |   if test "x$build_alias" = x; then | 
 | 847 |     cross_compiling=maybe | 
 | 848 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 849 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 850 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 851 |     cross_compiling=yes | 
 | 852 |   fi | 
 | 853 | fi | 
 | 854 |  | 
 | 855 | ac_tool_prefix= | 
 | 856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 857 |  | 
 | 858 | test "$silent" = yes && exec 6>/dev/null | 
 | 859 |  | 
 | 860 |  | 
 | 861 | # Find the source files, if location was not specified. | 
 | 862 | if test -z "$srcdir"; then | 
 | 863 |   ac_srcdir_defaulted=yes | 
 | 864 |   # Try the directory containing this script, then its parent. | 
 | 865 |   ac_confdir=`(dirname "$0") 2>/dev/null || | 
 | 866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 867 |          X"$0" : 'X\(//\)[^/]' \| \ | 
 | 868 |          X"$0" : 'X\(//\)$' \| \ | 
 | 869 |          X"$0" : 'X\(/\)' \| \ | 
 | 870 |          .     : '\(.\)' 2>/dev/null || | 
 | 871 | echo X"$0" | | 
 | 872 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 873 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 874 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 875 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 876 |   	  s/.*/./; q'` | 
 | 877 |   srcdir=$ac_confdir | 
 | 878 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 879 |     srcdir=.. | 
 | 880 |   fi | 
 | 881 | else | 
 | 882 |   ac_srcdir_defaulted=no | 
 | 883 | fi | 
 | 884 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 885 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 886 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
 | 887 |    { (exit 1); exit 1; }; } | 
 | 888 |   else | 
 | 889 |     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
 | 890 |    { (exit 1); exit 1; }; } | 
 | 891 |   fi | 
 | 892 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
 | 894 |   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
 | 895 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
 | 897 | ac_env_build_alias_set=${build_alias+set} | 
 | 898 | ac_env_build_alias_value=$build_alias | 
 | 899 | ac_cv_env_build_alias_set=${build_alias+set} | 
 | 900 | ac_cv_env_build_alias_value=$build_alias | 
 | 901 | ac_env_host_alias_set=${host_alias+set} | 
 | 902 | ac_env_host_alias_value=$host_alias | 
 | 903 | ac_cv_env_host_alias_set=${host_alias+set} | 
 | 904 | ac_cv_env_host_alias_value=$host_alias | 
 | 905 | ac_env_target_alias_set=${target_alias+set} | 
 | 906 | ac_env_target_alias_value=$target_alias | 
 | 907 | ac_cv_env_target_alias_set=${target_alias+set} | 
 | 908 | ac_cv_env_target_alias_value=$target_alias | 
 | 909 | ac_env_CXX_set=${CXX+set} | 
 | 910 | ac_env_CXX_value=$CXX | 
 | 911 | ac_cv_env_CXX_set=${CXX+set} | 
 | 912 | ac_cv_env_CXX_value=$CXX | 
 | 913 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 914 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
 | 915 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
 | 916 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
 | 917 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 918 | ac_env_LDFLAGS_value=$LDFLAGS | 
 | 919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
 | 920 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
 | 921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 922 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
 | 923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
 | 924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
 | 925 | ac_env_CC_set=${CC+set} | 
 | 926 | ac_env_CC_value=$CC | 
 | 927 | ac_cv_env_CC_set=${CC+set} | 
 | 928 | ac_cv_env_CC_value=$CC | 
 | 929 | ac_env_CFLAGS_set=${CFLAGS+set} | 
 | 930 | ac_env_CFLAGS_value=$CFLAGS | 
 | 931 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
 | 932 | ac_cv_env_CFLAGS_value=$CFLAGS | 
 | 933 | ac_env_CPP_set=${CPP+set} | 
 | 934 | ac_env_CPP_value=$CPP | 
 | 935 | ac_cv_env_CPP_set=${CPP+set} | 
 | 936 | ac_cv_env_CPP_value=$CPP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 937 | ac_env_CXXCPP_set=${CXXCPP+set} | 
 | 938 | ac_env_CXXCPP_value=$CXXCPP | 
 | 939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | 
 | 940 | ac_cv_env_CXXCPP_value=$CXXCPP | 
 | 941 | ac_env_F77_set=${F77+set} | 
 | 942 | ac_env_F77_value=$F77 | 
 | 943 | ac_cv_env_F77_set=${F77+set} | 
 | 944 | ac_cv_env_F77_value=$F77 | 
 | 945 | ac_env_FFLAGS_set=${FFLAGS+set} | 
 | 946 | ac_env_FFLAGS_value=$FFLAGS | 
 | 947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | 
 | 948 | ac_cv_env_FFLAGS_value=$FFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 949 |  | 
 | 950 | # | 
 | 951 | # Report the --help message. | 
 | 952 | # | 
 | 953 | if test "$ac_init_help" = "long"; then | 
 | 954 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 955 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 956 |   cat <<_ACEOF | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 957 | \`configure' configures [LLVM] [1.1] to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 958 |  | 
 | 959 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 960 |  | 
 | 961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 962 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 963 |  | 
 | 964 | Defaults for the options are specified in brackets. | 
 | 965 |  | 
 | 966 | Configuration: | 
 | 967 |   -h, --help              display this help and exit | 
 | 968 |       --help=short        display options specific to this package | 
 | 969 |       --help=recursive    display the short help of all the included packages | 
 | 970 |   -V, --version           display version information and exit | 
 | 971 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 972 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 973 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 974 |   -n, --no-create         do not create output files | 
 | 975 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 976 |  | 
 | 977 | _ACEOF | 
 | 978 |  | 
 | 979 |   cat <<_ACEOF | 
 | 980 | Installation directories: | 
 | 981 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 982 |                           [$ac_default_prefix] | 
 | 983 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
 | 984 |                           [PREFIX] | 
 | 985 |  | 
 | 986 | By default, \`make install' will install all the files in | 
 | 987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 989 | for instance \`--prefix=\$HOME'. | 
 | 990 |  | 
 | 991 | For better control, use the options below. | 
 | 992 |  | 
 | 993 | Fine tuning of the installation directories: | 
 | 994 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 995 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 996 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
 | 997 |   --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
 | 998 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 999 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1000 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1001 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1002 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1003 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
 | 1004 |   --infodir=DIR          info documentation [PREFIX/info] | 
 | 1005 |   --mandir=DIR           man documentation [PREFIX/man] | 
 | 1006 | _ACEOF | 
 | 1007 |  | 
 | 1008 |   cat <<\_ACEOF | 
 | 1009 |  | 
 | 1010 | System types: | 
 | 1011 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1012 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1013 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1014 | _ACEOF | 
 | 1015 | fi | 
 | 1016 |  | 
 | 1017 | if test -n "$ac_init_help"; then | 
 | 1018 |   case $ac_init_help in | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1019 |      short | recursive ) echo "Configuration of [LLVM] [1.1]:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1020 |    esac | 
 | 1021 |   cat <<\_ACEOF | 
 | 1022 |  | 
 | 1023 | Optional Features: | 
 | 1024 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1025 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1026 |   --enable-shared[=PKGS] | 
 | 1027 |                           build shared libraries [default=yes] | 
 | 1028 |   --enable-static[=PKGS] | 
 | 1029 |                           build static libraries [default=yes] | 
 | 1030 |   --enable-fast-install[=PKGS] | 
 | 1031 |                           optimize for fast installation [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1032 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 |   --enable-optimized      Compile with optimizations enabled (default is NO) | 
| Alkis Evlogimenos | 3e58e48 | 2003-12-20 21:35:15 +0000 | [diff] [blame] | 1034 |   --enable-spec2000       Compile SPEC 2000 benchmarks (default is NO) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1035 |   --enable-precompiled_bytecode | 
 | 1036 |                           Use pre-compiled bytecode (default is NO) | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 1037 |   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES) | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 1038 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1039 |  | 
 | 1040 | Optional Packages: | 
 | 1041 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1042 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1043 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1044 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1045 |                           both] | 
 | 1046 |   --with-tags[=TAGS] | 
 | 1047 |                           include additional configurations [automatic] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1048 |   --with-llvmgccdir       Location of LLVM GCC front-end | 
 | 1049 |   --with-bcrepos          Location of Bytecode Repository | 
 | 1050 |   --with-papi             Location of PAPI | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1051 |  | 
 | 1052 | Some influential environment variables: | 
 | 1053 |   CXX         C++ compiler command | 
 | 1054 |   CXXFLAGS    C++ compiler flags | 
 | 1055 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1056 |               nonstandard directory <lib dir> | 
 | 1057 |   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
 | 1058 |               headers in a nonstandard directory <include dir> | 
 | 1059 |   CC          C compiler command | 
 | 1060 |   CFLAGS      C compiler flags | 
 | 1061 |   CPP         C preprocessor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1062 |   CXXCPP      C++ preprocessor | 
 | 1063 |   F77         Fortran 77 compiler command | 
 | 1064 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 |  | 
 | 1066 | Use these variables to override the choices made by `configure' or to help | 
 | 1067 | it to find libraries and programs with nonstandard names/locations. | 
 | 1068 |  | 
 | 1069 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1070 | _ACEOF | 
 | 1071 | fi | 
 | 1072 |  | 
 | 1073 | if test "$ac_init_help" = "recursive"; then | 
 | 1074 |   # If there are subdirs, report their specific --help. | 
 | 1075 |   ac_popdir=`pwd` | 
 | 1076 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1077 |     test -d $ac_dir || continue | 
 | 1078 |     ac_builddir=. | 
 | 1079 |  | 
 | 1080 | if test "$ac_dir" != .; then | 
 | 1081 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 1082 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 1083 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 1084 | else | 
 | 1085 |   ac_dir_suffix= ac_top_builddir= | 
 | 1086 | fi | 
 | 1087 |  | 
 | 1088 | case $srcdir in | 
 | 1089 |   .)  # No --srcdir option.  We are building in place. | 
 | 1090 |     ac_srcdir=. | 
 | 1091 |     if test -z "$ac_top_builddir"; then | 
 | 1092 |        ac_top_srcdir=. | 
 | 1093 |     else | 
 | 1094 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 1095 |     fi ;; | 
 | 1096 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 1097 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 1098 |     ac_top_srcdir=$srcdir ;; | 
 | 1099 |   *) # Relative path. | 
 | 1100 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 1101 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 1102 | esac | 
 | 1103 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
 | 1104 | # absolute. | 
 | 1105 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1106 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1107 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
 | 1108 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
 | 1109 |  | 
 | 1110 |     cd $ac_dir | 
 | 1111 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 1112 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 1113 |       echo | 
 | 1114 |       $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
 | 1115 |     elif test -f $ac_srcdir/configure; then | 
 | 1116 |       echo | 
 | 1117 |       $SHELL $ac_srcdir/configure  --help=recursive | 
 | 1118 |     elif test -f $ac_srcdir/configure.ac || | 
 | 1119 |            test -f $ac_srcdir/configure.in; then | 
 | 1120 |       echo | 
 | 1121 |       $ac_configure --help | 
 | 1122 |     else | 
 | 1123 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 1124 |     fi | 
 | 1125 |     cd $ac_popdir | 
 | 1126 |   done | 
 | 1127 | fi | 
 | 1128 |  | 
 | 1129 | test -n "$ac_init_help" && exit 0 | 
 | 1130 | if $ac_init_version; then | 
 | 1131 |   cat <<\_ACEOF | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1132 | [LLVM] configure [1.1] | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1133 | generated by GNU Autoconf 2.57 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1134 |  | 
 | 1135 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
 | 1136 | Free Software Foundation, Inc. | 
 | 1137 | This configure script is free software; the Free Software Foundation | 
 | 1138 | gives unlimited permission to copy, distribute and modify it. | 
 | 1139 | _ACEOF | 
 | 1140 |   exit 0 | 
 | 1141 | fi | 
 | 1142 | exec 5>config.log | 
 | 1143 | cat >&5 <<_ACEOF | 
 | 1144 | This file contains any messages produced by compilers while | 
 | 1145 | running configure, to aid debugging if configure makes a mistake. | 
 | 1146 |  | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 1147 | It was created by [LLVM] $as_me [1.1], which was | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1148 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 |  | 
 | 1150 |   $ $0 $@ | 
 | 1151 |  | 
 | 1152 | _ACEOF | 
 | 1153 | { | 
 | 1154 | cat <<_ASUNAME | 
 | 1155 | ## --------- ## | 
 | 1156 | ## Platform. ## | 
 | 1157 | ## --------- ## | 
 | 1158 |  | 
 | 1159 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1160 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1161 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1162 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1163 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1164 |  | 
 | 1165 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1166 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1167 |  | 
 | 1168 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1169 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1170 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 1171 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
 | 1172 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1173 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1174 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1175 |  | 
 | 1176 | _ASUNAME | 
 | 1177 |  | 
 | 1178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1179 | for as_dir in $PATH | 
 | 1180 | do | 
 | 1181 |   IFS=$as_save_IFS | 
 | 1182 |   test -z "$as_dir" && as_dir=. | 
 | 1183 |   echo "PATH: $as_dir" | 
 | 1184 | done | 
 | 1185 |  | 
 | 1186 | } >&5 | 
 | 1187 |  | 
 | 1188 | cat >&5 <<_ACEOF | 
 | 1189 |  | 
 | 1190 |  | 
 | 1191 | ## ----------- ## | 
 | 1192 | ## Core tests. ## | 
 | 1193 | ## ----------- ## | 
 | 1194 |  | 
 | 1195 | _ACEOF | 
 | 1196 |  | 
 | 1197 |  | 
 | 1198 | # Keep a trace of the command line. | 
 | 1199 | # 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] | 1200 | # 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] | 1201 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1202 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1203 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1204 | ac_configure_args0= | 
 | 1205 | ac_configure_args1= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1206 | ac_sep= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1207 | ac_must_keep_next=false | 
 | 1208 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1210 |   for ac_arg | 
 | 1211 |   do | 
 | 1212 |     case $ac_arg in | 
 | 1213 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1214 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1215 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1216 |       continue ;; | 
 | 1217 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1218 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1219 |     esac | 
 | 1220 |     case $ac_pass in | 
 | 1221 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1222 |     2) | 
 | 1223 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1224 |       if test $ac_must_keep_next = true; then | 
 | 1225 |         ac_must_keep_next=false # Got value, back to normal. | 
 | 1226 |       else | 
 | 1227 |         case $ac_arg in | 
 | 1228 |           *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1229 |           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1230 |           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1231 |           | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1232 |             case "$ac_configure_args0 " in | 
 | 1233 |               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1234 |             esac | 
 | 1235 |             ;; | 
 | 1236 |           -* ) ac_must_keep_next=true ;; | 
 | 1237 |         esac | 
 | 1238 |       fi | 
 | 1239 |       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
 | 1240 |       # Get rid of the leading space. | 
 | 1241 |       ac_sep=" " | 
 | 1242 |       ;; | 
 | 1243 |     esac | 
 | 1244 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1245 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1246 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1247 | $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] | 1248 |  | 
 | 1249 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1250 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1251 | # would cause problems or look ugly. | 
 | 1252 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
 | 1253 | # such as our DU 5.0 friend, will then `close' the trap. | 
 | 1254 | trap 'exit_status=$? | 
 | 1255 |   # Save into config.log some information that might help in debugging. | 
 | 1256 |   { | 
 | 1257 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1258 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1259 |     cat <<\_ASBOX | 
 | 1260 | ## ---------------- ## | 
 | 1261 | ## Cache variables. ## | 
 | 1262 | ## ---------------- ## | 
 | 1263 | _ASBOX | 
 | 1264 |     echo | 
 | 1265 |     # The following way of writing the cache mishandles newlines in values, | 
 | 1266 | { | 
 | 1267 |   (set) 2>&1 | | 
 | 1268 |     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
 | 1269 |     *ac_space=\ *) | 
 | 1270 |       sed -n \ | 
 | 1271 |         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
 | 1272 |     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
 | 1273 |       ;; | 
 | 1274 |     *) | 
 | 1275 |       sed -n \ | 
 | 1276 |         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
 | 1277 |       ;; | 
 | 1278 |     esac; | 
 | 1279 | } | 
 | 1280 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1281 |  | 
 | 1282 |     cat <<\_ASBOX | 
 | 1283 | ## ----------------- ## | 
 | 1284 | ## Output variables. ## | 
 | 1285 | ## ----------------- ## | 
 | 1286 | _ASBOX | 
 | 1287 |     echo | 
 | 1288 |     for ac_var in $ac_subst_vars | 
 | 1289 |     do | 
 | 1290 |       eval ac_val=$`echo $ac_var` | 
 | 1291 |       echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1292 |     done | sort | 
 | 1293 |     echo | 
 | 1294 |  | 
 | 1295 |     if test -n "$ac_subst_files"; then | 
 | 1296 |       cat <<\_ASBOX | 
 | 1297 | ## ------------- ## | 
 | 1298 | ## Output files. ## | 
 | 1299 | ## ------------- ## | 
 | 1300 | _ASBOX | 
 | 1301 |       echo | 
 | 1302 |       for ac_var in $ac_subst_files | 
 | 1303 |       do | 
 | 1304 | 	eval ac_val=$`echo $ac_var` | 
 | 1305 |         echo "$ac_var='"'"'$ac_val'"'"'" | 
 | 1306 |       done | sort | 
 | 1307 |       echo | 
 | 1308 |     fi | 
 | 1309 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1310 |     if test -s confdefs.h; then | 
 | 1311 |       cat <<\_ASBOX | 
 | 1312 | ## ----------- ## | 
 | 1313 | ## confdefs.h. ## | 
 | 1314 | ## ----------- ## | 
 | 1315 | _ASBOX | 
 | 1316 |       echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1317 |       sed "/^$/d" confdefs.h | sort | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1318 |       echo | 
 | 1319 |     fi | 
 | 1320 |     test "$ac_signal" != 0 && | 
 | 1321 |       echo "$as_me: caught signal $ac_signal" | 
 | 1322 |     echo "$as_me: exit $exit_status" | 
 | 1323 |   } >&5 | 
 | 1324 |   rm -f core core.* *.core && | 
 | 1325 |   rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
 | 1326 |     exit $exit_status | 
 | 1327 |      ' 0 | 
 | 1328 | for ac_signal in 1 2 13 15; do | 
 | 1329 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1330 | done | 
 | 1331 | ac_signal=0 | 
 | 1332 |  | 
 | 1333 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 1334 | rm -rf conftest* confdefs.h | 
 | 1335 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 1336 | echo >confdefs.h | 
 | 1337 |  | 
 | 1338 | # Predefined preprocessor variables. | 
 | 1339 |  | 
 | 1340 | cat >>confdefs.h <<_ACEOF | 
 | 1341 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1342 | _ACEOF | 
 | 1343 |  | 
 | 1344 |  | 
 | 1345 | cat >>confdefs.h <<_ACEOF | 
 | 1346 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1347 | _ACEOF | 
 | 1348 |  | 
 | 1349 |  | 
 | 1350 | cat >>confdefs.h <<_ACEOF | 
 | 1351 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1352 | _ACEOF | 
 | 1353 |  | 
 | 1354 |  | 
 | 1355 | cat >>confdefs.h <<_ACEOF | 
 | 1356 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1357 | _ACEOF | 
 | 1358 |  | 
 | 1359 |  | 
 | 1360 | cat >>confdefs.h <<_ACEOF | 
 | 1361 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1362 | _ACEOF | 
 | 1363 |  | 
 | 1364 |  | 
 | 1365 | # Let the site file select an alternate cache file if it wants to. | 
 | 1366 | # Prefer explicitly selected file to automatically selected ones. | 
 | 1367 | if test -z "$CONFIG_SITE"; then | 
 | 1368 |   if test "x$prefix" != xNONE; then | 
 | 1369 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 1370 |   else | 
 | 1371 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 1372 |   fi | 
 | 1373 | fi | 
 | 1374 | for ac_site_file in $CONFIG_SITE; do | 
 | 1375 |   if test -r "$ac_site_file"; then | 
 | 1376 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1377 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1378 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1379 |     . "$ac_site_file" | 
 | 1380 |   fi | 
 | 1381 | done | 
 | 1382 |  | 
 | 1383 | if test -r "$cache_file"; then | 
 | 1384 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1385 |   # files actually), so we avoid doing that. | 
 | 1386 |   if test -f "$cache_file"; then | 
 | 1387 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1388 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1389 |     case $cache_file in | 
 | 1390 |       [\\/]* | ?:[\\/]* ) . $cache_file;; | 
 | 1391 |       *)                      . ./$cache_file;; | 
 | 1392 |     esac | 
 | 1393 |   fi | 
 | 1394 | else | 
 | 1395 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1396 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1397 |   >$cache_file | 
 | 1398 | fi | 
 | 1399 |  | 
 | 1400 | # Check that the precious variables saved in the cache have kept the same | 
 | 1401 | # value. | 
 | 1402 | ac_cache_corrupted=false | 
 | 1403 | for ac_var in `(set) 2>&1 | | 
 | 1404 |                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | 
 | 1405 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1406 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 1407 |   eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
 | 1408 |   eval ac_new_val="\$ac_env_${ac_var}_value" | 
 | 1409 |   case $ac_old_set,$ac_new_set in | 
 | 1410 |     set,) | 
 | 1411 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 1412 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 1413 |       ac_cache_corrupted=: ;; | 
 | 1414 |     ,set) | 
 | 1415 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 1416 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 1417 |       ac_cache_corrupted=: ;; | 
 | 1418 |     ,);; | 
 | 1419 |     *) | 
 | 1420 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
 | 1421 |         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
 | 1422 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 1423 |         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
 | 1424 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
 | 1425 |         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
 | 1426 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
 | 1427 |         ac_cache_corrupted=: | 
 | 1428 |       fi;; | 
 | 1429 |   esac | 
 | 1430 |   # Pass precious variables to config.status. | 
 | 1431 |   if test "$ac_new_set" = set; then | 
 | 1432 |     case $ac_new_val in | 
 | 1433 |     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
 | 1434 |       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1435 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 1436 |     esac | 
 | 1437 |     case " $ac_configure_args " in | 
 | 1438 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 1439 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 1440 |     esac | 
 | 1441 |   fi | 
 | 1442 | done | 
 | 1443 | if $ac_cache_corrupted; then | 
 | 1444 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 1445 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 1446 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 1447 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 1448 |    { (exit 1); exit 1; }; } | 
 | 1449 | fi | 
 | 1450 |  | 
 | 1451 | ac_ext=c | 
 | 1452 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 1456 |  | 
 | 1457 |  | 
 | 1458 |  | 
 | 1459 |  | 
 | 1460 |  | 
 | 1461 |  | 
 | 1462 |  | 
 | 1463 |  | 
 | 1464 |  | 
 | 1465 |  | 
 | 1466 |  | 
 | 1467 |  | 
 | 1468 |  | 
 | 1469 |  | 
 | 1470 |  | 
 | 1471 |  | 
 | 1472 |  | 
 | 1473 |  | 
 | 1474 |  | 
 | 1475 |  | 
 | 1476 |  | 
 | 1477 |  | 
 | 1478 |  | 
 | 1479 |  | 
 | 1480 |  | 
 | 1481 |  | 
 | 1482 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1483 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_aux_dir= | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1485 | for ac_dir in autoconf $srcdir/autoconf; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 |   if test -f $ac_dir/install-sh; then | 
 | 1487 |     ac_aux_dir=$ac_dir | 
 | 1488 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1489 |     break | 
 | 1490 |   elif test -f $ac_dir/install.sh; then | 
 | 1491 |     ac_aux_dir=$ac_dir | 
 | 1492 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1493 |     break | 
 | 1494 |   elif test -f $ac_dir/shtool; then | 
 | 1495 |     ac_aux_dir=$ac_dir | 
 | 1496 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 1497 |     break | 
 | 1498 |   fi | 
 | 1499 | done | 
 | 1500 | if test -z "$ac_aux_dir"; then | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1501 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 | 
 | 1502 | 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] | 1503 |    { (exit 1); exit 1; }; } | 
 | 1504 | fi | 
 | 1505 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
 | 1506 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
 | 1507 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
 | 1508 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1509 |  | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1510 | if test ${srcdir} != "." | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1511 | then | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1512 | 	if test -f ${srcdir}/include/Config/config.h | 
 | 1513 | 	then | 
 | 1514 | 		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1515 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 1516 |    { (exit 1); exit 1; }; } | 
| John Criswell | 1b82432 | 2003-09-15 17:19:42 +0000 | [diff] [blame] | 1517 | 	fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1518 | fi | 
 | 1519 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1520 | for i in `ls ${srcdir}/projects` | 
 | 1521 | do | 
 | 1522 |   if test ${i} != "CVS" | 
 | 1523 |   then | 
| John Criswell | 2f2741b | 2003-12-12 20:15:23 +0000 | [diff] [blame] | 1524 |     if test -f ${srcdir}/projects/${i}/configure | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1525 |     then | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1526 |  | 
 | 1527 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1528 | subdirs="$subdirs projects/${i}" | 
| John Criswell | 7ec78aa | 2003-10-16 01:49:00 +0000 | [diff] [blame] | 1529 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1530 |     fi | 
 | 1531 |   fi | 
 | 1532 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 1533 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1534 |           ac_config_headers="$ac_config_headers include/Config/config.h" | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1535 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1536 |           ac_config_commands="$ac_config_commands Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1537 |  | 
 | 1538 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1539 |           ac_config_commands="$ac_config_commands Makefile.common" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1540 |  | 
 | 1541 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1542 |           ac_config_commands="$ac_config_commands lib/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1543 |  | 
 | 1544 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1545 |           ac_config_commands="$ac_config_commands runtime/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1546 |  | 
 | 1547 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1548 |           ac_config_commands="$ac_config_commands test/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1549 |  | 
 | 1550 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1551 |           ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1552 |  | 
 | 1553 |  | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 1554 |           ac_config_commands="$ac_config_commands test/QMTest/llvm.py" | 
 | 1555 |  | 
 | 1556 |  | 
 | 1557 |           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py" | 
| John Criswell | 08acb9b | 2003-09-16 02:12:45 +0000 | [diff] [blame] | 1558 |  | 
 | 1559 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1560 |           ac_config_commands="$ac_config_commands test/Programs/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1561 |  | 
 | 1562 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1563 |           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1564 |  | 
 | 1565 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1566 |           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1567 |  | 
 | 1568 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1569 |           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1570 |  | 
 | 1571 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1572 |           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1573 |  | 
 | 1574 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1575 |           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1576 |  | 
 | 1577 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1578 |           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1579 |  | 
 | 1580 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1581 |           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1582 |  | 
 | 1583 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1584 |           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1585 |  | 
 | 1586 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1587 |           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1588 |  | 
 | 1589 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1590 |           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1591 |  | 
 | 1592 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1593 |           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1594 |  | 
 | 1595 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1596 |           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1597 |  | 
 | 1598 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1599 |           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1600 |  | 
 | 1601 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1602 |           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1603 |  | 
 | 1604 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1605 |           ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1606 |  | 
 | 1607 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1608 |           ac_config_commands="$ac_config_commands test/Programs/External/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1609 |  | 
 | 1610 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 |           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1612 |  | 
 | 1613 |  | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 1614 |           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec" | 
 | 1615 |  | 
 | 1616 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1618 |  | 
 | 1619 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1620 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1621 |  | 
 | 1622 |  | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 1623 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" | 
 | 1624 |  | 
 | 1625 |  | 
 | 1626 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" | 
 | 1627 |  | 
 | 1628 |  | 
 | 1629 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" | 
 | 1630 |  | 
 | 1631 |  | 
 | 1632 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" | 
 | 1633 |  | 
 | 1634 |  | 
 | 1635 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" | 
 | 1636 |  | 
 | 1637 |  | 
 | 1638 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" | 
 | 1639 |  | 
 | 1640 |  | 
 | 1641 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" | 
 | 1642 |  | 
 | 1643 |  | 
 | 1644 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" | 
 | 1645 |  | 
 | 1646 |  | 
 | 1647 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" | 
 | 1648 |  | 
 | 1649 |  | 
 | 1650 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" | 
 | 1651 |  | 
 | 1652 |  | 
 | 1653 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" | 
 | 1654 |  | 
 | 1655 |  | 
 | 1656 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" | 
 | 1657 |  | 
 | 1658 |  | 
 | 1659 |           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" | 
 | 1660 |  | 
 | 1661 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 |           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1663 |  | 
 | 1664 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1665 |           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1666 |  | 
 | 1667 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1668 |           ac_config_commands="$ac_config_commands tools/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1669 |  | 
 | 1670 |  | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 1671 |           ac_config_commands="$ac_config_commands utils/Makefile" | 
 | 1672 |  | 
 | 1673 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1674 |           ac_config_commands="$ac_config_commands projects/Makefile" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 1675 |  | 
 | 1676 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1677 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1678 | # Find a good install program.  We prefer a C program (faster), | 
 | 1679 | # so one script is as good as another.  But avoid the broken or | 
 | 1680 | # incompatible versions: | 
 | 1681 | # SysV /etc/install, /usr/sbin/install | 
 | 1682 | # SunOS /usr/etc/install | 
 | 1683 | # IRIX /sbin/install | 
 | 1684 | # AIX /bin/install | 
 | 1685 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 1686 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1687 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1688 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 1689 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1690 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 1691 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
 | 1692 | if test -z "$INSTALL"; then | 
 | 1693 | if test "${ac_cv_path_install+set}" = set; then | 
 | 1694 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1695 | else | 
 | 1696 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1697 | for as_dir in $PATH | 
 | 1698 | do | 
 | 1699 |   IFS=$as_save_IFS | 
 | 1700 |   test -z "$as_dir" && as_dir=. | 
 | 1701 |   # Account for people who put trailing slashes in PATH elements. | 
 | 1702 | case $as_dir/ in | 
 | 1703 |   ./ | .// | /cC/* | \ | 
 | 1704 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
 | 1705 |   /usr/ucb/* ) ;; | 
 | 1706 |   *) | 
 | 1707 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1708 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 1709 |     # by default. | 
 | 1710 |     for ac_prog in ginstall scoinst install; do | 
 | 1711 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1712 |         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
 | 1713 |           if test $ac_prog = install && | 
 | 1714 |             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1715 |             # AIX install.  It has an incompatible calling convention. | 
 | 1716 |             : | 
 | 1717 |           elif test $ac_prog = install && | 
 | 1718 |             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 1719 |             # program-specific install script used by HP pwplus--don't use. | 
 | 1720 |             : | 
 | 1721 |           else | 
 | 1722 |             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 1723 |             break 3 | 
 | 1724 |           fi | 
 | 1725 |         fi | 
 | 1726 |       done | 
 | 1727 |     done | 
 | 1728 |     ;; | 
 | 1729 | esac | 
 | 1730 | done | 
 | 1731 |  | 
 | 1732 |  | 
 | 1733 | fi | 
 | 1734 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1735 |     INSTALL=$ac_cv_path_install | 
 | 1736 |   else | 
 | 1737 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1738 |     # path for INSTALL within a source directory, because that will | 
 | 1739 |     # break other packages using the cache if that directory is | 
 | 1740 |     # removed, or if the path is relative. | 
 | 1741 |     INSTALL=$ac_install_sh | 
 | 1742 |   fi | 
 | 1743 | fi | 
 | 1744 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 1745 | echo "${ECHO_T}$INSTALL" >&6 | 
 | 1746 |  | 
 | 1747 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1748 | # It thinks the first close brace ends the variable substitution. | 
 | 1749 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1750 |  | 
 | 1751 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 1752 |  | 
 | 1753 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1754 |  | 
 | 1755 |  | 
 | 1756 | # Make sure we can run config.sub. | 
 | 1757 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
 | 1758 |   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
 | 1759 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
 | 1760 |    { (exit 1); exit 1; }; } | 
 | 1761 |  | 
 | 1762 | echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 1763 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
 | 1764 | if test "${ac_cv_build+set}" = set; then | 
 | 1765 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1766 | else | 
 | 1767 |   ac_cv_build_alias=$build_alias | 
 | 1768 | test -z "$ac_cv_build_alias" && | 
 | 1769 |   ac_cv_build_alias=`$ac_config_guess` | 
 | 1770 | test -z "$ac_cv_build_alias" && | 
 | 1771 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 1772 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 1773 |    { (exit 1); exit 1; }; } | 
 | 1774 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
 | 1775 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
 | 1776 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
 | 1777 |    { (exit 1); exit 1; }; } | 
 | 1778 |  | 
 | 1779 | fi | 
 | 1780 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 1781 | echo "${ECHO_T}$ac_cv_build" >&6 | 
 | 1782 | build=$ac_cv_build | 
 | 1783 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1784 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1785 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1786 |  | 
 | 1787 |  | 
 | 1788 | echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 1789 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
 | 1790 | if test "${ac_cv_host+set}" = set; then | 
 | 1791 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1792 | else | 
 | 1793 |   ac_cv_host_alias=$host_alias | 
 | 1794 | test -z "$ac_cv_host_alias" && | 
 | 1795 |   ac_cv_host_alias=$ac_cv_build_alias | 
 | 1796 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
 | 1797 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
 | 1798 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
 | 1799 |    { (exit 1); exit 1; }; } | 
 | 1800 |  | 
 | 1801 | fi | 
 | 1802 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 1803 | echo "${ECHO_T}$ac_cv_host" >&6 | 
 | 1804 | host=$ac_cv_host | 
 | 1805 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1806 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1807 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1808 |  | 
 | 1809 |  | 
 | 1810 | echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 1811 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | 
 | 1812 | if test "${ac_cv_target+set}" = set; then | 
 | 1813 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1814 | else | 
 | 1815 |   ac_cv_target_alias=$target_alias | 
 | 1816 | test "x$ac_cv_target_alias" = "x" && | 
 | 1817 |   ac_cv_target_alias=$ac_cv_host_alias | 
 | 1818 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | 
 | 1819 |   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | 
 | 1820 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | 
 | 1821 |    { (exit 1); exit 1; }; } | 
 | 1822 |  | 
 | 1823 | fi | 
 | 1824 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 1825 | echo "${ECHO_T}$ac_cv_target" >&6 | 
 | 1826 | target=$ac_cv_target | 
 | 1827 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1828 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1829 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
 | 1830 |  | 
 | 1831 |  | 
 | 1832 | # The aliases save the names the user supplied, while $host etc. | 
 | 1833 | # will get canonicalized. | 
 | 1834 | test -n "$target_alias" && | 
 | 1835 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 1836 |     NONENONEs,x,x, && | 
 | 1837 |   program_prefix=${target_alias}- | 
 | 1838 |  | 
 | 1839 | case $build in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1840 | 	*-*-linux*) | 
 | 1841 |              OS=Linux | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1842 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1843 | 			 if test -d /home/vadve/lattner/local/x86/llvm-gcc | 
 | 1844 | 			 then | 
 | 1845 | 			   LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1846 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1847 | 			 fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1848 | 	         ;; | 
 | 1849 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1850 | 	*-*-solaris*) | 
 | 1851 |              OS=SunOS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1853 | 			 if test -d /home/vadve/lattner/local/sparc/llvm-gcc | 
 | 1854 | 			 then | 
 | 1855 | 	           LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 1857 | 			 fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | 	         ;; | 
 | 1859 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1860 | 	*-*-darwin*) | 
 | 1861 |              OS=Darwin | 
 | 1862 |  | 
 | 1863 | 	         ;; | 
 | 1864 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1865 | 	*)       OS=Unknown | 
 | 1866 |  | 
 | 1867 | 	         ;; | 
 | 1868 | esac | 
 | 1869 |  | 
 | 1870 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1871 | 	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 |  | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1873 | 	                    ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1874 | esac | 
 | 1875 |  | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1876 | case $target in | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1877 | 	i*86-*)           ARCH=x86 | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1878 |  | 
 | 1879 | 	                  ;; | 
| Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 1880 | 	sparc*-*)         ARCH=Sparc | 
 | 1881 |  | 
 | 1882 | 	                  ;; | 
 | 1883 | 	powerpc*-*)       ARCH=PowerPC | 
 | 1884 |  | 
 | 1885 | 	                  ;; | 
 | 1886 | 	*)                ARCH=Unknown | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 1887 |  | 
 | 1888 | 	                  ;; | 
 | 1889 | esac | 
 | 1890 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1891 | ac_ext=cc | 
 | 1892 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 1893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 1894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 1895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 1896 | if test -n "$ac_tool_prefix"; then | 
 | 1897 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1898 |   do | 
 | 1899 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 1900 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 1901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1903 | if test "${ac_cv_prog_CXX+set}" = set; then | 
 | 1904 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1905 | else | 
 | 1906 |   if test -n "$CXX"; then | 
 | 1907 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 1908 | else | 
 | 1909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1910 | for as_dir in $PATH | 
 | 1911 | do | 
 | 1912 |   IFS=$as_save_IFS | 
 | 1913 |   test -z "$as_dir" && as_dir=. | 
 | 1914 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1915 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1916 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 1917 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1918 |     break 2 | 
 | 1919 |   fi | 
 | 1920 | done | 
 | 1921 | done | 
 | 1922 |  | 
 | 1923 | fi | 
 | 1924 | fi | 
 | 1925 | CXX=$ac_cv_prog_CXX | 
 | 1926 | if test -n "$CXX"; then | 
 | 1927 |   echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 1928 | echo "${ECHO_T}$CXX" >&6 | 
 | 1929 | else | 
 | 1930 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1931 | echo "${ECHO_T}no" >&6 | 
 | 1932 | fi | 
 | 1933 |  | 
 | 1934 |     test -n "$CXX" && break | 
 | 1935 |   done | 
 | 1936 | fi | 
 | 1937 | if test -z "$CXX"; then | 
 | 1938 |   ac_ct_CXX=$CXX | 
 | 1939 |   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | 
 | 1940 | do | 
 | 1941 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 1942 | set dummy $ac_prog; ac_word=$2 | 
 | 1943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 1944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 1945 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 1946 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 1947 | else | 
 | 1948 |   if test -n "$ac_ct_CXX"; then | 
 | 1949 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 1950 | else | 
 | 1951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1952 | for as_dir in $PATH | 
 | 1953 | do | 
 | 1954 |   IFS=$as_save_IFS | 
 | 1955 |   test -z "$as_dir" && as_dir=. | 
 | 1956 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 1957 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 1958 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 1959 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 1960 |     break 2 | 
 | 1961 |   fi | 
 | 1962 | done | 
 | 1963 | done | 
 | 1964 |  | 
 | 1965 | fi | 
 | 1966 | fi | 
 | 1967 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 1968 | if test -n "$ac_ct_CXX"; then | 
 | 1969 |   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 1970 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
 | 1971 | else | 
 | 1972 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 1973 | echo "${ECHO_T}no" >&6 | 
 | 1974 | fi | 
 | 1975 |  | 
 | 1976 |   test -n "$ac_ct_CXX" && break | 
 | 1977 | done | 
 | 1978 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
 | 1979 |  | 
 | 1980 |   CXX=$ac_ct_CXX | 
 | 1981 | fi | 
 | 1982 |  | 
 | 1983 |  | 
 | 1984 | # Provide some information about the compiler. | 
 | 1985 | echo "$as_me:$LINENO:" \ | 
 | 1986 |      "checking for C++ compiler version" >&5 | 
 | 1987 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 1988 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 1989 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 1990 |   ac_status=$? | 
 | 1991 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 1992 |   (exit $ac_status); } | 
 | 1993 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 1994 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 1995 |   ac_status=$? | 
 | 1996 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 1997 |   (exit $ac_status); } | 
 | 1998 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 1999 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2000 |   ac_status=$? | 
 | 2001 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2002 |   (exit $ac_status); } | 
 | 2003 |  | 
 | 2004 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2005 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2006 | /* confdefs.h.  */ | 
 | 2007 | _ACEOF | 
 | 2008 | cat confdefs.h >>conftest.$ac_ext | 
 | 2009 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2010 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2012 | int | 
 | 2013 | main () | 
 | 2014 | { | 
 | 2015 |  | 
 | 2016 |   ; | 
 | 2017 |   return 0; | 
 | 2018 | } | 
 | 2019 | _ACEOF | 
 | 2020 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2021 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2022 | # Try to create an executable without -o first, disregard a.out. | 
 | 2023 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2024 | # of exeext. | 
 | 2025 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 | 
 | 2026 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 | 
 | 2027 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 2028 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
 | 2029 |   (eval $ac_link_default) 2>&5 | 
 | 2030 |   ac_status=$? | 
 | 2031 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2032 |   (exit $ac_status); }; then | 
 | 2033 |   # Find the output, starting from the most likely.  This scheme is | 
 | 2034 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
 | 2035 | # resort. | 
 | 2036 |  | 
 | 2037 | # Be careful to initialize this variable, since it used to be cached. | 
 | 2038 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
 | 2039 | ac_cv_exeext= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2040 | # b.out is created by i960 compilers. | 
 | 2041 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
 | 2042 | do | 
 | 2043 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2045 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
 | 2046 |         ;; | 
 | 2047 |     conftest.$ac_ext ) | 
 | 2048 |         # This is the source file. | 
 | 2049 |         ;; | 
 | 2050 |     [ab].out ) | 
 | 2051 |         # We found the default executable, but exeext='' is most | 
 | 2052 |         # certainly right. | 
 | 2053 |         break;; | 
 | 2054 |     *.* ) | 
 | 2055 |         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2056 |         # FIXME: I believe we export ac_cv_exeext for Libtool, | 
 | 2057 |         # but it would be cool to find out if it's true.  Does anybody | 
 | 2058 |         # maintain Libtool? --akim. | 
 | 2059 |         export ac_cv_exeext | 
 | 2060 |         break;; | 
 | 2061 |     * ) | 
 | 2062 |         break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2063 |   esac | 
 | 2064 | done | 
 | 2065 | else | 
 | 2066 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2067 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2068 |  | 
 | 2069 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables | 
 | 2070 | See \`config.log' for more details." >&5 | 
 | 2071 | echo "$as_me: error: C++ compiler cannot create executables | 
 | 2072 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2073 |    { (exit 77); exit 77; }; } | 
 | 2074 | fi | 
 | 2075 |  | 
 | 2076 | ac_exeext=$ac_cv_exeext | 
 | 2077 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2078 | echo "${ECHO_T}$ac_file" >&6 | 
 | 2079 |  | 
 | 2080 | # Check the compiler produces executables we can run.  If not, either | 
 | 2081 | # the compiler is broken, or we cross compile. | 
 | 2082 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 | 
 | 2083 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 | 
 | 2084 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2085 | # If not cross compiling, check that we can run a simple program. | 
 | 2086 | if test "$cross_compiling" != yes; then | 
 | 2087 |   if { ac_try='./$ac_file' | 
 | 2088 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2089 |   (eval $ac_try) 2>&5 | 
 | 2090 |   ac_status=$? | 
 | 2091 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2092 |   (exit $ac_status); }; }; then | 
 | 2093 |     cross_compiling=no | 
 | 2094 |   else | 
 | 2095 |     if test "$cross_compiling" = maybe; then | 
 | 2096 | 	cross_compiling=yes | 
 | 2097 |     else | 
 | 2098 | 	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2099 | If you meant to cross compile, use \`--host'. | 
 | 2100 | See \`config.log' for more details." >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2101 | echo "$as_me: error: cannot run C++ compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2102 | If you meant to cross compile, use \`--host'. | 
 | 2103 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2104 |    { (exit 1); exit 1; }; } | 
 | 2105 |     fi | 
 | 2106 |   fi | 
 | 2107 | fi | 
 | 2108 | echo "$as_me:$LINENO: result: yes" >&5 | 
 | 2109 | echo "${ECHO_T}yes" >&6 | 
 | 2110 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2111 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 | ac_clean_files=$ac_clean_files_save | 
 | 2113 | # Check the compiler produces executables we can run.  If not, either | 
 | 2114 | # the compiler is broken, or we cross compile. | 
 | 2115 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 2116 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
 | 2117 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 2118 | echo "${ECHO_T}$cross_compiling" >&6 | 
 | 2119 |  | 
 | 2120 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 2121 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
 | 2122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 2123 |   (eval $ac_link) 2>&5 | 
 | 2124 |   ac_status=$? | 
 | 2125 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2126 |   (exit $ac_status); }; then | 
 | 2127 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 2128 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 2129 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 2130 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2131 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 2132 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2134 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2135 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2136 |           export ac_cv_exeext | 
 | 2137 |           break;; | 
 | 2138 |     * ) break;; | 
 | 2139 |   esac | 
 | 2140 | done | 
 | 2141 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2142 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 2143 | See \`config.log' for more details." >&5 | 
 | 2144 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 2145 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2146 |    { (exit 1); exit 1; }; } | 
 | 2147 | fi | 
 | 2148 |  | 
 | 2149 | rm -f conftest$ac_cv_exeext | 
 | 2150 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 2151 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
 | 2152 |  | 
 | 2153 | rm -f conftest.$ac_ext | 
 | 2154 | EXEEXT=$ac_cv_exeext | 
 | 2155 | ac_exeext=$EXEEXT | 
 | 2156 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 2157 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
 | 2158 | if test "${ac_cv_objext+set}" = set; then | 
 | 2159 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2160 | else | 
 | 2161 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2162 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2163 | /* confdefs.h.  */ | 
 | 2164 | _ACEOF | 
 | 2165 | cat confdefs.h >>conftest.$ac_ext | 
 | 2166 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2167 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2168 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2169 | int | 
 | 2170 | main () | 
 | 2171 | { | 
 | 2172 |  | 
 | 2173 |   ; | 
 | 2174 |   return 0; | 
 | 2175 | } | 
 | 2176 | _ACEOF | 
 | 2177 | rm -f conftest.o conftest.obj | 
 | 2178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2179 |   (eval $ac_compile) 2>&5 | 
 | 2180 |   ac_status=$? | 
 | 2181 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2182 |   (exit $ac_status); }; then | 
 | 2183 |   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
 | 2184 |   case $ac_file in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2185 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2186 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 2187 |        break;; | 
 | 2188 |   esac | 
 | 2189 | done | 
 | 2190 | else | 
 | 2191 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2192 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2193 |  | 
 | 2194 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 2195 | See \`config.log' for more details." >&5 | 
 | 2196 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 2197 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2198 |    { (exit 1); exit 1; }; } | 
 | 2199 | fi | 
 | 2200 |  | 
 | 2201 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 2202 | fi | 
 | 2203 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 2204 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
 | 2205 | OBJEXT=$ac_cv_objext | 
 | 2206 | ac_objext=$OBJEXT | 
 | 2207 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 2208 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
 | 2209 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 2210 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2211 | else | 
 | 2212 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2213 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2214 | /* confdefs.h.  */ | 
 | 2215 | _ACEOF | 
 | 2216 | cat confdefs.h >>conftest.$ac_ext | 
 | 2217 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2218 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2219 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2220 | int | 
 | 2221 | main () | 
 | 2222 | { | 
 | 2223 | #ifndef __GNUC__ | 
 | 2224 |        choke me | 
 | 2225 | #endif | 
 | 2226 |  | 
 | 2227 |   ; | 
 | 2228 |   return 0; | 
 | 2229 | } | 
 | 2230 | _ACEOF | 
 | 2231 | rm -f conftest.$ac_objext | 
 | 2232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2233 |   (eval $ac_compile) 2>&5 | 
 | 2234 |   ac_status=$? | 
 | 2235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2236 |   (exit $ac_status); } && | 
 | 2237 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2238 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2239 |   (eval $ac_try) 2>&5 | 
 | 2240 |   ac_status=$? | 
 | 2241 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2242 |   (exit $ac_status); }; }; then | 
 | 2243 |   ac_compiler_gnu=yes | 
 | 2244 | else | 
 | 2245 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2246 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2247 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | ac_compiler_gnu=no | 
 | 2249 | fi | 
 | 2250 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2251 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 2252 |  | 
 | 2253 | fi | 
 | 2254 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 2255 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
 | 2256 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2257 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 2258 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 2259 | CXXFLAGS="-g" | 
 | 2260 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 2261 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
 | 2262 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 2263 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2264 | else | 
 | 2265 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2266 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2267 | /* confdefs.h.  */ | 
 | 2268 | _ACEOF | 
 | 2269 | cat confdefs.h >>conftest.$ac_ext | 
 | 2270 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2271 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2272 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2273 | int | 
 | 2274 | main () | 
 | 2275 | { | 
 | 2276 |  | 
 | 2277 |   ; | 
 | 2278 |   return 0; | 
 | 2279 | } | 
 | 2280 | _ACEOF | 
 | 2281 | rm -f conftest.$ac_objext | 
 | 2282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2283 |   (eval $ac_compile) 2>&5 | 
 | 2284 |   ac_status=$? | 
 | 2285 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2286 |   (exit $ac_status); } && | 
 | 2287 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2288 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2289 |   (eval $ac_try) 2>&5 | 
 | 2290 |   ac_status=$? | 
 | 2291 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2292 |   (exit $ac_status); }; }; then | 
 | 2293 |   ac_cv_prog_cxx_g=yes | 
 | 2294 | else | 
 | 2295 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2296 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2297 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | ac_cv_prog_cxx_g=no | 
 | 2299 | fi | 
 | 2300 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2301 | fi | 
 | 2302 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 2303 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
 | 2304 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 2305 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 2306 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 2307 |   if test "$GXX" = yes; then | 
 | 2308 |     CXXFLAGS="-g -O2" | 
 | 2309 |   else | 
 | 2310 |     CXXFLAGS="-g" | 
 | 2311 |   fi | 
 | 2312 | else | 
 | 2313 |   if test "$GXX" = yes; then | 
 | 2314 |     CXXFLAGS="-O2" | 
 | 2315 |   else | 
 | 2316 |     CXXFLAGS= | 
 | 2317 |   fi | 
 | 2318 | fi | 
 | 2319 | for ac_declaration in \ | 
 | 2320 |    ''\ | 
 | 2321 |    '#include <stdlib.h>' \ | 
 | 2322 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2323 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2324 |    'extern "C" void exit (int) throw ();' \ | 
 | 2325 |    'extern "C" void exit (int);' \ | 
 | 2326 |    'void exit (int);' | 
 | 2327 | do | 
 | 2328 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2329 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2330 | /* confdefs.h.  */ | 
 | 2331 | _ACEOF | 
 | 2332 | cat confdefs.h >>conftest.$ac_ext | 
 | 2333 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2334 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | #include <stdlib.h> | 
 | 2336 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2337 | int | 
 | 2338 | main () | 
 | 2339 | { | 
 | 2340 | exit (42); | 
 | 2341 |   ; | 
 | 2342 |   return 0; | 
 | 2343 | } | 
 | 2344 | _ACEOF | 
 | 2345 | rm -f conftest.$ac_objext | 
 | 2346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2347 |   (eval $ac_compile) 2>&5 | 
 | 2348 |   ac_status=$? | 
 | 2349 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2350 |   (exit $ac_status); } && | 
 | 2351 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2352 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2353 |   (eval $ac_try) 2>&5 | 
 | 2354 |   ac_status=$? | 
 | 2355 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2356 |   (exit $ac_status); }; }; then | 
 | 2357 |   : | 
 | 2358 | else | 
 | 2359 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2360 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2361 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2362 | continue | 
 | 2363 | fi | 
 | 2364 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2365 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2366 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2367 | /* confdefs.h.  */ | 
 | 2368 | _ACEOF | 
 | 2369 | cat confdefs.h >>conftest.$ac_ext | 
 | 2370 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2371 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2372 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2373 | int | 
 | 2374 | main () | 
 | 2375 | { | 
 | 2376 | exit (42); | 
 | 2377 |   ; | 
 | 2378 |   return 0; | 
 | 2379 | } | 
 | 2380 | _ACEOF | 
 | 2381 | rm -f conftest.$ac_objext | 
 | 2382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2383 |   (eval $ac_compile) 2>&5 | 
 | 2384 |   ac_status=$? | 
 | 2385 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2386 |   (exit $ac_status); } && | 
 | 2387 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2388 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2389 |   (eval $ac_try) 2>&5 | 
 | 2390 |   ac_status=$? | 
 | 2391 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2392 |   (exit $ac_status); }; }; then | 
 | 2393 |   break | 
 | 2394 | else | 
 | 2395 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2396 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2397 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2398 | fi | 
 | 2399 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2400 | done | 
 | 2401 | rm -f conftest* | 
 | 2402 | if test -n "$ac_declaration"; then | 
 | 2403 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2404 |   echo $ac_declaration      >>confdefs.h | 
 | 2405 |   echo '#endif'             >>confdefs.h | 
 | 2406 | fi | 
 | 2407 |  | 
 | 2408 | ac_ext=c | 
 | 2409 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2413 |  | 
 | 2414 | ac_ext=c | 
 | 2415 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2419 | if test -n "$ac_tool_prefix"; then | 
 | 2420 |   for ac_prog in gcc | 
 | 2421 |   do | 
 | 2422 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 2424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2426 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2427 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2428 | else | 
 | 2429 |   if test -n "$CC"; then | 
 | 2430 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2431 | else | 
 | 2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2433 | for as_dir in $PATH | 
 | 2434 | do | 
 | 2435 |   IFS=$as_save_IFS | 
 | 2436 |   test -z "$as_dir" && as_dir=. | 
 | 2437 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2438 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2439 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 2440 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2441 |     break 2 | 
 | 2442 |   fi | 
 | 2443 | done | 
 | 2444 | done | 
 | 2445 |  | 
 | 2446 | fi | 
 | 2447 | fi | 
 | 2448 | CC=$ac_cv_prog_CC | 
 | 2449 | if test -n "$CC"; then | 
 | 2450 |   echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2451 | echo "${ECHO_T}$CC" >&6 | 
 | 2452 | else | 
 | 2453 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2454 | echo "${ECHO_T}no" >&6 | 
 | 2455 | fi | 
 | 2456 |  | 
 | 2457 |     test -n "$CC" && break | 
 | 2458 |   done | 
 | 2459 | fi | 
 | 2460 | if test -z "$CC"; then | 
 | 2461 |   ac_ct_CC=$CC | 
 | 2462 |   for ac_prog in gcc | 
 | 2463 | do | 
 | 2464 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2465 | set dummy $ac_prog; ac_word=$2 | 
 | 2466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 2468 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 2469 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2470 | else | 
 | 2471 |   if test -n "$ac_ct_CC"; then | 
 | 2472 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 2473 | else | 
 | 2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2475 | for as_dir in $PATH | 
 | 2476 | do | 
 | 2477 |   IFS=$as_save_IFS | 
 | 2478 |   test -z "$as_dir" && as_dir=. | 
 | 2479 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 2480 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 2481 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 2482 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2483 |     break 2 | 
 | 2484 |   fi | 
 | 2485 | done | 
 | 2486 | done | 
 | 2487 |  | 
 | 2488 | fi | 
 | 2489 | fi | 
 | 2490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2491 | if test -n "$ac_ct_CC"; then | 
 | 2492 |   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2493 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
 | 2494 | else | 
 | 2495 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 2496 | echo "${ECHO_T}no" >&6 | 
 | 2497 | fi | 
 | 2498 |  | 
 | 2499 |   test -n "$ac_ct_CC" && break | 
 | 2500 | done | 
 | 2501 |  | 
 | 2502 |   CC=$ac_ct_CC | 
 | 2503 | fi | 
 | 2504 |  | 
 | 2505 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2506 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2507 | See \`config.log' for more details." >&5 | 
 | 2508 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2509 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2510 |    { (exit 1); exit 1; }; } | 
 | 2511 |  | 
 | 2512 | # Provide some information about the compiler. | 
 | 2513 | echo "$as_me:$LINENO:" \ | 
 | 2514 |      "checking for C compiler version" >&5 | 
 | 2515 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 2516 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 2517 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 2518 |   ac_status=$? | 
 | 2519 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2520 |   (exit $ac_status); } | 
 | 2521 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 2522 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 2523 |   ac_status=$? | 
 | 2524 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2525 |   (exit $ac_status); } | 
 | 2526 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 2527 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 2528 |   ac_status=$? | 
 | 2529 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2530 |   (exit $ac_status); } | 
 | 2531 |  | 
 | 2532 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 2533 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
 | 2534 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 2535 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2536 | else | 
 | 2537 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2538 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2539 | /* confdefs.h.  */ | 
 | 2540 | _ACEOF | 
 | 2541 | cat confdefs.h >>conftest.$ac_ext | 
 | 2542 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2543 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2544 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2545 | int | 
 | 2546 | main () | 
 | 2547 | { | 
 | 2548 | #ifndef __GNUC__ | 
 | 2549 |        choke me | 
 | 2550 | #endif | 
 | 2551 |  | 
 | 2552 |   ; | 
 | 2553 |   return 0; | 
 | 2554 | } | 
 | 2555 | _ACEOF | 
 | 2556 | rm -f conftest.$ac_objext | 
 | 2557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2558 |   (eval $ac_compile) 2>&5 | 
 | 2559 |   ac_status=$? | 
 | 2560 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2561 |   (exit $ac_status); } && | 
 | 2562 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2563 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2564 |   (eval $ac_try) 2>&5 | 
 | 2565 |   ac_status=$? | 
 | 2566 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2567 |   (exit $ac_status); }; }; then | 
 | 2568 |   ac_compiler_gnu=yes | 
 | 2569 | else | 
 | 2570 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2571 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2572 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2573 | ac_compiler_gnu=no | 
 | 2574 | fi | 
 | 2575 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2576 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 2577 |  | 
 | 2578 | fi | 
 | 2579 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 2580 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
 | 2581 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 2582 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 2583 | ac_save_CFLAGS=$CFLAGS | 
 | 2584 | CFLAGS="-g" | 
 | 2585 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 2586 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
 | 2587 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 2588 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2589 | else | 
 | 2590 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2591 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2592 | /* confdefs.h.  */ | 
 | 2593 | _ACEOF | 
 | 2594 | cat confdefs.h >>conftest.$ac_ext | 
 | 2595 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2596 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2598 | int | 
 | 2599 | main () | 
 | 2600 | { | 
 | 2601 |  | 
 | 2602 |   ; | 
 | 2603 |   return 0; | 
 | 2604 | } | 
 | 2605 | _ACEOF | 
 | 2606 | rm -f conftest.$ac_objext | 
 | 2607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2608 |   (eval $ac_compile) 2>&5 | 
 | 2609 |   ac_status=$? | 
 | 2610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2611 |   (exit $ac_status); } && | 
 | 2612 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2613 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2614 |   (eval $ac_try) 2>&5 | 
 | 2615 |   ac_status=$? | 
 | 2616 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2617 |   (exit $ac_status); }; }; then | 
 | 2618 |   ac_cv_prog_cc_g=yes | 
 | 2619 | else | 
 | 2620 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2622 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2623 | ac_cv_prog_cc_g=no | 
 | 2624 | fi | 
 | 2625 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2626 | fi | 
 | 2627 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 2628 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
 | 2629 | if test "$ac_test_CFLAGS" = set; then | 
 | 2630 |   CFLAGS=$ac_save_CFLAGS | 
 | 2631 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 2632 |   if test "$GCC" = yes; then | 
 | 2633 |     CFLAGS="-g -O2" | 
 | 2634 |   else | 
 | 2635 |     CFLAGS="-g" | 
 | 2636 |   fi | 
 | 2637 | else | 
 | 2638 |   if test "$GCC" = yes; then | 
 | 2639 |     CFLAGS="-O2" | 
 | 2640 |   else | 
 | 2641 |     CFLAGS= | 
 | 2642 |   fi | 
 | 2643 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2644 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
 | 2645 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
 | 2646 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
 | 2647 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2648 | else | 
 | 2649 |   ac_cv_prog_cc_stdc=no | 
 | 2650 | ac_save_CC=$CC | 
 | 2651 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2652 | #line $LINENO "configure" | 
 | 2653 | /* confdefs.h.  */ | 
 | 2654 | _ACEOF | 
 | 2655 | cat confdefs.h >>conftest.$ac_ext | 
 | 2656 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2657 | /* end confdefs.h.  */ | 
 | 2658 | #include <stdarg.h> | 
 | 2659 | #include <stdio.h> | 
 | 2660 | #include <sys/types.h> | 
 | 2661 | #include <sys/stat.h> | 
 | 2662 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 2663 | struct buf { int x; }; | 
 | 2664 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 2665 | static char *e (p, i) | 
 | 2666 |      char **p; | 
 | 2667 |      int i; | 
 | 2668 | { | 
 | 2669 |   return p[i]; | 
 | 2670 | } | 
 | 2671 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 2672 | { | 
 | 2673 |   char *s; | 
 | 2674 |   va_list v; | 
 | 2675 |   va_start (v,p); | 
 | 2676 |   s = g (p, va_arg (v,int)); | 
 | 2677 |   va_end (v); | 
 | 2678 |   return s; | 
 | 2679 | } | 
 | 2680 | int test (int i, double x); | 
 | 2681 | struct s1 {int (*f) (int a);}; | 
 | 2682 | struct s2 {int (*f) (double a);}; | 
 | 2683 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 2684 | int argc; | 
 | 2685 | char **argv; | 
 | 2686 | int | 
 | 2687 | main () | 
 | 2688 | { | 
 | 2689 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 2690 |   ; | 
 | 2691 |   return 0; | 
 | 2692 | } | 
 | 2693 | _ACEOF | 
 | 2694 | # Don't try gcc -ansi; that turns off useful extensions and | 
 | 2695 | # breaks some systems' header files. | 
 | 2696 | # AIX			-qlanglvl=ansi | 
 | 2697 | # Ultrix and OSF/1	-std1 | 
 | 2698 | # HP-UX 10.20 and later	-Ae | 
 | 2699 | # HP-UX older versions	-Aa -D_HPUX_SOURCE | 
 | 2700 | # SVR4			-Xc -D__EXTENSIONS__ | 
 | 2701 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 2702 | do | 
 | 2703 |   CC="$ac_save_CC $ac_arg" | 
 | 2704 |   rm -f conftest.$ac_objext | 
 | 2705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2706 |   (eval $ac_compile) 2>&5 | 
 | 2707 |   ac_status=$? | 
 | 2708 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2709 |   (exit $ac_status); } && | 
 | 2710 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2711 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2712 |   (eval $ac_try) 2>&5 | 
 | 2713 |   ac_status=$? | 
 | 2714 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2715 |   (exit $ac_status); }; }; then | 
 | 2716 |   ac_cv_prog_cc_stdc=$ac_arg | 
 | 2717 | break | 
 | 2718 | else | 
 | 2719 |   echo "$as_me: failed program was:" >&5 | 
 | 2720 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2721 |  | 
 | 2722 | fi | 
 | 2723 | rm -f conftest.$ac_objext | 
 | 2724 | done | 
 | 2725 | rm -f conftest.$ac_ext conftest.$ac_objext | 
 | 2726 | CC=$ac_save_CC | 
 | 2727 |  | 
 | 2728 | fi | 
 | 2729 |  | 
 | 2730 | case "x$ac_cv_prog_cc_stdc" in | 
 | 2731 |   x|xno) | 
 | 2732 |     echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 2733 | echo "${ECHO_T}none needed" >&6 ;; | 
 | 2734 |   *) | 
 | 2735 |     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
 | 2736 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
 | 2737 |     CC="$CC $ac_cv_prog_cc_stdc" ;; | 
 | 2738 | esac | 
 | 2739 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2740 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
 | 2741 | # in C++ we need to declare it.  In case someone uses the same compiler | 
 | 2742 | # for both compiling C and C++ we need to have the C++ compiler decide | 
 | 2743 | # the declaration of exit, since it's the most demanding environment. | 
 | 2744 | cat >conftest.$ac_ext <<_ACEOF | 
 | 2745 | #ifndef __cplusplus | 
 | 2746 |   choke me | 
 | 2747 | #endif | 
 | 2748 | _ACEOF | 
 | 2749 | rm -f conftest.$ac_objext | 
 | 2750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2751 |   (eval $ac_compile) 2>&5 | 
 | 2752 |   ac_status=$? | 
 | 2753 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2754 |   (exit $ac_status); } && | 
 | 2755 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2756 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2757 |   (eval $ac_try) 2>&5 | 
 | 2758 |   ac_status=$? | 
 | 2759 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2760 |   (exit $ac_status); }; }; then | 
 | 2761 |   for ac_declaration in \ | 
 | 2762 |    ''\ | 
 | 2763 |    '#include <stdlib.h>' \ | 
 | 2764 |    'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
 | 2765 |    'extern "C" void std::exit (int); using std::exit;' \ | 
 | 2766 |    'extern "C" void exit (int) throw ();' \ | 
 | 2767 |    'extern "C" void exit (int);' \ | 
 | 2768 |    'void exit (int);' | 
 | 2769 | do | 
 | 2770 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2771 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2772 | /* confdefs.h.  */ | 
 | 2773 | _ACEOF | 
 | 2774 | cat confdefs.h >>conftest.$ac_ext | 
 | 2775 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2776 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2777 | #include <stdlib.h> | 
 | 2778 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2779 | int | 
 | 2780 | main () | 
 | 2781 | { | 
 | 2782 | exit (42); | 
 | 2783 |   ; | 
 | 2784 |   return 0; | 
 | 2785 | } | 
 | 2786 | _ACEOF | 
 | 2787 | rm -f conftest.$ac_objext | 
 | 2788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2789 |   (eval $ac_compile) 2>&5 | 
 | 2790 |   ac_status=$? | 
 | 2791 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2792 |   (exit $ac_status); } && | 
 | 2793 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2794 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2795 |   (eval $ac_try) 2>&5 | 
 | 2796 |   ac_status=$? | 
 | 2797 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2798 |   (exit $ac_status); }; }; then | 
 | 2799 |   : | 
 | 2800 | else | 
 | 2801 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2802 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2803 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2804 | continue | 
 | 2805 | fi | 
 | 2806 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2807 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2808 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2809 | /* confdefs.h.  */ | 
 | 2810 | _ACEOF | 
 | 2811 | cat confdefs.h >>conftest.$ac_ext | 
 | 2812 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2813 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2814 | $ac_declaration | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | int | 
 | 2816 | main () | 
 | 2817 | { | 
 | 2818 | exit (42); | 
 | 2819 |   ; | 
 | 2820 |   return 0; | 
 | 2821 | } | 
 | 2822 | _ACEOF | 
 | 2823 | rm -f conftest.$ac_objext | 
 | 2824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 2825 |   (eval $ac_compile) 2>&5 | 
 | 2826 |   ac_status=$? | 
 | 2827 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2828 |   (exit $ac_status); } && | 
 | 2829 |          { ac_try='test -s conftest.$ac_objext' | 
 | 2830 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 2831 |   (eval $ac_try) 2>&5 | 
 | 2832 |   ac_status=$? | 
 | 2833 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2834 |   (exit $ac_status); }; }; then | 
 | 2835 |   break | 
 | 2836 | else | 
 | 2837 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2838 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2839 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2840 | fi | 
 | 2841 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2842 | done | 
 | 2843 | rm -f conftest* | 
 | 2844 | if test -n "$ac_declaration"; then | 
 | 2845 |   echo '#ifdef __cplusplus' >>confdefs.h | 
 | 2846 |   echo $ac_declaration      >>confdefs.h | 
 | 2847 |   echo '#endif'             >>confdefs.h | 
 | 2848 | fi | 
 | 2849 |  | 
 | 2850 | else | 
 | 2851 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2852 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2853 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2854 | fi | 
 | 2855 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 2856 | ac_ext=c | 
 | 2857 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2861 |  | 
 | 2862 | ac_ext=c | 
 | 2863 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2867 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 2868 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
 | 2869 | # On Suns, sometimes $CPP names a directory. | 
 | 2870 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 2871 |   CPP= | 
 | 2872 | fi | 
 | 2873 | if test -z "$CPP"; then | 
 | 2874 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 2875 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2876 | else | 
 | 2877 |       # Double quotes because CPP needs to be expanded | 
 | 2878 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 2879 |     do | 
 | 2880 |       ac_preproc_ok=false | 
 | 2881 | for ac_c_preproc_warn_flag in '' yes | 
 | 2882 | do | 
 | 2883 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 2884 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2885 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2886 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 2888 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 2889 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2890 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2891 | /* confdefs.h.  */ | 
 | 2892 | _ACEOF | 
 | 2893 | cat confdefs.h >>conftest.$ac_ext | 
 | 2894 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2895 | /* end confdefs.h.  */ | 
 | 2896 | #ifdef __STDC__ | 
 | 2897 | # include <limits.h> | 
 | 2898 | #else | 
 | 2899 | # include <assert.h> | 
 | 2900 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2901 |                      Syntax error | 
 | 2902 | _ACEOF | 
 | 2903 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 2904 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 2905 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2906 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2907 |   rm -f conftest.er1 | 
 | 2908 |   cat conftest.err >&5 | 
 | 2909 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2910 |   (exit $ac_status); } >/dev/null; then | 
 | 2911 |   if test -s conftest.err; then | 
 | 2912 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 2913 |   else | 
 | 2914 |     ac_cpp_err= | 
 | 2915 |   fi | 
 | 2916 | else | 
 | 2917 |   ac_cpp_err=yes | 
 | 2918 | fi | 
 | 2919 | if test -z "$ac_cpp_err"; then | 
 | 2920 |   : | 
 | 2921 | else | 
 | 2922 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2923 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2924 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 |   # Broken: fails on valid input. | 
 | 2926 | continue | 
 | 2927 | fi | 
 | 2928 | rm -f conftest.err conftest.$ac_ext | 
 | 2929 |  | 
 | 2930 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 2931 |   # can be detected and how. | 
 | 2932 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2933 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2934 | /* confdefs.h.  */ | 
 | 2935 | _ACEOF | 
 | 2936 | cat confdefs.h >>conftest.$ac_ext | 
 | 2937 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2938 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | #include <ac_nonexistent.h> | 
 | 2940 | _ACEOF | 
 | 2941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 2942 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 2943 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2944 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2945 |   rm -f conftest.er1 | 
 | 2946 |   cat conftest.err >&5 | 
 | 2947 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2948 |   (exit $ac_status); } >/dev/null; then | 
 | 2949 |   if test -s conftest.err; then | 
 | 2950 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 2951 |   else | 
 | 2952 |     ac_cpp_err= | 
 | 2953 |   fi | 
 | 2954 | else | 
 | 2955 |   ac_cpp_err=yes | 
 | 2956 | fi | 
 | 2957 | if test -z "$ac_cpp_err"; then | 
 | 2958 |   # Broken: success on invalid input. | 
 | 2959 | continue | 
 | 2960 | else | 
 | 2961 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2962 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2963 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2964 |   # Passes both tests. | 
 | 2965 | ac_preproc_ok=: | 
 | 2966 | break | 
 | 2967 | fi | 
 | 2968 | rm -f conftest.err conftest.$ac_ext | 
 | 2969 |  | 
 | 2970 | done | 
 | 2971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 2972 | rm -f conftest.err conftest.$ac_ext | 
 | 2973 | if $ac_preproc_ok; then | 
 | 2974 |   break | 
 | 2975 | fi | 
 | 2976 |  | 
 | 2977 |     done | 
 | 2978 |     ac_cv_prog_CPP=$CPP | 
 | 2979 |  | 
 | 2980 | fi | 
 | 2981 |   CPP=$ac_cv_prog_CPP | 
 | 2982 | else | 
 | 2983 |   ac_cv_prog_CPP=$CPP | 
 | 2984 | fi | 
 | 2985 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 2986 | echo "${ECHO_T}$CPP" >&6 | 
 | 2987 | ac_preproc_ok=false | 
 | 2988 | for ac_c_preproc_warn_flag in '' yes | 
 | 2989 | do | 
 | 2990 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 2991 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2992 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2993 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 2995 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 2996 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 2997 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2998 | /* confdefs.h.  */ | 
 | 2999 | _ACEOF | 
 | 3000 | cat confdefs.h >>conftest.$ac_ext | 
 | 3001 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3002 | /* end confdefs.h.  */ | 
 | 3003 | #ifdef __STDC__ | 
 | 3004 | # include <limits.h> | 
 | 3005 | #else | 
 | 3006 | # include <assert.h> | 
 | 3007 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3008 |                      Syntax error | 
 | 3009 | _ACEOF | 
 | 3010 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3011 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3012 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3013 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3014 |   rm -f conftest.er1 | 
 | 3015 |   cat conftest.err >&5 | 
 | 3016 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3017 |   (exit $ac_status); } >/dev/null; then | 
 | 3018 |   if test -s conftest.err; then | 
 | 3019 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3020 |   else | 
 | 3021 |     ac_cpp_err= | 
 | 3022 |   fi | 
 | 3023 | else | 
 | 3024 |   ac_cpp_err=yes | 
 | 3025 | fi | 
 | 3026 | if test -z "$ac_cpp_err"; then | 
 | 3027 |   : | 
 | 3028 | else | 
 | 3029 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3030 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3031 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3032 |   # Broken: fails on valid input. | 
 | 3033 | continue | 
 | 3034 | fi | 
 | 3035 | rm -f conftest.err conftest.$ac_ext | 
 | 3036 |  | 
 | 3037 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 3038 |   # can be detected and how. | 
 | 3039 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3040 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3041 | /* confdefs.h.  */ | 
 | 3042 | _ACEOF | 
 | 3043 | cat confdefs.h >>conftest.$ac_ext | 
 | 3044 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3045 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3046 | #include <ac_nonexistent.h> | 
 | 3047 | _ACEOF | 
 | 3048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 3049 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 3050 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3051 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3052 |   rm -f conftest.er1 | 
 | 3053 |   cat conftest.err >&5 | 
 | 3054 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3055 |   (exit $ac_status); } >/dev/null; then | 
 | 3056 |   if test -s conftest.err; then | 
 | 3057 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3058 |   else | 
 | 3059 |     ac_cpp_err= | 
 | 3060 |   fi | 
 | 3061 | else | 
 | 3062 |   ac_cpp_err=yes | 
 | 3063 | fi | 
 | 3064 | if test -z "$ac_cpp_err"; then | 
 | 3065 |   # Broken: success on invalid input. | 
 | 3066 | continue | 
 | 3067 | else | 
 | 3068 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3069 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3070 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3071 |   # Passes both tests. | 
 | 3072 | ac_preproc_ok=: | 
 | 3073 | break | 
 | 3074 | fi | 
 | 3075 | rm -f conftest.err conftest.$ac_ext | 
 | 3076 |  | 
 | 3077 | done | 
 | 3078 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3079 | rm -f conftest.err conftest.$ac_ext | 
 | 3080 | if $ac_preproc_ok; then | 
 | 3081 |   : | 
 | 3082 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3083 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3084 | See \`config.log' for more details." >&5 | 
 | 3085 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3086 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3087 |    { (exit 1); exit 1; }; } | 
 | 3088 | fi | 
 | 3089 |  | 
 | 3090 | ac_ext=c | 
 | 3091 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3095 |  | 
 | 3096 |  | 
 | 3097 | if test "$GCC" != "yes" | 
 | 3098 | then | 
 | 3099 | 	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5 | 
 | 3100 | echo "$as_me: error: gcc required but not found" >&2;} | 
 | 3101 |    { (exit 1); exit 1; }; } | 
 | 3102 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3103 | if test "$GXX" != "yes" | 
 | 3104 | then | 
 | 3105 | 	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5 | 
 | 3106 | echo "$as_me: error: g++ required but not found" >&2;} | 
 | 3107 |    { (exit 1); exit 1; }; } | 
 | 3108 | fi | 
 | 3109 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3110 | gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1` | 
 | 3111 | if test "$gccmajor" -lt "3" | 
 | 3112 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 3113 | 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
 | 3114 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 3115 |    { (exit 1); exit 1; }; } | 
 | 3116 | fi | 
 | 3117 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3118 |  echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 3119 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6 | 
 | 3120 | if test "${_cv_gnu_make_command+set}" = set; then | 
 | 3121 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3122 | else | 
 | 3123 |   _cv_gnu_make_command='' ; | 
 | 3124 |                 for a in "$MAKE" make gmake gnumake ; do | 
 | 3125 |                         if test -z "$a" ; then continue ; fi ; | 
 | 3126 |                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then | 
 | 3127 |                                 _cv_gnu_make_command=$a ; | 
 | 3128 |                                 break; | 
 | 3129 |                         fi | 
 | 3130 |                 done ; | 
 | 3131 |  | 
 | 3132 | fi | 
 | 3133 | echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5 | 
 | 3134 | echo "${ECHO_T}$_cv_gnu_make_command" >&6 ; | 
 | 3135 |         if test  "x$_cv_gnu_make_command" != "x"  ; then | 
 | 3136 |                 ifGNUmake='' ; | 
 | 3137 |         else | 
 | 3138 |                 ifGNUmake='#' ; | 
 | 3139 |                 echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 3140 | echo "${ECHO_T}\"Not found\"" >&6; | 
 | 3141 |         fi | 
 | 3142 |  | 
 | 3143 |  | 
 | 3144 | if test -z "$_cv_gnu_make_command" | 
 | 3145 | then | 
 | 3146 | 	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 3147 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 3148 |    { (exit 1); exit 1; }; } | 
 | 3149 | fi | 
 | 3150 |  | 
 | 3151 |  | 
 | 3152 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3153 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3154 | if test "${ac_cv_has_flex+set}" = set; then | 
 | 3155 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3156 | else | 
 | 3157 |   for ac_prog in flex lex | 
 | 3158 | do | 
 | 3159 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3160 | set dummy $ac_prog; ac_word=$2 | 
 | 3161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3163 | if test "${ac_cv_prog_LEX+set}" = set; then | 
 | 3164 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3165 | else | 
 | 3166 |   if test -n "$LEX"; then | 
 | 3167 |   ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
 | 3168 | else | 
 | 3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3170 | for as_dir in $PATH | 
 | 3171 | do | 
 | 3172 |   IFS=$as_save_IFS | 
 | 3173 |   test -z "$as_dir" && as_dir=. | 
 | 3174 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3175 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3176 |     ac_cv_prog_LEX="$ac_prog" | 
 | 3177 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3178 |     break 2 | 
 | 3179 |   fi | 
 | 3180 | done | 
 | 3181 | done | 
 | 3182 |  | 
 | 3183 | fi | 
 | 3184 | fi | 
 | 3185 | LEX=$ac_cv_prog_LEX | 
 | 3186 | if test -n "$LEX"; then | 
 | 3187 |   echo "$as_me:$LINENO: result: $LEX" >&5 | 
 | 3188 | echo "${ECHO_T}$LEX" >&6 | 
 | 3189 | else | 
 | 3190 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3191 | echo "${ECHO_T}no" >&6 | 
 | 3192 | fi | 
 | 3193 |  | 
 | 3194 |   test -n "$LEX" && break | 
 | 3195 | done | 
 | 3196 | test -n "$LEX" || LEX=":" | 
 | 3197 |  | 
 | 3198 | if test -z "$LEXLIB" | 
 | 3199 | then | 
 | 3200 |   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
 | 3201 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
 | 3202 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
 | 3203 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3204 | else | 
 | 3205 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3206 | LIBS="-lfl  $LIBS" | 
 | 3207 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3208 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3209 | /* confdefs.h.  */ | 
 | 3210 | _ACEOF | 
 | 3211 | cat confdefs.h >>conftest.$ac_ext | 
 | 3212 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3213 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3214 |  | 
 | 3215 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3216 | #ifdef __cplusplus | 
 | 3217 | extern "C" | 
 | 3218 | #endif | 
 | 3219 | /* We use char because int might match the return type of a gcc2 | 
 | 3220 |    builtin and then its argument prototype would still apply.  */ | 
 | 3221 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3222 | int | 
 | 3223 | main () | 
 | 3224 | { | 
 | 3225 | yywrap (); | 
 | 3226 |   ; | 
 | 3227 |   return 0; | 
 | 3228 | } | 
 | 3229 | _ACEOF | 
 | 3230 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 3232 |   (eval $ac_link) 2>&5 | 
 | 3233 |   ac_status=$? | 
 | 3234 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3235 |   (exit $ac_status); } && | 
 | 3236 |          { ac_try='test -s conftest$ac_exeext' | 
 | 3237 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3238 |   (eval $ac_try) 2>&5 | 
 | 3239 |   ac_status=$? | 
 | 3240 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3241 |   (exit $ac_status); }; }; then | 
 | 3242 |   ac_cv_lib_fl_yywrap=yes | 
 | 3243 | else | 
 | 3244 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3245 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3246 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3247 | ac_cv_lib_fl_yywrap=no | 
 | 3248 | fi | 
 | 3249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 3250 | LIBS=$ac_check_lib_save_LIBS | 
 | 3251 | fi | 
 | 3252 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
 | 3253 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
 | 3254 | if test $ac_cv_lib_fl_yywrap = yes; then | 
 | 3255 |   LEXLIB="-lfl" | 
 | 3256 | else | 
 | 3257 |   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
 | 3258 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
 | 3259 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
 | 3260 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3261 | else | 
 | 3262 |   ac_check_lib_save_LIBS=$LIBS | 
 | 3263 | LIBS="-ll  $LIBS" | 
 | 3264 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3265 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3266 | /* confdefs.h.  */ | 
 | 3267 | _ACEOF | 
 | 3268 | cat confdefs.h >>conftest.$ac_ext | 
 | 3269 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3270 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3271 |  | 
 | 3272 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3273 | #ifdef __cplusplus | 
 | 3274 | extern "C" | 
 | 3275 | #endif | 
 | 3276 | /* We use char because int might match the return type of a gcc2 | 
 | 3277 |    builtin and then its argument prototype would still apply.  */ | 
 | 3278 | char yywrap (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3279 | int | 
 | 3280 | main () | 
 | 3281 | { | 
 | 3282 | yywrap (); | 
 | 3283 |   ; | 
 | 3284 |   return 0; | 
 | 3285 | } | 
 | 3286 | _ACEOF | 
 | 3287 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 3289 |   (eval $ac_link) 2>&5 | 
 | 3290 |   ac_status=$? | 
 | 3291 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3292 |   (exit $ac_status); } && | 
 | 3293 |          { ac_try='test -s conftest$ac_exeext' | 
 | 3294 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3295 |   (eval $ac_try) 2>&5 | 
 | 3296 |   ac_status=$? | 
 | 3297 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3298 |   (exit $ac_status); }; }; then | 
 | 3299 |   ac_cv_lib_l_yywrap=yes | 
 | 3300 | else | 
 | 3301 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3302 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3303 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3304 | ac_cv_lib_l_yywrap=no | 
 | 3305 | fi | 
 | 3306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 3307 | LIBS=$ac_check_lib_save_LIBS | 
 | 3308 | fi | 
 | 3309 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
 | 3310 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
 | 3311 | if test $ac_cv_lib_l_yywrap = yes; then | 
 | 3312 |   LEXLIB="-ll" | 
 | 3313 | fi | 
 | 3314 |  | 
 | 3315 | fi | 
 | 3316 |  | 
 | 3317 | fi | 
 | 3318 |  | 
 | 3319 | if test "x$LEX" != "x:"; then | 
 | 3320 |   echo "$as_me:$LINENO: checking lex output file root" >&5 | 
 | 3321 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
 | 3322 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
 | 3323 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3324 | else | 
 | 3325 |   # The minimal lex program is just a single line: %%.  But some broken lexes | 
 | 3326 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
 | 3327 | cat >conftest.l <<_ACEOF | 
 | 3328 | %% | 
 | 3329 | %% | 
 | 3330 | _ACEOF | 
 | 3331 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
 | 3332 |   (eval $LEX conftest.l) 2>&5 | 
 | 3333 |   ac_status=$? | 
 | 3334 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3335 |   (exit $ac_status); } | 
 | 3336 | if test -f lex.yy.c; then | 
 | 3337 |   ac_cv_prog_lex_root=lex.yy | 
 | 3338 | elif test -f lexyy.c; then | 
 | 3339 |   ac_cv_prog_lex_root=lexyy | 
 | 3340 | else | 
 | 3341 |   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
 | 3342 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
 | 3343 |    { (exit 1); exit 1; }; } | 
 | 3344 | fi | 
 | 3345 | fi | 
 | 3346 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
 | 3347 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
 | 3348 | rm -f conftest.l | 
 | 3349 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
 | 3350 |  | 
 | 3351 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
 | 3352 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
 | 3353 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
 | 3354 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3355 | else | 
 | 3356 |   # POSIX says lex can declare yytext either as a pointer or an array; the | 
 | 3357 | # default is implementation-dependent. Figure out which it is, since | 
 | 3358 | # not all implementations provide the %pointer and %array declarations. | 
 | 3359 | ac_cv_prog_lex_yytext_pointer=no | 
 | 3360 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
 | 3361 | ac_save_LIBS=$LIBS | 
 | 3362 | LIBS="$LIBS $LEXLIB" | 
 | 3363 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3364 | `cat $LEX_OUTPUT_ROOT.c` | 
 | 3365 | _ACEOF | 
 | 3366 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 3367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 3368 |   (eval $ac_link) 2>&5 | 
 | 3369 |   ac_status=$? | 
 | 3370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3371 |   (exit $ac_status); } && | 
 | 3372 |          { ac_try='test -s conftest$ac_exeext' | 
 | 3373 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 3374 |   (eval $ac_try) 2>&5 | 
 | 3375 |   ac_status=$? | 
 | 3376 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3377 |   (exit $ac_status); }; }; then | 
 | 3378 |   ac_cv_prog_lex_yytext_pointer=yes | 
 | 3379 | else | 
 | 3380 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3381 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3382 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3383 | fi | 
 | 3384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 3385 | LIBS=$ac_save_LIBS | 
 | 3386 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
 | 3387 |  | 
 | 3388 | fi | 
 | 3389 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
 | 3390 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
 | 3391 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
 | 3392 |  | 
 | 3393 | cat >>confdefs.h <<\_ACEOF | 
 | 3394 | #define YYTEXT_POINTER 1 | 
 | 3395 | _ACEOF | 
 | 3396 |  | 
 | 3397 | fi | 
 | 3398 |  | 
 | 3399 | fi | 
 | 3400 |  | 
 | 3401 | fi | 
 | 3402 | echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 | 
 | 3403 | echo "${ECHO_T}$ac_cv_has_flex" >&6 | 
 | 3404 | if test "$LEX" != "flex"; then | 
 | 3405 |   { { echo "$as_me:$LINENO: error: flex not found but required" >&5 | 
 | 3406 | echo "$as_me: error: flex not found but required" >&2;} | 
 | 3407 |    { (exit 1); exit 1; }; } | 
 | 3408 | fi | 
 | 3409 |  | 
 | 3410 | echo "$as_me:$LINENO: checking " >&5 | 
 | 3411 | echo $ECHO_N "checking ... $ECHO_C" >&6 | 
 | 3412 | if test "${ac_cv_has_bison+set}" = set; then | 
 | 3413 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3414 | else | 
 | 3415 |   for ac_prog in 'bison -y' byacc | 
 | 3416 | do | 
 | 3417 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3418 | set dummy $ac_prog; ac_word=$2 | 
 | 3419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 3420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 3421 | if test "${ac_cv_prog_YACC+set}" = set; then | 
 | 3422 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3423 | else | 
 | 3424 |   if test -n "$YACC"; then | 
 | 3425 |   ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
 | 3426 | else | 
 | 3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3428 | for as_dir in $PATH | 
 | 3429 | do | 
 | 3430 |   IFS=$as_save_IFS | 
 | 3431 |   test -z "$as_dir" && as_dir=. | 
 | 3432 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3433 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 3434 |     ac_cv_prog_YACC="$ac_prog" | 
 | 3435 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3436 |     break 2 | 
 | 3437 |   fi | 
 | 3438 | done | 
 | 3439 | done | 
 | 3440 |  | 
 | 3441 | fi | 
 | 3442 | fi | 
 | 3443 | YACC=$ac_cv_prog_YACC | 
 | 3444 | if test -n "$YACC"; then | 
 | 3445 |   echo "$as_me:$LINENO: result: $YACC" >&5 | 
 | 3446 | echo "${ECHO_T}$YACC" >&6 | 
 | 3447 | else | 
 | 3448 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3449 | echo "${ECHO_T}no" >&6 | 
 | 3450 | fi | 
 | 3451 |  | 
 | 3452 |   test -n "$YACC" && break | 
 | 3453 | done | 
 | 3454 | test -n "$YACC" || YACC="yacc" | 
 | 3455 |  | 
 | 3456 |  | 
 | 3457 | fi | 
 | 3458 | echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5 | 
 | 3459 | echo "${ECHO_T}$ac_cv_has_bison" >&6 | 
 | 3460 | if test "$YACC" != "bison -y"; then | 
 | 3461 |   { { echo "$as_me:$LINENO: error: bison not found but required" >&5 | 
 | 3462 | echo "$as_me: error: bison not found but required" >&2;} | 
 | 3463 |    { (exit 1); exit 1; }; } | 
 | 3464 | else | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 3465 |   BISON=bison | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3466 |  | 
 | 3467 | fi | 
 | 3468 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3469 | # Check whether --enable-shared or --disable-shared was given. | 
 | 3470 | if test "${enable_shared+set}" = set; then | 
 | 3471 |   enableval="$enable_shared" | 
 | 3472 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3473 |     case $enableval in | 
 | 3474 |     yes) enable_shared=yes ;; | 
 | 3475 |     no) enable_shared=no ;; | 
 | 3476 |     *) | 
 | 3477 |       enable_shared=no | 
 | 3478 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3479 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3480 |       for pkg in $enableval; do | 
 | 3481 | 	IFS="$lt_save_ifs" | 
 | 3482 | 	if test "X$pkg" = "X$p"; then | 
 | 3483 | 	  enable_shared=yes | 
 | 3484 | 	fi | 
 | 3485 |       done | 
 | 3486 |       IFS="$lt_save_ifs" | 
 | 3487 |       ;; | 
 | 3488 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3489 | else | 
 | 3490 |   enable_shared=yes | 
 | 3491 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3492 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3493 | # Check whether --enable-static or --disable-static was given. | 
 | 3494 | if test "${enable_static+set}" = set; then | 
 | 3495 |   enableval="$enable_static" | 
 | 3496 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3497 |     case $enableval in | 
 | 3498 |     yes) enable_static=yes ;; | 
 | 3499 |     no) enable_static=no ;; | 
 | 3500 |     *) | 
 | 3501 |      enable_static=no | 
 | 3502 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3503 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3504 |       for pkg in $enableval; do | 
 | 3505 | 	IFS="$lt_save_ifs" | 
 | 3506 | 	if test "X$pkg" = "X$p"; then | 
 | 3507 | 	  enable_static=yes | 
 | 3508 | 	fi | 
 | 3509 |       done | 
 | 3510 |       IFS="$lt_save_ifs" | 
 | 3511 |       ;; | 
 | 3512 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3513 | else | 
 | 3514 |   enable_static=yes | 
 | 3515 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3516 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3517 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
 | 3518 | if test "${enable_fast_install+set}" = set; then | 
 | 3519 |   enableval="$enable_fast_install" | 
 | 3520 |   p=${PACKAGE-default} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3521 |     case $enableval in | 
 | 3522 |     yes) enable_fast_install=yes ;; | 
 | 3523 |     no) enable_fast_install=no ;; | 
 | 3524 |     *) | 
 | 3525 |       enable_fast_install=no | 
 | 3526 |       # Look at the argument we got.  We use all the common list separators. | 
 | 3527 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 3528 |       for pkg in $enableval; do | 
 | 3529 | 	IFS="$lt_save_ifs" | 
 | 3530 | 	if test "X$pkg" = "X$p"; then | 
 | 3531 | 	  enable_fast_install=yes | 
 | 3532 | 	fi | 
 | 3533 |       done | 
 | 3534 |       IFS="$lt_save_ifs" | 
 | 3535 |       ;; | 
 | 3536 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3537 | else | 
 | 3538 |   enable_fast_install=yes | 
 | 3539 | fi; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3540 |  | 
 | 3541 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 3542 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | 
 | 3543 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 3544 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3545 | else | 
 | 3546 |   # Loop through the user's path and test for sed and gsed. | 
 | 3547 | # Then use that list of sed's as ones to test for truncation. | 
 | 3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3549 | for as_dir in $PATH | 
 | 3550 | do | 
 | 3551 |   IFS=$as_save_IFS | 
 | 3552 |   test -z "$as_dir" && as_dir=. | 
 | 3553 |   for lt_ac_prog in sed gsed; do | 
 | 3554 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3555 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 3556 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 3557 |       fi | 
 | 3558 |     done | 
 | 3559 |   done | 
 | 3560 | done | 
 | 3561 | lt_ac_max=0 | 
 | 3562 | lt_ac_count=0 | 
 | 3563 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 3564 | # along with /bin/sed that truncates output. | 
 | 3565 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
 | 3566 |   test ! -f $lt_ac_sed && break | 
 | 3567 |   cat /dev/null > conftest.in | 
 | 3568 |   lt_ac_count=0 | 
 | 3569 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 3570 |   # Check for GNU sed and select it if it is found. | 
 | 3571 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 3572 |     lt_cv_path_SED=$lt_ac_sed | 
 | 3573 |     break | 
 | 3574 |   fi | 
 | 3575 |   while true; do | 
 | 3576 |     cat conftest.in conftest.in >conftest.tmp | 
 | 3577 |     mv conftest.tmp conftest.in | 
 | 3578 |     cp conftest.in conftest.nl | 
 | 3579 |     echo >>conftest.nl | 
 | 3580 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 3581 |     cmp -s conftest.out conftest.nl || break | 
 | 3582 |     # 10000 chars as input seems more than enough | 
 | 3583 |     test $lt_ac_count -gt 10 && break | 
 | 3584 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 3585 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 3586 |       lt_ac_max=$lt_ac_count | 
 | 3587 |       lt_cv_path_SED=$lt_ac_sed | 
 | 3588 |     fi | 
 | 3589 |   done | 
 | 3590 | done | 
 | 3591 | SED=$lt_cv_path_SED | 
 | 3592 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3593 | fi | 
 | 3594 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3595 | echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 3596 | echo "${ECHO_T}$SED" >&6 | 
 | 3597 |  | 
 | 3598 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 3599 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
 | 3600 | if test "${ac_cv_prog_egrep+set}" = set; then | 
 | 3601 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3602 | else | 
 | 3603 |   if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
 | 3604 |     then ac_cv_prog_egrep='grep -E' | 
 | 3605 |     else ac_cv_prog_egrep='egrep' | 
 | 3606 |     fi | 
 | 3607 | fi | 
 | 3608 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
 | 3609 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
 | 3610 |  EGREP=$ac_cv_prog_egrep | 
 | 3611 |  | 
 | 3612 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3613 |  | 
 | 3614 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 3615 | if test "${with_gnu_ld+set}" = set; then | 
 | 3616 |   withval="$with_gnu_ld" | 
 | 3617 |   test "$withval" = no || with_gnu_ld=yes | 
 | 3618 | else | 
 | 3619 |   with_gnu_ld=no | 
 | 3620 | fi; | 
 | 3621 | ac_prog=ld | 
 | 3622 | if test "$GCC" = yes; then | 
 | 3623 |   # Check if gcc -print-prog-name=ld gives a path. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3624 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 3625 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3626 |   case $host in | 
 | 3627 |   *-*-mingw*) | 
 | 3628 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 3629 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 3630 |   *) | 
 | 3631 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 3632 |   esac | 
 | 3633 |   case $ac_prog in | 
 | 3634 |     # Accept absolute paths. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3635 |     [\\/]* | ?:[\\/]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3636 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 3637 |       # Canonicalize the path of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3638 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3639 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3640 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3641 |       done | 
 | 3642 |       test -z "$LD" && LD="$ac_prog" | 
 | 3643 |       ;; | 
 | 3644 |   "") | 
 | 3645 |     # If it fails, then pretend we aren't using GCC. | 
 | 3646 |     ac_prog=ld | 
 | 3647 |     ;; | 
 | 3648 |   *) | 
 | 3649 |     # If it is relative, then search for the first ld in PATH. | 
 | 3650 |     with_gnu_ld=unknown | 
 | 3651 |     ;; | 
 | 3652 |   esac | 
 | 3653 | elif test "$with_gnu_ld" = yes; then | 
 | 3654 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 3655 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 3656 | else | 
 | 3657 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 3658 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 3659 | fi | 
 | 3660 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 3661 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3662 | else | 
 | 3663 |   if test -z "$LD"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3664 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3665 |   for ac_dir in $PATH; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3666 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3667 |     test -z "$ac_dir" && ac_dir=. | 
 | 3668 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 3669 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 3670 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 3671 |       # but apparently some GNU ld's only accept -v. | 
 | 3672 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3673 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 3674 |       *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3675 | 	test "$with_gnu_ld" != no && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3676 | 	;; | 
 | 3677 |       *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3678 | 	test "$with_gnu_ld" != yes && break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3679 | 	;; | 
 | 3680 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3681 |     fi | 
 | 3682 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3683 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3684 | else | 
 | 3685 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 3686 | fi | 
 | 3687 | fi | 
 | 3688 |  | 
 | 3689 | LD="$lt_cv_path_LD" | 
 | 3690 | if test -n "$LD"; then | 
 | 3691 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 3692 | echo "${ECHO_T}$LD" >&6 | 
 | 3693 | else | 
 | 3694 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 3695 | echo "${ECHO_T}no" >&6 | 
 | 3696 | fi | 
 | 3697 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 3698 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 3699 |    { (exit 1); exit 1; }; } | 
 | 3700 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 3701 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 3702 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 3703 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3704 | else | 
 | 3705 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3706 | case `"$LD" -v 2>&1 </dev/null` in | 
 | 3707 | *GNU* | *'with BFD'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3708 |   lt_cv_prog_gnu_ld=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3709 |   ;; | 
 | 3710 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3711 |   lt_cv_prog_gnu_ld=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3712 |   ;; | 
 | 3713 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3714 | fi | 
 | 3715 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 3716 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 3717 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 3718 |  | 
 | 3719 |  | 
 | 3720 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 3721 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | 
 | 3722 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 3723 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3724 | else | 
 | 3725 |   lt_cv_ld_reload_flag='-r' | 
 | 3726 | fi | 
 | 3727 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 3728 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | 
 | 3729 | reload_flag=$lt_cv_ld_reload_flag | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3730 | case $reload_flag in | 
 | 3731 | "" | " "*) ;; | 
 | 3732 | *) reload_flag=" $reload_flag" ;; | 
 | 3733 | esac | 
 | 3734 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3735 |  | 
 | 3736 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 3737 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | 
 | 3738 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 3739 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3740 | else | 
 | 3741 |   if test -n "$NM"; then | 
 | 3742 |   # Let the user override the test. | 
 | 3743 |   lt_cv_path_NM="$NM" | 
 | 3744 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3745 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3746 |   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3747 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3748 |     test -z "$ac_dir" && ac_dir=. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3749 |     tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 
 | 3750 |     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3751 |       # Check to see if the nm accepts a BSD-compat flag. | 
 | 3752 |       # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 3753 |       #   nm: unknown option "B" ignored | 
 | 3754 |       # Tru64's nm complains that /dev/null is an invalid object file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3755 |       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 3756 |       */dev/null* | *'Invalid file or object type'*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3757 | 	lt_cv_path_NM="$tmp_nm -B" | 
 | 3758 | 	break | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3759 |         ;; | 
 | 3760 |       *) | 
 | 3761 | 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 3762 | 	*/dev/null*) | 
 | 3763 | 	  lt_cv_path_NM="$tmp_nm -p" | 
 | 3764 | 	  break | 
 | 3765 | 	  ;; | 
 | 3766 | 	*) | 
 | 3767 | 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 3768 | 	  continue # so that we can try to find one that supports BSD flags | 
 | 3769 | 	  ;; | 
 | 3770 | 	esac | 
 | 3771 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3772 |     fi | 
 | 3773 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3774 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3775 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 3776 | fi | 
 | 3777 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3778 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 3779 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | NM="$lt_cv_path_NM" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3781 |  | 
 | 3782 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 3783 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
 | 3784 | LN_S=$as_ln_s | 
 | 3785 | if test "$LN_S" = "ln -s"; then | 
 | 3786 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 3787 | echo "${ECHO_T}yes" >&6 | 
 | 3788 | else | 
 | 3789 |   echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 3790 | echo "${ECHO_T}no, using $LN_S" >&6 | 
 | 3791 | fi | 
 | 3792 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3793 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 3794 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3795 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 3796 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3797 | else | 
 | 3798 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 3799 | lt_cv_file_magic_test_file= | 
 | 3800 | lt_cv_deplibs_check_method='unknown' | 
 | 3801 | # Need to set the preceding variable on all platforms that support | 
 | 3802 | # interlibrary dependencies. | 
 | 3803 | # 'none' -- dependencies not supported. | 
 | 3804 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 3805 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 3806 | # 'test_compile' -- check by making test program. | 
 | 3807 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3808 | # which responds to the $file_magic_cmd with a given extended regex. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3809 | # If you have `file' or equivalent on your system and you're not sure | 
 | 3810 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 3811 |  | 
 | 3812 | case $host_os in | 
 | 3813 | aix4* | aix5*) | 
 | 3814 |   lt_cv_deplibs_check_method=pass_all | 
 | 3815 |   ;; | 
 | 3816 |  | 
 | 3817 | beos*) | 
 | 3818 |   lt_cv_deplibs_check_method=pass_all | 
 | 3819 |   ;; | 
 | 3820 |  | 
 | 3821 | bsdi4*) | 
 | 3822 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 3823 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 3824 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 3825 |   ;; | 
 | 3826 |  | 
 | 3827 | cygwin* | mingw* | pw32*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3828 |   # win32_libid is a shell function defined in ltmain.sh | 
 | 3829 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 3830 |   lt_cv_file_magic_cmd='win32_libid' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3831 |   ;; | 
 | 3832 |  | 
 | 3833 | darwin* | rhapsody*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3834 |   # this will be overwritten by pass_all, but leave it in just in case | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3835 |   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | 
 | 3836 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 3837 |   case "$host_os" in | 
 | 3838 |   rhapsody* | darwin1.[012]) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3839 |     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3840 |     ;; | 
 | 3841 |   *) # Darwin 1.3 on | 
 | 3842 |     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | 
 | 3843 |     ;; | 
 | 3844 |   esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3845 |   lt_cv_deplibs_check_method=pass_all | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3846 |   ;; | 
 | 3847 |  | 
 | 3848 | freebsd*) | 
 | 3849 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 3850 |     case $host_cpu in | 
 | 3851 |     i*86 ) | 
 | 3852 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 3853 |       # Let's accept both of them until this is cleared up. | 
 | 3854 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
 | 3855 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 3856 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 3857 |       ;; | 
 | 3858 |     esac | 
 | 3859 |   else | 
 | 3860 |     lt_cv_deplibs_check_method=pass_all | 
 | 3861 |   fi | 
 | 3862 |   ;; | 
 | 3863 |  | 
 | 3864 | gnu*) | 
 | 3865 |   lt_cv_deplibs_check_method=pass_all | 
 | 3866 |   ;; | 
 | 3867 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3868 | hpux10.20* | hpux11*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3869 |   lt_cv_file_magic_cmd=/usr/bin/file | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3870 |   case "$host_cpu" in | 
 | 3871 |   ia64*) | 
 | 3872 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 3873 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 3874 |     ;; | 
 | 3875 |   hppa*64*) | 
 | 3876 |     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]' | 
 | 3877 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 3878 |     ;; | 
 | 3879 |   *) | 
 | 3880 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 3881 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 3882 |     ;; | 
 | 3883 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3884 |   ;; | 
 | 3885 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3886 | irix5* | irix6* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3888 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 |     # this will be overridden with pass_all, but let us keep it just in case | 
 | 3890 |     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
 | 3891 |     ;; | 
 | 3892 |   *) | 
 | 3893 |     case $LD in | 
 | 3894 |     *-32|*"-32 ") libmagic=32-bit;; | 
 | 3895 |     *-n32|*"-n32 ") libmagic=N32;; | 
 | 3896 |     *-64|*"-64 ") libmagic=64-bit;; | 
 | 3897 |     *) libmagic=never-match;; | 
 | 3898 |     esac | 
 | 3899 |     # this will be overridden with pass_all, but let us keep it just in case | 
 | 3900 |     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
 | 3901 |     ;; | 
 | 3902 |   esac | 
 | 3903 |   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
 | 3904 |   lt_cv_deplibs_check_method=pass_all | 
 | 3905 |   ;; | 
 | 3906 |  | 
 | 3907 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3908 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3909 |   case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3910 |   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 |     lt_cv_deplibs_check_method=pass_all ;; | 
 | 3912 |   *) | 
 | 3913 |     # glibc up to 2.1.1 does not perform some relocations on ARM | 
 | 3914 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
 | 3915 |   esac | 
 | 3916 |   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
 | 3917 |   ;; | 
 | 3918 |  | 
 | 3919 | netbsd*) | 
 | 3920 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3921 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3922 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3923 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3924 |   fi | 
 | 3925 |   ;; | 
 | 3926 |  | 
 | 3927 | newos6*) | 
 | 3928 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 3929 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 3930 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 3931 |   ;; | 
 | 3932 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3933 | nto-qnx) | 
 | 3934 |   lt_cv_deplibs_check_method=unknown | 
 | 3935 |   ;; | 
 | 3936 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3937 | openbsd*) | 
 | 3938 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 3939 |   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 3940 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 3941 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | 
 | 3942 |   else | 
 | 3943 |     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | 
 | 3944 |   fi | 
 | 3945 |   ;; | 
 | 3946 |  | 
 | 3947 | osf3* | osf4* | osf5*) | 
 | 3948 |   # this will be overridden with pass_all, but let us keep it just in case | 
 | 3949 |   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
 | 3950 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 3951 |   lt_cv_deplibs_check_method=pass_all | 
 | 3952 |   ;; | 
 | 3953 |  | 
 | 3954 | sco3.2v5*) | 
 | 3955 |   lt_cv_deplibs_check_method=pass_all | 
 | 3956 |   ;; | 
 | 3957 |  | 
 | 3958 | solaris*) | 
 | 3959 |   lt_cv_deplibs_check_method=pass_all | 
 | 3960 |   lt_cv_file_magic_test_file=/lib/libc.so | 
 | 3961 |   ;; | 
 | 3962 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3963 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 3964 |   case $host_vendor in | 
 | 3965 |   motorola) | 
 | 3966 |     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]' | 
 | 3967 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 3968 |     ;; | 
 | 3969 |   ncr) | 
 | 3970 |     lt_cv_deplibs_check_method=pass_all | 
 | 3971 |     ;; | 
 | 3972 |   sequent) | 
 | 3973 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 3974 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 3975 |     ;; | 
 | 3976 |   sni) | 
 | 3977 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 3978 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 3979 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 3980 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3981 |   siemens) | 
 | 3982 |     lt_cv_deplibs_check_method=pass_all | 
 | 3983 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3984 |   esac | 
 | 3985 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3986 |  | 
 | 3987 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 
 | 3988 |   lt_cv_deplibs_check_method=pass_all | 
 | 3989 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3990 | esac | 
 | 3991 |  | 
 | 3992 | fi | 
 | 3993 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 3994 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | 
 | 3995 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 3996 | deplibs_check_method=$lt_cv_deplibs_check_method | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 3997 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3998 |  | 
 | 3999 |  | 
 | 4000 |  | 
 | 4001 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4002 | # If no C compiler was specified, use CC. | 
 | 4003 | LTCC=${LTCC-"$CC"} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4005 | # Allow CC to be a program name with arguments. | 
 | 4006 | compiler=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4007 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4008 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 4009 | if test "${enable_libtool_lock+set}" = set; then | 
 | 4010 |   enableval="$enable_libtool_lock" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4011 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4012 | fi; | 
 | 4013 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4014 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4015 | # Some flags need to be propagated to the compiler or linker for good | 
 | 4016 | # libtool support. | 
 | 4017 | case $host in | 
 | 4018 | ia64-*-hpux*) | 
 | 4019 |   # Find out which ABI we are using. | 
 | 4020 |   echo 'int i;' > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4021 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4022 |   (eval $ac_compile) 2>&5 | 
 | 4023 |   ac_status=$? | 
 | 4024 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4025 |   (exit $ac_status); }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4026 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4027 |     *ELF-32*) | 
 | 4028 |       HPUX_IA64_MODE="32" | 
 | 4029 |       ;; | 
 | 4030 |     *ELF-64*) | 
 | 4031 |       HPUX_IA64_MODE="64" | 
 | 4032 |       ;; | 
 | 4033 |     esac | 
 | 4034 |   fi | 
 | 4035 |   rm -rf conftest* | 
 | 4036 |   ;; | 
 | 4037 | *-*-irix6*) | 
 | 4038 |   # Find out which ABI we are using. | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 4039 |   echo '#line 4039 "configure"' > conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4040 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4041 |   (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4042 |   ac_status=$? | 
 | 4043 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4044 |   (exit $ac_status); }; then | 
 | 4045 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 4046 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4047 |     *32-bit*) | 
 | 4048 |       LD="${LD-ld} -melf32bsmip" | 
 | 4049 |       ;; | 
 | 4050 |     *N32*) | 
 | 4051 |       LD="${LD-ld} -melf32bmipn32" | 
 | 4052 |       ;; | 
 | 4053 |     *64-bit*) | 
 | 4054 |       LD="${LD-ld} -melf64bmip" | 
 | 4055 |       ;; | 
 | 4056 |     esac | 
 | 4057 |    else | 
 | 4058 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 4059 |     *32-bit*) | 
 | 4060 |       LD="${LD-ld} -32" | 
 | 4061 |       ;; | 
 | 4062 |     *N32*) | 
 | 4063 |       LD="${LD-ld} -n32" | 
 | 4064 |       ;; | 
 | 4065 |     *64-bit*) | 
 | 4066 |       LD="${LD-ld} -64" | 
 | 4067 |       ;; | 
 | 4068 |     esac | 
 | 4069 |    fi | 
 | 4070 |   fi | 
 | 4071 |   rm -rf conftest* | 
 | 4072 |   ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4073 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4074 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 4075 |   # Find out which ABI we are using. | 
 | 4076 |   echo 'int i;' > conftest.$ac_ext | 
 | 4077 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4078 |   (eval $ac_compile) 2>&5 | 
 | 4079 |   ac_status=$? | 
 | 4080 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4081 |   (exit $ac_status); }; then | 
 | 4082 |     case "`/usr/bin/file conftest.o`" in | 
 | 4083 |     *32-bit*) | 
 | 4084 |       case $host in | 
 | 4085 |         x86_64-*linux*) | 
 | 4086 |           LD="${LD-ld} -m elf_i386" | 
 | 4087 |           ;; | 
 | 4088 |         ppc64-*linux*) | 
 | 4089 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 4090 |           ;; | 
 | 4091 |         s390x-*linux*) | 
 | 4092 |           LD="${LD-ld} -m elf_s390" | 
 | 4093 |           ;; | 
 | 4094 |         sparc64-*linux*) | 
 | 4095 |           LD="${LD-ld} -m elf32_sparc" | 
 | 4096 |           ;; | 
 | 4097 |       esac | 
 | 4098 |       ;; | 
 | 4099 |     *64-bit*) | 
 | 4100 |       case $host in | 
 | 4101 |         x86_64-*linux*) | 
 | 4102 |           LD="${LD-ld} -m elf_x86_64" | 
 | 4103 |           ;; | 
 | 4104 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 4105 |           LD="${LD-ld} -m elf64ppc" | 
 | 4106 |           ;; | 
 | 4107 |         s390*-*linux*) | 
 | 4108 |           LD="${LD-ld} -m elf64_s390" | 
 | 4109 |           ;; | 
 | 4110 |         sparc*-*linux*) | 
 | 4111 |           LD="${LD-ld} -m elf64_sparc" | 
 | 4112 |           ;; | 
 | 4113 |       esac | 
 | 4114 |       ;; | 
 | 4115 |     esac | 
 | 4116 |   fi | 
 | 4117 |   rm -rf conftest* | 
 | 4118 |   ;; | 
 | 4119 |  | 
 | 4120 | *-*-sco3.2v5*) | 
 | 4121 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 4122 |   SAVE_CFLAGS="$CFLAGS" | 
 | 4123 |   CFLAGS="$CFLAGS -belf" | 
 | 4124 |   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 4125 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | 
 | 4126 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 4127 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4128 | else | 
 | 4129 |   ac_ext=c | 
 | 4130 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4134 |  | 
 | 4135 |      cat >conftest.$ac_ext <<_ACEOF | 
 | 4136 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4137 | /* confdefs.h.  */ | 
 | 4138 | _ACEOF | 
 | 4139 | cat confdefs.h >>conftest.$ac_ext | 
 | 4140 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4141 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4142 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4143 | int | 
 | 4144 | main () | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4145 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4146 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4147 |   ; | 
 | 4148 |   return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4149 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4150 | _ACEOF | 
 | 4151 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 4152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4153 |   (eval $ac_link) 2>&5 | 
 | 4154 |   ac_status=$? | 
 | 4155 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4156 |   (exit $ac_status); } && | 
 | 4157 |          { ac_try='test -s conftest$ac_exeext' | 
 | 4158 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4159 |   (eval $ac_try) 2>&5 | 
 | 4160 |   ac_status=$? | 
 | 4161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4162 |   (exit $ac_status); }; }; then | 
 | 4163 |   lt_cv_cc_needs_belf=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4164 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4165 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4166 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4167 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4168 | lt_cv_cc_needs_belf=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4169 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4170 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 4171 |      ac_ext=c | 
 | 4172 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4176 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4177 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4178 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 4179 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | 
 | 4180 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 4181 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 4182 |     CFLAGS="$SAVE_CFLAGS" | 
 | 4183 |   fi | 
 | 4184 |   ;; | 
 | 4185 |  | 
 | 4186 | esac | 
 | 4187 |  | 
 | 4188 | need_locks="$enable_libtool_lock" | 
 | 4189 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4190 |  | 
 | 4191 |  | 
 | 4192 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 4193 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 4194 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 4195 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4196 | else | 
 | 4197 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4198 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4199 | /* confdefs.h.  */ | 
 | 4200 | _ACEOF | 
 | 4201 | cat confdefs.h >>conftest.$ac_ext | 
 | 4202 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4203 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4204 | #include <stdlib.h> | 
 | 4205 | #include <stdarg.h> | 
 | 4206 | #include <string.h> | 
 | 4207 | #include <float.h> | 
 | 4208 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4209 | int | 
 | 4210 | main () | 
 | 4211 | { | 
 | 4212 |  | 
 | 4213 |   ; | 
 | 4214 |   return 0; | 
 | 4215 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4216 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4217 | rm -f conftest.$ac_objext | 
 | 4218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4219 |   (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4220 |   ac_status=$? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4221 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4222 |   (exit $ac_status); } && | 
 | 4223 |          { ac_try='test -s conftest.$ac_objext' | 
 | 4224 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4225 |   (eval $ac_try) 2>&5 | 
 | 4226 |   ac_status=$? | 
 | 4227 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4228 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4229 |   ac_cv_header_stdc=yes | 
 | 4230 | else | 
 | 4231 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4232 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4233 |  | 
 | 4234 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4235 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4236 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4237 |  | 
 | 4238 | if test $ac_cv_header_stdc = yes; then | 
 | 4239 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4240 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4241 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4242 | /* confdefs.h.  */ | 
 | 4243 | _ACEOF | 
 | 4244 | cat confdefs.h >>conftest.$ac_ext | 
 | 4245 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4246 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | #include <string.h> | 
 | 4248 |  | 
 | 4249 | _ACEOF | 
 | 4250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4251 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4252 |   : | 
 | 4253 | else | 
 | 4254 |   ac_cv_header_stdc=no | 
 | 4255 | fi | 
 | 4256 | rm -f conftest* | 
 | 4257 |  | 
 | 4258 | fi | 
 | 4259 |  | 
 | 4260 | if test $ac_cv_header_stdc = yes; then | 
 | 4261 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4262 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4263 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4264 | /* confdefs.h.  */ | 
 | 4265 | _ACEOF | 
 | 4266 | cat confdefs.h >>conftest.$ac_ext | 
 | 4267 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4268 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4269 | #include <stdlib.h> | 
 | 4270 |  | 
 | 4271 | _ACEOF | 
 | 4272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4273 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4274 |   : | 
 | 4275 | else | 
 | 4276 |   ac_cv_header_stdc=no | 
 | 4277 | fi | 
 | 4278 | rm -f conftest* | 
 | 4279 |  | 
 | 4280 | fi | 
 | 4281 |  | 
 | 4282 | if test $ac_cv_header_stdc = yes; then | 
 | 4283 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4284 |   if test "$cross_compiling" = yes; then | 
 | 4285 |   : | 
 | 4286 | else | 
 | 4287 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4288 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4289 | /* confdefs.h.  */ | 
 | 4290 | _ACEOF | 
 | 4291 | cat confdefs.h >>conftest.$ac_ext | 
 | 4292 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4293 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4294 | #include <ctype.h> | 
 | 4295 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4296 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4297 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4298 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4299 | # define ISLOWER(c) \ | 
 | 4300 |                    (('a' <= (c) && (c) <= 'i') \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4301 |                      || ('j' <= (c) && (c) <= 'r') \ | 
 | 4302 |                      || ('s' <= (c) && (c) <= 'z')) | 
 | 4303 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4304 | #endif | 
 | 4305 |  | 
 | 4306 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4307 | int | 
 | 4308 | main () | 
 | 4309 | { | 
 | 4310 |   int i; | 
 | 4311 |   for (i = 0; i < 256; i++) | 
 | 4312 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 4313 |         || toupper (i) != TOUPPER (i)) | 
 | 4314 |       exit(2); | 
 | 4315 |   exit (0); | 
 | 4316 | } | 
 | 4317 | _ACEOF | 
 | 4318 | rm -f conftest$ac_exeext | 
 | 4319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 4320 |   (eval $ac_link) 2>&5 | 
 | 4321 |   ac_status=$? | 
 | 4322 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4323 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 4324 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4325 |   (eval $ac_try) 2>&5 | 
 | 4326 |   ac_status=$? | 
 | 4327 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4328 |   (exit $ac_status); }; }; then | 
 | 4329 |   : | 
 | 4330 | else | 
 | 4331 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 4332 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4333 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4334 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4335 | ( exit $ac_status ) | 
 | 4336 | ac_cv_header_stdc=no | 
 | 4337 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4338 | rm -f core 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] | 4339 | fi | 
 | 4340 | fi | 
 | 4341 | fi | 
 | 4342 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 4343 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 4344 | if test $ac_cv_header_stdc = yes; then | 
 | 4345 |  | 
 | 4346 | cat >>confdefs.h <<\_ACEOF | 
 | 4347 | #define STDC_HEADERS 1 | 
 | 4348 | _ACEOF | 
 | 4349 |  | 
 | 4350 | fi | 
 | 4351 |  | 
 | 4352 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4353 |  | 
 | 4354 |  | 
 | 4355 |  | 
 | 4356 |  | 
 | 4357 |  | 
 | 4358 |  | 
 | 4359 |  | 
 | 4360 |  | 
 | 4361 |  | 
 | 4362 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 4363 |                   inttypes.h stdint.h unistd.h | 
 | 4364 | do | 
 | 4365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4369 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4370 | else | 
 | 4371 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4372 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4373 | /* confdefs.h.  */ | 
 | 4374 | _ACEOF | 
 | 4375 | cat confdefs.h >>conftest.$ac_ext | 
 | 4376 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4377 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4378 | $ac_includes_default | 
 | 4379 |  | 
 | 4380 | #include <$ac_header> | 
 | 4381 | _ACEOF | 
 | 4382 | rm -f conftest.$ac_objext | 
 | 4383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4384 |   (eval $ac_compile) 2>&5 | 
 | 4385 |   ac_status=$? | 
 | 4386 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4387 |   (exit $ac_status); } && | 
 | 4388 |          { ac_try='test -s conftest.$ac_objext' | 
 | 4389 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4390 |   (eval $ac_try) 2>&5 | 
 | 4391 |   ac_status=$? | 
 | 4392 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4393 |   (exit $ac_status); }; }; then | 
 | 4394 |   eval "$as_ac_Header=yes" | 
 | 4395 | else | 
 | 4396 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4397 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4398 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4399 | eval "$as_ac_Header=no" | 
 | 4400 | fi | 
 | 4401 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 4402 | fi | 
 | 4403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 4405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4406 |   cat >>confdefs.h <<_ACEOF | 
 | 4407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4408 | _ACEOF | 
 | 4409 |  | 
 | 4410 | fi | 
 | 4411 |  | 
 | 4412 | done | 
 | 4413 |  | 
 | 4414 |  | 
 | 4415 |  | 
 | 4416 | for ac_header in dlfcn.h | 
 | 4417 | do | 
 | 4418 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4420 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4423 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4424 | fi | 
 | 4425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 4427 | else | 
 | 4428 |   # Is the header compilable? | 
 | 4429 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 4430 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 4431 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4432 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4433 | /* confdefs.h.  */ | 
 | 4434 | _ACEOF | 
 | 4435 | cat confdefs.h >>conftest.$ac_ext | 
 | 4436 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4437 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4438 | $ac_includes_default | 
 | 4439 | #include <$ac_header> | 
 | 4440 | _ACEOF | 
 | 4441 | rm -f conftest.$ac_objext | 
 | 4442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4443 |   (eval $ac_compile) 2>&5 | 
 | 4444 |   ac_status=$? | 
 | 4445 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4446 |   (exit $ac_status); } && | 
 | 4447 |          { ac_try='test -s conftest.$ac_objext' | 
 | 4448 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4449 |   (eval $ac_try) 2>&5 | 
 | 4450 |   ac_status=$? | 
 | 4451 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4452 |   (exit $ac_status); }; }; then | 
 | 4453 |   ac_header_compiler=yes | 
 | 4454 | else | 
 | 4455 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4456 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4457 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4458 | ac_header_compiler=no | 
 | 4459 | fi | 
 | 4460 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 4461 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 4462 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 4463 |  | 
 | 4464 | # Is the header present? | 
 | 4465 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 4466 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 4467 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4468 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4469 | /* confdefs.h.  */ | 
 | 4470 | _ACEOF | 
 | 4471 | cat confdefs.h >>conftest.$ac_ext | 
 | 4472 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4473 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4474 | #include <$ac_header> | 
 | 4475 | _ACEOF | 
 | 4476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4477 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4478 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4479 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4480 |   rm -f conftest.er1 | 
 | 4481 |   cat conftest.err >&5 | 
 | 4482 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4483 |   (exit $ac_status); } >/dev/null; then | 
 | 4484 |   if test -s conftest.err; then | 
 | 4485 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 4486 |   else | 
 | 4487 |     ac_cpp_err= | 
 | 4488 |   fi | 
 | 4489 | else | 
 | 4490 |   ac_cpp_err=yes | 
 | 4491 | fi | 
 | 4492 | if test -z "$ac_cpp_err"; then | 
 | 4493 |   ac_header_preproc=yes | 
 | 4494 | else | 
 | 4495 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4496 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4497 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4498 |   ac_header_preproc=no | 
 | 4499 | fi | 
 | 4500 | rm -f conftest.err conftest.$ac_ext | 
 | 4501 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 4502 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 4503 |  | 
 | 4504 | # So?  What about this header? | 
 | 4505 | case $ac_header_compiler:$ac_header_preproc in | 
 | 4506 |   yes:no ) | 
 | 4507 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 4508 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 4509 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4510 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 4511 |     ( | 
 | 4512 |       cat <<\_ASBOX | 
 | 4513 | ## ------------------------------------ ## | 
 | 4514 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 4515 | ## ------------------------------------ ## | 
 | 4516 | _ASBOX | 
 | 4517 |     ) | | 
 | 4518 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 4519 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4520 |   no:yes ) | 
 | 4521 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 4522 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 4523 |     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
 | 4524 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
 | 4525 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4526 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 4527 |     ( | 
 | 4528 |       cat <<\_ASBOX | 
 | 4529 | ## ------------------------------------ ## | 
 | 4530 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 4531 | ## ------------------------------------ ## | 
 | 4532 | _ASBOX | 
 | 4533 |     ) | | 
 | 4534 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 4535 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4536 | esac | 
 | 4537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 4539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 4540 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4541 | else | 
 | 4542 |   eval "$as_ac_Header=$ac_header_preproc" | 
 | 4543 | fi | 
 | 4544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 4545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 4546 |  | 
 | 4547 | fi | 
 | 4548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4549 |   cat >>confdefs.h <<_ACEOF | 
 | 4550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4551 | _ACEOF | 
 | 4552 |  | 
 | 4553 | fi | 
 | 4554 |  | 
 | 4555 | done | 
 | 4556 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4557 | ac_ext=cc | 
 | 4558 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4562 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 4563 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | 
 | 4564 | if test -z "$CXXCPP"; then | 
 | 4565 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4566 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4567 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4568 |       # Double quotes because CXXCPP needs to be expanded | 
 | 4569 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 4570 |     do | 
 | 4571 |       ac_preproc_ok=false | 
 | 4572 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4573 | do | 
 | 4574 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4575 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4576 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4577 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4578 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4579 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4580 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4581 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4582 | /* confdefs.h.  */ | 
 | 4583 | _ACEOF | 
 | 4584 | cat confdefs.h >>conftest.$ac_ext | 
 | 4585 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4586 | /* end confdefs.h.  */ | 
 | 4587 | #ifdef __STDC__ | 
 | 4588 | # include <limits.h> | 
 | 4589 | #else | 
 | 4590 | # include <assert.h> | 
 | 4591 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4592 |                      Syntax error | 
 | 4593 | _ACEOF | 
 | 4594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4595 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4596 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4597 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4598 |   rm -f conftest.er1 | 
 | 4599 |   cat conftest.err >&5 | 
 | 4600 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4601 |   (exit $ac_status); } >/dev/null; then | 
 | 4602 |   if test -s conftest.err; then | 
 | 4603 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4604 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4605 |     ac_cpp_err= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4606 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4607 | else | 
 | 4608 |   ac_cpp_err=yes | 
 | 4609 | fi | 
 | 4610 | if test -z "$ac_cpp_err"; then | 
 | 4611 |   : | 
 | 4612 | else | 
 | 4613 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4614 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4615 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4616 |   # Broken: fails on valid input. | 
 | 4617 | continue | 
 | 4618 | fi | 
 | 4619 | rm -f conftest.err conftest.$ac_ext | 
 | 4620 |  | 
 | 4621 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4622 |   # can be detected and how. | 
 | 4623 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4624 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4625 | /* confdefs.h.  */ | 
 | 4626 | _ACEOF | 
 | 4627 | cat confdefs.h >>conftest.$ac_ext | 
 | 4628 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4629 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4630 | #include <ac_nonexistent.h> | 
 | 4631 | _ACEOF | 
 | 4632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4633 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4634 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4635 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4636 |   rm -f conftest.er1 | 
 | 4637 |   cat conftest.err >&5 | 
 | 4638 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4639 |   (exit $ac_status); } >/dev/null; then | 
 | 4640 |   if test -s conftest.err; then | 
 | 4641 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 4642 |   else | 
 | 4643 |     ac_cpp_err= | 
 | 4644 |   fi | 
 | 4645 | else | 
 | 4646 |   ac_cpp_err=yes | 
 | 4647 | fi | 
 | 4648 | if test -z "$ac_cpp_err"; then | 
 | 4649 |   # Broken: success on invalid input. | 
 | 4650 | continue | 
 | 4651 | else | 
 | 4652 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4653 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4654 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4655 |   # Passes both tests. | 
 | 4656 | ac_preproc_ok=: | 
 | 4657 | break | 
 | 4658 | fi | 
 | 4659 | rm -f conftest.err conftest.$ac_ext | 
 | 4660 |  | 
 | 4661 | done | 
 | 4662 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4663 | rm -f conftest.err conftest.$ac_ext | 
 | 4664 | if $ac_preproc_ok; then | 
 | 4665 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4666 | fi | 
 | 4667 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4668 |     done | 
 | 4669 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4670 |  | 
 | 4671 | fi | 
 | 4672 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 4673 | else | 
 | 4674 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 4675 | fi | 
 | 4676 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 4677 | echo "${ECHO_T}$CXXCPP" >&6 | 
 | 4678 | ac_preproc_ok=false | 
 | 4679 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 4680 | do | 
 | 4681 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 4682 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4683 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 4684 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4685 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 4686 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 4687 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4688 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4689 | /* confdefs.h.  */ | 
 | 4690 | _ACEOF | 
 | 4691 | cat confdefs.h >>conftest.$ac_ext | 
 | 4692 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4693 | /* end confdefs.h.  */ | 
 | 4694 | #ifdef __STDC__ | 
 | 4695 | # include <limits.h> | 
 | 4696 | #else | 
 | 4697 | # include <assert.h> | 
 | 4698 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4699 |                      Syntax error | 
 | 4700 | _ACEOF | 
 | 4701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4702 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4703 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4704 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4705 |   rm -f conftest.er1 | 
 | 4706 |   cat conftest.err >&5 | 
 | 4707 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4708 |   (exit $ac_status); } >/dev/null; then | 
 | 4709 |   if test -s conftest.err; then | 
 | 4710 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 4711 |   else | 
 | 4712 |     ac_cpp_err= | 
 | 4713 |   fi | 
 | 4714 | else | 
 | 4715 |   ac_cpp_err=yes | 
 | 4716 | fi | 
 | 4717 | if test -z "$ac_cpp_err"; then | 
 | 4718 |   : | 
 | 4719 | else | 
 | 4720 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4721 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4722 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4723 |   # Broken: fails on valid input. | 
 | 4724 | continue | 
 | 4725 | fi | 
 | 4726 | rm -f conftest.err conftest.$ac_ext | 
 | 4727 |  | 
 | 4728 |   # OK, works on sane cases.  Now check whether non-existent headers | 
 | 4729 |   # can be detected and how. | 
 | 4730 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4731 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4732 | /* confdefs.h.  */ | 
 | 4733 | _ACEOF | 
 | 4734 | cat confdefs.h >>conftest.$ac_ext | 
 | 4735 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4736 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4737 | #include <ac_nonexistent.h> | 
 | 4738 | _ACEOF | 
 | 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 4740 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 4741 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4742 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4743 |   rm -f conftest.er1 | 
 | 4744 |   cat conftest.err >&5 | 
 | 4745 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4746 |   (exit $ac_status); } >/dev/null; then | 
 | 4747 |   if test -s conftest.err; then | 
 | 4748 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 4749 |   else | 
 | 4750 |     ac_cpp_err= | 
 | 4751 |   fi | 
 | 4752 | else | 
 | 4753 |   ac_cpp_err=yes | 
 | 4754 | fi | 
 | 4755 | if test -z "$ac_cpp_err"; then | 
 | 4756 |   # Broken: success on invalid input. | 
 | 4757 | continue | 
 | 4758 | else | 
 | 4759 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4760 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4761 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4762 |   # Passes both tests. | 
 | 4763 | ac_preproc_ok=: | 
 | 4764 | break | 
 | 4765 | fi | 
 | 4766 | rm -f conftest.err conftest.$ac_ext | 
 | 4767 |  | 
 | 4768 | done | 
 | 4769 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 4770 | rm -f conftest.err conftest.$ac_ext | 
 | 4771 | if $ac_preproc_ok; then | 
 | 4772 |   : | 
 | 4773 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4774 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4775 | See \`config.log' for more details." >&5 | 
 | 4776 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 4777 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4778 |    { (exit 1); exit 1; }; } | 
 | 4779 | fi | 
 | 4780 |  | 
 | 4781 | ac_ext=cc | 
 | 4782 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 4783 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4784 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4785 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 4786 |  | 
 | 4787 |  | 
 | 4788 | ac_ext=f | 
 | 4789 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 4790 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4791 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 4792 | if test -n "$ac_tool_prefix"; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4793 |   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4794 |   do | 
 | 4795 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4796 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 4797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4799 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 4800 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4801 | else | 
 | 4802 |   if test -n "$F77"; then | 
 | 4803 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 4804 | else | 
 | 4805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4806 | for as_dir in $PATH | 
 | 4807 | do | 
 | 4808 |   IFS=$as_save_IFS | 
 | 4809 |   test -z "$as_dir" && as_dir=. | 
 | 4810 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4811 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4812 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 4813 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4814 |     break 2 | 
 | 4815 |   fi | 
 | 4816 | done | 
 | 4817 | done | 
 | 4818 |  | 
 | 4819 | fi | 
 | 4820 | fi | 
 | 4821 | F77=$ac_cv_prog_F77 | 
 | 4822 | if test -n "$F77"; then | 
 | 4823 |   echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 4824 | echo "${ECHO_T}$F77" >&6 | 
 | 4825 | else | 
 | 4826 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4827 | echo "${ECHO_T}no" >&6 | 
 | 4828 | fi | 
 | 4829 |  | 
 | 4830 |     test -n "$F77" && break | 
 | 4831 |   done | 
 | 4832 | fi | 
 | 4833 | if test -z "$F77"; then | 
 | 4834 |   ac_ct_F77=$F77 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4835 |   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4836 | do | 
 | 4837 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4838 | set dummy $ac_prog; ac_word=$2 | 
 | 4839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 4841 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 4842 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4843 | else | 
 | 4844 |   if test -n "$ac_ct_F77"; then | 
 | 4845 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 4846 | else | 
 | 4847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4848 | for as_dir in $PATH | 
 | 4849 | do | 
 | 4850 |   IFS=$as_save_IFS | 
 | 4851 |   test -z "$as_dir" && as_dir=. | 
 | 4852 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 4853 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 4854 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 4855 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4856 |     break 2 | 
 | 4857 |   fi | 
 | 4858 | done | 
 | 4859 | done | 
 | 4860 |  | 
 | 4861 | fi | 
 | 4862 | fi | 
 | 4863 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 4864 | if test -n "$ac_ct_F77"; then | 
 | 4865 |   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 4866 | echo "${ECHO_T}$ac_ct_F77" >&6 | 
 | 4867 | else | 
 | 4868 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 4869 | echo "${ECHO_T}no" >&6 | 
 | 4870 | fi | 
 | 4871 |  | 
 | 4872 |   test -n "$ac_ct_F77" && break | 
 | 4873 | done | 
 | 4874 |  | 
 | 4875 |   F77=$ac_ct_F77 | 
 | 4876 | fi | 
 | 4877 |  | 
 | 4878 |  | 
 | 4879 | # Provide some information about the compiler. | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 4880 | echo "$as_me:4880:" \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4881 |      "checking for Fortran 77 compiler version" >&5 | 
 | 4882 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 4883 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
 | 4884 |   (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
 | 4885 |   ac_status=$? | 
 | 4886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4887 |   (exit $ac_status); } | 
 | 4888 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
 | 4889 |   (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
 | 4890 |   ac_status=$? | 
 | 4891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4892 |   (exit $ac_status); } | 
 | 4893 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
 | 4894 |   (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
 | 4895 |   ac_status=$? | 
 | 4896 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4897 |   (exit $ac_status); } | 
 | 4898 |  | 
 | 4899 | # If we don't use `.F' as extension, the preprocessor is not run on the | 
 | 4900 | # input file. | 
 | 4901 | ac_save_ext=$ac_ext | 
 | 4902 | ac_ext=F | 
 | 4903 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 4904 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | 
 | 4905 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 4906 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4907 | else | 
 | 4908 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4909 |       program main | 
 | 4910 | #ifndef __GNUC__ | 
 | 4911 |        choke me | 
 | 4912 | #endif | 
 | 4913 |  | 
 | 4914 |       end | 
 | 4915 | _ACEOF | 
 | 4916 | rm -f conftest.$ac_objext | 
 | 4917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4918 |   (eval $ac_compile) 2>&5 | 
 | 4919 |   ac_status=$? | 
 | 4920 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4921 |   (exit $ac_status); } && | 
 | 4922 |          { ac_try='test -s conftest.$ac_objext' | 
 | 4923 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4924 |   (eval $ac_try) 2>&5 | 
 | 4925 |   ac_status=$? | 
 | 4926 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4927 |   (exit $ac_status); }; }; then | 
 | 4928 |   ac_compiler_gnu=yes | 
 | 4929 | else | 
 | 4930 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4931 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4932 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4933 | ac_compiler_gnu=no | 
 | 4934 | fi | 
 | 4935 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 4936 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 4937 |  | 
 | 4938 | fi | 
 | 4939 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 4940 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | 
 | 4941 | ac_ext=$ac_save_ext | 
 | 4942 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
 | 4943 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 4944 | ac_save_FFLAGS=$FFLAGS | 
 | 4945 | FFLAGS= | 
 | 4946 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 4947 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | 
 | 4948 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 4949 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4950 | else | 
 | 4951 |   FFLAGS=-g | 
 | 4952 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4953 |       program main | 
 | 4954 |  | 
 | 4955 |       end | 
 | 4956 | _ACEOF | 
 | 4957 | rm -f conftest.$ac_objext | 
 | 4958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 4959 |   (eval $ac_compile) 2>&5 | 
 | 4960 |   ac_status=$? | 
 | 4961 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4962 |   (exit $ac_status); } && | 
 | 4963 |          { ac_try='test -s conftest.$ac_objext' | 
 | 4964 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 4965 |   (eval $ac_try) 2>&5 | 
 | 4966 |   ac_status=$? | 
 | 4967 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4968 |   (exit $ac_status); }; }; then | 
 | 4969 |   ac_cv_prog_f77_g=yes | 
 | 4970 | else | 
 | 4971 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4972 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4973 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 4974 | ac_cv_prog_f77_g=no | 
 | 4975 | fi | 
 | 4976 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 4977 |  | 
 | 4978 | fi | 
 | 4979 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 4980 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | 
 | 4981 | if test "$ac_test_FFLAGS" = set; then | 
 | 4982 |   FFLAGS=$ac_save_FFLAGS | 
 | 4983 | elif test $ac_cv_prog_f77_g = yes; then | 
 | 4984 |   if test "$G77" = yes; then | 
 | 4985 |     FFLAGS="-g -O2" | 
 | 4986 |   else | 
 | 4987 |     FFLAGS="-g" | 
 | 4988 |   fi | 
 | 4989 | else | 
 | 4990 |   if test "$G77" = yes; then | 
 | 4991 |     FFLAGS="-O2" | 
 | 4992 |   else | 
 | 4993 |     FFLAGS= | 
 | 4994 |   fi | 
 | 4995 | fi | 
 | 4996 | ac_ext=c | 
 | 4997 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5001 |  | 
 | 5002 |  | 
 | 5003 |  | 
 | 5004 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 5005 |  | 
 | 5006 | # find the maximum length of command line arguments | 
 | 5007 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 5008 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | 
 | 5009 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 5010 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5011 | else | 
 | 5012 |     i=0 | 
 | 5013 |   testring="ABCD" | 
 | 5014 |  | 
 | 5015 |   case $build_os in | 
 | 5016 |   msdosdjgpp*) | 
 | 5017 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 5018 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 5019 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 5020 |     # check would be larger than it should be. | 
 | 5021 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 5022 |     ;; | 
 | 5023 |  | 
 | 5024 |   gnu*) | 
 | 5025 |     # Under GNU Hurd, this test is not required because there is | 
 | 5026 |     # no limit to the length of command line arguments. | 
 | 5027 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 5028 |     lt_cv_sys_max_cmd_len=-1; | 
 | 5029 |     ;; | 
 | 5030 |  | 
 | 5031 |   cygwin* | mingw*) | 
 | 5032 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 5033 |     # about 5 minutes as the teststring grows exponentially. | 
 | 5034 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 5035 |     # you end up with a "frozen" computer, even though with patience | 
 | 5036 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 5037 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 5038 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 5039 |     lt_cv_sys_max_cmd_len=8192; | 
 | 5040 |     ;; | 
 | 5041 |  | 
 | 5042 |  *) | 
 | 5043 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 5044 |     # maximum length that is only half of the actual maximum length, but | 
 | 5045 |     # we can't tell. | 
 | 5046 |     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | 
 | 5047 | 	       = "XX$testring") >/dev/null 2>&1 && | 
 | 5048 | 	    new_result=`expr "X$testring" : ".*" 2>&1` && | 
 | 5049 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 5050 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 5051 |     do | 
 | 5052 |       i=`expr $i + 1` | 
 | 5053 |       testring=$testring$testring | 
 | 5054 |     done | 
 | 5055 |     testring= | 
 | 5056 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 5057 |     # amounts of additional arguments before passing them to the linker. | 
 | 5058 |     # It appears as though 1/2 is a usable value. | 
 | 5059 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 5060 |     ;; | 
 | 5061 |   esac | 
 | 5062 |  | 
 | 5063 | fi | 
 | 5064 |  | 
 | 5065 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 5066 |   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 5067 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | 
 | 5068 | else | 
 | 5069 |   echo "$as_me:$LINENO: result: none" >&5 | 
 | 5070 | echo "${ECHO_T}none" >&6 | 
 | 5071 | fi | 
 | 5072 |  | 
 | 5073 |  | 
 | 5074 |  | 
 | 5075 |  | 
 | 5076 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 5077 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 5078 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | 
 | 5079 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 5080 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5081 | else | 
 | 5082 |  | 
 | 5083 | # These are sane defaults that work on at least a few old systems. | 
 | 5084 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 5085 |  | 
 | 5086 | # Character class describing NM global symbol codes. | 
 | 5087 | symcode='[BCDEGRST]' | 
 | 5088 |  | 
 | 5089 | # Regexp to match symbols that can be accessed directly from C. | 
 | 5090 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 5091 |  | 
 | 5092 | # Transform the above into a raw symbol and a C symbol. | 
 | 5093 | symxfrm='\1 \2\3 \3' | 
 | 5094 |  | 
 | 5095 | # Transform an extracted symbol line into a proper C declaration | 
 | 5096 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 5097 |  | 
 | 5098 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 5099 | 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'" | 
 | 5100 |  | 
 | 5101 | # Define system-specific variables. | 
 | 5102 | case $host_os in | 
 | 5103 | aix*) | 
 | 5104 |   symcode='[BCDT]' | 
 | 5105 |   ;; | 
 | 5106 | cygwin* | mingw* | pw32*) | 
 | 5107 |   symcode='[ABCDGISTW]' | 
 | 5108 |   ;; | 
 | 5109 | hpux*) # Its linker distinguishes data from code symbols | 
 | 5110 |   if test "$host_cpu" = ia64; then | 
 | 5111 |     symcode='[ABCDEGRST]' | 
 | 5112 |   fi | 
 | 5113 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 5114 |   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'" | 
 | 5115 |   ;; | 
 | 5116 | irix* | nonstopux*) | 
 | 5117 |   symcode='[BCDEGRST]' | 
 | 5118 |   ;; | 
 | 5119 | osf*) | 
 | 5120 |   symcode='[BCDEGQRST]' | 
 | 5121 |   ;; | 
 | 5122 | solaris* | sysv5*) | 
 | 5123 |   symcode='[BDT]' | 
 | 5124 |   ;; | 
 | 5125 | sysv4) | 
 | 5126 |   symcode='[DFNSTU]' | 
 | 5127 |   ;; | 
 | 5128 | esac | 
 | 5129 |  | 
 | 5130 | # Handle CRLF in mingw tool chain | 
 | 5131 | opt_cr= | 
 | 5132 | case $build_os in | 
 | 5133 | mingw*) | 
 | 5134 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 5135 |   ;; | 
 | 5136 | esac | 
 | 5137 |  | 
 | 5138 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 5139 | case `$NM -V 2>&1` in | 
 | 5140 | *GNU* | *'with BFD'*) | 
 | 5141 |   symcode='[ABCDGISTW]' ;; | 
 | 5142 | esac | 
 | 5143 |  | 
 | 5144 | # Try without a prefix undercore, then with it. | 
 | 5145 | for ac_symprfx in "" "_"; do | 
 | 5146 |  | 
 | 5147 |   # Write the raw and C identifiers. | 
 | 5148 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 
 | 5149 |  | 
 | 5150 |   # Check to see that the pipe works correctly. | 
 | 5151 |   pipe_works=no | 
 | 5152 |  | 
 | 5153 |   rm -f conftest* | 
 | 5154 |   cat > conftest.$ac_ext <<EOF | 
 | 5155 | #ifdef __cplusplus | 
 | 5156 | extern "C" { | 
 | 5157 | #endif | 
 | 5158 | char nm_test_var; | 
 | 5159 | void nm_test_func(){} | 
 | 5160 | #ifdef __cplusplus | 
 | 5161 | } | 
 | 5162 | #endif | 
 | 5163 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 5164 | EOF | 
 | 5165 |  | 
 | 5166 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 5167 |   (eval $ac_compile) 2>&5 | 
 | 5168 |   ac_status=$? | 
 | 5169 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5170 |   (exit $ac_status); }; then | 
 | 5171 |     # Now try to grab the symbols. | 
 | 5172 |     nlist=conftest.nm | 
 | 5173 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 5174 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 5175 |   ac_status=$? | 
 | 5176 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5177 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 5178 |       # Try sorting and uniquifying the output. | 
 | 5179 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 5180 | 	mv -f "$nlist"T "$nlist" | 
 | 5181 |       else | 
 | 5182 | 	rm -f "$nlist"T | 
 | 5183 |       fi | 
 | 5184 |  | 
 | 5185 |       # Make sure that we snagged all the symbols we need. | 
 | 5186 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 5187 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 5188 | 	  cat <<EOF > conftest.$ac_ext | 
 | 5189 | #ifdef __cplusplus | 
 | 5190 | extern "C" { | 
 | 5191 | #endif | 
 | 5192 |  | 
 | 5193 | EOF | 
 | 5194 | 	  # Now generate the symbol file. | 
 | 5195 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 5196 |  | 
 | 5197 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 5198 | #if defined (__STDC__) && __STDC__ | 
 | 5199 | # define lt_ptr_t void * | 
 | 5200 | #else | 
 | 5201 | # define lt_ptr_t char * | 
 | 5202 | # define const | 
 | 5203 | #endif | 
 | 5204 |  | 
 | 5205 | /* The mapping between symbol names and symbols. */ | 
 | 5206 | const struct { | 
 | 5207 |   const char *name; | 
 | 5208 |   lt_ptr_t address; | 
 | 5209 | } | 
 | 5210 | lt_preloaded_symbols[] = | 
 | 5211 | { | 
 | 5212 | EOF | 
 | 5213 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 5214 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 5215 |   {0, (lt_ptr_t) 0} | 
 | 5216 | }; | 
 | 5217 |  | 
 | 5218 | #ifdef __cplusplus | 
 | 5219 | } | 
 | 5220 | #endif | 
 | 5221 | EOF | 
 | 5222 | 	  # Now try linking the two files. | 
 | 5223 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 5224 | 	  lt_save_LIBS="$LIBS" | 
 | 5225 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 5226 | 	  LIBS="conftstm.$ac_objext" | 
 | 5227 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 5228 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 5229 |   (eval $ac_link) 2>&5 | 
 | 5230 |   ac_status=$? | 
 | 5231 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5232 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 5233 | 	    pipe_works=yes | 
 | 5234 | 	  fi | 
 | 5235 | 	  LIBS="$lt_save_LIBS" | 
 | 5236 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 5237 | 	else | 
 | 5238 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 5239 | 	fi | 
 | 5240 |       else | 
 | 5241 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 5242 |       fi | 
 | 5243 |     else | 
 | 5244 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 5245 |     fi | 
 | 5246 |   else | 
 | 5247 |     echo "$progname: failed program was:" >&5 | 
 | 5248 |     cat conftest.$ac_ext >&5 | 
 | 5249 |   fi | 
 | 5250 |   rm -f conftest* conftst* | 
 | 5251 |  | 
 | 5252 |   # Do not use the global_symbol_pipe unless it works. | 
 | 5253 |   if test "$pipe_works" = yes; then | 
 | 5254 |     break | 
 | 5255 |   else | 
 | 5256 |     lt_cv_sys_global_symbol_pipe= | 
 | 5257 |   fi | 
 | 5258 | done | 
 | 5259 |  | 
 | 5260 | fi | 
 | 5261 |  | 
 | 5262 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 5263 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 5264 | fi | 
 | 5265 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 5266 |   echo "$as_me:$LINENO: result: failed" >&5 | 
 | 5267 | echo "${ECHO_T}failed" >&6 | 
 | 5268 | else | 
 | 5269 |   echo "$as_me:$LINENO: result: ok" >&5 | 
 | 5270 | echo "${ECHO_T}ok" >&6 | 
 | 5271 | fi | 
 | 5272 |  | 
 | 5273 | echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 5274 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | 
 | 5275 | if test "${lt_cv_objdir+set}" = set; then | 
 | 5276 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5277 | else | 
 | 5278 |   rm -f .libs 2>/dev/null | 
 | 5279 | mkdir .libs 2>/dev/null | 
 | 5280 | if test -d .libs; then | 
 | 5281 |   lt_cv_objdir=.libs | 
 | 5282 | else | 
 | 5283 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 5284 |   lt_cv_objdir=_libs | 
 | 5285 | fi | 
 | 5286 | rmdir .libs 2>/dev/null | 
 | 5287 | fi | 
 | 5288 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 5289 | echo "${ECHO_T}$lt_cv_objdir" >&6 | 
 | 5290 | objdir=$lt_cv_objdir | 
 | 5291 |  | 
 | 5292 |  | 
 | 5293 |  | 
 | 5294 |  | 
 | 5295 |  | 
 | 5296 | case $host_os in | 
 | 5297 | aix3*) | 
 | 5298 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 5299 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 5300 |   # vanish in a puff of smoke. | 
 | 5301 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 5302 |     COLLECT_NAMES= | 
 | 5303 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5304 |   fi | 
 | 5305 |   ;; | 
 | 5306 | esac | 
 | 5307 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5308 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 5309 | # metacharacters that are still active within double-quoted strings. | 
 | 5310 | Xsed='sed -e s/^X//' | 
 | 5311 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 5312 |  | 
 | 5313 | # Same as above, but do not quote variable references. | 
 | 5314 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 5315 |  | 
 | 5316 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 5317 | # double_quote_subst'ed string. | 
 | 5318 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 5319 |  | 
 | 5320 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 5321 | no_glob_subst='s/\*/\\\*/g' | 
 | 5322 |  | 
 | 5323 | # Constants: | 
 | 5324 | rm="rm -f" | 
 | 5325 |  | 
 | 5326 | # Global variables: | 
| John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 5327 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5328 | can_build_shared=yes | 
 | 5329 |  | 
 | 5330 | # All known linkers require a `.a' archive for static linking (except M$VC, | 
 | 5331 | # which needs '.lib'). | 
 | 5332 | libext=a | 
 | 5333 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 5334 | ofile="$default_ofile" | 
 | 5335 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 5336 |  | 
 | 5337 | if test -n "$ac_tool_prefix"; then | 
 | 5338 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 5339 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 5340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5342 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 5343 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5344 | else | 
 | 5345 |   if test -n "$AR"; then | 
 | 5346 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 5347 | else | 
 | 5348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5349 | for as_dir in $PATH | 
 | 5350 | do | 
 | 5351 |   IFS=$as_save_IFS | 
 | 5352 |   test -z "$as_dir" && as_dir=. | 
 | 5353 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5354 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5355 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 5356 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5357 |     break 2 | 
 | 5358 |   fi | 
 | 5359 | done | 
 | 5360 | done | 
 | 5361 |  | 
 | 5362 | fi | 
 | 5363 | fi | 
 | 5364 | AR=$ac_cv_prog_AR | 
 | 5365 | if test -n "$AR"; then | 
 | 5366 |   echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 5367 | echo "${ECHO_T}$AR" >&6 | 
 | 5368 | else | 
 | 5369 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5370 | echo "${ECHO_T}no" >&6 | 
 | 5371 | fi | 
 | 5372 |  | 
 | 5373 | fi | 
 | 5374 | if test -z "$ac_cv_prog_AR"; then | 
 | 5375 |   ac_ct_AR=$AR | 
 | 5376 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 5377 | set dummy ar; ac_word=$2 | 
 | 5378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5380 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 5381 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5382 | else | 
 | 5383 |   if test -n "$ac_ct_AR"; then | 
 | 5384 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 5385 | else | 
 | 5386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5387 | for as_dir in $PATH | 
 | 5388 | do | 
 | 5389 |   IFS=$as_save_IFS | 
 | 5390 |   test -z "$as_dir" && as_dir=. | 
 | 5391 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5392 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5393 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 5394 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5395 |     break 2 | 
 | 5396 |   fi | 
 | 5397 | done | 
 | 5398 | done | 
 | 5399 |  | 
 | 5400 |   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | 
 | 5401 | fi | 
 | 5402 | fi | 
 | 5403 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 5404 | if test -n "$ac_ct_AR"; then | 
 | 5405 |   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 5406 | echo "${ECHO_T}$ac_ct_AR" >&6 | 
 | 5407 | else | 
 | 5408 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5409 | echo "${ECHO_T}no" >&6 | 
 | 5410 | fi | 
 | 5411 |  | 
 | 5412 |   AR=$ac_ct_AR | 
 | 5413 | else | 
 | 5414 |   AR="$ac_cv_prog_AR" | 
 | 5415 | fi | 
 | 5416 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5417 | if test -n "$ac_tool_prefix"; then | 
 | 5418 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 5419 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 5420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5422 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 5423 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5424 | else | 
 | 5425 |   if test -n "$RANLIB"; then | 
 | 5426 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5427 | else | 
 | 5428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5429 | for as_dir in $PATH | 
 | 5430 | do | 
 | 5431 |   IFS=$as_save_IFS | 
 | 5432 |   test -z "$as_dir" && as_dir=. | 
 | 5433 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5434 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5435 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 5436 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5437 |     break 2 | 
 | 5438 |   fi | 
 | 5439 | done | 
 | 5440 | done | 
 | 5441 |  | 
 | 5442 | fi | 
 | 5443 | fi | 
 | 5444 | RANLIB=$ac_cv_prog_RANLIB | 
 | 5445 | if test -n "$RANLIB"; then | 
 | 5446 |   echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 5447 | echo "${ECHO_T}$RANLIB" >&6 | 
 | 5448 | else | 
 | 5449 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5450 | echo "${ECHO_T}no" >&6 | 
 | 5451 | fi | 
 | 5452 |  | 
 | 5453 | fi | 
 | 5454 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5455 |   ac_ct_RANLIB=$RANLIB | 
 | 5456 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5457 | set dummy ranlib; ac_word=$2 | 
 | 5458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5460 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 5461 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5462 | else | 
 | 5463 |   if test -n "$ac_ct_RANLIB"; then | 
 | 5464 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 5465 | else | 
 | 5466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5467 | for as_dir in $PATH | 
 | 5468 | do | 
 | 5469 |   IFS=$as_save_IFS | 
 | 5470 |   test -z "$as_dir" && as_dir=. | 
 | 5471 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5472 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5473 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 5474 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5475 |     break 2 | 
 | 5476 |   fi | 
 | 5477 | done | 
 | 5478 | done | 
 | 5479 |  | 
 | 5480 |   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
 | 5481 | fi | 
 | 5482 | fi | 
 | 5483 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 5484 | if test -n "$ac_ct_RANLIB"; then | 
 | 5485 |   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 5486 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
 | 5487 | else | 
 | 5488 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5489 | echo "${ECHO_T}no" >&6 | 
 | 5490 | fi | 
 | 5491 |  | 
 | 5492 |   RANLIB=$ac_ct_RANLIB | 
 | 5493 | else | 
 | 5494 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 5495 | fi | 
 | 5496 |  | 
 | 5497 | if test -n "$ac_tool_prefix"; then | 
 | 5498 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 5499 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 5500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5502 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 5503 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5504 | else | 
 | 5505 |   if test -n "$STRIP"; then | 
 | 5506 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 5507 | else | 
 | 5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5509 | for as_dir in $PATH | 
 | 5510 | do | 
 | 5511 |   IFS=$as_save_IFS | 
 | 5512 |   test -z "$as_dir" && as_dir=. | 
 | 5513 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5514 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5515 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 5516 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5517 |     break 2 | 
 | 5518 |   fi | 
 | 5519 | done | 
 | 5520 | done | 
 | 5521 |  | 
 | 5522 | fi | 
 | 5523 | fi | 
 | 5524 | STRIP=$ac_cv_prog_STRIP | 
 | 5525 | if test -n "$STRIP"; then | 
 | 5526 |   echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 5527 | echo "${ECHO_T}$STRIP" >&6 | 
 | 5528 | else | 
 | 5529 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5530 | echo "${ECHO_T}no" >&6 | 
 | 5531 | fi | 
 | 5532 |  | 
 | 5533 | fi | 
 | 5534 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 5535 |   ac_ct_STRIP=$STRIP | 
 | 5536 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 5537 | set dummy strip; ac_word=$2 | 
 | 5538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 5540 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 5541 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5542 | else | 
 | 5543 |   if test -n "$ac_ct_STRIP"; then | 
 | 5544 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 5545 | else | 
 | 5546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5547 | for as_dir in $PATH | 
 | 5548 | do | 
 | 5549 |   IFS=$as_save_IFS | 
 | 5550 |   test -z "$as_dir" && as_dir=. | 
 | 5551 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5552 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 5553 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 5554 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5555 |     break 2 | 
 | 5556 |   fi | 
 | 5557 | done | 
 | 5558 | done | 
 | 5559 |  | 
 | 5560 |   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | 
 | 5561 | fi | 
 | 5562 | fi | 
 | 5563 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 5564 | if test -n "$ac_ct_STRIP"; then | 
 | 5565 |   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 5566 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | 
 | 5567 | else | 
 | 5568 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5569 | echo "${ECHO_T}no" >&6 | 
 | 5570 | fi | 
 | 5571 |  | 
 | 5572 |   STRIP=$ac_ct_STRIP | 
 | 5573 | else | 
 | 5574 |   STRIP="$ac_cv_prog_STRIP" | 
 | 5575 | fi | 
 | 5576 |  | 
 | 5577 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5578 | old_CC="$CC" | 
 | 5579 | old_CFLAGS="$CFLAGS" | 
 | 5580 |  | 
 | 5581 | # Set sane defaults for various variables | 
 | 5582 | test -z "$AR" && AR=ar | 
 | 5583 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 5584 | test -z "$AS" && AS=as | 
 | 5585 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5586 | test -z "$LTCC" && LTCC=$CC | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5587 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 5588 | test -z "$LD" && LD=ld | 
 | 5589 | test -z "$LN_S" && LN_S="ln -s" | 
 | 5590 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 5591 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5592 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5593 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 5594 | test -z "$RANLIB" && RANLIB=: | 
 | 5595 | test -z "$STRIP" && STRIP=: | 
 | 5596 | test -z "$ac_objext" && ac_objext=o | 
 | 5597 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5598 | # Determine commands to create old-style static archives. | 
 | 5599 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 5600 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 5601 | old_postuninstall_cmds= | 
 | 5602 |  | 
 | 5603 | if test -n "$RANLIB"; then | 
 | 5604 |   case $host_os in | 
 | 5605 |   openbsd*) | 
 | 5606 |     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 
 | 5607 |     ;; | 
 | 5608 |   *) | 
 | 5609 |     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 
 | 5610 |     ;; | 
 | 5611 |   esac | 
 | 5612 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
 | 5613 | fi | 
 | 5614 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5615 | # Only perform the check for file, if the check method requires it | 
 | 5616 | case $deplibs_check_method in | 
 | 5617 | file_magic*) | 
 | 5618 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 5619 |     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 5620 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | 
 | 5621 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5622 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5623 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5624 |   case $MAGIC_CMD in | 
 | 5625 | [\\/*] |  ?:[\\/]*) | 
 | 5626 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5627 |   ;; | 
 | 5628 | *) | 
 | 5629 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5630 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5631 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5632 |   for ac_dir in $ac_dummy; do | 
 | 5633 |     IFS="$lt_save_ifs" | 
 | 5634 |     test -z "$ac_dir" && ac_dir=. | 
 | 5635 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 5636 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 5637 |       if test -n "$file_magic_test_file"; then | 
 | 5638 | 	case $deplibs_check_method in | 
 | 5639 | 	"file_magic "*) | 
 | 5640 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5641 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5642 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5643 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5644 | 	    : | 
 | 5645 | 	  else | 
 | 5646 | 	    cat <<EOF 1>&2 | 
 | 5647 |  | 
 | 5648 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5649 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5650 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5651 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5652 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5653 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5654 | *** may want to report the problem to your system manager and/or to | 
 | 5655 | *** bug-libtool@gnu.org | 
 | 5656 |  | 
 | 5657 | EOF | 
 | 5658 | 	  fi ;; | 
 | 5659 | 	esac | 
 | 5660 |       fi | 
 | 5661 |       break | 
 | 5662 |     fi | 
 | 5663 |   done | 
 | 5664 |   IFS="$lt_save_ifs" | 
 | 5665 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5666 |   ;; | 
 | 5667 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5668 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5669 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5670 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5671 | if test -n "$MAGIC_CMD"; then | 
 | 5672 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5673 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5674 | else | 
 | 5675 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5676 | echo "${ECHO_T}no" >&6 | 
 | 5677 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5678 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5679 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 5680 |   if test -n "$ac_tool_prefix"; then | 
 | 5681 |     echo "$as_me:$LINENO: checking for file" >&5 | 
 | 5682 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | 
 | 5683 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 5684 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5685 | else | 
 | 5686 |   case $MAGIC_CMD in | 
 | 5687 | [\\/*] |  ?:[\\/]*) | 
 | 5688 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 5689 |   ;; | 
 | 5690 | *) | 
 | 5691 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 5692 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 5693 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 5694 |   for ac_dir in $ac_dummy; do | 
 | 5695 |     IFS="$lt_save_ifs" | 
 | 5696 |     test -z "$ac_dir" && ac_dir=. | 
 | 5697 |     if test -f $ac_dir/file; then | 
 | 5698 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 5699 |       if test -n "$file_magic_test_file"; then | 
 | 5700 | 	case $deplibs_check_method in | 
 | 5701 | 	"file_magic "*) | 
 | 5702 | 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
 | 5703 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5704 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 5705 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 5706 | 	    : | 
 | 5707 | 	  else | 
 | 5708 | 	    cat <<EOF 1>&2 | 
 | 5709 |  | 
 | 5710 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 5711 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 5712 | *** The result is that libtool may fail to recognize shared libraries | 
 | 5713 | *** as such.  This will affect the creation of libtool libraries that | 
 | 5714 | *** depend on shared libraries, but programs linked with such libtool | 
 | 5715 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 5716 | *** may want to report the problem to your system manager and/or to | 
 | 5717 | *** bug-libtool@gnu.org | 
 | 5718 |  | 
 | 5719 | EOF | 
 | 5720 | 	  fi ;; | 
 | 5721 | 	esac | 
 | 5722 |       fi | 
 | 5723 |       break | 
 | 5724 |     fi | 
 | 5725 |   done | 
 | 5726 |   IFS="$lt_save_ifs" | 
 | 5727 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 5728 |   ;; | 
 | 5729 | esac | 
 | 5730 | fi | 
 | 5731 |  | 
 | 5732 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 5733 | if test -n "$MAGIC_CMD"; then | 
 | 5734 |   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 5735 | echo "${ECHO_T}$MAGIC_CMD" >&6 | 
 | 5736 | else | 
 | 5737 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 5738 | echo "${ECHO_T}no" >&6 | 
 | 5739 | fi | 
 | 5740 |  | 
 | 5741 |   else | 
 | 5742 |     MAGIC_CMD=: | 
 | 5743 |   fi | 
 | 5744 | fi | 
 | 5745 |  | 
 | 5746 |   fi | 
 | 5747 |   ;; | 
 | 5748 | esac | 
 | 5749 |  | 
 | 5750 | enable_dlopen=no | 
 | 5751 | enable_win32_dll=no | 
 | 5752 |  | 
 | 5753 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
 | 5754 | if test "${enable_libtool_lock+set}" = set; then | 
 | 5755 |   enableval="$enable_libtool_lock" | 
 | 5756 |  | 
 | 5757 | fi; | 
 | 5758 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 5759 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5760 |  | 
 | 5761 | # Check whether --with-pic or --without-pic was given. | 
 | 5762 | if test "${with_pic+set}" = set; then | 
 | 5763 |   withval="$with_pic" | 
 | 5764 |   pic_mode="$withval" | 
 | 5765 | else | 
 | 5766 |   pic_mode=default | 
 | 5767 | fi; | 
 | 5768 | test -z "$pic_mode" && pic_mode=default | 
 | 5769 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5770 | # Use C for the default configuration in the libtool script | 
 | 5771 | tagname= | 
 | 5772 | lt_save_CC="$CC" | 
 | 5773 | ac_ext=c | 
 | 5774 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5778 |  | 
 | 5779 |  | 
 | 5780 | # Source file extension for C test sources. | 
 | 5781 | ac_ext=c | 
 | 5782 |  | 
 | 5783 | # Object file extension for compiled C test sources. | 
 | 5784 | objext=o | 
 | 5785 | objext=$objext | 
 | 5786 |  | 
 | 5787 | # Code to be used in simple compile tests | 
 | 5788 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 5789 |  | 
 | 5790 | # Code to be used in simple link tests | 
 | 5791 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 5792 |  | 
 | 5793 |  | 
 | 5794 | # If no C compiler was specified, use CC. | 
 | 5795 | LTCC=${LTCC-"$CC"} | 
 | 5796 |  | 
 | 5797 | # Allow CC to be a program name with arguments. | 
 | 5798 | compiler=$CC | 
 | 5799 |  | 
 | 5800 |  | 
 | 5801 | # | 
 | 5802 | # Check for any special shared library compilation flags. | 
 | 5803 | # | 
 | 5804 | lt_prog_cc_shlib= | 
 | 5805 | if test "$GCC" = no; then | 
 | 5806 |   case $host_os in | 
 | 5807 |   sco3.2v5*) | 
 | 5808 |     lt_prog_cc_shlib='-belf' | 
 | 5809 |     ;; | 
 | 5810 |   esac | 
 | 5811 | fi | 
 | 5812 | if test -n "$lt_prog_cc_shlib"; then | 
 | 5813 |   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | 
 | 5814 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | 
 | 5815 |   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then : | 
 | 5816 |   else | 
 | 5817 |     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | 
 | 5818 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | 
 | 5819 |     lt_cv_prog_cc_can_build_shared=no | 
 | 5820 |   fi | 
 | 5821 | fi | 
 | 5822 |  | 
 | 5823 |  | 
 | 5824 | # | 
 | 5825 | # Check to make sure the static flag actually works. | 
 | 5826 | # | 
 | 5827 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | 
 | 5828 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | 
 | 5829 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5830 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5831 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5832 |   lt_prog_compiler_static_works=no | 
 | 5833 |    save_LDFLAGS="$LDFLAGS" | 
 | 5834 |    LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | 
 | 5835 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 5836 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 5837 |      # The compiler can only warn and ignore the option if not recognized | 
 | 5838 |      # So say no if there are warnings | 
 | 5839 |      if test -s conftest.err; then | 
 | 5840 |        # Append any errors to the config.log. | 
 | 5841 |        cat conftest.err 1>&5 | 
 | 5842 |      else | 
 | 5843 |        lt_prog_compiler_static_works=yes | 
 | 5844 |      fi | 
 | 5845 |    fi | 
 | 5846 |    $rm conftest* | 
 | 5847 |    LDFLAGS="$save_LDFLAGS" | 
 | 5848 |  | 
 | 5849 | fi | 
 | 5850 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 5851 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | 
 | 5852 |  | 
 | 5853 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 5854 |     : | 
 | 5855 | else | 
 | 5856 |     lt_prog_compiler_static= | 
 | 5857 | fi | 
 | 5858 |  | 
 | 5859 |  | 
 | 5860 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5861 |  | 
 | 5862 | lt_prog_compiler_no_builtin_flag= | 
 | 5863 |  | 
 | 5864 | if test "$GCC" = yes; then | 
 | 5865 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 5866 |  | 
 | 5867 |   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
 | 5868 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 5869 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 5870 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5871 | else | 
 | 5872 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 5873 |   ac_outfile=conftest.$ac_objext | 
 | 5874 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 5875 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 5876 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 5877 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 5878 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 5879 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 5880 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 5881 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 5882 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 5883 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 5884 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 5885 |    (eval echo "\"\$as_me:5885: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5886 |    (eval "$lt_compile" 2>conftest.err) | 
 | 5887 |    ac_status=$? | 
 | 5888 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 5889 |    echo "$as_me:5889: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5890 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 5891 |      # The compiler can only warn and ignore the option if not recognized | 
 | 5892 |      # So say no if there are warnings | 
 | 5893 |      if test ! -s conftest.err; then | 
 | 5894 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 5895 |      fi | 
 | 5896 |    fi | 
 | 5897 |    $rm conftest* | 
 | 5898 |  | 
 | 5899 | fi | 
 | 5900 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 5901 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 5902 |  | 
 | 5903 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 5904 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 5905 | else | 
 | 5906 |     : | 
 | 5907 | fi | 
 | 5908 |  | 
 | 5909 | fi | 
 | 5910 |  | 
 | 5911 | lt_prog_compiler_wl= | 
 | 5912 | lt_prog_compiler_pic= | 
 | 5913 | lt_prog_compiler_static= | 
 | 5914 |  | 
 | 5915 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 5916 | 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] | 5917 |  | 
 | 5918 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5919 |     lt_prog_compiler_wl='-Wl,' | 
 | 5920 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5921 |  | 
 | 5922 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5923 |       aix*) | 
 | 5924 |       # All AIX code is PIC. | 
 | 5925 |       if test "$host_cpu" = ia64; then | 
 | 5926 | 	# AIX 5 now supports IA64 processor | 
 | 5927 | 	lt_prog_compiler_static='-Bstatic' | 
 | 5928 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5929 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5930 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5931 |     amigaos*) | 
 | 5932 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 5933 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 5934 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5935 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5936 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5937 |  | 
 | 5938 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5939 |       # PIC is the default for these OSes. | 
 | 5940 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5941 |  | 
 | 5942 |     mingw* | pw32* | os2*) | 
 | 5943 |       # This hack is so that the source file can tell whether it is being | 
 | 5944 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 5945 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 5946 |       ;; | 
 | 5947 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5948 |     darwin* | rhapsody*) | 
 | 5949 |       # PIC is the default on this platform | 
 | 5950 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5951 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5952 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5953 |  | 
 | 5954 |     msdosdjgpp*) | 
 | 5955 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 5956 |       # on systems that don't support them. | 
 | 5957 |       lt_prog_compiler_can_build_shared=no | 
 | 5958 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5959 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5960 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5961 |     sysv4*MP*) | 
 | 5962 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5963 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5964 |       fi | 
 | 5965 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5966 |  | 
 | 5967 |     hpux*) | 
 | 5968 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 5969 |       # not for PA HP-UX. | 
 | 5970 |       case "$host_cpu" in | 
 | 5971 |       hppa*64*|ia64*) | 
 | 5972 | 	# +Z the default | 
 | 5973 | 	;; | 
 | 5974 |       *) | 
 | 5975 | 	lt_prog_compiler_pic='-fPIC' | 
 | 5976 | 	;; | 
 | 5977 |       esac | 
 | 5978 |       ;; | 
 | 5979 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5980 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5981 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5982 |       ;; | 
 | 5983 |     esac | 
 | 5984 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5985 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5986 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5987 |     aix*) | 
 | 5988 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5989 |       if test "$host_cpu" = ia64; then | 
 | 5990 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5991 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5992 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5993 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 5994 |       fi | 
 | 5995 |       ;; | 
 | 5996 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 5997 |     mingw* | pw32* | os2*) | 
 | 5998 |       # This hack is so that the source file can tell whether it is being | 
 | 5999 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 6000 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 6001 |       ;; | 
 | 6002 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6003 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6004 |       lt_prog_compiler_wl='-Wl,' | 
 | 6005 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 6006 |       # not for PA HP-UX. | 
 | 6007 |       case "$host_cpu" in | 
 | 6008 |       hppa*64*|ia64*) | 
 | 6009 | 	# +Z the default | 
 | 6010 | 	;; | 
 | 6011 |       *) | 
 | 6012 | 	lt_prog_compiler_pic='+Z' | 
 | 6013 | 	;; | 
 | 6014 |       esac | 
 | 6015 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 6016 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6017 |       ;; | 
 | 6018 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6019 |     irix5* | irix6* | nonstopux*) | 
 | 6020 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6021 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6022 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6023 |       ;; | 
 | 6024 |  | 
 | 6025 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6026 |       lt_prog_compiler_pic='-KPIC' | 
 | 6027 |       lt_prog_compiler_static='-Bstatic' | 
 | 6028 |       ;; | 
 | 6029 |  | 
 | 6030 |     linux*) | 
 | 6031 |       case $CC in | 
 | 6032 |       icc|ecc) | 
 | 6033 | 	lt_prog_compiler_wl='-Wl,' | 
 | 6034 | 	lt_prog_compiler_pic='-KPIC' | 
 | 6035 | 	lt_prog_compiler_static='-static' | 
 | 6036 |         ;; | 
 | 6037 |       ccc) | 
 | 6038 |         lt_prog_compiler_wl='-Wl,' | 
 | 6039 |         # All Alpha code is PIC. | 
 | 6040 |         lt_prog_compiler_static='-non_shared' | 
 | 6041 |         ;; | 
 | 6042 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6043 |       ;; | 
 | 6044 |  | 
 | 6045 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6046 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6047 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6048 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6049 |       ;; | 
 | 6050 |  | 
 | 6051 |     sco3.2v5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6052 |       lt_prog_compiler_pic='-Kpic' | 
 | 6053 |       lt_prog_compiler_static='-dn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6054 |       ;; | 
 | 6055 |  | 
 | 6056 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6057 |       lt_prog_compiler_wl='-Wl,' | 
 | 6058 |       lt_prog_compiler_pic='-KPIC' | 
 | 6059 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6060 |       ;; | 
 | 6061 |  | 
 | 6062 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6063 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 6064 |       lt_prog_compiler_pic='-PIC' | 
 | 6065 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6066 |       ;; | 
 | 6067 |  | 
 | 6068 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6069 |       lt_prog_compiler_wl='-Wl,' | 
 | 6070 |       lt_prog_compiler_pic='-KPIC' | 
 | 6071 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6072 |       ;; | 
 | 6073 |  | 
 | 6074 |     sysv4*MP*) | 
 | 6075 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6076 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 6077 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6078 |       fi | 
 | 6079 |       ;; | 
 | 6080 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6081 |     uts4*) | 
 | 6082 |       lt_prog_compiler_pic='-pic' | 
 | 6083 |       lt_prog_compiler_static='-Bstatic' | 
 | 6084 |       ;; | 
 | 6085 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6086 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6087 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6088 |       ;; | 
 | 6089 |     esac | 
 | 6090 |   fi | 
 | 6091 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6092 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 6093 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6094 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6095 | # | 
 | 6096 | # Check to make sure the PIC flag actually works. | 
 | 6097 | # | 
 | 6098 | if test -n "$lt_prog_compiler_pic"; then | 
 | 6099 |   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
 | 6100 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | 
 | 6101 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6102 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6103 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6104 |   lt_prog_compiler_pic_works=no | 
 | 6105 |   ac_outfile=conftest.$ac_objext | 
 | 6106 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 6107 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 6108 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6109 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6110 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6111 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6112 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 6113 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6114 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6115 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6116 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 6117 |    (eval echo "\"\$as_me:6117: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6118 |    (eval "$lt_compile" 2>conftest.err) | 
 | 6119 |    ac_status=$? | 
 | 6120 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 6121 |    echo "$as_me:6121: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6122 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 6123 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6124 |      # So say no if there are warnings | 
 | 6125 |      if test ! -s conftest.err; then | 
 | 6126 |        lt_prog_compiler_pic_works=yes | 
 | 6127 |      fi | 
 | 6128 |    fi | 
 | 6129 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6130 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6131 | fi | 
 | 6132 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 6133 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6134 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6135 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 6136 |     case $lt_prog_compiler_pic in | 
 | 6137 |      "" | " "*) ;; | 
 | 6138 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 6139 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6140 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6141 |     lt_prog_compiler_pic= | 
 | 6142 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6143 | fi | 
 | 6144 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6145 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6146 | case "$host_os" in | 
 | 6147 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 6148 |   *djgpp*) | 
 | 6149 |     lt_prog_compiler_pic= | 
 | 6150 |     ;; | 
 | 6151 |   *) | 
 | 6152 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 6153 |     ;; | 
 | 6154 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6155 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6156 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 6157 | 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] | 6158 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6159 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6160 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6161 |   lt_cv_prog_compiler_c_o=no | 
 | 6162 |    $rm -r conftest 2>/dev/null | 
 | 6163 |    mkdir conftest | 
 | 6164 |    cd conftest | 
 | 6165 |    mkdir out | 
 | 6166 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6167 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6168 |    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
 | 6169 |    # that will create temporary files in the current directory regardless of | 
 | 6170 |    # the output directory.  Thus, making CWD read-only will cause this test | 
 | 6171 |    # to fail, enabling locking or at least warning the user not to do parallel | 
 | 6172 |    # builds. | 
 | 6173 |    chmod -w . | 
 | 6174 |  | 
 | 6175 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 6176 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 6177 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 6178 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 6179 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 6180 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 6181 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 6182 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 6183 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 6184 |    (eval echo "\"\$as_me:6184: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6185 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 6186 |    ac_status=$? | 
 | 6187 |    cat out/conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 6188 |    echo "$as_me:6188: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6189 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 6190 |    then | 
 | 6191 |      # The compiler can only warn and ignore the option if not recognized | 
 | 6192 |      # So say no if there are warnings | 
 | 6193 |      if test ! -s out/conftest.err; then | 
 | 6194 |        lt_cv_prog_compiler_c_o=yes | 
 | 6195 |      fi | 
 | 6196 |    fi | 
 | 6197 |    chmod u+w . | 
 | 6198 |    $rm conftest* out/* | 
 | 6199 |    rmdir out | 
 | 6200 |    cd .. | 
 | 6201 |    rmdir conftest | 
 | 6202 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6203 |  | 
 | 6204 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6205 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 6206 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6207 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6208 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6209 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6210 | 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] | 6211 |   # do not overwrite the value of need_locks provided by the user | 
 | 6212 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 6213 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 6214 |   hard_links=yes | 
 | 6215 |   $rm conftest* | 
 | 6216 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6217 |   touch conftest.a | 
 | 6218 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 6219 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 6220 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 6221 | echo "${ECHO_T}$hard_links" >&6 | 
 | 6222 |   if test "$hard_links" = no; then | 
 | 6223 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 6224 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 6225 |     need_locks=warn | 
 | 6226 |   fi | 
 | 6227 | else | 
 | 6228 |   need_locks=no | 
 | 6229 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6230 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6231 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 6232 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 6233 |  | 
 | 6234 |   runpath_var= | 
 | 6235 |   allow_undefined_flag= | 
 | 6236 |   enable_shared_with_static_runtimes=no | 
 | 6237 |   archive_cmds= | 
 | 6238 |   archive_expsym_cmds= | 
 | 6239 |   old_archive_From_new_cmds= | 
 | 6240 |   old_archive_from_expsyms_cmds= | 
 | 6241 |   export_dynamic_flag_spec= | 
 | 6242 |   whole_archive_flag_spec= | 
 | 6243 |   thread_safe_flag_spec= | 
 | 6244 |   hardcode_libdir_flag_spec= | 
 | 6245 |   hardcode_libdir_flag_spec_ld= | 
 | 6246 |   hardcode_libdir_separator= | 
 | 6247 |   hardcode_direct=no | 
 | 6248 |   hardcode_minus_L=no | 
 | 6249 |   hardcode_shlibpath_var=unsupported | 
 | 6250 |   link_all_deplibs=unknown | 
 | 6251 |   hardcode_automatic=no | 
 | 6252 |   module_cmds= | 
 | 6253 |   module_expsym_cmds= | 
 | 6254 |   always_export_symbols=no | 
 | 6255 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6256 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 6257 |   # included in the symbol list | 
 | 6258 |   include_expsyms= | 
 | 6259 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 6260 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 6261 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 6262 |   # as well as any symbol that contains `d'. | 
 | 6263 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 6264 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 6265 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 6266 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 6267 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 6268 |   # preloaded symbol tables. | 
 | 6269 |   extract_expsyms_cmds= | 
 | 6270 |  | 
 | 6271 |   case $host_os in | 
 | 6272 |   cygwin* | mingw* | pw32*) | 
 | 6273 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 6274 |     # When not using gcc, we currently assume that we are using | 
 | 6275 |     # Microsoft Visual C++. | 
 | 6276 |     if test "$GCC" != yes; then | 
 | 6277 |       with_gnu_ld=no | 
 | 6278 |     fi | 
 | 6279 |     ;; | 
 | 6280 |   openbsd*) | 
 | 6281 |     with_gnu_ld=no | 
 | 6282 |     ;; | 
 | 6283 |   esac | 
 | 6284 |  | 
 | 6285 |   ld_shlibs=yes | 
 | 6286 |   if test "$with_gnu_ld" = yes; then | 
 | 6287 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 6288 |     wlarc='${wl}' | 
 | 6289 |  | 
 | 6290 |     # See if GNU ld supports shared libraries. | 
 | 6291 |     case $host_os in | 
 | 6292 |     aix3* | aix4* | aix5*) | 
 | 6293 |       # On AIX/PPC, the GNU linker is very broken | 
 | 6294 |       if test "$host_cpu" != ia64; then | 
 | 6295 | 	ld_shlibs=no | 
 | 6296 | 	cat <<EOF 1>&2 | 
 | 6297 |  | 
 | 6298 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 6299 | *** to be unable to reliably create shared libraries on AIX. | 
 | 6300 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 6301 | *** really care for shared libraries, you may want to modify your PATH | 
 | 6302 | *** so that a non-GNU linker is found, and then restart. | 
 | 6303 |  | 
 | 6304 | EOF | 
 | 6305 |       fi | 
 | 6306 |       ;; | 
 | 6307 |  | 
 | 6308 |     amigaos*) | 
 | 6309 |       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)' | 
 | 6310 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6311 |       hardcode_minus_L=yes | 
 | 6312 |  | 
 | 6313 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 6314 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 6315 |       # to version 4, is to share data among multiple programs linked | 
 | 6316 |       # with the same dynamic library.  Since this doesn't match the | 
 | 6317 |       # behavior of shared libraries on other platforms, we can't use | 
 | 6318 |       # them. | 
 | 6319 |       ld_shlibs=no | 
 | 6320 |       ;; | 
 | 6321 |  | 
 | 6322 |     beos*) | 
 | 6323 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6324 | 	allow_undefined_flag=unsupported | 
 | 6325 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 6326 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 6327 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6328 |       else | 
 | 6329 | 	ld_shlibs=no | 
 | 6330 |       fi | 
 | 6331 |       ;; | 
 | 6332 |  | 
 | 6333 |     cygwin* | mingw* | pw32*) | 
 | 6334 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 6335 |       # as there is no search path for DLLs. | 
 | 6336 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6337 |       allow_undefined_flag=unsupported | 
 | 6338 |       always_export_symbols=no | 
 | 6339 |       enable_shared_with_static_runtimes=yes | 
 | 6340 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 6341 |  | 
 | 6342 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 6343 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 6344 | 	# If the export-symbols file already is a .def file (1st line | 
 | 6345 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 6346 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 6347 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 6348 | 	else | 
 | 6349 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 6350 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
 | 6351 | 	fi~ | 
 | 6352 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
 | 6353 |       else | 
 | 6354 | 	ld_shlibs=no | 
 | 6355 |       fi | 
 | 6356 |       ;; | 
 | 6357 |  | 
 | 6358 |     netbsd*) | 
 | 6359 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 6360 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 6361 | 	wlarc= | 
 | 6362 |       else | 
 | 6363 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6364 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6365 |       fi | 
 | 6366 |       ;; | 
 | 6367 |  | 
 | 6368 |     solaris* | sysv5*) | 
 | 6369 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 6370 | 	ld_shlibs=no | 
 | 6371 | 	cat <<EOF 1>&2 | 
 | 6372 |  | 
 | 6373 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 6374 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 6375 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 6376 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 6377 | *** your PATH or compiler configuration so that the native linker is | 
 | 6378 | *** used, and then restart. | 
 | 6379 |  | 
 | 6380 | EOF | 
 | 6381 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6382 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6383 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6384 |       else | 
 | 6385 | 	ld_shlibs=no | 
 | 6386 |       fi | 
 | 6387 |       ;; | 
 | 6388 |  | 
 | 6389 |     sunos4*) | 
 | 6390 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 6391 |       wlarc= | 
 | 6392 |       hardcode_direct=yes | 
 | 6393 |       hardcode_shlibpath_var=no | 
 | 6394 |       ;; | 
 | 6395 |  | 
 | 6396 |     *) | 
 | 6397 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 6398 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 6399 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 6400 |       else | 
 | 6401 | 	ld_shlibs=no | 
 | 6402 |       fi | 
 | 6403 |       ;; | 
 | 6404 |     esac | 
 | 6405 |  | 
 | 6406 |     if test "$ld_shlibs" = yes; then | 
 | 6407 |       runpath_var=LD_RUN_PATH | 
 | 6408 |       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 6409 |       export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 6410 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 6411 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 6412 |  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 6413 |       else | 
 | 6414 |   	whole_archive_flag_spec= | 
 | 6415 |       fi | 
 | 6416 |     fi | 
 | 6417 |   else | 
 | 6418 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 6419 |     case $host_os in | 
 | 6420 |     aix3*) | 
 | 6421 |       allow_undefined_flag=unsupported | 
 | 6422 |       always_export_symbols=yes | 
 | 6423 |       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' | 
 | 6424 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 6425 |       # are no directories specified by -L. | 
 | 6426 |       hardcode_minus_L=yes | 
 | 6427 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 6428 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 6429 | 	# broken collect2. | 
 | 6430 | 	hardcode_direct=unsupported | 
 | 6431 |       fi | 
 | 6432 |       ;; | 
 | 6433 |  | 
 | 6434 |     aix4* | aix5*) | 
 | 6435 |       if test "$host_cpu" = ia64; then | 
 | 6436 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 6437 | 	# have to do anything special. | 
 | 6438 | 	aix_use_runtimelinking=no | 
 | 6439 | 	exp_sym_flag='-Bexport' | 
 | 6440 | 	no_entry_flag="" | 
 | 6441 |       else | 
 | 6442 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 6443 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 6444 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 6445 | 	  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' | 
 | 6446 | 	else | 
 | 6447 | 	  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' | 
 | 6448 | 	fi | 
 | 6449 | 	aix_use_runtimelinking=no | 
 | 6450 |  | 
 | 6451 | 	# Test if we are trying to use run time linking or normal | 
 | 6452 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 6453 | 	# need to do runtime linking. | 
 | 6454 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 6455 | 	  for ld_flag in $LDFLAGS; do | 
 | 6456 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 6457 |   	    aix_use_runtimelinking=yes | 
 | 6458 |   	    break | 
 | 6459 |   	  fi | 
 | 6460 | 	  done | 
 | 6461 | 	esac | 
 | 6462 |  | 
 | 6463 | 	exp_sym_flag='-bexport' | 
 | 6464 | 	no_entry_flag='-bnoentry' | 
 | 6465 |       fi | 
 | 6466 |  | 
 | 6467 |       # When large executables or shared objects are built, AIX ld can | 
 | 6468 |       # have problems creating the table of contents.  If linking a library | 
 | 6469 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 6470 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 6471 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 6472 |  | 
 | 6473 |       archive_cmds='' | 
 | 6474 |       hardcode_direct=yes | 
 | 6475 |       hardcode_libdir_separator=':' | 
 | 6476 |       link_all_deplibs=yes | 
 | 6477 |  | 
 | 6478 |       if test "$GCC" = yes; then | 
 | 6479 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 6480 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 6481 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 6482 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 6483 | 	  if test -f "$collect2name" && \ | 
 | 6484 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 6485 | 	  then | 
 | 6486 |   	  # We have reworked collect2 | 
 | 6487 |   	  hardcode_direct=yes | 
 | 6488 | 	  else | 
 | 6489 |   	  # We have old collect2 | 
 | 6490 |   	  hardcode_direct=unsupported | 
 | 6491 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 6492 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 6493 |   	  # to unsupported forces relinking | 
 | 6494 |   	  hardcode_minus_L=yes | 
 | 6495 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 6496 |   	  hardcode_libdir_separator= | 
 | 6497 | 	  fi | 
 | 6498 | 	esac | 
 | 6499 | 	shared_flag='-shared' | 
 | 6500 |       else | 
 | 6501 | 	# not using gcc | 
 | 6502 | 	if test "$host_cpu" = ia64; then | 
 | 6503 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 6504 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 6505 | 	  shared_flag='-G' | 
 | 6506 | 	else | 
 | 6507 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 6508 | 	    shared_flag='${wl}-G' | 
 | 6509 | 	  else | 
 | 6510 | 	    shared_flag='${wl}-bM:SRE' | 
 | 6511 |   	fi | 
 | 6512 | 	fi | 
 | 6513 |       fi | 
 | 6514 |  | 
 | 6515 |       # It seems that -bexpall does not export symbols beginning with | 
 | 6516 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 6517 |       always_export_symbols=yes | 
 | 6518 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 6519 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 6520 | 	# -berok will link without error, but may produce a broken library. | 
 | 6521 | 	allow_undefined_flag='-berok' | 
 | 6522 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 6523 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6524 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6525 | /* confdefs.h.  */ | 
 | 6526 | _ACEOF | 
 | 6527 | cat confdefs.h >>conftest.$ac_ext | 
 | 6528 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6529 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6530 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6531 | int | 
 | 6532 | main () | 
 | 6533 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6534 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6535 |   ; | 
 | 6536 |   return 0; | 
 | 6537 | } | 
 | 6538 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6539 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6541 |   (eval $ac_link) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6542 |   ac_status=$? | 
 | 6543 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6544 |   (exit $ac_status); } && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6545 |          { ac_try='test -s conftest$ac_exeext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6546 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6547 |   (eval $ac_try) 2>&5 | 
 | 6548 |   ac_status=$? | 
 | 6549 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6550 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6551 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6552 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6553 | }'` | 
 | 6554 | # Check for a 64-bit object if we didn't find anything. | 
 | 6555 | 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; } | 
 | 6556 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6557 | else | 
 | 6558 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6559 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6560 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6561 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 6563 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6564 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6565 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6566 | 	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" | 
 | 6567 |        else | 
 | 6568 | 	if test "$host_cpu" = ia64; then | 
 | 6569 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 6570 | 	  allow_undefined_flag="-z nodefs" | 
 | 6571 | 	  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" | 
 | 6572 | 	else | 
 | 6573 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 6574 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 6575 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6576 | /* confdefs.h.  */ | 
 | 6577 | _ACEOF | 
 | 6578 | cat confdefs.h >>conftest.$ac_ext | 
 | 6579 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6580 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6581 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6582 | int | 
 | 6583 | main () | 
 | 6584 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6585 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6586 |   ; | 
 | 6587 |   return 0; | 
 | 6588 | } | 
 | 6589 | _ACEOF | 
 | 6590 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 6591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 6592 |   (eval $ac_link) 2>&5 | 
 | 6593 |   ac_status=$? | 
 | 6594 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6595 |   (exit $ac_status); } && | 
 | 6596 |          { ac_try='test -s conftest$ac_exeext' | 
 | 6597 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 6598 |   (eval $ac_try) 2>&5 | 
 | 6599 |   ac_status=$? | 
 | 6600 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6601 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6602 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6603 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 6604 | }'` | 
 | 6605 | # Check for a 64-bit object if we didn't find anything. | 
 | 6606 | 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; } | 
 | 6607 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6608 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6609 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 6610 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6611 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6612 | fi | 
 | 6613 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 6614 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6615 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6616 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 6617 | 	  # Warning - without using the other run time loading flags, | 
 | 6618 | 	  # -berok will link without error, but may produce a broken library. | 
 | 6619 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 6620 | 	  allow_undefined_flag=' ${wl}-berok' | 
 | 6621 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 6622 | 	  always_export_symbols=yes | 
 | 6623 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 6624 | 	  whole_archive_flag_spec=' ' | 
 | 6625 | 	  archive_cmds_need_lc=yes | 
 | 6626 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
 | 6627 | 	  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] | 6628 | 	fi | 
 | 6629 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6630 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6631 |  | 
 | 6632 |     amigaos*) | 
 | 6633 |       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)' | 
 | 6634 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6635 |       hardcode_minus_L=yes | 
 | 6636 |       # see comment about different semantics on the GNU ld section | 
 | 6637 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6638 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6639 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6640 |     bsdi4*) | 
 | 6641 |       export_dynamic_flag_spec=-rdynamic | 
 | 6642 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6643 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6644 |     cygwin* | mingw* | pw32*) | 
 | 6645 |       # When not using gcc, we currently assume that we are using | 
 | 6646 |       # Microsoft Visual C++. | 
 | 6647 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 6648 |       # no search path for DLLs. | 
 | 6649 |       hardcode_libdir_flag_spec=' ' | 
 | 6650 |       allow_undefined_flag=unsupported | 
 | 6651 |       # Tell ltmain to make .lib files, not .a files. | 
 | 6652 |       libext=lib | 
 | 6653 |       # Tell ltmain to make .dll files, not .so files. | 
 | 6654 |       shrext=".dll" | 
 | 6655 |       # FIXME: Setting linknames here is a bad hack. | 
 | 6656 |       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
 | 6657 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 6658 |       old_archive_From_new_cmds='true' | 
 | 6659 |       # FIXME: Should let the user specify the lib program. | 
 | 6660 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 6661 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 6662 |       enable_shared_with_static_runtimes=yes | 
 | 6663 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6664 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6665 |     darwin* | rhapsody*) | 
 | 6666 |     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 6667 |       archive_cmds_need_lc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6668 |       case "$host_os" in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6669 |       rhapsody* | darwin1.[012]) | 
 | 6670 | 	allow_undefined_flag='-undefined suppress' | 
 | 6671 | 	;; | 
 | 6672 |       *) # Darwin 1.3 on | 
 | 6673 | 	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6674 | 	;; | 
 | 6675 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6676 |       # FIXME: Relying on posixy $() will cause problems for | 
 | 6677 |       #        cross-compilation, but unfortunately the echo tests do not | 
 | 6678 |       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
 | 6679 |       #	       `"' quotes if we put them in here... so don't! | 
 | 6680 |     	lt_int_apple_cc_single_mod=no | 
 | 6681 |     	output_verbose_link_cmd='echo' | 
 | 6682 |     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
 | 6683 |     	  lt_int_apple_cc_single_mod=yes | 
 | 6684 |     	fi | 
 | 6685 |     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 6686 |     	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 6687 |     	else | 
 | 6688 |         archive_cmds='$CC -r ${wl}-bind_at_load -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' | 
 | 6689 |       fi | 
 | 6690 |       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
 | 6691 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 6692 |         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 6693 |           archive_expsym_cmds='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}' | 
 | 6694 |         else | 
 | 6695 |           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
 | 6696 |         fi | 
 | 6697 |           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 6698 |       hardcode_direct=no | 
 | 6699 |       hardcode_automatic=yes | 
 | 6700 |       hardcode_shlibpath_var=unsupported | 
 | 6701 |       whole_archive_flag_spec='-all_load $convenience' | 
 | 6702 |       link_all_deplibs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6703 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6704 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6705 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6706 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6707 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6708 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6709 |       hardcode_shlibpath_var=no | 
 | 6710 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6711 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6712 |     freebsd1*) | 
 | 6713 |       ld_shlibs=no | 
 | 6714 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6715 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6716 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 6717 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 6718 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 6719 |     # extra space). | 
 | 6720 |     freebsd2.2*) | 
 | 6721 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 6722 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 6723 |       hardcode_direct=yes | 
 | 6724 |       hardcode_shlibpath_var=no | 
 | 6725 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6726 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6727 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 6728 |     freebsd2*) | 
 | 6729 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 6730 |       hardcode_direct=yes | 
 | 6731 |       hardcode_minus_L=yes | 
 | 6732 |       hardcode_shlibpath_var=no | 
 | 6733 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6734 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6735 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
 | 6736 |     freebsd*) | 
 | 6737 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6738 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 6739 |       hardcode_direct=yes | 
 | 6740 |       hardcode_shlibpath_var=no | 
 | 6741 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6742 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6743 |     hpux9*) | 
 | 6744 |       if test "$GCC" = yes; then | 
 | 6745 | 	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' | 
 | 6746 |       else | 
 | 6747 | 	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' | 
 | 6748 |       fi | 
 | 6749 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 6750 |       hardcode_libdir_separator=: | 
 | 6751 |       hardcode_direct=yes | 
 | 6752 |  | 
 | 6753 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 6754 |       # but as the default location of the library. | 
 | 6755 |       hardcode_minus_L=yes | 
 | 6756 |       export_dynamic_flag_spec='${wl}-E' | 
 | 6757 |       ;; | 
 | 6758 |  | 
 | 6759 |     hpux10* | hpux11*) | 
 | 6760 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 6761 | 	case "$host_cpu" in | 
 | 6762 | 	hppa*64*|ia64*) | 
 | 6763 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6764 | 	  ;; | 
 | 6765 | 	*) | 
 | 6766 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6767 | 	  ;; | 
 | 6768 | 	esac | 
 | 6769 |       else | 
 | 6770 | 	case "$host_cpu" in | 
 | 6771 | 	hppa*64*|ia64*) | 
 | 6772 | 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6773 | 	  ;; | 
 | 6774 | 	*) | 
 | 6775 | 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 6776 | 	  ;; | 
 | 6777 | 	esac | 
 | 6778 |       fi | 
 | 6779 |       if test "$with_gnu_ld" = no; then | 
 | 6780 | 	case "$host_cpu" in | 
 | 6781 | 	hppa*64*) | 
 | 6782 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 6783 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 6784 | 	  hardcode_libdir_separator=: | 
 | 6785 | 	  hardcode_direct=no | 
 | 6786 | 	  hardcode_shlibpath_var=no | 
 | 6787 | 	  ;; | 
 | 6788 | 	ia64*) | 
 | 6789 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 6790 | 	  hardcode_direct=no | 
 | 6791 | 	  hardcode_shlibpath_var=no | 
 | 6792 |  | 
 | 6793 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 6794 | 	  # but as the default location of the library. | 
 | 6795 | 	  hardcode_minus_L=yes | 
 | 6796 | 	  ;; | 
 | 6797 | 	*) | 
 | 6798 | 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 6799 | 	  hardcode_libdir_separator=: | 
 | 6800 | 	  hardcode_direct=yes | 
 | 6801 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 6802 |  | 
 | 6803 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 6804 | 	  # but as the default location of the library. | 
 | 6805 | 	  hardcode_minus_L=yes | 
 | 6806 | 	  ;; | 
 | 6807 | 	esac | 
 | 6808 |       fi | 
 | 6809 |       ;; | 
 | 6810 |  | 
 | 6811 |     irix5* | irix6* | nonstopux*) | 
 | 6812 |       if test "$GCC" = yes; then | 
 | 6813 | 	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' | 
 | 6814 |       else | 
 | 6815 | 	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' | 
 | 6816 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 6817 |       fi | 
 | 6818 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 6819 |       hardcode_libdir_separator=: | 
 | 6820 |       link_all_deplibs=yes | 
 | 6821 |       ;; | 
 | 6822 |  | 
 | 6823 |     netbsd*) | 
 | 6824 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 6825 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 6826 |       else | 
 | 6827 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 6828 |       fi | 
 | 6829 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 6830 |       hardcode_direct=yes | 
 | 6831 |       hardcode_shlibpath_var=no | 
 | 6832 |       ;; | 
 | 6833 |  | 
 | 6834 |     newsos6) | 
 | 6835 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6836 |       hardcode_direct=yes | 
 | 6837 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 6838 |       hardcode_libdir_separator=: | 
 | 6839 |       hardcode_shlibpath_var=no | 
 | 6840 |       ;; | 
 | 6841 |  | 
 | 6842 |     openbsd*) | 
 | 6843 |       hardcode_direct=yes | 
 | 6844 |       hardcode_shlibpath_var=no | 
 | 6845 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 6846 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6847 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 6848 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 6849 |       else | 
 | 6850 |        case $host_os in | 
 | 6851 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 6852 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 6853 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 6854 | 	   ;; | 
 | 6855 | 	 *) | 
 | 6856 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6857 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 6858 | 	   ;; | 
 | 6859 |        esac | 
 | 6860 |       fi | 
 | 6861 |       ;; | 
 | 6862 |  | 
 | 6863 |     os2*) | 
 | 6864 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6865 |       hardcode_minus_L=yes | 
 | 6866 |       allow_undefined_flag=unsupported | 
 | 6867 |       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' | 
 | 6868 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 6869 |       ;; | 
 | 6870 |  | 
 | 6871 |     osf3*) | 
 | 6872 |       if test "$GCC" = yes; then | 
 | 6873 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 6874 | 	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' | 
 | 6875 |       else | 
 | 6876 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 6877 | 	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' | 
 | 6878 |       fi | 
 | 6879 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 6880 |       hardcode_libdir_separator=: | 
 | 6881 |       ;; | 
 | 6882 |  | 
 | 6883 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 6884 |       if test "$GCC" = yes; then | 
 | 6885 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 6886 | 	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' | 
 | 6887 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 6888 |       else | 
 | 6889 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 6890 | 	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' | 
 | 6891 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
 | 6892 | 	$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' | 
 | 6893 |  | 
 | 6894 | 	# Both c and cxx compiler support -rpath directly | 
 | 6895 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 6896 |       fi | 
 | 6897 |       hardcode_libdir_separator=: | 
 | 6898 |       ;; | 
 | 6899 |  | 
 | 6900 |     sco3.2v5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6901 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6902 |       hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6903 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6904 |       runpath_var=LD_RUN_PATH | 
 | 6905 |       hardcode_runpath_var=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6906 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6907 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6908 |     solaris*) | 
 | 6909 |       no_undefined_flag=' -z text' | 
 | 6910 |       if test "$GCC" = yes; then | 
 | 6911 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6912 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 6913 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
 | 6914 |       else | 
 | 6915 | 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6916 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 6917 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 6918 |       fi | 
 | 6919 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 6920 |       hardcode_shlibpath_var=no | 
 | 6921 |       case $host_os in | 
 | 6922 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 6923 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 6924 | 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 6925 |       esac | 
 | 6926 |       link_all_deplibs=yes | 
 | 6927 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6928 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6929 |     sunos4*) | 
 | 6930 |       if test "x$host_vendor" = xsequent; then | 
 | 6931 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 6932 | 	# files that make .init and .fini sections work. | 
 | 6933 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6934 |       else | 
 | 6935 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 6936 |       fi | 
 | 6937 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 6938 |       hardcode_direct=yes | 
 | 6939 |       hardcode_minus_L=yes | 
 | 6940 |       hardcode_shlibpath_var=no | 
 | 6941 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 6942 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 6943 |     sysv4) | 
 | 6944 |       case $host_vendor in | 
 | 6945 | 	sni) | 
 | 6946 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6947 | 	  hardcode_direct=yes # is this really true??? | 
 | 6948 | 	;; | 
 | 6949 | 	siemens) | 
 | 6950 | 	  ## LD is ld it makes a PLAMLIB | 
 | 6951 | 	  ## CC just makes a GrossModule. | 
 | 6952 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 6953 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 6954 | 	  hardcode_direct=no | 
 | 6955 |         ;; | 
 | 6956 | 	motorola) | 
 | 6957 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6958 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 6959 | 	;; | 
 | 6960 |       esac | 
 | 6961 |       runpath_var='LD_RUN_PATH' | 
 | 6962 |       hardcode_shlibpath_var=no | 
 | 6963 |       ;; | 
 | 6964 |  | 
 | 6965 |     sysv4.3*) | 
 | 6966 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6967 |       hardcode_shlibpath_var=no | 
 | 6968 |       export_dynamic_flag_spec='-Bexport' | 
 | 6969 |       ;; | 
 | 6970 |  | 
 | 6971 |     sysv4*MP*) | 
 | 6972 |       if test -d /usr/nec; then | 
 | 6973 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 6974 | 	hardcode_shlibpath_var=no | 
 | 6975 | 	runpath_var=LD_RUN_PATH | 
 | 6976 | 	hardcode_runpath_var=yes | 
 | 6977 | 	ld_shlibs=yes | 
 | 6978 |       fi | 
 | 6979 |       ;; | 
 | 6980 |  | 
 | 6981 |     sysv4.2uw2*) | 
 | 6982 |       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 6983 |       hardcode_direct=yes | 
 | 6984 |       hardcode_minus_L=no | 
 | 6985 |       hardcode_shlibpath_var=no | 
 | 6986 |       hardcode_runpath_var=yes | 
 | 6987 |       runpath_var=LD_RUN_PATH | 
 | 6988 |       ;; | 
 | 6989 |  | 
 | 6990 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 6991 |       no_undefined_flag='${wl}-z ${wl}text' | 
 | 6992 |       if test "$GCC" = yes; then | 
 | 6993 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6994 |       else | 
 | 6995 | 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 6996 |       fi | 
 | 6997 |       runpath_var='LD_RUN_PATH' | 
 | 6998 |       hardcode_shlibpath_var=no | 
 | 6999 |       ;; | 
 | 7000 |  | 
 | 7001 |     sysv5*) | 
 | 7002 |       no_undefined_flag=' -z text' | 
 | 7003 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 7004 |       # object files and a static libstdc++, better avoid it by now | 
 | 7005 |       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7006 |       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 7007 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 7008 |       hardcode_libdir_flag_spec= | 
 | 7009 |       hardcode_shlibpath_var=no | 
 | 7010 |       runpath_var='LD_RUN_PATH' | 
 | 7011 |       ;; | 
 | 7012 |  | 
 | 7013 |     uts4*) | 
 | 7014 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 7015 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 7016 |       hardcode_shlibpath_var=no | 
 | 7017 |       ;; | 
 | 7018 |  | 
 | 7019 |     *) | 
 | 7020 |       ld_shlibs=no | 
 | 7021 |       ;; | 
 | 7022 |     esac | 
 | 7023 |   fi | 
 | 7024 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7025 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 7026 | echo "${ECHO_T}$ld_shlibs" >&6 | 
 | 7027 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7028 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7029 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 7030 | if test "$GCC" = yes; then | 
 | 7031 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 7032 | fi | 
 | 7033 |  | 
 | 7034 | # | 
 | 7035 | # Do we need to explicitly link libc? | 
 | 7036 | # | 
 | 7037 | case "x$archive_cmds_need_lc" in | 
 | 7038 | x|xyes) | 
 | 7039 |   # Assume -lc should be added | 
 | 7040 |   archive_cmds_need_lc=yes | 
 | 7041 |  | 
 | 7042 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 7043 |     case $archive_cmds in | 
 | 7044 |     *'~'*) | 
 | 7045 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 7046 |       ;; | 
 | 7047 |     '$CC '*) | 
 | 7048 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 7049 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 7050 |       # to ld, don't add -lc before -lgcc. | 
 | 7051 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 7052 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 7053 |       $rm conftest* | 
 | 7054 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 7055 |  | 
 | 7056 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 7057 |   (eval $ac_compile) 2>&5 | 
 | 7058 |   ac_status=$? | 
 | 7059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7060 |   (exit $ac_status); } 2>conftest.err; then | 
 | 7061 |         soname=conftest | 
 | 7062 |         lib=conftest | 
 | 7063 |         libobjs=conftest.$ac_objext | 
 | 7064 |         deplibs= | 
 | 7065 |         wl=$lt_prog_compiler_wl | 
 | 7066 |         compiler_flags=-v | 
 | 7067 |         linker_flags=-v | 
 | 7068 |         verstring= | 
 | 7069 |         output_objdir=. | 
 | 7070 |         libname=conftest | 
 | 7071 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 7072 |         allow_undefined_flag= | 
 | 7073 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 7074 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 7075 |   ac_status=$? | 
 | 7076 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7077 |   (exit $ac_status); } | 
 | 7078 |         then | 
 | 7079 | 	  archive_cmds_need_lc=no | 
 | 7080 |         else | 
 | 7081 | 	  archive_cmds_need_lc=yes | 
 | 7082 |         fi | 
 | 7083 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 7084 |       else | 
 | 7085 |         cat conftest.err 1>&5 | 
 | 7086 |       fi | 
 | 7087 |       $rm conftest* | 
 | 7088 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 7089 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | 
 | 7090 |       ;; | 
 | 7091 |     esac | 
 | 7092 |   fi | 
 | 7093 |   ;; | 
 | 7094 | esac | 
 | 7095 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7096 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 7097 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 7098 | hardcode_action= | 
 | 7099 | if test -n "$hardcode_libdir_flag_spec" || \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7100 |    test -n "$runpath_var " || \ | 
 | 7101 |    test "X$hardcode_automatic"="Xyes" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7102 |  | 
 | 7103 |   # We can hardcode non-existant directories. | 
 | 7104 |   if test "$hardcode_direct" != no && | 
 | 7105 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 7106 |      # have to relink, otherwise we might link with an installed library | 
 | 7107 |      # when we should be linking with a yet-to-be-installed one | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7108 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7109 |      test "$hardcode_minus_L" != no; then | 
 | 7110 |     # Linking always hardcodes the temporary library directory. | 
 | 7111 |     hardcode_action=relink | 
 | 7112 |   else | 
 | 7113 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 7114 |     hardcode_action=immediate | 
 | 7115 |   fi | 
 | 7116 | else | 
 | 7117 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 7118 |   # directories. | 
 | 7119 |   hardcode_action=unsupported | 
 | 7120 | fi | 
 | 7121 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 7122 | echo "${ECHO_T}$hardcode_action" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7123 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7124 | if test "$hardcode_action" = relink; then | 
 | 7125 |   # Fast installation is not supported | 
 | 7126 |   enable_fast_install=no | 
 | 7127 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 7128 |      test "$enable_shared" = no; then | 
 | 7129 |   # Fast installation is not necessary | 
 | 7130 |   enable_fast_install=needless | 
 | 7131 | fi | 
 | 7132 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7133 | striplib= | 
 | 7134 | old_striplib= | 
 | 7135 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 7136 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 7137 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 7138 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 7139 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 7140 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7141 | echo "${ECHO_T}yes" >&6 | 
 | 7142 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7143 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 7144 |   case $host_os in | 
 | 7145 |    darwin*) | 
 | 7146 |        if test -n "$STRIP" ; then | 
 | 7147 |          striplib="$STRIP -x" | 
 | 7148 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7149 | echo "${ECHO_T}yes" >&6 | 
 | 7150 |        else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7151 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 7152 | echo "${ECHO_T}no" >&6 | 
 | 7153 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7154 |        ;; | 
 | 7155 |    *) | 
 | 7156 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 7157 | echo "${ECHO_T}no" >&6 | 
 | 7158 |     ;; | 
 | 7159 |   esac | 
 | 7160 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7161 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7162 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 7163 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 7164 | library_names_spec= | 
 | 7165 | libname_spec='lib$name' | 
 | 7166 | soname_spec= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7167 | shrext=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7168 | postinstall_cmds= | 
 | 7169 | postuninstall_cmds= | 
 | 7170 | finish_cmds= | 
 | 7171 | finish_eval= | 
 | 7172 | shlibpath_var= | 
 | 7173 | shlibpath_overrides_runpath=unknown | 
 | 7174 | version_type=none | 
 | 7175 | dynamic_linker="$host_os ld.so" | 
 | 7176 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7177 | if test "$GCC" = yes; then | 
 | 7178 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7179 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 7180 |     # if the path contains ";" then we assume it to be the separator | 
 | 7181 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 7182 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 7183 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 7184 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7185 |   else | 
 | 7186 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7187 |   fi | 
 | 7188 | else | 
 | 7189 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 7190 | fi | 
 | 7191 | need_lib_prefix=unknown | 
 | 7192 | hardcode_into_libs=no | 
 | 7193 |  | 
 | 7194 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 7195 | # flags to be left without arguments | 
 | 7196 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7197 |  | 
 | 7198 | case $host_os in | 
 | 7199 | aix3*) | 
 | 7200 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7201 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7202 |   shlibpath_var=LIBPATH | 
 | 7203 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7204 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 7205 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7206 |   ;; | 
 | 7207 |  | 
 | 7208 | aix4* | aix5*) | 
 | 7209 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7210 |   need_lib_prefix=no | 
 | 7211 |   need_version=no | 
 | 7212 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7213 |   if test "$host_cpu" = ia64; then | 
 | 7214 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7215 |     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] | 7216 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7217 |   else | 
 | 7218 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 7219 |     # for dependence libraries.  The import file would start with | 
 | 7220 |     # the line `#! .'.  This would cause the generated library to | 
 | 7221 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 7222 |     # development snapshots of GCC prior to 3.0. | 
 | 7223 |     case $host_os in | 
 | 7224 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7225 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 7226 | 	   echo ' yes ' | 
 | 7227 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 7228 | 	: | 
 | 7229 |       else | 
 | 7230 | 	can_build_shared=no | 
 | 7231 |       fi | 
 | 7232 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7233 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7234 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 7235 |     # soname into executable. Probably we can add versioning support to | 
 | 7236 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7237 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 7238 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 7239 |       # instead of lib<name>.a to let people know that these are not | 
 | 7240 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7241 |       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] | 7242 |     else | 
 | 7243 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 7244 |       # and later when we are not doing run time linking. | 
 | 7245 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7246 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7247 |     fi | 
 | 7248 |     shlibpath_var=LIBPATH | 
 | 7249 |   fi | 
 | 7250 |   ;; | 
 | 7251 |  | 
 | 7252 | amigaos*) | 
 | 7253 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 7254 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 7255 |   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' | 
 | 7256 |   ;; | 
 | 7257 |  | 
 | 7258 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7259 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7260 |   dynamic_linker="$host_os ld.so" | 
 | 7261 |   shlibpath_var=LIBRARY_PATH | 
 | 7262 |   ;; | 
 | 7263 |  | 
 | 7264 | bsdi4*) | 
 | 7265 |   version_type=linux | 
 | 7266 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7267 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7268 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7269 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 7270 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7271 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 7272 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7273 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 7274 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 7275 |   # libtool to hard-code these into programs | 
 | 7276 |   ;; | 
 | 7277 |  | 
 | 7278 | cygwin* | mingw* | pw32*) | 
 | 7279 |   version_type=windows | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7280 |   shrext=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7281 |   need_version=no | 
 | 7282 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7283 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7284 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7285 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7286 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7287 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 7288 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 7289 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7290 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 7291 |       test -d \$dldir || mkdir -p \$dldir~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7292 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 7293 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7294 |       dlpath=$dir/\$dldll~ | 
 | 7295 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7296 |     shlibpath_overrides_runpath=yes | 
 | 7297 |  | 
 | 7298 |     case $host_os in | 
 | 7299 |     cygwin*) | 
 | 7300 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 7301 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 7302 |       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
 | 7303 |       ;; | 
 | 7304 |     mingw*) | 
 | 7305 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 7306 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 7307 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 7308 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 7309 |         # It is most probably a Windows format PATH printed by | 
 | 7310 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 7311 |         # path with ; separators, and with drive letters. We can handle the | 
 | 7312 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 7313 |         # especially as we might pass files found there to a mingw objdump, | 
 | 7314 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 7315 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 7316 |       else | 
 | 7317 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 7318 |       fi | 
 | 7319 |       ;; | 
 | 7320 |     pw32*) | 
 | 7321 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 7322 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 7323 |       ;; | 
 | 7324 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7325 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7326 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7327 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7328 |     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] | 7329 |     ;; | 
 | 7330 |   esac | 
 | 7331 |   dynamic_linker='Win32 ld.exe' | 
 | 7332 |   # FIXME: first we should search . and the directory the executable is in | 
 | 7333 |   shlibpath_var=PATH | 
 | 7334 |   ;; | 
 | 7335 |  | 
 | 7336 | darwin* | rhapsody*) | 
 | 7337 |   dynamic_linker="$host_os dyld" | 
 | 7338 |   version_type=darwin | 
 | 7339 |   need_lib_prefix=no | 
 | 7340 |   need_version=no | 
 | 7341 |   # FIXME: Relying on posixy $() will cause problems for | 
 | 7342 |   #        cross-compilation, but unfortunately the echo tests do not | 
 | 7343 |   #        yet detect zsh echo's removal of \ escapes. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7344 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 7345 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7346 |   shlibpath_overrides_runpath=yes | 
 | 7347 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7348 |   shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 7349 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 7350 |   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 7351 |   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"` | 
 | 7352 |   fi | 
 | 7353 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 7354 |   ;; | 
 | 7355 |  | 
 | 7356 | dgux*) | 
 | 7357 |   version_type=linux | 
 | 7358 |   need_lib_prefix=no | 
 | 7359 |   need_version=no | 
 | 7360 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 7361 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7362 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7363 |   ;; | 
 | 7364 |  | 
 | 7365 | freebsd1*) | 
 | 7366 |   dynamic_linker=no | 
 | 7367 |   ;; | 
 | 7368 |  | 
 | 7369 | freebsd*) | 
 | 7370 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 7371 |   version_type=freebsd-$objformat | 
 | 7372 |   case $version_type in | 
 | 7373 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7374 |       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] | 7375 |       need_version=no | 
 | 7376 |       need_lib_prefix=no | 
 | 7377 |       ;; | 
 | 7378 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7379 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7380 |       need_version=yes | 
 | 7381 |       ;; | 
 | 7382 |   esac | 
 | 7383 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7384 |   case $host_os in | 
 | 7385 |   freebsd2*) | 
 | 7386 |     shlibpath_overrides_runpath=yes | 
 | 7387 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7388 |   freebsd3.01* | freebsdelf3.01*) | 
 | 7389 |     shlibpath_overrides_runpath=yes | 
 | 7390 |     hardcode_into_libs=yes | 
 | 7391 |     ;; | 
 | 7392 |   *) # from 3.2 on | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7393 |     shlibpath_overrides_runpath=no | 
 | 7394 |     hardcode_into_libs=yes | 
 | 7395 |     ;; | 
 | 7396 |   esac | 
 | 7397 |   ;; | 
 | 7398 |  | 
 | 7399 | gnu*) | 
 | 7400 |   version_type=linux | 
 | 7401 |   need_lib_prefix=no | 
 | 7402 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7403 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 7404 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7405 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7406 |   hardcode_into_libs=yes | 
 | 7407 |   ;; | 
 | 7408 |  | 
 | 7409 | hpux9* | hpux10* | hpux11*) | 
 | 7410 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 7411 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7412 |   version_type=sunos | 
 | 7413 |   need_lib_prefix=no | 
 | 7414 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7415 |   case "$host_cpu" in | 
 | 7416 |   ia64*) | 
 | 7417 |     shrext='.so' | 
 | 7418 |     hardcode_into_libs=yes | 
 | 7419 |     dynamic_linker="$host_os dld.so" | 
 | 7420 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7421 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7422 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7423 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7424 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 7425 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 7426 |     else | 
 | 7427 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 7428 |     fi | 
 | 7429 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7430 |     ;; | 
 | 7431 |    hppa*64*) | 
 | 7432 |      shrext='.sl' | 
 | 7433 |      hardcode_into_libs=yes | 
 | 7434 |      dynamic_linker="$host_os dld.sl" | 
 | 7435 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 7436 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 7437 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7438 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7439 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 7440 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 7441 |      ;; | 
 | 7442 |    *) | 
 | 7443 |     shrext='.sl' | 
 | 7444 |     dynamic_linker="$host_os dld.sl" | 
 | 7445 |     shlibpath_var=SHLIB_PATH | 
 | 7446 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 7447 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7448 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7449 |     ;; | 
 | 7450 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7451 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 7452 |   postinstall_cmds='chmod 555 $lib' | 
 | 7453 |   ;; | 
 | 7454 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7455 | irix5* | irix6* | nonstopux*) | 
 | 7456 |   case $host_os in | 
 | 7457 |     nonstopux*) version_type=nonstopux ;; | 
 | 7458 |     *) | 
 | 7459 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 7460 | 		version_type=linux | 
 | 7461 | 	else | 
 | 7462 | 		version_type=irix | 
 | 7463 | 	fi ;; | 
 | 7464 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7465 |   need_lib_prefix=no | 
 | 7466 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7467 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7468 |   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] | 7469 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7470 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7471 |     libsuff= shlibsuff= | 
 | 7472 |     ;; | 
 | 7473 |   *) | 
 | 7474 |     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] | 7475 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 7476 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 7477 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 7478 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 7479 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 7480 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7481 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 7482 |     esac | 
 | 7483 |     ;; | 
 | 7484 |   esac | 
 | 7485 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 7486 |   shlibpath_overrides_runpath=no | 
 | 7487 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 7488 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7489 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7490 |   ;; | 
 | 7491 |  | 
 | 7492 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7493 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7494 |   dynamic_linker=no | 
 | 7495 |   ;; | 
 | 7496 |  | 
 | 7497 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7498 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7499 |   version_type=linux | 
 | 7500 |   need_lib_prefix=no | 
 | 7501 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7502 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7503 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7504 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 7505 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7506 |   shlibpath_overrides_runpath=no | 
 | 7507 |   # This implies no fast_install, which is unacceptable. | 
 | 7508 |   # Some rework will be needed to allow for fast_install | 
 | 7509 |   # before this can be enabled. | 
 | 7510 |   hardcode_into_libs=yes | 
 | 7511 |  | 
 | 7512 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 7513 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 7514 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 7515 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 7516 |   # people can always --disable-shared, the test was removed, and we | 
 | 7517 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 7518 |   dynamic_linker='GNU/Linux ld.so' | 
 | 7519 |   ;; | 
 | 7520 |  | 
 | 7521 | netbsd*) | 
 | 7522 |   version_type=sunos | 
 | 7523 |   need_lib_prefix=no | 
 | 7524 |   need_version=no | 
 | 7525 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7526 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7527 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7528 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 7529 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7530 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
 | 7531 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7532 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 7533 |   fi | 
 | 7534 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7535 |   shlibpath_overrides_runpath=yes | 
 | 7536 |   hardcode_into_libs=yes | 
 | 7537 |   ;; | 
 | 7538 |  | 
 | 7539 | newsos6) | 
 | 7540 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7541 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7542 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7543 |   shlibpath_overrides_runpath=yes | 
 | 7544 |   ;; | 
 | 7545 |  | 
 | 7546 | nto-qnx) | 
 | 7547 |   version_type=linux | 
 | 7548 |   need_lib_prefix=no | 
 | 7549 |   need_version=no | 
 | 7550 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7551 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7552 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7553 |   shlibpath_overrides_runpath=yes | 
 | 7554 |   ;; | 
 | 7555 |  | 
 | 7556 | openbsd*) | 
 | 7557 |   version_type=sunos | 
 | 7558 |   need_lib_prefix=no | 
 | 7559 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7560 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 7561 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 7562 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7563 |   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] | 7564 |     case $host_os in | 
 | 7565 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 7566 | 	shlibpath_overrides_runpath=no | 
 | 7567 | 	;; | 
 | 7568 |       *) | 
 | 7569 | 	shlibpath_overrides_runpath=yes | 
 | 7570 | 	;; | 
 | 7571 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7572 |   else | 
 | 7573 |     shlibpath_overrides_runpath=yes | 
 | 7574 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7575 |   ;; | 
 | 7576 |  | 
 | 7577 | os2*) | 
 | 7578 |   libname_spec='$name' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7579 |   shrext=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7580 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7581 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7582 |   dynamic_linker='OS/2 ld.exe' | 
 | 7583 |   shlibpath_var=LIBPATH | 
 | 7584 |   ;; | 
 | 7585 |  | 
 | 7586 | osf3* | osf4* | osf5*) | 
 | 7587 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7588 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7589 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7590 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7591 |   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] | 7592 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7593 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 7594 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 7595 |   ;; | 
 | 7596 |  | 
 | 7597 | sco3.2v5*) | 
 | 7598 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7599 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7600 |   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] | 7601 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7602 |   ;; | 
 | 7603 |  | 
 | 7604 | solaris*) | 
 | 7605 |   version_type=linux | 
 | 7606 |   need_lib_prefix=no | 
 | 7607 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7608 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7609 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7610 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7611 |   shlibpath_overrides_runpath=yes | 
 | 7612 |   hardcode_into_libs=yes | 
 | 7613 |   # ldd complains unless libraries are executable | 
 | 7614 |   postinstall_cmds='chmod +x $lib' | 
 | 7615 |   ;; | 
 | 7616 |  | 
 | 7617 | sunos4*) | 
 | 7618 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7619 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7620 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 7621 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7622 |   shlibpath_overrides_runpath=yes | 
 | 7623 |   if test "$with_gnu_ld" = yes; then | 
 | 7624 |     need_lib_prefix=no | 
 | 7625 |   fi | 
 | 7626 |   need_version=yes | 
 | 7627 |   ;; | 
 | 7628 |  | 
 | 7629 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 7630 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7631 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7632 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7633 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7634 |   case $host_vendor in | 
 | 7635 |     sni) | 
 | 7636 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7637 |       need_lib_prefix=no | 
 | 7638 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 7639 |       runpath_var=LD_RUN_PATH | 
 | 7640 |       ;; | 
 | 7641 |     siemens) | 
 | 7642 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7643 |       ;; | 
 | 7644 |     motorola) | 
 | 7645 |       need_lib_prefix=no | 
 | 7646 |       need_version=no | 
 | 7647 |       shlibpath_overrides_runpath=no | 
 | 7648 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 7649 |       ;; | 
 | 7650 |   esac | 
 | 7651 |   ;; | 
 | 7652 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7653 | sysv4*MP*) | 
 | 7654 |   if test -d /usr/nec ;then | 
 | 7655 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7656 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 7657 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7658 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 7659 |   fi | 
 | 7660 |   ;; | 
 | 7661 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7662 | uts4*) | 
 | 7663 |   version_type=linux | 
 | 7664 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 7665 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 7666 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 7667 |   ;; | 
 | 7668 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7669 | *) | 
 | 7670 |   dynamic_linker=no | 
 | 7671 |   ;; | 
 | 7672 | esac | 
 | 7673 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 7674 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 7675 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7676 |  | 
 | 7677 | if test "x$enable_dlopen" != xyes; then | 
 | 7678 |   enable_dlopen=unknown | 
 | 7679 |   enable_dlopen_self=unknown | 
 | 7680 |   enable_dlopen_self_static=unknown | 
 | 7681 | else | 
 | 7682 |   lt_cv_dlopen=no | 
 | 7683 |   lt_cv_dlopen_libs= | 
 | 7684 |  | 
 | 7685 |   case $host_os in | 
 | 7686 |   beos*) | 
 | 7687 |     lt_cv_dlopen="load_add_on" | 
 | 7688 |     lt_cv_dlopen_libs= | 
 | 7689 |     lt_cv_dlopen_self=yes | 
 | 7690 |     ;; | 
 | 7691 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7692 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7693 |     lt_cv_dlopen="LoadLibrary" | 
 | 7694 |     lt_cv_dlopen_libs= | 
 | 7695 |    ;; | 
 | 7696 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7697 |   cygwin*) | 
 | 7698 |     lt_cv_dlopen="dlopen" | 
 | 7699 |     lt_cv_dlopen_libs= | 
 | 7700 |    ;; | 
 | 7701 |  | 
 | 7702 |   darwin*) | 
 | 7703 |   # if libdl is installed we need to link against it | 
 | 7704 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 7705 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 7706 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 7707 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7708 | else | 
 | 7709 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7710 | LIBS="-ldl  $LIBS" | 
 | 7711 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7712 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7713 | /* confdefs.h.  */ | 
 | 7714 | _ACEOF | 
 | 7715 | cat confdefs.h >>conftest.$ac_ext | 
 | 7716 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7717 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7718 |  | 
 | 7719 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7720 | #ifdef __cplusplus | 
 | 7721 | extern "C" | 
 | 7722 | #endif | 
 | 7723 | /* We use char because int might match the return type of a gcc2 | 
 | 7724 |    builtin and then its argument prototype would still apply.  */ | 
 | 7725 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7726 | int | 
 | 7727 | main () | 
 | 7728 | { | 
 | 7729 | dlopen (); | 
 | 7730 |   ; | 
 | 7731 |   return 0; | 
 | 7732 | } | 
 | 7733 | _ACEOF | 
 | 7734 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7736 |   (eval $ac_link) 2>&5 | 
 | 7737 |   ac_status=$? | 
 | 7738 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7739 |   (exit $ac_status); } && | 
 | 7740 |          { ac_try='test -s conftest$ac_exeext' | 
 | 7741 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7742 |   (eval $ac_try) 2>&5 | 
 | 7743 |   ac_status=$? | 
 | 7744 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7745 |   (exit $ac_status); }; }; then | 
 | 7746 |   ac_cv_lib_dl_dlopen=yes | 
 | 7747 | else | 
 | 7748 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7749 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7750 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 7751 | ac_cv_lib_dl_dlopen=no | 
 | 7752 | fi | 
 | 7753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 7754 | LIBS=$ac_check_lib_save_LIBS | 
 | 7755 | fi | 
 | 7756 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 7757 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 7758 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 7759 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 7760 | else | 
 | 7761 |  | 
 | 7762 |     lt_cv_dlopen="dyld" | 
 | 7763 |     lt_cv_dlopen_libs= | 
 | 7764 |     lt_cv_dlopen_self=yes | 
 | 7765 |  | 
 | 7766 | fi | 
 | 7767 |  | 
 | 7768 |    ;; | 
 | 7769 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7770 |   *) | 
 | 7771 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 7772 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 7773 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 7774 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7775 | else | 
 | 7776 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7777 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7778 | /* confdefs.h.  */ | 
 | 7779 | _ACEOF | 
 | 7780 | cat confdefs.h >>conftest.$ac_ext | 
 | 7781 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7782 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7783 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7784 |     which can conflict with char shl_load (); below. | 
 | 7785 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7786 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 7787 | #ifdef __STDC__ | 
 | 7788 | # include <limits.h> | 
 | 7789 | #else | 
 | 7790 | # include <assert.h> | 
 | 7791 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7792 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7793 | #ifdef __cplusplus | 
 | 7794 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7795 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7796 | #endif | 
 | 7797 | /* We use char because int might match the return type of a gcc2 | 
 | 7798 |    builtin and then its argument prototype would still apply.  */ | 
 | 7799 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7800 | /* The GNU C library defines this for functions which it implements | 
 | 7801 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 7802 |     something starting with __ and the normal name is an alias.  */ | 
 | 7803 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 7804 | choke me | 
 | 7805 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7806 | char (*f) () = shl_load; | 
 | 7807 | #endif | 
 | 7808 | #ifdef __cplusplus | 
 | 7809 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7810 | #endif | 
 | 7811 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7812 | int | 
 | 7813 | main () | 
 | 7814 | { | 
 | 7815 | return f != shl_load; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7816 |   ; | 
 | 7817 |   return 0; | 
 | 7818 | } | 
 | 7819 | _ACEOF | 
 | 7820 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7822 |   (eval $ac_link) 2>&5 | 
 | 7823 |   ac_status=$? | 
 | 7824 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7825 |   (exit $ac_status); } && | 
 | 7826 |          { ac_try='test -s conftest$ac_exeext' | 
 | 7827 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7828 |   (eval $ac_try) 2>&5 | 
 | 7829 |   ac_status=$? | 
 | 7830 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7831 |   (exit $ac_status); }; }; then | 
 | 7832 |   ac_cv_func_shl_load=yes | 
 | 7833 | else | 
 | 7834 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7835 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7836 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7837 | ac_cv_func_shl_load=no | 
 | 7838 | fi | 
 | 7839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 7840 | fi | 
 | 7841 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 7842 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 7843 | if test $ac_cv_func_shl_load = yes; then | 
 | 7844 |   lt_cv_dlopen="shl_load" | 
 | 7845 | else | 
 | 7846 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 7847 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 7848 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 7849 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7850 | else | 
 | 7851 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7852 | LIBS="-ldld  $LIBS" | 
 | 7853 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7854 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7855 | /* confdefs.h.  */ | 
 | 7856 | _ACEOF | 
 | 7857 | cat confdefs.h >>conftest.$ac_ext | 
 | 7858 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7859 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7860 |  | 
 | 7861 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7862 | #ifdef __cplusplus | 
 | 7863 | extern "C" | 
 | 7864 | #endif | 
 | 7865 | /* We use char because int might match the return type of a gcc2 | 
 | 7866 |    builtin and then its argument prototype would still apply.  */ | 
 | 7867 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7868 | int | 
 | 7869 | main () | 
 | 7870 | { | 
 | 7871 | shl_load (); | 
 | 7872 |   ; | 
 | 7873 |   return 0; | 
 | 7874 | } | 
 | 7875 | _ACEOF | 
 | 7876 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7878 |   (eval $ac_link) 2>&5 | 
 | 7879 |   ac_status=$? | 
 | 7880 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7881 |   (exit $ac_status); } && | 
 | 7882 |          { ac_try='test -s conftest$ac_exeext' | 
 | 7883 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7884 |   (eval $ac_try) 2>&5 | 
 | 7885 |   ac_status=$? | 
 | 7886 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7887 |   (exit $ac_status); }; }; then | 
 | 7888 |   ac_cv_lib_dld_shl_load=yes | 
 | 7889 | else | 
 | 7890 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7892 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7893 | ac_cv_lib_dld_shl_load=no | 
 | 7894 | fi | 
 | 7895 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 7896 | LIBS=$ac_check_lib_save_LIBS | 
 | 7897 | fi | 
 | 7898 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 7899 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 7900 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 7901 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 7902 | else | 
 | 7903 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 7904 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 7905 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 7906 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7907 | else | 
 | 7908 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 7909 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7910 | /* confdefs.h.  */ | 
 | 7911 | _ACEOF | 
 | 7912 | cat confdefs.h >>conftest.$ac_ext | 
 | 7913 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7914 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7915 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7916 |     which can conflict with char dlopen (); below. | 
 | 7917 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7918 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 7919 | #ifdef __STDC__ | 
 | 7920 | # include <limits.h> | 
 | 7921 | #else | 
 | 7922 | # include <assert.h> | 
 | 7923 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7924 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7925 | #ifdef __cplusplus | 
 | 7926 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7927 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7928 | #endif | 
 | 7929 | /* We use char because int might match the return type of a gcc2 | 
 | 7930 |    builtin and then its argument prototype would still apply.  */ | 
 | 7931 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7932 | /* The GNU C library defines this for functions which it implements | 
 | 7933 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 7934 |     something starting with __ and the normal name is an alias.  */ | 
 | 7935 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 7936 | choke me | 
 | 7937 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7938 | char (*f) () = dlopen; | 
 | 7939 | #endif | 
 | 7940 | #ifdef __cplusplus | 
 | 7941 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7942 | #endif | 
 | 7943 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7944 | int | 
 | 7945 | main () | 
 | 7946 | { | 
 | 7947 | return f != dlopen; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7948 |   ; | 
 | 7949 |   return 0; | 
 | 7950 | } | 
 | 7951 | _ACEOF | 
 | 7952 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 7953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 7954 |   (eval $ac_link) 2>&5 | 
 | 7955 |   ac_status=$? | 
 | 7956 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7957 |   (exit $ac_status); } && | 
 | 7958 |          { ac_try='test -s conftest$ac_exeext' | 
 | 7959 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 7960 |   (eval $ac_try) 2>&5 | 
 | 7961 |   ac_status=$? | 
 | 7962 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 7963 |   (exit $ac_status); }; }; then | 
 | 7964 |   ac_cv_func_dlopen=yes | 
 | 7965 | else | 
 | 7966 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7967 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 7968 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7969 | ac_cv_func_dlopen=no | 
 | 7970 | fi | 
 | 7971 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 7972 | fi | 
 | 7973 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 7974 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 7975 | if test $ac_cv_func_dlopen = yes; then | 
 | 7976 |   lt_cv_dlopen="dlopen" | 
 | 7977 | else | 
 | 7978 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 7979 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 7980 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 7981 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7982 | else | 
 | 7983 |   ac_check_lib_save_LIBS=$LIBS | 
 | 7984 | LIBS="-ldl  $LIBS" | 
 | 7985 | cat >conftest.$ac_ext <<_ACEOF | 
 | 7986 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 7987 | /* confdefs.h.  */ | 
 | 7988 | _ACEOF | 
 | 7989 | cat confdefs.h >>conftest.$ac_ext | 
 | 7990 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 7991 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7992 |  | 
 | 7993 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7994 | #ifdef __cplusplus | 
 | 7995 | extern "C" | 
 | 7996 | #endif | 
 | 7997 | /* We use char because int might match the return type of a gcc2 | 
 | 7998 |    builtin and then its argument prototype would still apply.  */ | 
 | 7999 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8000 | int | 
 | 8001 | main () | 
 | 8002 | { | 
 | 8003 | dlopen (); | 
 | 8004 |   ; | 
 | 8005 |   return 0; | 
 | 8006 | } | 
 | 8007 | _ACEOF | 
 | 8008 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8010 |   (eval $ac_link) 2>&5 | 
 | 8011 |   ac_status=$? | 
 | 8012 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8013 |   (exit $ac_status); } && | 
 | 8014 |          { ac_try='test -s conftest$ac_exeext' | 
 | 8015 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8016 |   (eval $ac_try) 2>&5 | 
 | 8017 |   ac_status=$? | 
 | 8018 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8019 |   (exit $ac_status); }; }; then | 
 | 8020 |   ac_cv_lib_dl_dlopen=yes | 
 | 8021 | else | 
 | 8022 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8023 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8024 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8025 | ac_cv_lib_dl_dlopen=no | 
 | 8026 | fi | 
 | 8027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 8028 | LIBS=$ac_check_lib_save_LIBS | 
 | 8029 | fi | 
 | 8030 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 8031 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 8032 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 8033 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 8034 | else | 
 | 8035 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 8036 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 8037 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 8038 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8039 | else | 
 | 8040 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8041 | LIBS="-lsvld  $LIBS" | 
 | 8042 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8043 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8044 | /* confdefs.h.  */ | 
 | 8045 | _ACEOF | 
 | 8046 | cat confdefs.h >>conftest.$ac_ext | 
 | 8047 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8048 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8049 |  | 
 | 8050 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8051 | #ifdef __cplusplus | 
 | 8052 | extern "C" | 
 | 8053 | #endif | 
 | 8054 | /* We use char because int might match the return type of a gcc2 | 
 | 8055 |    builtin and then its argument prototype would still apply.  */ | 
 | 8056 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8057 | int | 
 | 8058 | main () | 
 | 8059 | { | 
 | 8060 | dlopen (); | 
 | 8061 |   ; | 
 | 8062 |   return 0; | 
 | 8063 | } | 
 | 8064 | _ACEOF | 
 | 8065 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8067 |   (eval $ac_link) 2>&5 | 
 | 8068 |   ac_status=$? | 
 | 8069 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8070 |   (exit $ac_status); } && | 
 | 8071 |          { ac_try='test -s conftest$ac_exeext' | 
 | 8072 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8073 |   (eval $ac_try) 2>&5 | 
 | 8074 |   ac_status=$? | 
 | 8075 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8076 |   (exit $ac_status); }; }; then | 
 | 8077 |   ac_cv_lib_svld_dlopen=yes | 
 | 8078 | else | 
 | 8079 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8080 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8081 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8082 | ac_cv_lib_svld_dlopen=no | 
 | 8083 | fi | 
 | 8084 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 8085 | LIBS=$ac_check_lib_save_LIBS | 
 | 8086 | fi | 
 | 8087 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 8088 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 8089 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 8090 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 8091 | else | 
 | 8092 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 8093 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 8094 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 8095 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8096 | else | 
 | 8097 |   ac_check_lib_save_LIBS=$LIBS | 
 | 8098 | LIBS="-ldld  $LIBS" | 
 | 8099 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8100 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8101 | /* confdefs.h.  */ | 
 | 8102 | _ACEOF | 
 | 8103 | cat confdefs.h >>conftest.$ac_ext | 
 | 8104 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8105 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8106 |  | 
 | 8107 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 8108 | #ifdef __cplusplus | 
 | 8109 | extern "C" | 
 | 8110 | #endif | 
 | 8111 | /* We use char because int might match the return type of a gcc2 | 
 | 8112 |    builtin and then its argument prototype would still apply.  */ | 
 | 8113 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8114 | int | 
 | 8115 | main () | 
 | 8116 | { | 
 | 8117 | dld_link (); | 
 | 8118 |   ; | 
 | 8119 |   return 0; | 
 | 8120 | } | 
 | 8121 | _ACEOF | 
 | 8122 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8124 |   (eval $ac_link) 2>&5 | 
 | 8125 |   ac_status=$? | 
 | 8126 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8127 |   (exit $ac_status); } && | 
 | 8128 |          { ac_try='test -s conftest$ac_exeext' | 
 | 8129 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 8130 |   (eval $ac_try) 2>&5 | 
 | 8131 |   ac_status=$? | 
 | 8132 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8133 |   (exit $ac_status); }; }; then | 
 | 8134 |   ac_cv_lib_dld_dld_link=yes | 
 | 8135 | else | 
 | 8136 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8137 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8138 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8139 | ac_cv_lib_dld_dld_link=no | 
 | 8140 | fi | 
 | 8141 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 8142 | LIBS=$ac_check_lib_save_LIBS | 
 | 8143 | fi | 
 | 8144 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 8145 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 8146 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 8147 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 8148 | fi | 
 | 8149 |  | 
 | 8150 |  | 
 | 8151 | fi | 
 | 8152 |  | 
 | 8153 |  | 
 | 8154 | fi | 
 | 8155 |  | 
 | 8156 |  | 
 | 8157 | fi | 
 | 8158 |  | 
 | 8159 |  | 
 | 8160 | fi | 
 | 8161 |  | 
 | 8162 |  | 
 | 8163 | fi | 
 | 8164 |  | 
 | 8165 |     ;; | 
 | 8166 |   esac | 
 | 8167 |  | 
 | 8168 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 8169 |     enable_dlopen=yes | 
 | 8170 |   else | 
 | 8171 |     enable_dlopen=no | 
 | 8172 |   fi | 
 | 8173 |  | 
 | 8174 |   case $lt_cv_dlopen in | 
 | 8175 |   dlopen) | 
 | 8176 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8177 |     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] | 8178 |  | 
 | 8179 |     save_LDFLAGS="$LDFLAGS" | 
 | 8180 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 8181 |  | 
 | 8182 |     save_LIBS="$LIBS" | 
 | 8183 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 8184 |  | 
 | 8185 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 8186 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 8187 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 8188 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8189 | else | 
 | 8190 |   	  if test "$cross_compiling" = yes; then : | 
 | 8191 |   lt_cv_dlopen_self=cross | 
 | 8192 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8193 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8194 |   lt_status=$lt_dlunknown | 
 | 8195 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 8196 | #line 8196 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8197 | #include "confdefs.h" | 
 | 8198 |  | 
 | 8199 | #if HAVE_DLFCN_H | 
 | 8200 | #include <dlfcn.h> | 
 | 8201 | #endif | 
 | 8202 |  | 
 | 8203 | #include <stdio.h> | 
 | 8204 |  | 
 | 8205 | #ifdef RTLD_GLOBAL | 
 | 8206 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8207 | #else | 
 | 8208 | #  ifdef DL_GLOBAL | 
 | 8209 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8210 | #  else | 
 | 8211 | #    define LT_DLGLOBAL		0 | 
 | 8212 | #  endif | 
 | 8213 | #endif | 
 | 8214 |  | 
 | 8215 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8216 |    find out it does not work in some platform. */ | 
 | 8217 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8218 | #  ifdef RTLD_LAZY | 
 | 8219 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8220 | #  else | 
 | 8221 | #    ifdef DL_LAZY | 
 | 8222 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8223 | #    else | 
 | 8224 | #      ifdef RTLD_NOW | 
 | 8225 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8226 | #      else | 
 | 8227 | #        ifdef DL_NOW | 
 | 8228 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8229 | #        else | 
 | 8230 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8231 | #        endif | 
 | 8232 | #      endif | 
 | 8233 | #    endif | 
 | 8234 | #  endif | 
 | 8235 | #endif | 
 | 8236 |  | 
 | 8237 | #ifdef __cplusplus | 
 | 8238 | extern "C" void exit (int); | 
 | 8239 | #endif | 
 | 8240 |  | 
 | 8241 | void fnord() { int i=42;} | 
 | 8242 | int main () | 
 | 8243 | { | 
 | 8244 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8245 |   int status = $lt_dlunknown; | 
 | 8246 |  | 
 | 8247 |   if (self) | 
 | 8248 |     { | 
 | 8249 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8250 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8251 |       /* dlclose (self); */ | 
 | 8252 |     } | 
 | 8253 |  | 
 | 8254 |     exit (status); | 
 | 8255 | } | 
 | 8256 | EOF | 
 | 8257 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8258 |   (eval $ac_link) 2>&5 | 
 | 8259 |   ac_status=$? | 
 | 8260 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8261 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8262 |     (./conftest; exit; ) 2>/dev/null | 
 | 8263 |     lt_status=$? | 
 | 8264 |     case x$lt_status in | 
 | 8265 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8266 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 8267 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 8268 |     esac | 
 | 8269 |   else : | 
 | 8270 |     # compilation failed | 
 | 8271 |     lt_cv_dlopen_self=no | 
 | 8272 |   fi | 
 | 8273 | fi | 
 | 8274 | rm -fr conftest* | 
 | 8275 |  | 
 | 8276 |  | 
 | 8277 | fi | 
 | 8278 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 8279 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 8280 |  | 
 | 8281 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 8282 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 8283 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 8284 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 8285 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 8286 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8287 | else | 
 | 8288 |   	  if test "$cross_compiling" = yes; then : | 
 | 8289 |   lt_cv_dlopen_self_static=cross | 
 | 8290 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8291 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8292 |   lt_status=$lt_dlunknown | 
 | 8293 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 8294 | #line 8294 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8295 | #include "confdefs.h" | 
 | 8296 |  | 
 | 8297 | #if HAVE_DLFCN_H | 
 | 8298 | #include <dlfcn.h> | 
 | 8299 | #endif | 
 | 8300 |  | 
 | 8301 | #include <stdio.h> | 
 | 8302 |  | 
 | 8303 | #ifdef RTLD_GLOBAL | 
 | 8304 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 8305 | #else | 
 | 8306 | #  ifdef DL_GLOBAL | 
 | 8307 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 8308 | #  else | 
 | 8309 | #    define LT_DLGLOBAL		0 | 
 | 8310 | #  endif | 
 | 8311 | #endif | 
 | 8312 |  | 
 | 8313 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 8314 |    find out it does not work in some platform. */ | 
 | 8315 | #ifndef LT_DLLAZY_OR_NOW | 
 | 8316 | #  ifdef RTLD_LAZY | 
 | 8317 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 8318 | #  else | 
 | 8319 | #    ifdef DL_LAZY | 
 | 8320 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 8321 | #    else | 
 | 8322 | #      ifdef RTLD_NOW | 
 | 8323 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 8324 | #      else | 
 | 8325 | #        ifdef DL_NOW | 
 | 8326 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 8327 | #        else | 
 | 8328 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 8329 | #        endif | 
 | 8330 | #      endif | 
 | 8331 | #    endif | 
 | 8332 | #  endif | 
 | 8333 | #endif | 
 | 8334 |  | 
 | 8335 | #ifdef __cplusplus | 
 | 8336 | extern "C" void exit (int); | 
 | 8337 | #endif | 
 | 8338 |  | 
 | 8339 | void fnord() { int i=42;} | 
 | 8340 | int main () | 
 | 8341 | { | 
 | 8342 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 8343 |   int status = $lt_dlunknown; | 
 | 8344 |  | 
 | 8345 |   if (self) | 
 | 8346 |     { | 
 | 8347 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 8348 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 8349 |       /* dlclose (self); */ | 
 | 8350 |     } | 
 | 8351 |  | 
 | 8352 |     exit (status); | 
 | 8353 | } | 
 | 8354 | EOF | 
 | 8355 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 8356 |   (eval $ac_link) 2>&5 | 
 | 8357 |   ac_status=$? | 
 | 8358 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8359 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 8360 |     (./conftest; exit; ) 2>/dev/null | 
 | 8361 |     lt_status=$? | 
 | 8362 |     case x$lt_status in | 
 | 8363 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8364 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 8365 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 8366 |     esac | 
 | 8367 |   else : | 
 | 8368 |     # compilation failed | 
 | 8369 |     lt_cv_dlopen_self_static=no | 
 | 8370 |   fi | 
 | 8371 | fi | 
 | 8372 | rm -fr conftest* | 
 | 8373 |  | 
 | 8374 |  | 
 | 8375 | fi | 
 | 8376 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 8377 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 8378 |     fi | 
 | 8379 |  | 
 | 8380 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 8381 |     LDFLAGS="$save_LDFLAGS" | 
 | 8382 |     LIBS="$save_LIBS" | 
 | 8383 |     ;; | 
 | 8384 |   esac | 
 | 8385 |  | 
 | 8386 |   case $lt_cv_dlopen_self in | 
 | 8387 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 8388 |   *) enable_dlopen_self=unknown ;; | 
 | 8389 |   esac | 
 | 8390 |  | 
 | 8391 |   case $lt_cv_dlopen_self_static in | 
 | 8392 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 8393 |   *) enable_dlopen_self_static=unknown ;; | 
 | 8394 |   esac | 
 | 8395 | fi | 
 | 8396 |  | 
 | 8397 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8398 | # Report which librarie types wil actually be built | 
 | 8399 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 8400 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 8401 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 8402 | echo "${ECHO_T}$can_build_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8403 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8404 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 8405 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 8406 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 8407 |  | 
 | 8408 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 8409 | # are all built from PIC. | 
 | 8410 | case "$host_os" in | 
 | 8411 | aix3*) | 
 | 8412 |   test "$enable_shared" = yes && enable_static=no | 
 | 8413 |   if test -n "$RANLIB"; then | 
 | 8414 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
 | 8415 |     postinstall_cmds='$RANLIB $lib' | 
 | 8416 |   fi | 
 | 8417 |   ;; | 
 | 8418 |  | 
 | 8419 | aix4*) | 
 | 8420 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 8421 |     test "$enable_shared" = yes && enable_static=no | 
 | 8422 |   fi | 
 | 8423 |   ;; | 
 | 8424 |   darwin* | rhapsody*) | 
 | 8425 |   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 8426 |     archive_cmds_need_lc=no | 
 | 8427 |     case "$host_os" in | 
 | 8428 |     rhapsody* | darwin1.[012]) | 
 | 8429 |       allow_undefined_flag='-undefined suppress' | 
 | 8430 |       ;; | 
 | 8431 |     *) # Darwin 1.3 on | 
 | 8432 |       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' | 
 | 8433 |       ;; | 
 | 8434 |     esac | 
 | 8435 |     # FIXME: Relying on posixy $() will cause problems for | 
 | 8436 |     #        cross-compilation, but unfortunately the echo tests do not | 
 | 8437 |     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
 | 8438 |     #	       `"' quotes if we put them in here... so don't! | 
 | 8439 | 		output_verbose_link_cmd='echo' | 
 | 8440 |     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | 
 | 8441 |     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
 | 8442 |     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 8443 | 		  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}' | 
 | 8444 | 		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 8445 |     hardcode_direct=no | 
 | 8446 |     hardcode_automatic=yes | 
 | 8447 |     hardcode_shlibpath_var=unsupported | 
 | 8448 |     whole_archive_flag_spec='-all_load $convenience' | 
 | 8449 |     link_all_deplibs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8450 |     fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8451 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8452 | esac | 
 | 8453 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 8454 | echo "${ECHO_T}$enable_shared" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8455 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8456 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 8457 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 8458 | # Make sure either enable_shared or enable_static is yes. | 
 | 8459 | test "$enable_shared" = yes || enable_static=yes | 
 | 8460 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 8461 | echo "${ECHO_T}$enable_static" >&6 | 
 | 8462 |  | 
 | 8463 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8464 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 8465 | # with your package, and you will get complaints that there are | 
 | 8466 | # no rules to generate ltmain.sh. | 
 | 8467 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8468 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 8469 |   # without removal of \ escapes. | 
 | 8470 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 8471 |     setopt NO_GLOB_SUBST | 
 | 8472 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8473 |   # Now quote all the things that may contain metacharacters while being | 
 | 8474 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 8475 |   # variables and quote the copies for generation of the libtool script. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8476 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
 | 8477 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 8478 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 8479 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 8480 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 8481 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8482 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8483 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 8484 |     compiler \ | 
 | 8485 |     CC \ | 
 | 8486 |     LD \ | 
 | 8487 |     lt_prog_compiler_wl \ | 
 | 8488 |     lt_prog_compiler_pic \ | 
 | 8489 |     lt_prog_compiler_static \ | 
 | 8490 |     lt_prog_compiler_no_builtin_flag \ | 
 | 8491 |     export_dynamic_flag_spec \ | 
 | 8492 |     thread_safe_flag_spec \ | 
 | 8493 |     whole_archive_flag_spec \ | 
 | 8494 |     enable_shared_with_static_runtimes \ | 
 | 8495 |     old_archive_cmds \ | 
 | 8496 |     old_archive_from_new_cmds \ | 
 | 8497 |     predep_objects \ | 
 | 8498 |     postdep_objects \ | 
 | 8499 |     predeps \ | 
 | 8500 |     postdeps \ | 
 | 8501 |     compiler_lib_search_path \ | 
 | 8502 |     archive_cmds \ | 
 | 8503 |     archive_expsym_cmds \ | 
 | 8504 |     postinstall_cmds \ | 
 | 8505 |     postuninstall_cmds \ | 
 | 8506 |     old_archive_from_expsyms_cmds \ | 
 | 8507 |     allow_undefined_flag \ | 
 | 8508 |     no_undefined_flag \ | 
 | 8509 |     export_symbols_cmds \ | 
 | 8510 |     hardcode_libdir_flag_spec \ | 
 | 8511 |     hardcode_libdir_flag_spec_ld \ | 
 | 8512 |     hardcode_libdir_separator \ | 
 | 8513 |     hardcode_automatic \ | 
 | 8514 |     module_cmds \ | 
 | 8515 |     module_expsym_cmds \ | 
 | 8516 |     lt_cv_prog_compiler_c_o \ | 
 | 8517 |     exclude_expsyms \ | 
 | 8518 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8519 |  | 
 | 8520 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8521 |     old_archive_cmds | \ | 
 | 8522 |     old_archive_from_new_cmds | \ | 
 | 8523 |     archive_cmds | \ | 
 | 8524 |     archive_expsym_cmds | \ | 
 | 8525 |     module_cmds | \ | 
 | 8526 |     module_expsym_cmds | \ | 
 | 8527 |     old_archive_from_expsyms_cmds | \ | 
 | 8528 |     export_symbols_cmds | \ | 
 | 8529 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8530 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8531 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 8532 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8533 |       # Double-quote double-evaled strings. | 
 | 8534 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
 | 8535 |       ;; | 
 | 8536 |     *) | 
 | 8537 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 8538 |       ;; | 
 | 8539 |     esac | 
 | 8540 |   done | 
 | 8541 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8542 |   case $lt_echo in | 
 | 8543 |   *'\$0 --fallback-echo"') | 
 | 8544 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 8545 |     ;; | 
 | 8546 |   esac | 
 | 8547 |  | 
 | 8548 | cfgfile="${ofile}T" | 
 | 8549 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 8550 |   $rm -f "$cfgfile" | 
 | 8551 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 8552 | echo "$as_me: creating $ofile" >&6;} | 
 | 8553 |  | 
 | 8554 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8555 | #! $SHELL | 
 | 8556 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8557 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8558 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 8559 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 8560 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8561 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 8562 | # Free Software Foundation, Inc. | 
 | 8563 | # | 
 | 8564 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8565 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 8566 | # | 
 | 8567 | # This program is free software; you can redistribute it and/or modify | 
 | 8568 | # it under the terms of the GNU General Public License as published by | 
 | 8569 | # the Free Software Foundation; either version 2 of the License, or | 
 | 8570 | # (at your option) any later version. | 
 | 8571 | # | 
 | 8572 | # This program is distributed in the hope that it will be useful, but | 
 | 8573 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 8574 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 8575 | # General Public License for more details. | 
 | 8576 | # | 
 | 8577 | # You should have received a copy of the GNU General Public License | 
 | 8578 | # along with this program; if not, write to the Free Software | 
 | 8579 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 
 | 8580 | # | 
 | 8581 | # As a special exception to the GNU General Public License, if you | 
 | 8582 | # distribute this file as part of a program that contains a | 
 | 8583 | # configuration script generated by Autoconf, you may include it under | 
 | 8584 | # the same distribution terms that you use for the rest of that program. | 
 | 8585 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8586 | # A sed program that does not truncate output. | 
 | 8587 | SED=$lt_SED | 
 | 8588 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8589 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8590 | Xsed="$SED -e s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8591 |  | 
 | 8592 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 8593 | # if CDPATH is set. | 
 | 8594 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 
 | 8595 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8596 | # The names of the tagged configurations supported by this script. | 
 | 8597 | available_tags= | 
 | 8598 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8599 | # ### BEGIN LIBTOOL CONFIG | 
 | 8600 |  | 
 | 8601 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 8602 |  | 
 | 8603 | # Shell to use when invoking shell scripts. | 
 | 8604 | SHELL=$lt_SHELL | 
 | 8605 |  | 
 | 8606 | # Whether or not to build shared libraries. | 
 | 8607 | build_libtool_libs=$enable_shared | 
 | 8608 |  | 
 | 8609 | # Whether or not to build static libraries. | 
 | 8610 | build_old_libs=$enable_static | 
 | 8611 |  | 
 | 8612 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8613 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 8614 |  | 
 | 8615 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 8616 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8617 |  | 
 | 8618 | # Whether or not to optimize for fast installation. | 
 | 8619 | fast_install=$enable_fast_install | 
 | 8620 |  | 
 | 8621 | # The host system. | 
 | 8622 | host_alias=$host_alias | 
 | 8623 | host=$host | 
 | 8624 |  | 
 | 8625 | # An echo program that does not interpret backslashes. | 
 | 8626 | echo=$lt_echo | 
 | 8627 |  | 
 | 8628 | # The archiver. | 
 | 8629 | AR=$lt_AR | 
 | 8630 | AR_FLAGS=$lt_AR_FLAGS | 
 | 8631 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8632 | # A C compiler. | 
 | 8633 | LTCC=$lt_LTCC | 
 | 8634 |  | 
 | 8635 | # A language-specific compiler. | 
 | 8636 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8637 |  | 
 | 8638 | # Is the compiler the GNU C compiler? | 
 | 8639 | with_gcc=$GCC | 
 | 8640 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8641 | # An ERE matcher. | 
 | 8642 | EGREP=$lt_EGREP | 
 | 8643 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8644 | # The linker used to build libraries. | 
 | 8645 | LD=$lt_LD | 
 | 8646 |  | 
 | 8647 | # Whether we need hard or soft links. | 
 | 8648 | LN_S=$lt_LN_S | 
 | 8649 |  | 
 | 8650 | # A BSD-compatible nm program. | 
 | 8651 | NM=$lt_NM | 
 | 8652 |  | 
 | 8653 | # A symbol stripping program | 
 | 8654 | STRIP=$STRIP | 
 | 8655 |  | 
 | 8656 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 8657 | MAGIC_CMD=$MAGIC_CMD | 
 | 8658 |  | 
 | 8659 | # Used on cygwin: DLL creation program. | 
 | 8660 | DLLTOOL="$DLLTOOL" | 
 | 8661 |  | 
 | 8662 | # Used on cygwin: object dumper. | 
 | 8663 | OBJDUMP="$OBJDUMP" | 
 | 8664 |  | 
 | 8665 | # Used on cygwin: assembler. | 
 | 8666 | AS="$AS" | 
 | 8667 |  | 
 | 8668 | # The name of the directory that contains temporary libtool files. | 
 | 8669 | objdir=$objdir | 
 | 8670 |  | 
 | 8671 | # How to create reloadable object files. | 
 | 8672 | reload_flag=$lt_reload_flag | 
 | 8673 | reload_cmds=$lt_reload_cmds | 
 | 8674 |  | 
 | 8675 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8676 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8677 |  | 
 | 8678 | # Object file suffix (normally "o"). | 
 | 8679 | objext="$ac_objext" | 
 | 8680 |  | 
 | 8681 | # Old archive suffix (normally "a"). | 
 | 8682 | libext="$libext" | 
 | 8683 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8684 | # Shared library suffix (normally ".so"). | 
 | 8685 | shrext='$shrext' | 
 | 8686 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8687 | # Executable file suffix (normally ""). | 
 | 8688 | exeext="$exeext" | 
 | 8689 |  | 
 | 8690 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8691 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8692 | pic_mode=$pic_mode | 
 | 8693 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8694 | # What is the maximum length of a command? | 
 | 8695 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8696 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8697 | # Does compiler simultaneously support -c and -o options? | 
 | 8698 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8699 |  | 
 | 8700 | # Must we lock files when doing compilation ? | 
 | 8701 | need_locks=$lt_need_locks | 
 | 8702 |  | 
 | 8703 | # Do we need the lib prefix for modules? | 
 | 8704 | need_lib_prefix=$need_lib_prefix | 
 | 8705 |  | 
 | 8706 | # Do we need a version for libraries? | 
 | 8707 | need_version=$need_version | 
 | 8708 |  | 
 | 8709 | # Whether dlopen is supported. | 
 | 8710 | dlopen_support=$enable_dlopen | 
 | 8711 |  | 
 | 8712 | # Whether dlopen of programs is supported. | 
 | 8713 | dlopen_self=$enable_dlopen_self | 
 | 8714 |  | 
 | 8715 | # Whether dlopen of statically linked programs is supported. | 
 | 8716 | dlopen_self_static=$enable_dlopen_self_static | 
 | 8717 |  | 
 | 8718 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8719 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8720 |  | 
 | 8721 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8722 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8723 |  | 
 | 8724 | # Compiler flag to allow reflexive dlopens. | 
 | 8725 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 8726 |  | 
 | 8727 | # Compiler flag to generate shared objects directly from archives. | 
 | 8728 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 8729 |  | 
 | 8730 | # Compiler flag to generate thread-safe objects. | 
 | 8731 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 8732 |  | 
 | 8733 | # Library versioning type. | 
 | 8734 | version_type=$version_type | 
 | 8735 |  | 
 | 8736 | # Format of library name prefix. | 
 | 8737 | libname_spec=$lt_libname_spec | 
 | 8738 |  | 
 | 8739 | # List of archive names.  First name is the real one, the rest are links. | 
 | 8740 | # The last name is the one that the linker finds with -lNAME. | 
 | 8741 | library_names_spec=$lt_library_names_spec | 
 | 8742 |  | 
 | 8743 | # The coded name of the library, if different from the real name. | 
 | 8744 | soname_spec=$lt_soname_spec | 
 | 8745 |  | 
 | 8746 | # Commands used to build and install an old-style archive. | 
 | 8747 | RANLIB=$lt_RANLIB | 
 | 8748 | old_archive_cmds=$lt_old_archive_cmds | 
 | 8749 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 8750 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 8751 |  | 
 | 8752 | # Create an old-style archive from a shared archive. | 
 | 8753 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 8754 |  | 
 | 8755 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 8756 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 8757 |  | 
 | 8758 | # Commands used to build and install a shared archive. | 
 | 8759 | archive_cmds=$lt_archive_cmds | 
 | 8760 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 8761 | postinstall_cmds=$lt_postinstall_cmds | 
 | 8762 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 8763 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8764 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 8765 | module_cmds=$lt_module_cmds | 
 | 8766 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 8767 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8768 | # Commands to strip libraries. | 
 | 8769 | old_striplib=$lt_old_striplib | 
 | 8770 | striplib=$lt_striplib | 
 | 8771 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8772 | # Dependencies to place before the objects being linked to create a | 
 | 8773 | # shared library. | 
 | 8774 | predep_objects=$lt_predep_objects | 
 | 8775 |  | 
 | 8776 | # Dependencies to place after the objects being linked to create a | 
 | 8777 | # shared library. | 
 | 8778 | postdep_objects=$lt_postdep_objects | 
 | 8779 |  | 
 | 8780 | # Dependencies to place before the objects being linked to create a | 
 | 8781 | # shared library. | 
 | 8782 | predeps=$lt_predeps | 
 | 8783 |  | 
 | 8784 | # Dependencies to place after the objects being linked to create a | 
 | 8785 | # shared library. | 
 | 8786 | postdeps=$lt_postdeps | 
 | 8787 |  | 
 | 8788 | # The library search path used internally by the compiler when linking | 
 | 8789 | # a shared library. | 
 | 8790 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 8791 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8792 | # Method to check whether dependent libraries are shared objects. | 
 | 8793 | deplibs_check_method=$lt_deplibs_check_method | 
 | 8794 |  | 
 | 8795 | # Command to use when deplibs_check_method == file_magic. | 
 | 8796 | file_magic_cmd=$lt_file_magic_cmd | 
 | 8797 |  | 
 | 8798 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 8799 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 8800 |  | 
 | 8801 | # Flag that forces no undefined symbols. | 
 | 8802 | no_undefined_flag=$lt_no_undefined_flag | 
 | 8803 |  | 
 | 8804 | # Commands used to finish a libtool library installation in a directory. | 
 | 8805 | finish_cmds=$lt_finish_cmds | 
 | 8806 |  | 
 | 8807 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 8808 | finish_eval=$lt_finish_eval | 
 | 8809 |  | 
 | 8810 | # 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] | 8811 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8812 |  | 
 | 8813 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8814 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8815 |  | 
 | 8816 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8817 | 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] | 8818 |  | 
 | 8819 | # This is the shared library runtime path variable. | 
 | 8820 | runpath_var=$runpath_var | 
 | 8821 |  | 
 | 8822 | # This is the shared library path variable. | 
 | 8823 | shlibpath_var=$shlibpath_var | 
 | 8824 |  | 
 | 8825 | # Is shlibpath searched before the hard-coded library search path? | 
 | 8826 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 8827 |  | 
 | 8828 | # How to hardcode a shared library path into an executable. | 
 | 8829 | hardcode_action=$hardcode_action | 
 | 8830 |  | 
 | 8831 | # Whether we should hardcode library paths into libraries. | 
 | 8832 | hardcode_into_libs=$hardcode_into_libs | 
 | 8833 |  | 
 | 8834 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 8835 | # This must work even if \$libdir does not exist. | 
 | 8836 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 8837 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8838 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 8839 | # a binary during linking. This must work even if \$libdir does | 
 | 8840 | # not exist. | 
 | 8841 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 8842 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8843 | # Whether we need a single -rpath flag with a separated argument. | 
 | 8844 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 8845 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8846 | # 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] | 8847 | # resulting binary. | 
 | 8848 | hardcode_direct=$hardcode_direct | 
 | 8849 |  | 
 | 8850 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 8851 | # resulting binary. | 
 | 8852 | hardcode_minus_L=$hardcode_minus_L | 
 | 8853 |  | 
 | 8854 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 8855 | # the resulting binary. | 
 | 8856 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 8857 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8858 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 8859 | # and all subsequent libraries and executables linked against it. | 
 | 8860 | hardcode_automatic=$hardcode_automatic | 
 | 8861 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8862 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 8863 | # restored at relink time. | 
 | 8864 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 8865 |  | 
 | 8866 | # Whether libtool must link a program against all its dependency libraries. | 
 | 8867 | link_all_deplibs=$link_all_deplibs | 
 | 8868 |  | 
 | 8869 | # Compile-time system search path for libraries | 
 | 8870 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 8871 |  | 
 | 8872 | # Run-time system search path for libraries | 
 | 8873 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 8874 |  | 
 | 8875 | # Fix the shell variable \$srcfile for the compiler. | 
 | 8876 | fix_srcfile_path="$fix_srcfile_path" | 
 | 8877 |  | 
 | 8878 | # Set to yes if exported symbols are required. | 
 | 8879 | always_export_symbols=$always_export_symbols | 
 | 8880 |  | 
 | 8881 | # The commands to list exported symbols. | 
 | 8882 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 8883 |  | 
 | 8884 | # The commands to extract the exported symbol list from a shared archive. | 
 | 8885 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 8886 |  | 
 | 8887 | # Symbols that should not be listed in the preloaded symbols. | 
 | 8888 | exclude_expsyms=$lt_exclude_expsyms | 
 | 8889 |  | 
 | 8890 | # Symbols that must always be exported. | 
 | 8891 | include_expsyms=$lt_include_expsyms | 
 | 8892 |  | 
 | 8893 | # ### END LIBTOOL CONFIG | 
 | 8894 |  | 
 | 8895 | __EOF__ | 
 | 8896 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8897 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8898 |   case $host_os in | 
 | 8899 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8900 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8901 |  | 
 | 8902 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 8903 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 8904 | # vanish in a puff of smoke. | 
 | 8905 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 8906 |   COLLECT_NAMES= | 
 | 8907 |   export COLLECT_NAMES | 
 | 8908 | fi | 
 | 8909 | EOF | 
 | 8910 |     ;; | 
 | 8911 |   esac | 
 | 8912 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8913 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 8914 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 8915 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 8916 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8917 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8918 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8919 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 8920 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8921 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8922 |  | 
 | 8923 | else | 
 | 8924 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 8925 |   # `config.status --recheck' to rerun these tests and create the | 
 | 8926 |   # libtool script then. | 
 | 8927 |   test -f Makefile && make "$ltmain" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8928 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8929 |  | 
 | 8930 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 8931 | ac_ext=c | 
 | 8932 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8936 |  | 
 | 8937 | CC="$lt_save_CC" | 
 | 8938 |  | 
 | 8939 |  | 
 | 8940 | # Check whether --with-tags or --without-tags was given. | 
 | 8941 | if test "${with_tags+set}" = set; then | 
 | 8942 |   withval="$with_tags" | 
 | 8943 |   tagnames="$withval" | 
 | 8944 | fi; | 
 | 8945 |  | 
 | 8946 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 8947 |   if test ! -f "${ofile}"; then | 
 | 8948 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 8949 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 8950 |   fi | 
 | 8951 |  | 
 | 8952 |   if test -z "$LTCC"; then | 
 | 8953 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 8954 |     if test -z "$LTCC"; then | 
 | 8955 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 8956 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 8957 |     else | 
 | 8958 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 8959 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 8960 |     fi | 
 | 8961 |   fi | 
 | 8962 |  | 
 | 8963 |   # Extract list of available tagged configurations in $ofile. | 
 | 8964 |   # Note that this assumes the entire list is on one line. | 
 | 8965 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 8966 |  | 
 | 8967 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 8968 |   for tagname in $tagnames; do | 
 | 8969 |     IFS="$lt_save_ifs" | 
 | 8970 |     # Check whether tagname contains only valid characters | 
 | 8971 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 8972 |     "") ;; | 
 | 8973 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 8974 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 8975 |    { (exit 1); exit 1; }; } | 
 | 8976 | 	;; | 
 | 8977 |     esac | 
 | 8978 |  | 
 | 8979 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 8980 |     then | 
 | 8981 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 8982 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 8983 |    { (exit 1); exit 1; }; } | 
 | 8984 |     fi | 
 | 8985 |  | 
 | 8986 |     # Update the list of available tags. | 
 | 8987 |     if test -n "$tagname"; then | 
 | 8988 |       echo appending configuration tag \"$tagname\" to $ofile | 
 | 8989 |  | 
 | 8990 |       case $tagname in | 
 | 8991 |       CXX) | 
 | 8992 | 	if test -n "$CXX" && test "X$CXX" != "Xno"; then | 
 | 8993 | 	  ac_ext=cc | 
 | 8994 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 8995 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8996 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8997 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 8998 |  | 
 | 8999 |  | 
 | 9000 |  | 
 | 9001 |  | 
 | 9002 | archive_cmds_need_lc_CXX=no | 
 | 9003 | allow_undefined_flag_CXX= | 
 | 9004 | always_export_symbols_CXX=no | 
 | 9005 | archive_expsym_cmds_CXX= | 
 | 9006 | export_dynamic_flag_spec_CXX= | 
 | 9007 | hardcode_direct_CXX=no | 
 | 9008 | hardcode_libdir_flag_spec_CXX= | 
 | 9009 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 9010 | hardcode_libdir_separator_CXX= | 
 | 9011 | hardcode_minus_L_CXX=no | 
 | 9012 | hardcode_automatic_CXX=no | 
 | 9013 | module_cmds_CXX= | 
 | 9014 | module_expsym_cmds_CXX= | 
 | 9015 | link_all_deplibs_CXX=unknown | 
 | 9016 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 9017 | no_undefined_flag_CXX= | 
 | 9018 | whole_archive_flag_spec_CXX= | 
 | 9019 | enable_shared_with_static_runtimes_CXX=no | 
 | 9020 |  | 
 | 9021 | # Dependencies to place before and after the object being linked: | 
 | 9022 | predep_objects_CXX= | 
 | 9023 | postdep_objects_CXX= | 
 | 9024 | predeps_CXX= | 
 | 9025 | postdeps_CXX= | 
 | 9026 | compiler_lib_search_path_CXX= | 
 | 9027 |  | 
 | 9028 | # Source file extension for C++ test sources. | 
 | 9029 | ac_ext=cc | 
 | 9030 |  | 
 | 9031 | # Object file extension for compiled C++ test sources. | 
 | 9032 | objext=o | 
 | 9033 | objext_CXX=$objext | 
 | 9034 |  | 
 | 9035 | # Code to be used in simple compile tests | 
 | 9036 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 9037 |  | 
 | 9038 | # Code to be used in simple link tests | 
 | 9039 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 
 | 9040 |  | 
 | 9041 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 9042 |  | 
 | 9043 | # If no C compiler was specified, use CC. | 
 | 9044 | LTCC=${LTCC-"$CC"} | 
 | 9045 |  | 
 | 9046 | # Allow CC to be a program name with arguments. | 
 | 9047 | compiler=$CC | 
 | 9048 |  | 
 | 9049 |  | 
 | 9050 | # Allow CC to be a program name with arguments. | 
 | 9051 | lt_save_CC=$CC | 
 | 9052 | lt_save_LD=$LD | 
 | 9053 | lt_save_GCC=$GCC | 
 | 9054 | GCC=$GXX | 
 | 9055 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 9056 | lt_save_path_LD=$lt_cv_path_LD | 
 | 9057 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 9058 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 9059 | else | 
 | 9060 |   unset lt_cv_prog_gnu_ld | 
 | 9061 | fi | 
 | 9062 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 9063 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 9064 | else | 
 | 9065 |   unset lt_cv_path_LD | 
 | 9066 | fi | 
 | 9067 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 9068 | CC=${CXX-"c++"} | 
 | 9069 | compiler=$CC | 
 | 9070 | compiler_CXX=$CC | 
 | 9071 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 9072 |  | 
 | 9073 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 9074 | # no_builtin_flag separately | 
 | 9075 | if test "$GXX" = yes; then | 
 | 9076 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 9077 | else | 
 | 9078 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 9079 | fi | 
 | 9080 |  | 
 | 9081 | if test "$GXX" = yes; then | 
 | 9082 |   # Set up default GNU C++ configuration | 
 | 9083 |  | 
 | 9084 |  | 
 | 9085 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 9086 | if test "${with_gnu_ld+set}" = set; then | 
 | 9087 |   withval="$with_gnu_ld" | 
 | 9088 |   test "$withval" = no || with_gnu_ld=yes | 
 | 9089 | else | 
 | 9090 |   with_gnu_ld=no | 
 | 9091 | fi; | 
 | 9092 | ac_prog=ld | 
 | 9093 | if test "$GCC" = yes; then | 
 | 9094 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 9095 |   echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 9096 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | 
 | 9097 |   case $host in | 
 | 9098 |   *-*-mingw*) | 
 | 9099 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 9100 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 9101 |   *) | 
 | 9102 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 9103 |   esac | 
 | 9104 |   case $ac_prog in | 
 | 9105 |     # Accept absolute paths. | 
 | 9106 |     [\\/]* | ?:[\\/]*) | 
 | 9107 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 9108 |       # Canonicalize the path of ld | 
 | 9109 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 9110 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 9111 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 9112 |       done | 
 | 9113 |       test -z "$LD" && LD="$ac_prog" | 
 | 9114 |       ;; | 
 | 9115 |   "") | 
 | 9116 |     # If it fails, then pretend we aren't using GCC. | 
 | 9117 |     ac_prog=ld | 
 | 9118 |     ;; | 
 | 9119 |   *) | 
 | 9120 |     # If it is relative, then search for the first ld in PATH. | 
 | 9121 |     with_gnu_ld=unknown | 
 | 9122 |     ;; | 
 | 9123 |   esac | 
 | 9124 | elif test "$with_gnu_ld" = yes; then | 
 | 9125 |   echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 9126 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | 
 | 9127 | else | 
 | 9128 |   echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 9129 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | 
 | 9130 | fi | 
 | 9131 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 9132 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9133 | else | 
 | 9134 |   if test -z "$LD"; then | 
 | 9135 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 9136 |   for ac_dir in $PATH; do | 
 | 9137 |     IFS="$lt_save_ifs" | 
 | 9138 |     test -z "$ac_dir" && ac_dir=. | 
 | 9139 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 9140 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 9141 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 9142 |       # but apparently some GNU ld's only accept -v. | 
 | 9143 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 9144 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 9145 |       *GNU* | *'with BFD'*) | 
 | 9146 | 	test "$with_gnu_ld" != no && break | 
 | 9147 | 	;; | 
 | 9148 |       *) | 
 | 9149 | 	test "$with_gnu_ld" != yes && break | 
 | 9150 | 	;; | 
 | 9151 |       esac | 
 | 9152 |     fi | 
 | 9153 |   done | 
 | 9154 |   IFS="$lt_save_ifs" | 
 | 9155 | else | 
 | 9156 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 9157 | fi | 
 | 9158 | fi | 
 | 9159 |  | 
 | 9160 | LD="$lt_cv_path_LD" | 
 | 9161 | if test -n "$LD"; then | 
 | 9162 |   echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 9163 | echo "${ECHO_T}$LD" >&6 | 
 | 9164 | else | 
 | 9165 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 9166 | echo "${ECHO_T}no" >&6 | 
 | 9167 | fi | 
 | 9168 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 9169 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 9170 |    { (exit 1); exit 1; }; } | 
 | 9171 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 9172 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | 
 | 9173 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 9174 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9175 | else | 
 | 9176 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
 | 9177 | case `"$LD" -v 2>&1 </dev/null` in | 
 | 9178 | *GNU* | *'with BFD'*) | 
 | 9179 |   lt_cv_prog_gnu_ld=yes | 
 | 9180 |   ;; | 
 | 9181 | *) | 
 | 9182 |   lt_cv_prog_gnu_ld=no | 
 | 9183 |   ;; | 
 | 9184 | esac | 
 | 9185 | fi | 
 | 9186 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 9187 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | 
 | 9188 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 9189 |  | 
 | 9190 |  | 
 | 9191 |  | 
 | 9192 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 9193 |   # archiving commands below assume that GNU ld is being used. | 
 | 9194 |   if test "$with_gnu_ld" = yes; then | 
 | 9195 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 9196 |     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' | 
 | 9197 |  | 
 | 9198 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 9199 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 9200 |  | 
 | 9201 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 9202 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 9203 |     #     investigate it a little bit more. (MM) | 
 | 9204 |     wlarc='${wl}' | 
 | 9205 |  | 
 | 9206 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 9207 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 9208 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 9209 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 9210 |     else | 
 | 9211 |       whole_archive_flag_spec_CXX= | 
 | 9212 |     fi | 
 | 9213 |   else | 
 | 9214 |     with_gnu_ld=no | 
 | 9215 |     wlarc= | 
 | 9216 |  | 
 | 9217 |     # A generic and very simple default shared library creation | 
 | 9218 |     # command for GNU C++ for the case where it uses the native | 
 | 9219 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 9220 |     # overridden to take advantage of the native linker features on | 
 | 9221 |     # the platform it is being used on. | 
 | 9222 |     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 9223 |   fi | 
 | 9224 |  | 
 | 9225 |   # Commands to make compiler produce verbose output that lists | 
 | 9226 |   # what "hidden" libraries, object files and flags are used when | 
 | 9227 |   # linking a shared library. | 
 | 9228 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 9229 |  | 
 | 9230 | else | 
 | 9231 |   GXX=no | 
 | 9232 |   with_gnu_ld=no | 
 | 9233 |   wlarc= | 
 | 9234 | fi | 
 | 9235 |  | 
 | 9236 | # PORTME: fill in a description of your system's C++ link characteristics | 
 | 9237 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 9238 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 9239 | ld_shlibs_CXX=yes | 
 | 9240 | case $host_os in | 
 | 9241 |   aix3*) | 
 | 9242 |     # FIXME: insert proper C++ library support | 
 | 9243 |     ld_shlibs_CXX=no | 
 | 9244 |     ;; | 
 | 9245 |   aix4* | aix5*) | 
 | 9246 |     if test "$host_cpu" = ia64; then | 
 | 9247 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 9248 |       # have to do anything special. | 
 | 9249 |       aix_use_runtimelinking=no | 
 | 9250 |       exp_sym_flag='-Bexport' | 
 | 9251 |       no_entry_flag="" | 
 | 9252 |     else | 
 | 9253 |       aix_use_runtimelinking=no | 
 | 9254 |  | 
 | 9255 |       # Test if we are trying to use run time linking or normal | 
 | 9256 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 9257 |       # need to do runtime linking. | 
 | 9258 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 9259 | 	for ld_flag in $LDFLAGS; do | 
 | 9260 | 	  case $ld_flag in | 
 | 9261 | 	  *-brtl*) | 
 | 9262 | 	    aix_use_runtimelinking=yes | 
 | 9263 | 	    break | 
 | 9264 | 	    ;; | 
 | 9265 | 	  esac | 
 | 9266 | 	done | 
 | 9267 |       esac | 
 | 9268 |  | 
 | 9269 |       exp_sym_flag='-bexport' | 
 | 9270 |       no_entry_flag='-bnoentry' | 
 | 9271 |     fi | 
 | 9272 |  | 
 | 9273 |     # When large executables or shared objects are built, AIX ld can | 
 | 9274 |     # have problems creating the table of contents.  If linking a library | 
 | 9275 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 9276 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 9277 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 9278 |  | 
 | 9279 |     archive_cmds_CXX='' | 
 | 9280 |     hardcode_direct_CXX=yes | 
 | 9281 |     hardcode_libdir_separator_CXX=':' | 
 | 9282 |     link_all_deplibs_CXX=yes | 
 | 9283 |  | 
 | 9284 |     if test "$GXX" = yes; then | 
 | 9285 |       case $host_os in aix4.012|aix4.012.*) | 
 | 9286 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 9287 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 9288 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 9289 | 	if test -f "$collect2name" && \ | 
 | 9290 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 9291 | 	then | 
 | 9292 | 	  # We have reworked collect2 | 
 | 9293 | 	  hardcode_direct_CXX=yes | 
 | 9294 | 	else | 
 | 9295 | 	  # We have old collect2 | 
 | 9296 | 	  hardcode_direct_CXX=unsupported | 
 | 9297 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 9298 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 9299 | 	  # to unsupported forces relinking | 
 | 9300 | 	  hardcode_minus_L_CXX=yes | 
 | 9301 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9302 | 	  hardcode_libdir_separator_CXX= | 
 | 9303 | 	fi | 
 | 9304 |       esac | 
 | 9305 |       shared_flag='-shared' | 
 | 9306 |     else | 
 | 9307 |       # not using gcc | 
 | 9308 |       if test "$host_cpu" = ia64; then | 
 | 9309 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 9310 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 9311 | 	shared_flag='-G' | 
 | 9312 |       else | 
 | 9313 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 9314 | 	  shared_flag='${wl}-G' | 
 | 9315 | 	else | 
 | 9316 | 	  shared_flag='${wl}-bM:SRE' | 
 | 9317 | 	fi | 
 | 9318 |       fi | 
 | 9319 |     fi | 
 | 9320 |  | 
 | 9321 |     # It seems that -bexpall does not export symbols beginning with | 
 | 9322 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 9323 |     always_export_symbols_CXX=yes | 
 | 9324 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 9325 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 9326 |       # -berok will link without error, but may produce a broken library. | 
 | 9327 |       allow_undefined_flag_CXX='-berok' | 
 | 9328 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 9329 |       cat >conftest.$ac_ext <<_ACEOF | 
 | 9330 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9331 | /* confdefs.h.  */ | 
 | 9332 | _ACEOF | 
 | 9333 | cat confdefs.h >>conftest.$ac_ext | 
 | 9334 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9335 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9336 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9337 | int | 
 | 9338 | main () | 
 | 9339 | { | 
 | 9340 |  | 
 | 9341 |   ; | 
 | 9342 |   return 0; | 
 | 9343 | } | 
 | 9344 | _ACEOF | 
 | 9345 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9347 |   (eval $ac_link) 2>&5 | 
 | 9348 |   ac_status=$? | 
 | 9349 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9350 |   (exit $ac_status); } && | 
 | 9351 |          { ac_try='test -s conftest$ac_exeext' | 
 | 9352 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9353 |   (eval $ac_try) 2>&5 | 
 | 9354 |   ac_status=$? | 
 | 9355 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9356 |   (exit $ac_status); }; }; then | 
 | 9357 |  | 
 | 9358 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9359 | }'` | 
 | 9360 | # Check for a 64-bit object if we didn't find anything. | 
 | 9361 | 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; } | 
 | 9362 | }'`; fi | 
 | 9363 | else | 
 | 9364 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9365 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9366 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9367 | fi | 
 | 9368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 9369 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9370 |  | 
 | 9371 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9372 |  | 
 | 9373 |       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" | 
 | 9374 |      else | 
 | 9375 |       if test "$host_cpu" = ia64; then | 
 | 9376 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 9377 | 	allow_undefined_flag_CXX="-z nodefs" | 
 | 9378 | 	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" | 
 | 9379 |       else | 
 | 9380 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 9381 | 	cat >conftest.$ac_ext <<_ACEOF | 
 | 9382 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9383 | /* confdefs.h.  */ | 
 | 9384 | _ACEOF | 
 | 9385 | cat confdefs.h >>conftest.$ac_ext | 
 | 9386 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9387 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9388 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9389 | int | 
 | 9390 | main () | 
 | 9391 | { | 
 | 9392 |  | 
 | 9393 |   ; | 
 | 9394 |   return 0; | 
 | 9395 | } | 
 | 9396 | _ACEOF | 
 | 9397 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 9399 |   (eval $ac_link) 2>&5 | 
 | 9400 |   ac_status=$? | 
 | 9401 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9402 |   (exit $ac_status); } && | 
 | 9403 |          { ac_try='test -s conftest$ac_exeext' | 
 | 9404 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 9405 |   (eval $ac_try) 2>&5 | 
 | 9406 |   ac_status=$? | 
 | 9407 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9408 |   (exit $ac_status); }; }; then | 
 | 9409 |  | 
 | 9410 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 9411 | }'` | 
 | 9412 | # Check for a 64-bit object if we didn't find anything. | 
 | 9413 | 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; } | 
 | 9414 | }'`; fi | 
 | 9415 | else | 
 | 9416 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9417 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9418 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 9419 | fi | 
 | 9420 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 9421 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 9422 |  | 
 | 9423 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 9424 | 	# Warning - without using the other run time loading flags, | 
 | 9425 | 	# -berok will link without error, but may produce a broken library. | 
 | 9426 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 9427 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
 | 9428 | 	# -bexpall does not export symbols beginning with underscore (_) | 
 | 9429 | 	always_export_symbols_CXX=yes | 
 | 9430 | 	# Exported symbols can be pulled into shared objects from archives | 
 | 9431 | 	whole_archive_flag_spec_CXX=' ' | 
 | 9432 | 	archive_cmds_need_lc_CXX=yes | 
 | 9433 | 	# This is similar to how AIX traditionally builds it's shared libraries. | 
 | 9434 | 	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' | 
 | 9435 |       fi | 
 | 9436 |     fi | 
 | 9437 |     ;; | 
 | 9438 |   chorus*) | 
 | 9439 |     case $cc_basename in | 
 | 9440 |       *) | 
 | 9441 | 	# FIXME: insert proper C++ library support | 
 | 9442 | 	ld_shlibs_CXX=no | 
 | 9443 | 	;; | 
 | 9444 |     esac | 
 | 9445 |     ;; | 
 | 9446 |  | 
 | 9447 |   cygwin* | mingw* | pw32*) | 
 | 9448 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 9449 |     # as there is no search path for DLLs. | 
 | 9450 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9451 |     allow_undefined_flag_CXX=unsupported | 
 | 9452 |     always_export_symbols_CXX=no | 
 | 9453 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 9454 |  | 
 | 9455 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 9456 |       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' | 
 | 9457 |       # If the export-symbols file already is a .def file (1st line | 
 | 9458 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 9459 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 9460 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 9461 |       else | 
 | 9462 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 9463 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
 | 9464 |       fi~ | 
 | 9465 |       $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' | 
 | 9466 |     else | 
 | 9467 |       ld_shlibs_CXX=no | 
 | 9468 |     fi | 
 | 9469 |   ;; | 
 | 9470 |  | 
 | 9471 |   darwin* | rhapsody*) | 
 | 9472 |    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 9473 |     archive_cmds_need_lc_CXX=no | 
 | 9474 |     case "$host_os" in | 
 | 9475 |     rhapsody* | darwin1.[012]) | 
 | 9476 |       allow_undefined_flag_CXX='-undefined suppress' | 
 | 9477 |       ;; | 
 | 9478 |     *) # Darwin 1.3 on | 
 | 9479 |       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | 
 | 9480 |       ;; | 
 | 9481 |     esac | 
 | 9482 |     	lt_int_apple_cc_single_mod=no | 
 | 9483 |     	output_verbose_link_cmd='echo' | 
 | 9484 |     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
 | 9485 |     	  lt_int_apple_cc_single_mod=yes | 
 | 9486 |     	fi | 
 | 9487 |     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 9488 |     	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 9489 |     	else | 
 | 9490 |         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' | 
 | 9491 |       fi | 
 | 9492 |       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
 | 9493 |  | 
 | 9494 |     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 9495 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 9496 |         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}' | 
 | 9497 |       else | 
 | 9498 |         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
 | 9499 |       fi | 
 | 9500 |         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 9501 |     hardcode_direct_CXX=no | 
 | 9502 |     hardcode_automatic_CXX=yes | 
 | 9503 |     hardcode_shlibpath_var_CXX=unsupported | 
 | 9504 |     whole_archive_flag_spec_CXX='-all_load $convenience' | 
 | 9505 |     link_all_deplibs_CXX=yes | 
 | 9506 |    fi | 
 | 9507 |     ;; | 
 | 9508 |  | 
 | 9509 |   dgux*) | 
 | 9510 |     case $cc_basename in | 
 | 9511 |       ec++) | 
 | 9512 | 	# FIXME: insert proper C++ library support | 
 | 9513 | 	ld_shlibs_CXX=no | 
 | 9514 | 	;; | 
 | 9515 |       ghcx) | 
 | 9516 | 	# Green Hills C++ Compiler | 
 | 9517 | 	# FIXME: insert proper C++ library support | 
 | 9518 | 	ld_shlibs_CXX=no | 
 | 9519 | 	;; | 
 | 9520 |       *) | 
 | 9521 | 	# FIXME: insert proper C++ library support | 
 | 9522 | 	ld_shlibs_CXX=no | 
 | 9523 | 	;; | 
 | 9524 |     esac | 
 | 9525 |     ;; | 
 | 9526 |   freebsd12*) | 
 | 9527 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 9528 |     ld_shlibs_CXX=no | 
 | 9529 |     ;; | 
 | 9530 |   freebsd-elf*) | 
 | 9531 |     archive_cmds_need_lc_CXX=no | 
 | 9532 |     ;; | 
 | 9533 |   freebsd*) | 
 | 9534 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 9535 |     # conventions | 
 | 9536 |     ld_shlibs_CXX=yes | 
 | 9537 |     ;; | 
 | 9538 |   gnu*) | 
 | 9539 |     ;; | 
 | 9540 |   hpux9*) | 
 | 9541 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 9542 |     hardcode_libdir_separator_CXX=: | 
 | 9543 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 9544 |     hardcode_direct_CXX=yes | 
 | 9545 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 9546 | 				# but as the default | 
 | 9547 | 				# location of the library. | 
 | 9548 |  | 
 | 9549 |     case $cc_basename in | 
 | 9550 |     CC) | 
 | 9551 |       # FIXME: insert proper C++ library support | 
 | 9552 |       ld_shlibs_CXX=no | 
 | 9553 |       ;; | 
 | 9554 |     aCC) | 
 | 9555 |       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' | 
 | 9556 |       # Commands to make compiler produce verbose output that lists | 
 | 9557 |       # what "hidden" libraries, object files and flags are used when | 
 | 9558 |       # linking a shared library. | 
 | 9559 |       # | 
 | 9560 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 9561 |       # explicitly linking system object files so we need to strip them | 
 | 9562 |       # from the output so that they don't get included in the library | 
 | 9563 |       # dependencies. | 
 | 9564 |       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
 | 9565 |       ;; | 
 | 9566 |     *) | 
 | 9567 |       if test "$GXX" = yes; then | 
 | 9568 |         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' | 
 | 9569 |       else | 
 | 9570 |         # FIXME: insert proper C++ library support | 
 | 9571 |         ld_shlibs_CXX=no | 
 | 9572 |       fi | 
 | 9573 |       ;; | 
 | 9574 |     esac | 
 | 9575 |     ;; | 
 | 9576 |   hpux10*|hpux11*) | 
 | 9577 |     if test $with_gnu_ld = no; then | 
 | 9578 |       case "$host_cpu" in | 
 | 9579 |       hppa*64*) | 
 | 9580 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 9581 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
 | 9582 | 	hardcode_libdir_separator_CXX=: | 
 | 9583 |         ;; | 
 | 9584 |       ia64*) | 
 | 9585 | 	hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 9586 |         ;; | 
 | 9587 |       *) | 
 | 9588 | 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 9589 | 	hardcode_libdir_separator_CXX=: | 
 | 9590 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 9591 |         ;; | 
 | 9592 |       esac | 
 | 9593 |     fi | 
 | 9594 |     case "$host_cpu" in | 
 | 9595 |     hppa*64*) | 
 | 9596 |       hardcode_direct_CXX=no | 
 | 9597 |       hardcode_shlibpath_var_CXX=no | 
 | 9598 |       ;; | 
 | 9599 |     ia64*) | 
 | 9600 |       hardcode_direct_CXX=no | 
 | 9601 |       hardcode_shlibpath_var_CXX=no | 
 | 9602 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 9603 | 					      # but as the default | 
 | 9604 | 					      # location of the library. | 
 | 9605 |       ;; | 
 | 9606 |     *) | 
 | 9607 |       hardcode_direct_CXX=yes | 
 | 9608 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 9609 | 					      # but as the default | 
 | 9610 | 					      # location of the library. | 
 | 9611 |       ;; | 
 | 9612 |     esac | 
 | 9613 |  | 
 | 9614 |     case $cc_basename in | 
 | 9615 |       CC) | 
 | 9616 | 	# FIXME: insert proper C++ library support | 
 | 9617 | 	ld_shlibs_CXX=no | 
 | 9618 | 	;; | 
 | 9619 |       aCC) | 
 | 9620 | 	case "$host_cpu" in | 
 | 9621 | 	hppa*64*|ia64*) | 
 | 9622 | 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 9623 | 	  ;; | 
 | 9624 | 	*) | 
 | 9625 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 9626 | 	  ;; | 
 | 9627 | 	esac | 
 | 9628 | 	# Commands to make compiler produce verbose output that lists | 
 | 9629 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9630 | 	# linking a shared library. | 
 | 9631 | 	# | 
 | 9632 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9633 | 	# explicitly linking system object files so we need to strip them | 
 | 9634 | 	# from the output so that they don't get included in the library | 
 | 9635 | 	# dependencies. | 
 | 9636 | 	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' | 
 | 9637 | 	;; | 
 | 9638 |       *) | 
 | 9639 | 	if test "$GXX" = yes; then | 
 | 9640 | 	  if test $with_gnu_ld = no; then | 
 | 9641 | 	    case "$host_cpu" in | 
 | 9642 | 	    ia64*|hppa*64*) | 
 | 9643 | 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 
 | 9644 | 	      ;; | 
 | 9645 | 	    *) | 
 | 9646 | 	      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' | 
 | 9647 | 	      ;; | 
 | 9648 | 	    esac | 
 | 9649 | 	  fi | 
 | 9650 | 	else | 
 | 9651 | 	  # FIXME: insert proper C++ library support | 
 | 9652 | 	  ld_shlibs_CXX=no | 
 | 9653 | 	fi | 
 | 9654 | 	;; | 
 | 9655 |     esac | 
 | 9656 |     ;; | 
 | 9657 |   irix5* | irix6*) | 
 | 9658 |     case $cc_basename in | 
 | 9659 |       CC) | 
 | 9660 | 	# SGI C++ | 
 | 9661 | 	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' | 
 | 9662 |  | 
 | 9663 | 	# Archives containing C++ object files must be created using | 
 | 9664 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 9665 | 	# necessary to make sure instantiated templates are included | 
 | 9666 | 	# in the archive. | 
 | 9667 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 9668 | 	;; | 
 | 9669 |       *) | 
 | 9670 | 	if test "$GXX" = yes; then | 
 | 9671 | 	  if test "$with_gnu_ld" = no; then | 
 | 9672 | 	    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' | 
 | 9673 | 	  else | 
 | 9674 | 	    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' | 
 | 9675 | 	  fi | 
 | 9676 | 	fi | 
 | 9677 | 	link_all_deplibs_CXX=yes | 
 | 9678 | 	;; | 
 | 9679 |     esac | 
 | 9680 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 9681 |     hardcode_libdir_separator_CXX=: | 
 | 9682 |     ;; | 
 | 9683 |   linux*) | 
 | 9684 |     case $cc_basename in | 
 | 9685 |       KCC) | 
 | 9686 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 9687 |  | 
 | 9688 | 	# KCC will only create a shared library if the output file | 
 | 9689 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 9690 | 	# to its proper name (with version) after linking. | 
 | 9691 | 	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' | 
 | 9692 | 	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' | 
 | 9693 | 	# Commands to make compiler produce verbose output that lists | 
 | 9694 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9695 | 	# linking a shared library. | 
 | 9696 | 	# | 
 | 9697 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9698 | 	# explicitly linking system object files so we need to strip them | 
 | 9699 | 	# from the output so that they don't get included in the library | 
 | 9700 | 	# dependencies. | 
 | 9701 | 	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' | 
 | 9702 |  | 
 | 9703 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 9704 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 9705 |  | 
 | 9706 | 	# Archives containing C++ object files must be created using | 
 | 9707 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 9708 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 9709 | 	;; | 
 | 9710 |       icpc) | 
 | 9711 | 	# Intel C++ | 
 | 9712 | 	with_gnu_ld=yes | 
 | 9713 | 	archive_cmds_need_lc_CXX=no | 
 | 9714 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 9715 | 	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' | 
 | 9716 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 9717 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 9718 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 9719 | 	;; | 
 | 9720 |       cxx) | 
 | 9721 | 	# Compaq C++ | 
 | 9722 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 9723 | 	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' | 
 | 9724 |  | 
 | 9725 | 	runpath_var=LD_RUN_PATH | 
 | 9726 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 9727 | 	hardcode_libdir_separator_CXX=: | 
 | 9728 |  | 
 | 9729 | 	# Commands to make compiler produce verbose output that lists | 
 | 9730 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9731 | 	# linking a shared library. | 
 | 9732 | 	# | 
 | 9733 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9734 | 	# explicitly linking system object files so we need to strip them | 
 | 9735 | 	# from the output so that they don't get included in the library | 
 | 9736 | 	# dependencies. | 
 | 9737 | 	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' | 
 | 9738 | 	;; | 
 | 9739 |     esac | 
 | 9740 |     ;; | 
 | 9741 |   lynxos*) | 
 | 9742 |     # FIXME: insert proper C++ library support | 
 | 9743 |     ld_shlibs_CXX=no | 
 | 9744 |     ;; | 
 | 9745 |   m88k*) | 
 | 9746 |     # FIXME: insert proper C++ library support | 
 | 9747 |     ld_shlibs_CXX=no | 
 | 9748 |     ;; | 
 | 9749 |   mvs*) | 
 | 9750 |     case $cc_basename in | 
 | 9751 |       cxx) | 
 | 9752 | 	# FIXME: insert proper C++ library support | 
 | 9753 | 	ld_shlibs_CXX=no | 
 | 9754 | 	;; | 
 | 9755 |       *) | 
 | 9756 | 	# FIXME: insert proper C++ library support | 
 | 9757 | 	ld_shlibs_CXX=no | 
 | 9758 | 	;; | 
 | 9759 |     esac | 
 | 9760 |     ;; | 
 | 9761 |   netbsd*) | 
 | 9762 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 9763 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 9764 |       wlarc= | 
 | 9765 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 9766 |       hardcode_direct_CXX=yes | 
 | 9767 |       hardcode_shlibpath_var_CXX=no | 
 | 9768 |     fi | 
 | 9769 |     # Workaround some broken pre-1.5 toolchains | 
 | 9770 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 9771 |     ;; | 
 | 9772 |   osf3*) | 
 | 9773 |     case $cc_basename in | 
 | 9774 |       KCC) | 
 | 9775 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 9776 |  | 
 | 9777 | 	# KCC will only create a shared library if the output file | 
 | 9778 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 9779 | 	# to its proper name (with version) after linking. | 
 | 9780 | 	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' | 
 | 9781 |  | 
 | 9782 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 9783 | 	hardcode_libdir_separator_CXX=: | 
 | 9784 |  | 
 | 9785 | 	# Archives containing C++ object files must be created using | 
 | 9786 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 9787 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 9788 |  | 
 | 9789 | 	;; | 
 | 9790 |       RCC) | 
 | 9791 | 	# Rational C++ 2.4.1 | 
 | 9792 | 	# FIXME: insert proper C++ library support | 
 | 9793 | 	ld_shlibs_CXX=no | 
 | 9794 | 	;; | 
 | 9795 |       cxx) | 
 | 9796 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 9797 | 	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' | 
 | 9798 |  | 
 | 9799 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 9800 | 	hardcode_libdir_separator_CXX=: | 
 | 9801 |  | 
 | 9802 | 	# Commands to make compiler produce verbose output that lists | 
 | 9803 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9804 | 	# linking a shared library. | 
 | 9805 | 	# | 
 | 9806 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9807 | 	# explicitly linking system object files so we need to strip them | 
 | 9808 | 	# from the output so that they don't get included in the library | 
 | 9809 | 	# dependencies. | 
 | 9810 | 	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' | 
 | 9811 | 	;; | 
 | 9812 |       *) | 
 | 9813 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 9814 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 9815 | 	  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' | 
 | 9816 |  | 
 | 9817 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 9818 | 	  hardcode_libdir_separator_CXX=: | 
 | 9819 |  | 
 | 9820 | 	  # Commands to make compiler produce verbose output that lists | 
 | 9821 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 9822 | 	  # linking a shared library. | 
 | 9823 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 9824 |  | 
 | 9825 | 	else | 
 | 9826 | 	  # FIXME: insert proper C++ library support | 
 | 9827 | 	  ld_shlibs_CXX=no | 
 | 9828 | 	fi | 
 | 9829 | 	;; | 
 | 9830 |     esac | 
 | 9831 |     ;; | 
 | 9832 |   osf4* | osf5*) | 
 | 9833 |     case $cc_basename in | 
 | 9834 |       KCC) | 
 | 9835 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 9836 |  | 
 | 9837 | 	# KCC will only create a shared library if the output file | 
 | 9838 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 9839 | 	# to its proper name (with version) after linking. | 
 | 9840 | 	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' | 
 | 9841 |  | 
 | 9842 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 9843 | 	hardcode_libdir_separator_CXX=: | 
 | 9844 |  | 
 | 9845 | 	# Archives containing C++ object files must be created using | 
 | 9846 | 	# the KAI C++ compiler. | 
 | 9847 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 9848 | 	;; | 
 | 9849 |       RCC) | 
 | 9850 | 	# Rational C++ 2.4.1 | 
 | 9851 | 	# FIXME: insert proper C++ library support | 
 | 9852 | 	ld_shlibs_CXX=no | 
 | 9853 | 	;; | 
 | 9854 |       cxx) | 
 | 9855 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
 | 9856 | 	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' | 
 | 9857 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 9858 | 	  echo "-hidden">> $lib.exp~ | 
 | 9859 | 	  $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~ | 
 | 9860 | 	  $rm $lib.exp' | 
 | 9861 |  | 
 | 9862 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 9863 | 	hardcode_libdir_separator_CXX=: | 
 | 9864 |  | 
 | 9865 | 	# Commands to make compiler produce verbose output that lists | 
 | 9866 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9867 | 	# linking a shared library. | 
 | 9868 | 	# | 
 | 9869 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9870 | 	# explicitly linking system object files so we need to strip them | 
 | 9871 | 	# from the output so that they don't get included in the library | 
 | 9872 | 	# dependencies. | 
 | 9873 | 	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' | 
 | 9874 | 	;; | 
 | 9875 |       *) | 
 | 9876 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 9877 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 9878 | 	 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' | 
 | 9879 |  | 
 | 9880 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 9881 | 	  hardcode_libdir_separator_CXX=: | 
 | 9882 |  | 
 | 9883 | 	  # Commands to make compiler produce verbose output that lists | 
 | 9884 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 9885 | 	  # linking a shared library. | 
 | 9886 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 9887 |  | 
 | 9888 | 	else | 
 | 9889 | 	  # FIXME: insert proper C++ library support | 
 | 9890 | 	  ld_shlibs_CXX=no | 
 | 9891 | 	fi | 
 | 9892 | 	;; | 
 | 9893 |     esac | 
 | 9894 |     ;; | 
 | 9895 |   psos*) | 
 | 9896 |     # FIXME: insert proper C++ library support | 
 | 9897 |     ld_shlibs_CXX=no | 
 | 9898 |     ;; | 
 | 9899 |   sco*) | 
 | 9900 |     archive_cmds_need_lc_CXX=no | 
 | 9901 |     case $cc_basename in | 
 | 9902 |       CC) | 
 | 9903 | 	# FIXME: insert proper C++ library support | 
 | 9904 | 	ld_shlibs_CXX=no | 
 | 9905 | 	;; | 
 | 9906 |       *) | 
 | 9907 | 	# FIXME: insert proper C++ library support | 
 | 9908 | 	ld_shlibs_CXX=no | 
 | 9909 | 	;; | 
 | 9910 |     esac | 
 | 9911 |     ;; | 
 | 9912 |   sunos4*) | 
 | 9913 |     case $cc_basename in | 
 | 9914 |       CC) | 
 | 9915 | 	# Sun C++ 4.x | 
 | 9916 | 	# FIXME: insert proper C++ library support | 
 | 9917 | 	ld_shlibs_CXX=no | 
 | 9918 | 	;; | 
 | 9919 |       lcc) | 
 | 9920 | 	# Lucid | 
 | 9921 | 	# FIXME: insert proper C++ library support | 
 | 9922 | 	ld_shlibs_CXX=no | 
 | 9923 | 	;; | 
 | 9924 |       *) | 
 | 9925 | 	# FIXME: insert proper C++ library support | 
 | 9926 | 	ld_shlibs_CXX=no | 
 | 9927 | 	;; | 
 | 9928 |     esac | 
 | 9929 |     ;; | 
 | 9930 |   solaris*) | 
 | 9931 |     case $cc_basename in | 
 | 9932 |       CC) | 
 | 9933 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
 | 9934 | 	no_undefined_flag_CXX=' -zdefs' | 
 | 9935 | 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 9936 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 9937 | 	$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' | 
 | 9938 |  | 
 | 9939 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 9940 | 	hardcode_shlibpath_var_CXX=no | 
 | 9941 | 	case $host_os in | 
 | 9942 | 	  solaris2.0-5 | solaris2.0-5.*) ;; | 
 | 9943 | 	  *) | 
 | 9944 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 9945 | 	    # flag to pass the commands to the underlying system | 
 | 9946 | 	    # linker. | 
 | 9947 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 9948 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 9949 | 	    ;; | 
 | 9950 | 	esac | 
 | 9951 | 	link_all_deplibs_CXX=yes | 
 | 9952 |  | 
 | 9953 | 	# Commands to make compiler produce verbose output that lists | 
 | 9954 | 	# what "hidden" libraries, object files and flags are used when | 
 | 9955 | 	# linking a shared library. | 
 | 9956 | 	# | 
 | 9957 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 9958 | 	# explicitly linking system object files so we need to strip them | 
 | 9959 | 	# from the output so that they don't get included in the library | 
 | 9960 | 	# dependencies. | 
 | 9961 | 	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' | 
 | 9962 |  | 
 | 9963 | 	# Archives containing C++ object files must be created using | 
 | 9964 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 9965 | 	# necessary to make sure instantiated templates are included | 
 | 9966 | 	# in the archive. | 
 | 9967 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 9968 | 	;; | 
 | 9969 |       gcx) | 
 | 9970 | 	# Green Hills C++ Compiler | 
 | 9971 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 9972 |  | 
 | 9973 | 	# The C++ compiler must be used to create the archive. | 
 | 9974 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 9975 | 	;; | 
 | 9976 |       *) | 
 | 9977 | 	# GNU C++ compiler with Solaris linker | 
 | 9978 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 9979 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 9980 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
 | 9981 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 9982 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 9983 | 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 9984 |  | 
 | 9985 | 	    # Commands to make compiler produce verbose output that lists | 
 | 9986 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 9987 | 	    # linking a shared library. | 
 | 9988 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 9989 | 	  else | 
 | 9990 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 9991 | 	    # platform. | 
 | 9992 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 9993 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 9994 | 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 9995 |  | 
 | 9996 | 	    # Commands to make compiler produce verbose output that lists | 
 | 9997 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 9998 | 	    # linking a shared library. | 
 | 9999 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 10000 | 	  fi | 
 | 10001 |  | 
 | 10002 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 10003 | 	fi | 
 | 10004 | 	;; | 
 | 10005 |     esac | 
 | 10006 |     ;; | 
 | 10007 |   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 
 | 10008 |     archive_cmds_need_lc_CXX=no | 
 | 10009 |     ;; | 
 | 10010 |   tandem*) | 
 | 10011 |     case $cc_basename in | 
 | 10012 |       NCC) | 
 | 10013 | 	# NonStop-UX NCC 3.20 | 
 | 10014 | 	# FIXME: insert proper C++ library support | 
 | 10015 | 	ld_shlibs_CXX=no | 
 | 10016 | 	;; | 
 | 10017 |       *) | 
 | 10018 | 	# FIXME: insert proper C++ library support | 
 | 10019 | 	ld_shlibs_CXX=no | 
 | 10020 | 	;; | 
 | 10021 |     esac | 
 | 10022 |     ;; | 
 | 10023 |   vxworks*) | 
 | 10024 |     # FIXME: insert proper C++ library support | 
 | 10025 |     ld_shlibs_CXX=no | 
 | 10026 |     ;; | 
 | 10027 |   *) | 
 | 10028 |     # FIXME: insert proper C++ library support | 
 | 10029 |     ld_shlibs_CXX=no | 
 | 10030 |     ;; | 
 | 10031 | esac | 
 | 10032 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 10033 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 10034 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 10035 |  | 
 | 10036 | GCC_CXX="$GXX" | 
 | 10037 | LD_CXX="$LD" | 
 | 10038 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10039 |  | 
 | 10040 | cat > conftest.$ac_ext <<EOF | 
 | 10041 | class Foo | 
 | 10042 | { | 
 | 10043 | public: | 
 | 10044 |   Foo (void) { a = 0; } | 
 | 10045 | private: | 
 | 10046 |   int a; | 
 | 10047 | }; | 
 | 10048 | EOF | 
 | 10049 |  | 
 | 10050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10051 |   (eval $ac_compile) 2>&5 | 
 | 10052 |   ac_status=$? | 
 | 10053 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10054 |   (exit $ac_status); }; then | 
 | 10055 |   # Parse the compiler output and extract the necessary | 
 | 10056 |   # objects, libraries and library flags. | 
 | 10057 |  | 
 | 10058 |   # Sentinel used to keep track of whether or not we are before | 
 | 10059 |   # the conftest object file. | 
 | 10060 |   pre_test_object_deps_done=no | 
 | 10061 |  | 
 | 10062 |   # The `*' in the case matches for architectures that use `case' in | 
 | 10063 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 10064 |   # eval without this substitution. | 
 | 10065 |   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 
 | 10066 |  | 
 | 10067 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 10068 |     case $p in | 
 | 10069 |  | 
 | 10070 |     -L* | -R* | -l*) | 
 | 10071 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 10072 |        # Remove the space. | 
 | 10073 |        if test $p = "-L" \ | 
 | 10074 | 	  || test $p = "-R"; then | 
 | 10075 | 	 prev=$p | 
 | 10076 | 	 continue | 
 | 10077 |        else | 
 | 10078 | 	 prev= | 
 | 10079 |        fi | 
 | 10080 |  | 
 | 10081 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10082 | 	 case $p in | 
 | 10083 | 	 -L* | -R*) | 
 | 10084 | 	   # Internal compiler library paths should come after those | 
 | 10085 | 	   # provided the user.  The postdeps already come after the | 
 | 10086 | 	   # user supplied libs so there is no need to process them. | 
 | 10087 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 10088 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 10089 | 	   else | 
 | 10090 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 10091 | 	   fi | 
 | 10092 | 	   ;; | 
 | 10093 | 	 # The "-l" case would never come before the object being | 
 | 10094 | 	 # linked, so don't bother handling this case. | 
 | 10095 | 	 esac | 
 | 10096 |        else | 
 | 10097 | 	 if test -z "$postdeps_CXX"; then | 
 | 10098 | 	   postdeps_CXX="${prev}${p}" | 
 | 10099 | 	 else | 
 | 10100 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 10101 | 	 fi | 
 | 10102 |        fi | 
 | 10103 |        ;; | 
 | 10104 |  | 
 | 10105 |     *.$objext) | 
 | 10106 |        # This assumes that the test object file only shows up | 
 | 10107 |        # once in the compiler output. | 
 | 10108 |        if test "$p" = "conftest.$objext"; then | 
 | 10109 | 	 pre_test_object_deps_done=yes | 
 | 10110 | 	 continue | 
 | 10111 |        fi | 
 | 10112 |  | 
 | 10113 |        if test "$pre_test_object_deps_done" = no; then | 
 | 10114 | 	 if test -z "$predep_objects_CXX"; then | 
 | 10115 | 	   predep_objects_CXX="$p" | 
 | 10116 | 	 else | 
 | 10117 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 10118 | 	 fi | 
 | 10119 |        else | 
 | 10120 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 10121 | 	   postdep_objects_CXX="$p" | 
 | 10122 | 	 else | 
 | 10123 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 10124 | 	 fi | 
 | 10125 |        fi | 
 | 10126 |        ;; | 
 | 10127 |  | 
 | 10128 |     *) ;; # Ignore the rest. | 
 | 10129 |  | 
 | 10130 |     esac | 
 | 10131 |   done | 
 | 10132 |  | 
 | 10133 |   # Clean up. | 
 | 10134 |   rm -f a.out a.exe | 
 | 10135 | else | 
 | 10136 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 10137 | fi | 
 | 10138 |  | 
 | 10139 | $rm -f confest.$objext | 
 | 10140 |  | 
 | 10141 | case " $postdeps_CXX " in | 
 | 10142 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 10143 | esac | 
 | 10144 |  | 
 | 10145 | lt_prog_compiler_wl_CXX= | 
 | 10146 | lt_prog_compiler_pic_CXX= | 
 | 10147 | lt_prog_compiler_static_CXX= | 
 | 10148 |  | 
 | 10149 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 10150 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 10151 |  | 
 | 10152 |   # C++ specific cases for pic, static, wl, etc. | 
 | 10153 |   if test "$GXX" = yes; then | 
 | 10154 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10155 |     lt_prog_compiler_static_CXX='-static' | 
 | 10156 |  | 
 | 10157 |     case $host_os in | 
 | 10158 |     aix*) | 
 | 10159 |       # All AIX code is PIC. | 
 | 10160 |       if test "$host_cpu" = ia64; then | 
 | 10161 | 	# AIX 5 now supports IA64 processor | 
 | 10162 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10163 |       fi | 
 | 10164 |       ;; | 
 | 10165 |     amigaos*) | 
 | 10166 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 10167 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 10168 |       # like `-m68040'. | 
 | 10169 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 10170 |       ;; | 
 | 10171 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 10172 |       # PIC is the default for these OSes. | 
 | 10173 |       ;; | 
 | 10174 |     mingw* | os2* | pw32*) | 
 | 10175 |       # This hack is so that the source file can tell whether it is being | 
 | 10176 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 10177 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 10178 |       ;; | 
 | 10179 |     darwin* | rhapsody*) | 
 | 10180 |       # PIC is the default on this platform | 
 | 10181 |       # Common symbols not allowed in MH_DYLIB files | 
 | 10182 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 10183 |       ;; | 
 | 10184 |     *djgpp*) | 
 | 10185 |       # DJGPP does not support shared libraries at all | 
 | 10186 |       lt_prog_compiler_pic_CXX= | 
 | 10187 |       ;; | 
 | 10188 |     sysv4*MP*) | 
 | 10189 |       if test -d /usr/nec; then | 
 | 10190 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 10191 |       fi | 
 | 10192 |       ;; | 
 | 10193 |     hpux*) | 
 | 10194 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 10195 |       # not for PA HP-UX. | 
 | 10196 |       case "$host_cpu" in | 
 | 10197 |       hppa*64*|ia64*) | 
 | 10198 | 	;; | 
 | 10199 |       *) | 
 | 10200 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10201 | 	;; | 
 | 10202 |       esac | 
 | 10203 |       ;; | 
 | 10204 |     *) | 
 | 10205 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10206 |       ;; | 
 | 10207 |     esac | 
 | 10208 |   else | 
 | 10209 |     case $host_os in | 
 | 10210 |       aix4* | aix5*) | 
 | 10211 | 	# All AIX code is PIC. | 
 | 10212 | 	if test "$host_cpu" = ia64; then | 
 | 10213 | 	  # AIX 5 now supports IA64 processor | 
 | 10214 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10215 | 	else | 
 | 10216 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 10217 | 	fi | 
 | 10218 | 	;; | 
 | 10219 |       chorus*) | 
 | 10220 | 	case $cc_basename in | 
 | 10221 | 	cxch68) | 
 | 10222 | 	  # Green Hills C++ Compiler | 
 | 10223 | 	  # _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" | 
 | 10224 | 	  ;; | 
 | 10225 | 	esac | 
 | 10226 | 	;; | 
 | 10227 |       dgux*) | 
 | 10228 | 	case $cc_basename in | 
 | 10229 | 	  ec++) | 
 | 10230 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10231 | 	    ;; | 
 | 10232 | 	  ghcx) | 
 | 10233 | 	    # Green Hills C++ Compiler | 
 | 10234 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10235 | 	    ;; | 
 | 10236 | 	  *) | 
 | 10237 | 	    ;; | 
 | 10238 | 	esac | 
 | 10239 | 	;; | 
 | 10240 |       freebsd*) | 
 | 10241 | 	# FreeBSD uses GNU C++ | 
 | 10242 | 	;; | 
 | 10243 |       hpux9* | hpux10* | hpux11*) | 
 | 10244 | 	case $cc_basename in | 
 | 10245 | 	  CC) | 
 | 10246 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10247 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10248 | 	    if test "$host_cpu" != ia64; then | 
 | 10249 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10250 | 	    fi | 
 | 10251 | 	    ;; | 
 | 10252 | 	  aCC) | 
 | 10253 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10254 | 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 
 | 10255 | 	    case "$host_cpu" in | 
 | 10256 | 	    hppa*64*|ia64*) | 
 | 10257 | 	      # +Z the default | 
 | 10258 | 	      ;; | 
 | 10259 | 	    *) | 
 | 10260 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 10261 | 	      ;; | 
 | 10262 | 	    esac | 
 | 10263 | 	    ;; | 
 | 10264 | 	  *) | 
 | 10265 | 	    ;; | 
 | 10266 | 	esac | 
 | 10267 | 	;; | 
 | 10268 |       irix5* | irix6* | nonstopux*) | 
 | 10269 | 	case $cc_basename in | 
 | 10270 | 	  CC) | 
 | 10271 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10272 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10273 | 	    # CC pic flag -KPIC is the default. | 
 | 10274 | 	    ;; | 
 | 10275 | 	  *) | 
 | 10276 | 	    ;; | 
 | 10277 | 	esac | 
 | 10278 | 	;; | 
 | 10279 |       linux*) | 
 | 10280 | 	case $cc_basename in | 
 | 10281 | 	  KCC) | 
 | 10282 | 	    # KAI C++ Compiler | 
 | 10283 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10284 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10285 | 	    ;; | 
 | 10286 | 	  icpc) | 
 | 10287 | 	    # Intel C++ | 
 | 10288 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10289 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10290 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 10291 | 	    ;; | 
 | 10292 | 	  cxx) | 
 | 10293 | 	    # Compaq C++ | 
 | 10294 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10295 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10296 | 	    lt_prog_compiler_pic_CXX= | 
 | 10297 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10298 | 	    ;; | 
 | 10299 | 	  *) | 
 | 10300 | 	    ;; | 
 | 10301 | 	esac | 
 | 10302 | 	;; | 
 | 10303 |       lynxos*) | 
 | 10304 | 	;; | 
 | 10305 |       m88k*) | 
 | 10306 | 	;; | 
 | 10307 |       mvs*) | 
 | 10308 | 	case $cc_basename in | 
 | 10309 | 	  cxx) | 
 | 10310 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 10311 | 	    ;; | 
 | 10312 | 	  *) | 
 | 10313 | 	    ;; | 
 | 10314 | 	esac | 
 | 10315 | 	;; | 
 | 10316 |       netbsd*) | 
 | 10317 | 	;; | 
 | 10318 |       osf3* | osf4* | osf5*) | 
 | 10319 | 	case $cc_basename in | 
 | 10320 | 	  KCC) | 
 | 10321 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 10322 | 	    ;; | 
 | 10323 | 	  RCC) | 
 | 10324 | 	    # Rational C++ 2.4.1 | 
 | 10325 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10326 | 	    ;; | 
 | 10327 | 	  cxx) | 
 | 10328 | 	    # Digital/Compaq C++ | 
 | 10329 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 10330 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 10331 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 10332 | 	    lt_prog_compiler_pic_CXX= | 
 | 10333 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 10334 | 	    ;; | 
 | 10335 | 	  *) | 
 | 10336 | 	    ;; | 
 | 10337 | 	esac | 
 | 10338 | 	;; | 
 | 10339 |       psos*) | 
 | 10340 | 	;; | 
 | 10341 |       sco*) | 
 | 10342 | 	case $cc_basename in | 
 | 10343 | 	  CC) | 
 | 10344 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 10345 | 	    ;; | 
 | 10346 | 	  *) | 
 | 10347 | 	    ;; | 
 | 10348 | 	esac | 
 | 10349 | 	;; | 
 | 10350 |       solaris*) | 
 | 10351 | 	case $cc_basename in | 
 | 10352 | 	  CC) | 
 | 10353 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 10354 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10355 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10356 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 10357 | 	    ;; | 
 | 10358 | 	  gcx) | 
 | 10359 | 	    # Green Hills C++ Compiler | 
 | 10360 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 10361 | 	    ;; | 
 | 10362 | 	  *) | 
 | 10363 | 	    ;; | 
 | 10364 | 	esac | 
 | 10365 | 	;; | 
 | 10366 |       sunos4*) | 
 | 10367 | 	case $cc_basename in | 
 | 10368 | 	  CC) | 
 | 10369 | 	    # Sun C++ 4.x | 
 | 10370 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10371 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 10372 | 	    ;; | 
 | 10373 | 	  lcc) | 
 | 10374 | 	    # Lucid | 
 | 10375 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 10376 | 	    ;; | 
 | 10377 | 	  *) | 
 | 10378 | 	    ;; | 
 | 10379 | 	esac | 
 | 10380 | 	;; | 
 | 10381 |       tandem*) | 
 | 10382 | 	case $cc_basename in | 
 | 10383 | 	  NCC) | 
 | 10384 | 	    # NonStop-UX NCC 3.20 | 
 | 10385 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 10386 | 	    ;; | 
 | 10387 | 	  *) | 
 | 10388 | 	    ;; | 
 | 10389 | 	esac | 
 | 10390 | 	;; | 
 | 10391 |       unixware*) | 
 | 10392 | 	;; | 
 | 10393 |       vxworks*) | 
 | 10394 | 	;; | 
 | 10395 |       *) | 
 | 10396 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 10397 | 	;; | 
 | 10398 |     esac | 
 | 10399 |   fi | 
 | 10400 |  | 
 | 10401 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 10402 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | 
 | 10403 |  | 
 | 10404 | # | 
 | 10405 | # Check to make sure the PIC flag actually works. | 
 | 10406 | # | 
 | 10407 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
 | 10408 |   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
 | 10409 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | 
 | 10410 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 10411 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10412 | else | 
 | 10413 |   lt_prog_compiler_pic_works_CXX=no | 
 | 10414 |   ac_outfile=conftest.$ac_objext | 
 | 10415 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10416 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10417 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10418 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10419 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10420 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10421 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 10422 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10423 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10424 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10425 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 10426 |    (eval echo "\"\$as_me:10426: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10427 |    (eval "$lt_compile" 2>conftest.err) | 
 | 10428 |    ac_status=$? | 
 | 10429 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 10430 |    echo "$as_me:10430: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10431 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 10432 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10433 |      # So say no if there are warnings | 
 | 10434 |      if test ! -s conftest.err; then | 
 | 10435 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 10436 |      fi | 
 | 10437 |    fi | 
 | 10438 |    $rm conftest* | 
 | 10439 |  | 
 | 10440 | fi | 
 | 10441 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 10442 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | 
 | 10443 |  | 
 | 10444 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 10445 |     case $lt_prog_compiler_pic_CXX in | 
 | 10446 |      "" | " "*) ;; | 
 | 10447 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 10448 |      esac | 
 | 10449 | else | 
 | 10450 |     lt_prog_compiler_pic_CXX= | 
 | 10451 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 10452 | fi | 
 | 10453 |  | 
 | 10454 | fi | 
 | 10455 | case "$host_os" in | 
 | 10456 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 10457 |   *djgpp*) | 
 | 10458 |     lt_prog_compiler_pic_CXX= | 
 | 10459 |     ;; | 
 | 10460 |   *) | 
 | 10461 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 10462 |     ;; | 
 | 10463 | esac | 
 | 10464 |  | 
 | 10465 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 10466 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 10467 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 10468 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10469 | else | 
 | 10470 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 10471 |    $rm -r conftest 2>/dev/null | 
 | 10472 |    mkdir conftest | 
 | 10473 |    cd conftest | 
 | 10474 |    mkdir out | 
 | 10475 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10476 |  | 
 | 10477 |    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
 | 10478 |    # that will create temporary files in the current directory regardless of | 
 | 10479 |    # the output directory.  Thus, making CWD read-only will cause this test | 
 | 10480 |    # to fail, enabling locking or at least warning the user not to do parallel | 
 | 10481 |    # builds. | 
 | 10482 |    chmod -w . | 
 | 10483 |  | 
 | 10484 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 10485 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 10486 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 10487 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 10488 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 10489 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 10490 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 10491 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 10492 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 10493 |    (eval echo "\"\$as_me:10493: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10494 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 10495 |    ac_status=$? | 
 | 10496 |    cat out/conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 10497 |    echo "$as_me:10497: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 10498 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 10499 |    then | 
 | 10500 |      # The compiler can only warn and ignore the option if not recognized | 
 | 10501 |      # So say no if there are warnings | 
 | 10502 |      if test ! -s out/conftest.err; then | 
 | 10503 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 10504 |      fi | 
 | 10505 |    fi | 
 | 10506 |    chmod u+w . | 
 | 10507 |    $rm conftest* out/* | 
 | 10508 |    rmdir out | 
 | 10509 |    cd .. | 
 | 10510 |    rmdir conftest | 
 | 10511 |    $rm conftest* | 
 | 10512 |  | 
 | 10513 | fi | 
 | 10514 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 10515 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | 
 | 10516 |  | 
 | 10517 |  | 
 | 10518 | hard_links="nottested" | 
 | 10519 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 10520 |   # do not overwrite the value of need_locks provided by the user | 
 | 10521 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 10522 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 10523 |   hard_links=yes | 
 | 10524 |   $rm conftest* | 
 | 10525 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 10526 |   touch conftest.a | 
 | 10527 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 10528 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 10529 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 10530 | echo "${ECHO_T}$hard_links" >&6 | 
 | 10531 |   if test "$hard_links" = no; then | 
 | 10532 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 10533 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 10534 |     need_locks=warn | 
 | 10535 |   fi | 
 | 10536 | else | 
 | 10537 |   need_locks=no | 
 | 10538 | fi | 
 | 10539 |  | 
 | 10540 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 10541 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 10542 |  | 
 | 10543 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 10544 |   case $host_os in | 
 | 10545 |   aix4* | aix5*) | 
 | 10546 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 10547 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 10548 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 10549 |       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' | 
 | 10550 |     else | 
 | 10551 |       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' | 
 | 10552 |     fi | 
 | 10553 |     ;; | 
 | 10554 |   pw32*) | 
 | 10555 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 10556 |   ;; | 
 | 10557 |   cygwin* | mingw*) | 
 | 10558 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 10559 |   ;; | 
 | 10560 |   *) | 
 | 10561 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 10562 |   ;; | 
 | 10563 |   esac | 
 | 10564 |  | 
 | 10565 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 10566 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 
 | 10567 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 10568 |  | 
 | 10569 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 10570 | if test "$GCC" = yes; then | 
 | 10571 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 10572 | fi | 
 | 10573 |  | 
 | 10574 | # | 
 | 10575 | # Do we need to explicitly link libc? | 
 | 10576 | # | 
 | 10577 | case "x$archive_cmds_need_lc_CXX" in | 
 | 10578 | x|xyes) | 
 | 10579 |   # Assume -lc should be added | 
 | 10580 |   archive_cmds_need_lc_CXX=yes | 
 | 10581 |  | 
 | 10582 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 10583 |     case $archive_cmds_CXX in | 
 | 10584 |     *'~'*) | 
 | 10585 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 10586 |       ;; | 
 | 10587 |     '$CC '*) | 
 | 10588 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 10589 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 10590 |       # to ld, don't add -lc before -lgcc. | 
 | 10591 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 10592 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 10593 |       $rm conftest* | 
 | 10594 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 10595 |  | 
 | 10596 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10597 |   (eval $ac_compile) 2>&5 | 
 | 10598 |   ac_status=$? | 
 | 10599 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10600 |   (exit $ac_status); } 2>conftest.err; then | 
 | 10601 |         soname=conftest | 
 | 10602 |         lib=conftest | 
 | 10603 |         libobjs=conftest.$ac_objext | 
 | 10604 |         deplibs= | 
 | 10605 |         wl=$lt_prog_compiler_wl_CXX | 
 | 10606 |         compiler_flags=-v | 
 | 10607 |         linker_flags=-v | 
 | 10608 |         verstring= | 
 | 10609 |         output_objdir=. | 
 | 10610 |         libname=conftest | 
 | 10611 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 10612 |         allow_undefined_flag_CXX= | 
 | 10613 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 10614 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 10615 |   ac_status=$? | 
 | 10616 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10617 |   (exit $ac_status); } | 
 | 10618 |         then | 
 | 10619 | 	  archive_cmds_need_lc_CXX=no | 
 | 10620 |         else | 
 | 10621 | 	  archive_cmds_need_lc_CXX=yes | 
 | 10622 |         fi | 
 | 10623 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 10624 |       else | 
 | 10625 |         cat conftest.err 1>&5 | 
 | 10626 |       fi | 
 | 10627 |       $rm conftest* | 
 | 10628 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 10629 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | 
 | 10630 |       ;; | 
 | 10631 |     esac | 
 | 10632 |   fi | 
 | 10633 |   ;; | 
 | 10634 | esac | 
 | 10635 |  | 
 | 10636 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 10637 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 10638 | hardcode_action_CXX= | 
 | 10639 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 10640 |    test -n "$runpath_var CXX" || \ | 
 | 10641 |    test "X$hardcode_automatic_CXX"="Xyes" ; then | 
 | 10642 |  | 
 | 10643 |   # We can hardcode non-existant directories. | 
 | 10644 |   if test "$hardcode_direct_CXX" != no && | 
 | 10645 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 10646 |      # have to relink, otherwise we might link with an installed library | 
 | 10647 |      # when we should be linking with a yet-to-be-installed one | 
 | 10648 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 10649 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 10650 |     # Linking always hardcodes the temporary library directory. | 
 | 10651 |     hardcode_action_CXX=relink | 
 | 10652 |   else | 
 | 10653 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 10654 |     hardcode_action_CXX=immediate | 
 | 10655 |   fi | 
 | 10656 | else | 
 | 10657 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 10658 |   # directories. | 
 | 10659 |   hardcode_action_CXX=unsupported | 
 | 10660 | fi | 
 | 10661 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 10662 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | 
 | 10663 |  | 
 | 10664 | if test "$hardcode_action_CXX" = relink; then | 
 | 10665 |   # Fast installation is not supported | 
 | 10666 |   enable_fast_install=no | 
 | 10667 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 10668 |      test "$enable_shared" = no; then | 
 | 10669 |   # Fast installation is not necessary | 
 | 10670 |   enable_fast_install=needless | 
 | 10671 | fi | 
 | 10672 |  | 
 | 10673 | striplib= | 
 | 10674 | old_striplib= | 
 | 10675 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 10676 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 10677 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 10678 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 10679 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 10680 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 10681 | echo "${ECHO_T}yes" >&6 | 
 | 10682 | else | 
 | 10683 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 10684 |   case $host_os in | 
 | 10685 |    darwin*) | 
 | 10686 |        if test -n "$STRIP" ; then | 
 | 10687 |          striplib="$STRIP -x" | 
 | 10688 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 10689 | echo "${ECHO_T}yes" >&6 | 
 | 10690 |        else | 
 | 10691 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10692 | echo "${ECHO_T}no" >&6 | 
 | 10693 | fi | 
 | 10694 |        ;; | 
 | 10695 |    *) | 
 | 10696 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 10697 | echo "${ECHO_T}no" >&6 | 
 | 10698 |     ;; | 
 | 10699 |   esac | 
 | 10700 | fi | 
 | 10701 |  | 
 | 10702 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 10703 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 10704 | library_names_spec= | 
 | 10705 | libname_spec='lib$name' | 
 | 10706 | soname_spec= | 
 | 10707 | shrext=".so" | 
 | 10708 | postinstall_cmds= | 
 | 10709 | postuninstall_cmds= | 
 | 10710 | finish_cmds= | 
 | 10711 | finish_eval= | 
 | 10712 | shlibpath_var= | 
 | 10713 | shlibpath_overrides_runpath=unknown | 
 | 10714 | version_type=none | 
 | 10715 | dynamic_linker="$host_os ld.so" | 
 | 10716 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 10717 | if test "$GCC" = yes; then | 
 | 10718 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 10719 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 10720 |     # if the path contains ";" then we assume it to be the separator | 
 | 10721 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 10722 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 10723 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 10724 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 10725 |   else | 
 | 10726 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 10727 |   fi | 
 | 10728 | else | 
 | 10729 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 10730 | fi | 
 | 10731 | need_lib_prefix=unknown | 
 | 10732 | hardcode_into_libs=no | 
 | 10733 |  | 
 | 10734 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 10735 | # flags to be left without arguments | 
 | 10736 | need_version=unknown | 
 | 10737 |  | 
 | 10738 | case $host_os in | 
 | 10739 | aix3*) | 
 | 10740 |   version_type=linux | 
 | 10741 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 10742 |   shlibpath_var=LIBPATH | 
 | 10743 |  | 
 | 10744 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 10745 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10746 |   ;; | 
 | 10747 |  | 
 | 10748 | aix4* | aix5*) | 
 | 10749 |   version_type=linux | 
 | 10750 |   need_lib_prefix=no | 
 | 10751 |   need_version=no | 
 | 10752 |   hardcode_into_libs=yes | 
 | 10753 |   if test "$host_cpu" = ia64; then | 
 | 10754 |     # AIX 5 supports IA64 | 
 | 10755 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 10756 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 10757 |   else | 
 | 10758 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 10759 |     # for dependence libraries.  The import file would start with | 
 | 10760 |     # the line `#! .'.  This would cause the generated library to | 
 | 10761 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 10762 |     # development snapshots of GCC prior to 3.0. | 
 | 10763 |     case $host_os in | 
 | 10764 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 10765 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 10766 | 	   echo ' yes ' | 
 | 10767 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 10768 | 	: | 
 | 10769 |       else | 
 | 10770 | 	can_build_shared=no | 
 | 10771 |       fi | 
 | 10772 |       ;; | 
 | 10773 |     esac | 
 | 10774 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 10775 |     # soname into executable. Probably we can add versioning support to | 
 | 10776 |     # collect2, so additional links can be useful in future. | 
 | 10777 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 10778 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 10779 |       # instead of lib<name>.a to let people know that these are not | 
 | 10780 |       # typical AIX shared libraries. | 
 | 10781 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 10782 |     else | 
 | 10783 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 10784 |       # and later when we are not doing run time linking. | 
 | 10785 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 10786 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10787 |     fi | 
 | 10788 |     shlibpath_var=LIBPATH | 
 | 10789 |   fi | 
 | 10790 |   ;; | 
 | 10791 |  | 
 | 10792 | amigaos*) | 
 | 10793 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 10794 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 10795 |   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' | 
 | 10796 |   ;; | 
 | 10797 |  | 
 | 10798 | beos*) | 
 | 10799 |   library_names_spec='${libname}${shared_ext}' | 
 | 10800 |   dynamic_linker="$host_os ld.so" | 
 | 10801 |   shlibpath_var=LIBRARY_PATH | 
 | 10802 |   ;; | 
 | 10803 |  | 
 | 10804 | bsdi4*) | 
 | 10805 |   version_type=linux | 
 | 10806 |   need_version=no | 
 | 10807 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 10808 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10809 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 10810 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 10811 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 10812 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 10813 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 10814 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 10815 |   # libtool to hard-code these into programs | 
 | 10816 |   ;; | 
 | 10817 |  | 
 | 10818 | cygwin* | mingw* | pw32*) | 
 | 10819 |   version_type=windows | 
 | 10820 |   shrext=".dll" | 
 | 10821 |   need_version=no | 
 | 10822 |   need_lib_prefix=no | 
 | 10823 |  | 
 | 10824 |   case $GCC,$host_os in | 
 | 10825 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 10826 |     library_names_spec='$libname.dll.a' | 
 | 10827 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 10828 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 10829 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 10830 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 10831 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 10832 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 10833 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 10834 |       dlpath=$dir/\$dldll~ | 
 | 10835 |        $rm \$dlpath' | 
 | 10836 |     shlibpath_overrides_runpath=yes | 
 | 10837 |  | 
 | 10838 |     case $host_os in | 
 | 10839 |     cygwin*) | 
 | 10840 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 10841 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 10842 |       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
 | 10843 |       ;; | 
 | 10844 |     mingw*) | 
 | 10845 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 10846 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 10847 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 10848 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 10849 |         # It is most probably a Windows format PATH printed by | 
 | 10850 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 10851 |         # path with ; separators, and with drive letters. We can handle the | 
 | 10852 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 10853 |         # especially as we might pass files found there to a mingw objdump, | 
 | 10854 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 10855 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 10856 |       else | 
 | 10857 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 10858 |       fi | 
 | 10859 |       ;; | 
 | 10860 |     pw32*) | 
 | 10861 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 10862 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 10863 |       ;; | 
 | 10864 |     esac | 
 | 10865 |     ;; | 
 | 10866 |  | 
 | 10867 |   *) | 
 | 10868 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 10869 |     ;; | 
 | 10870 |   esac | 
 | 10871 |   dynamic_linker='Win32 ld.exe' | 
 | 10872 |   # FIXME: first we should search . and the directory the executable is in | 
 | 10873 |   shlibpath_var=PATH | 
 | 10874 |   ;; | 
 | 10875 |  | 
 | 10876 | darwin* | rhapsody*) | 
 | 10877 |   dynamic_linker="$host_os dyld" | 
 | 10878 |   version_type=darwin | 
 | 10879 |   need_lib_prefix=no | 
 | 10880 |   need_version=no | 
 | 10881 |   # FIXME: Relying on posixy $() will cause problems for | 
 | 10882 |   #        cross-compilation, but unfortunately the echo tests do not | 
 | 10883 |   #        yet detect zsh echo's removal of \ escapes. | 
 | 10884 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 10885 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 10886 |   shlibpath_overrides_runpath=yes | 
 | 10887 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 10888 |   shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 10889 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 10890 |   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 10891 |   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"` | 
 | 10892 |   fi | 
 | 10893 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 10894 |   ;; | 
 | 10895 |  | 
 | 10896 | dgux*) | 
 | 10897 |   version_type=linux | 
 | 10898 |   need_lib_prefix=no | 
 | 10899 |   need_version=no | 
 | 10900 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 10901 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10902 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 10903 |   ;; | 
 | 10904 |  | 
 | 10905 | freebsd1*) | 
 | 10906 |   dynamic_linker=no | 
 | 10907 |   ;; | 
 | 10908 |  | 
 | 10909 | freebsd*) | 
 | 10910 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 10911 |   version_type=freebsd-$objformat | 
 | 10912 |   case $version_type in | 
 | 10913 |     freebsd-elf*) | 
 | 10914 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 10915 |       need_version=no | 
 | 10916 |       need_lib_prefix=no | 
 | 10917 |       ;; | 
 | 10918 |     freebsd-*) | 
 | 10919 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 10920 |       need_version=yes | 
 | 10921 |       ;; | 
 | 10922 |   esac | 
 | 10923 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 10924 |   case $host_os in | 
 | 10925 |   freebsd2*) | 
 | 10926 |     shlibpath_overrides_runpath=yes | 
 | 10927 |     ;; | 
 | 10928 |   freebsd3.01* | freebsdelf3.01*) | 
 | 10929 |     shlibpath_overrides_runpath=yes | 
 | 10930 |     hardcode_into_libs=yes | 
 | 10931 |     ;; | 
 | 10932 |   *) # from 3.2 on | 
 | 10933 |     shlibpath_overrides_runpath=no | 
 | 10934 |     hardcode_into_libs=yes | 
 | 10935 |     ;; | 
 | 10936 |   esac | 
 | 10937 |   ;; | 
 | 10938 |  | 
 | 10939 | gnu*) | 
 | 10940 |   version_type=linux | 
 | 10941 |   need_lib_prefix=no | 
 | 10942 |   need_version=no | 
 | 10943 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 10944 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10945 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 10946 |   hardcode_into_libs=yes | 
 | 10947 |   ;; | 
 | 10948 |  | 
 | 10949 | hpux9* | hpux10* | hpux11*) | 
 | 10950 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 10951 |   # link against other versions. | 
 | 10952 |   version_type=sunos | 
 | 10953 |   need_lib_prefix=no | 
 | 10954 |   need_version=no | 
 | 10955 |   case "$host_cpu" in | 
 | 10956 |   ia64*) | 
 | 10957 |     shrext='.so' | 
 | 10958 |     hardcode_into_libs=yes | 
 | 10959 |     dynamic_linker="$host_os dld.so" | 
 | 10960 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 10961 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 10962 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 10963 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10964 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 10965 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 10966 |     else | 
 | 10967 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 10968 |     fi | 
 | 10969 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 10970 |     ;; | 
 | 10971 |    hppa*64*) | 
 | 10972 |      shrext='.sl' | 
 | 10973 |      hardcode_into_libs=yes | 
 | 10974 |      dynamic_linker="$host_os dld.sl" | 
 | 10975 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 10976 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 10977 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 10978 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10979 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 10980 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 10981 |      ;; | 
 | 10982 |    *) | 
 | 10983 |     shrext='.sl' | 
 | 10984 |     dynamic_linker="$host_os dld.sl" | 
 | 10985 |     shlibpath_var=SHLIB_PATH | 
 | 10986 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 10987 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 10988 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 10989 |     ;; | 
 | 10990 |   esac | 
 | 10991 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 10992 |   postinstall_cmds='chmod 555 $lib' | 
 | 10993 |   ;; | 
 | 10994 |  | 
 | 10995 | irix5* | irix6* | nonstopux*) | 
 | 10996 |   case $host_os in | 
 | 10997 |     nonstopux*) version_type=nonstopux ;; | 
 | 10998 |     *) | 
 | 10999 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 11000 | 		version_type=linux | 
 | 11001 | 	else | 
 | 11002 | 		version_type=irix | 
 | 11003 | 	fi ;; | 
 | 11004 |   esac | 
 | 11005 |   need_lib_prefix=no | 
 | 11006 |   need_version=no | 
 | 11007 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11008 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 11009 |   case $host_os in | 
 | 11010 |   irix5* | nonstopux*) | 
 | 11011 |     libsuff= shlibsuff= | 
 | 11012 |     ;; | 
 | 11013 |   *) | 
 | 11014 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 11015 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 11016 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 11017 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 11018 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 11019 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 11020 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 11021 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 11022 |     esac | 
 | 11023 |     ;; | 
 | 11024 |   esac | 
 | 11025 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 11026 |   shlibpath_overrides_runpath=no | 
 | 11027 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 11028 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 11029 |   hardcode_into_libs=yes | 
 | 11030 |   ;; | 
 | 11031 |  | 
 | 11032 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 11033 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 11034 |   dynamic_linker=no | 
 | 11035 |   ;; | 
 | 11036 |  | 
 | 11037 | # This must be Linux ELF. | 
 | 11038 | linux*) | 
 | 11039 |   version_type=linux | 
 | 11040 |   need_lib_prefix=no | 
 | 11041 |   need_version=no | 
 | 11042 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11043 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11044 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 11045 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11046 |   shlibpath_overrides_runpath=no | 
 | 11047 |   # This implies no fast_install, which is unacceptable. | 
 | 11048 |   # Some rework will be needed to allow for fast_install | 
 | 11049 |   # before this can be enabled. | 
 | 11050 |   hardcode_into_libs=yes | 
 | 11051 |  | 
 | 11052 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 11053 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 11054 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 11055 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 11056 |   # people can always --disable-shared, the test was removed, and we | 
 | 11057 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 11058 |   dynamic_linker='GNU/Linux ld.so' | 
 | 11059 |   ;; | 
 | 11060 |  | 
 | 11061 | netbsd*) | 
 | 11062 |   version_type=sunos | 
 | 11063 |   need_lib_prefix=no | 
 | 11064 |   need_version=no | 
 | 11065 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 11066 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11067 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11068 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 11069 |   else | 
 | 11070 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
 | 11071 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11072 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 11073 |   fi | 
 | 11074 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11075 |   shlibpath_overrides_runpath=yes | 
 | 11076 |   hardcode_into_libs=yes | 
 | 11077 |   ;; | 
 | 11078 |  | 
 | 11079 | newsos6) | 
 | 11080 |   version_type=linux | 
 | 11081 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11082 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11083 |   shlibpath_overrides_runpath=yes | 
 | 11084 |   ;; | 
 | 11085 |  | 
 | 11086 | nto-qnx) | 
 | 11087 |   version_type=linux | 
 | 11088 |   need_lib_prefix=no | 
 | 11089 |   need_version=no | 
 | 11090 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11091 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11092 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11093 |   shlibpath_overrides_runpath=yes | 
 | 11094 |   ;; | 
 | 11095 |  | 
 | 11096 | openbsd*) | 
 | 11097 |   version_type=sunos | 
 | 11098 |   need_lib_prefix=no | 
 | 11099 |   need_version=no | 
 | 11100 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11101 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 11102 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11103 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 11104 |     case $host_os in | 
 | 11105 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 11106 | 	shlibpath_overrides_runpath=no | 
 | 11107 | 	;; | 
 | 11108 |       *) | 
 | 11109 | 	shlibpath_overrides_runpath=yes | 
 | 11110 | 	;; | 
 | 11111 |       esac | 
 | 11112 |   else | 
 | 11113 |     shlibpath_overrides_runpath=yes | 
 | 11114 |   fi | 
 | 11115 |   ;; | 
 | 11116 |  | 
 | 11117 | os2*) | 
 | 11118 |   libname_spec='$name' | 
 | 11119 |   shrext=".dll" | 
 | 11120 |   need_lib_prefix=no | 
 | 11121 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 11122 |   dynamic_linker='OS/2 ld.exe' | 
 | 11123 |   shlibpath_var=LIBPATH | 
 | 11124 |   ;; | 
 | 11125 |  | 
 | 11126 | osf3* | osf4* | osf5*) | 
 | 11127 |   version_type=osf | 
 | 11128 |   need_lib_prefix=no | 
 | 11129 |   need_version=no | 
 | 11130 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11131 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11132 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11133 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 11134 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 11135 |   ;; | 
 | 11136 |  | 
 | 11137 | sco3.2v5*) | 
 | 11138 |   version_type=osf | 
 | 11139 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11140 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11141 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11142 |   ;; | 
 | 11143 |  | 
 | 11144 | solaris*) | 
 | 11145 |   version_type=linux | 
 | 11146 |   need_lib_prefix=no | 
 | 11147 |   need_version=no | 
 | 11148 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11149 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11150 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11151 |   shlibpath_overrides_runpath=yes | 
 | 11152 |   hardcode_into_libs=yes | 
 | 11153 |   # ldd complains unless libraries are executable | 
 | 11154 |   postinstall_cmds='chmod +x $lib' | 
 | 11155 |   ;; | 
 | 11156 |  | 
 | 11157 | sunos4*) | 
 | 11158 |   version_type=sunos | 
 | 11159 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 11160 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 11161 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11162 |   shlibpath_overrides_runpath=yes | 
 | 11163 |   if test "$with_gnu_ld" = yes; then | 
 | 11164 |     need_lib_prefix=no | 
 | 11165 |   fi | 
 | 11166 |   need_version=yes | 
 | 11167 |   ;; | 
 | 11168 |  | 
 | 11169 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 11170 |   version_type=linux | 
 | 11171 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11172 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11173 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11174 |   case $host_vendor in | 
 | 11175 |     sni) | 
 | 11176 |       shlibpath_overrides_runpath=no | 
 | 11177 |       need_lib_prefix=no | 
 | 11178 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 11179 |       runpath_var=LD_RUN_PATH | 
 | 11180 |       ;; | 
 | 11181 |     siemens) | 
 | 11182 |       need_lib_prefix=no | 
 | 11183 |       ;; | 
 | 11184 |     motorola) | 
 | 11185 |       need_lib_prefix=no | 
 | 11186 |       need_version=no | 
 | 11187 |       shlibpath_overrides_runpath=no | 
 | 11188 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 11189 |       ;; | 
 | 11190 |   esac | 
 | 11191 |   ;; | 
 | 11192 |  | 
 | 11193 | sysv4*MP*) | 
 | 11194 |   if test -d /usr/nec ;then | 
 | 11195 |     version_type=linux | 
 | 11196 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 11197 |     soname_spec='$libname${shared_ext}.$major' | 
 | 11198 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 11199 |   fi | 
 | 11200 |   ;; | 
 | 11201 |  | 
 | 11202 | uts4*) | 
 | 11203 |   version_type=linux | 
 | 11204 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 11205 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 11206 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 11207 |   ;; | 
 | 11208 |  | 
 | 11209 | *) | 
 | 11210 |   dynamic_linker=no | 
 | 11211 |   ;; | 
 | 11212 | esac | 
 | 11213 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 11214 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 11215 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 11216 |  | 
 | 11217 | if test "x$enable_dlopen" != xyes; then | 
 | 11218 |   enable_dlopen=unknown | 
 | 11219 |   enable_dlopen_self=unknown | 
 | 11220 |   enable_dlopen_self_static=unknown | 
 | 11221 | else | 
 | 11222 |   lt_cv_dlopen=no | 
 | 11223 |   lt_cv_dlopen_libs= | 
 | 11224 |  | 
 | 11225 |   case $host_os in | 
 | 11226 |   beos*) | 
 | 11227 |     lt_cv_dlopen="load_add_on" | 
 | 11228 |     lt_cv_dlopen_libs= | 
 | 11229 |     lt_cv_dlopen_self=yes | 
 | 11230 |     ;; | 
 | 11231 |  | 
 | 11232 |   mingw* | pw32*) | 
 | 11233 |     lt_cv_dlopen="LoadLibrary" | 
 | 11234 |     lt_cv_dlopen_libs= | 
 | 11235 |    ;; | 
 | 11236 |  | 
 | 11237 |   cygwin*) | 
 | 11238 |     lt_cv_dlopen="dlopen" | 
 | 11239 |     lt_cv_dlopen_libs= | 
 | 11240 |    ;; | 
 | 11241 |  | 
 | 11242 |   darwin*) | 
 | 11243 |   # if libdl is installed we need to link against it | 
 | 11244 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 11245 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 11246 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 11247 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11248 | else | 
 | 11249 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11250 | LIBS="-ldl  $LIBS" | 
 | 11251 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11252 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11253 | /* confdefs.h.  */ | 
 | 11254 | _ACEOF | 
 | 11255 | cat confdefs.h >>conftest.$ac_ext | 
 | 11256 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11257 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11258 |  | 
 | 11259 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11260 | #ifdef __cplusplus | 
 | 11261 | extern "C" | 
 | 11262 | #endif | 
 | 11263 | /* We use char because int might match the return type of a gcc2 | 
 | 11264 |    builtin and then its argument prototype would still apply.  */ | 
 | 11265 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11266 | int | 
 | 11267 | main () | 
 | 11268 | { | 
 | 11269 | dlopen (); | 
 | 11270 |   ; | 
 | 11271 |   return 0; | 
 | 11272 | } | 
 | 11273 | _ACEOF | 
 | 11274 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11276 |   (eval $ac_link) 2>&5 | 
 | 11277 |   ac_status=$? | 
 | 11278 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11279 |   (exit $ac_status); } && | 
 | 11280 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11281 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11282 |   (eval $ac_try) 2>&5 | 
 | 11283 |   ac_status=$? | 
 | 11284 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11285 |   (exit $ac_status); }; }; then | 
 | 11286 |   ac_cv_lib_dl_dlopen=yes | 
 | 11287 | else | 
 | 11288 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11289 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11290 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11291 | ac_cv_lib_dl_dlopen=no | 
 | 11292 | fi | 
 | 11293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11294 | LIBS=$ac_check_lib_save_LIBS | 
 | 11295 | fi | 
 | 11296 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 11297 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 11298 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 11299 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 11300 | else | 
 | 11301 |  | 
 | 11302 |     lt_cv_dlopen="dyld" | 
 | 11303 |     lt_cv_dlopen_libs= | 
 | 11304 |     lt_cv_dlopen_self=yes | 
 | 11305 |  | 
 | 11306 | fi | 
 | 11307 |  | 
 | 11308 |    ;; | 
 | 11309 |  | 
 | 11310 |   *) | 
 | 11311 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 11312 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 11313 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 11314 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11315 | else | 
 | 11316 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 11317 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11318 | /* confdefs.h.  */ | 
 | 11319 | _ACEOF | 
 | 11320 | cat confdefs.h >>conftest.$ac_ext | 
 | 11321 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11322 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11323 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11324 |     which can conflict with char shl_load (); below. | 
 | 11325 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11326 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 11327 | #ifdef __STDC__ | 
 | 11328 | # include <limits.h> | 
 | 11329 | #else | 
 | 11330 | # include <assert.h> | 
 | 11331 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11332 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11333 | #ifdef __cplusplus | 
 | 11334 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11335 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11336 | #endif | 
 | 11337 | /* We use char because int might match the return type of a gcc2 | 
 | 11338 |    builtin and then its argument prototype would still apply.  */ | 
 | 11339 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11340 | /* The GNU C library defines this for functions which it implements | 
 | 11341 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 11342 |     something starting with __ and the normal name is an alias.  */ | 
 | 11343 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 11344 | choke me | 
 | 11345 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11346 | char (*f) () = shl_load; | 
 | 11347 | #endif | 
 | 11348 | #ifdef __cplusplus | 
 | 11349 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11350 | #endif | 
 | 11351 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11352 | int | 
 | 11353 | main () | 
 | 11354 | { | 
 | 11355 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11356 |   ; | 
 | 11357 |   return 0; | 
 | 11358 | } | 
 | 11359 | _ACEOF | 
 | 11360 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11362 |   (eval $ac_link) 2>&5 | 
 | 11363 |   ac_status=$? | 
 | 11364 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11365 |   (exit $ac_status); } && | 
 | 11366 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11367 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11368 |   (eval $ac_try) 2>&5 | 
 | 11369 |   ac_status=$? | 
 | 11370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11371 |   (exit $ac_status); }; }; then | 
 | 11372 |   ac_cv_func_shl_load=yes | 
 | 11373 | else | 
 | 11374 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11375 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11376 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11377 | ac_cv_func_shl_load=no | 
 | 11378 | fi | 
 | 11379 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11380 | fi | 
 | 11381 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 11382 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 11383 | if test $ac_cv_func_shl_load = yes; then | 
 | 11384 |   lt_cv_dlopen="shl_load" | 
 | 11385 | else | 
 | 11386 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 11387 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 11388 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 11389 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11390 | else | 
 | 11391 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11392 | LIBS="-ldld  $LIBS" | 
 | 11393 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11394 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11395 | /* confdefs.h.  */ | 
 | 11396 | _ACEOF | 
 | 11397 | cat confdefs.h >>conftest.$ac_ext | 
 | 11398 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11399 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11400 |  | 
 | 11401 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11402 | #ifdef __cplusplus | 
 | 11403 | extern "C" | 
 | 11404 | #endif | 
 | 11405 | /* We use char because int might match the return type of a gcc2 | 
 | 11406 |    builtin and then its argument prototype would still apply.  */ | 
 | 11407 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11408 | int | 
 | 11409 | main () | 
 | 11410 | { | 
 | 11411 | shl_load (); | 
 | 11412 |   ; | 
 | 11413 |   return 0; | 
 | 11414 | } | 
 | 11415 | _ACEOF | 
 | 11416 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11418 |   (eval $ac_link) 2>&5 | 
 | 11419 |   ac_status=$? | 
 | 11420 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11421 |   (exit $ac_status); } && | 
 | 11422 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11423 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11424 |   (eval $ac_try) 2>&5 | 
 | 11425 |   ac_status=$? | 
 | 11426 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11427 |   (exit $ac_status); }; }; then | 
 | 11428 |   ac_cv_lib_dld_shl_load=yes | 
 | 11429 | else | 
 | 11430 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11431 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11432 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11433 | ac_cv_lib_dld_shl_load=no | 
 | 11434 | fi | 
 | 11435 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11436 | LIBS=$ac_check_lib_save_LIBS | 
 | 11437 | fi | 
 | 11438 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 11439 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 11440 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 11441 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 11442 | else | 
 | 11443 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 11444 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 11445 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 11446 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11447 | else | 
 | 11448 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 11449 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11450 | /* confdefs.h.  */ | 
 | 11451 | _ACEOF | 
 | 11452 | cat confdefs.h >>conftest.$ac_ext | 
 | 11453 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11454 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11455 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11456 |     which can conflict with char dlopen (); below. | 
 | 11457 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11458 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 11459 | #ifdef __STDC__ | 
 | 11460 | # include <limits.h> | 
 | 11461 | #else | 
 | 11462 | # include <assert.h> | 
 | 11463 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11464 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11465 | #ifdef __cplusplus | 
 | 11466 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11467 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11468 | #endif | 
 | 11469 | /* We use char because int might match the return type of a gcc2 | 
 | 11470 |    builtin and then its argument prototype would still apply.  */ | 
 | 11471 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11472 | /* The GNU C library defines this for functions which it implements | 
 | 11473 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 11474 |     something starting with __ and the normal name is an alias.  */ | 
 | 11475 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 11476 | choke me | 
 | 11477 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11478 | char (*f) () = dlopen; | 
 | 11479 | #endif | 
 | 11480 | #ifdef __cplusplus | 
 | 11481 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11482 | #endif | 
 | 11483 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11484 | int | 
 | 11485 | main () | 
 | 11486 | { | 
 | 11487 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11488 |   ; | 
 | 11489 |   return 0; | 
 | 11490 | } | 
 | 11491 | _ACEOF | 
 | 11492 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11494 |   (eval $ac_link) 2>&5 | 
 | 11495 |   ac_status=$? | 
 | 11496 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11497 |   (exit $ac_status); } && | 
 | 11498 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11499 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11500 |   (eval $ac_try) 2>&5 | 
 | 11501 |   ac_status=$? | 
 | 11502 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11503 |   (exit $ac_status); }; }; then | 
 | 11504 |   ac_cv_func_dlopen=yes | 
 | 11505 | else | 
 | 11506 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11507 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11508 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11509 | ac_cv_func_dlopen=no | 
 | 11510 | fi | 
 | 11511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11512 | fi | 
 | 11513 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 11514 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 11515 | if test $ac_cv_func_dlopen = yes; then | 
 | 11516 |   lt_cv_dlopen="dlopen" | 
 | 11517 | else | 
 | 11518 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 11519 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 11520 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 11521 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11522 | else | 
 | 11523 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11524 | LIBS="-ldl  $LIBS" | 
 | 11525 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11526 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11527 | /* confdefs.h.  */ | 
 | 11528 | _ACEOF | 
 | 11529 | cat confdefs.h >>conftest.$ac_ext | 
 | 11530 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11531 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11532 |  | 
 | 11533 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11534 | #ifdef __cplusplus | 
 | 11535 | extern "C" | 
 | 11536 | #endif | 
 | 11537 | /* We use char because int might match the return type of a gcc2 | 
 | 11538 |    builtin and then its argument prototype would still apply.  */ | 
 | 11539 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11540 | int | 
 | 11541 | main () | 
 | 11542 | { | 
 | 11543 | dlopen (); | 
 | 11544 |   ; | 
 | 11545 |   return 0; | 
 | 11546 | } | 
 | 11547 | _ACEOF | 
 | 11548 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11550 |   (eval $ac_link) 2>&5 | 
 | 11551 |   ac_status=$? | 
 | 11552 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11553 |   (exit $ac_status); } && | 
 | 11554 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11555 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11556 |   (eval $ac_try) 2>&5 | 
 | 11557 |   ac_status=$? | 
 | 11558 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11559 |   (exit $ac_status); }; }; then | 
 | 11560 |   ac_cv_lib_dl_dlopen=yes | 
 | 11561 | else | 
 | 11562 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11563 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11564 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11565 | ac_cv_lib_dl_dlopen=no | 
 | 11566 | fi | 
 | 11567 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11568 | LIBS=$ac_check_lib_save_LIBS | 
 | 11569 | fi | 
 | 11570 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 11571 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 11572 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 11573 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 11574 | else | 
 | 11575 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 11576 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 11577 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 11578 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11579 | else | 
 | 11580 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11581 | LIBS="-lsvld  $LIBS" | 
 | 11582 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11583 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11584 | /* confdefs.h.  */ | 
 | 11585 | _ACEOF | 
 | 11586 | cat confdefs.h >>conftest.$ac_ext | 
 | 11587 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11588 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11589 |  | 
 | 11590 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11591 | #ifdef __cplusplus | 
 | 11592 | extern "C" | 
 | 11593 | #endif | 
 | 11594 | /* We use char because int might match the return type of a gcc2 | 
 | 11595 |    builtin and then its argument prototype would still apply.  */ | 
 | 11596 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11597 | int | 
 | 11598 | main () | 
 | 11599 | { | 
 | 11600 | dlopen (); | 
 | 11601 |   ; | 
 | 11602 |   return 0; | 
 | 11603 | } | 
 | 11604 | _ACEOF | 
 | 11605 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11607 |   (eval $ac_link) 2>&5 | 
 | 11608 |   ac_status=$? | 
 | 11609 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11610 |   (exit $ac_status); } && | 
 | 11611 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11612 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11613 |   (eval $ac_try) 2>&5 | 
 | 11614 |   ac_status=$? | 
 | 11615 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11616 |   (exit $ac_status); }; }; then | 
 | 11617 |   ac_cv_lib_svld_dlopen=yes | 
 | 11618 | else | 
 | 11619 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11620 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11621 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11622 | ac_cv_lib_svld_dlopen=no | 
 | 11623 | fi | 
 | 11624 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11625 | LIBS=$ac_check_lib_save_LIBS | 
 | 11626 | fi | 
 | 11627 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 11628 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 11629 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 11630 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 11631 | else | 
 | 11632 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 11633 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 11634 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 11635 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11636 | else | 
 | 11637 |   ac_check_lib_save_LIBS=$LIBS | 
 | 11638 | LIBS="-ldld  $LIBS" | 
 | 11639 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11640 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11641 | /* confdefs.h.  */ | 
 | 11642 | _ACEOF | 
 | 11643 | cat confdefs.h >>conftest.$ac_ext | 
 | 11644 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11645 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11646 |  | 
 | 11647 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 11648 | #ifdef __cplusplus | 
 | 11649 | extern "C" | 
 | 11650 | #endif | 
 | 11651 | /* We use char because int might match the return type of a gcc2 | 
 | 11652 |    builtin and then its argument prototype would still apply.  */ | 
 | 11653 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11654 | int | 
 | 11655 | main () | 
 | 11656 | { | 
 | 11657 | dld_link (); | 
 | 11658 |   ; | 
 | 11659 |   return 0; | 
 | 11660 | } | 
 | 11661 | _ACEOF | 
 | 11662 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 11663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11664 |   (eval $ac_link) 2>&5 | 
 | 11665 |   ac_status=$? | 
 | 11666 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11667 |   (exit $ac_status); } && | 
 | 11668 |          { ac_try='test -s conftest$ac_exeext' | 
 | 11669 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 11670 |   (eval $ac_try) 2>&5 | 
 | 11671 |   ac_status=$? | 
 | 11672 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11673 |   (exit $ac_status); }; }; then | 
 | 11674 |   ac_cv_lib_dld_dld_link=yes | 
 | 11675 | else | 
 | 11676 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 11677 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11678 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11679 | ac_cv_lib_dld_dld_link=no | 
 | 11680 | fi | 
 | 11681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 11682 | LIBS=$ac_check_lib_save_LIBS | 
 | 11683 | fi | 
 | 11684 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 11685 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 11686 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 11687 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 11688 | fi | 
 | 11689 |  | 
 | 11690 |  | 
 | 11691 | fi | 
 | 11692 |  | 
 | 11693 |  | 
 | 11694 | fi | 
 | 11695 |  | 
 | 11696 |  | 
 | 11697 | fi | 
 | 11698 |  | 
 | 11699 |  | 
 | 11700 | fi | 
 | 11701 |  | 
 | 11702 |  | 
 | 11703 | fi | 
 | 11704 |  | 
 | 11705 |     ;; | 
 | 11706 |   esac | 
 | 11707 |  | 
 | 11708 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 11709 |     enable_dlopen=yes | 
 | 11710 |   else | 
 | 11711 |     enable_dlopen=no | 
 | 11712 |   fi | 
 | 11713 |  | 
 | 11714 |   case $lt_cv_dlopen in | 
 | 11715 |   dlopen) | 
 | 11716 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 11717 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 11718 |  | 
 | 11719 |     save_LDFLAGS="$LDFLAGS" | 
 | 11720 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 11721 |  | 
 | 11722 |     save_LIBS="$LIBS" | 
 | 11723 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 11724 |  | 
 | 11725 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 11726 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 11727 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 11728 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11729 | else | 
 | 11730 |   	  if test "$cross_compiling" = yes; then : | 
 | 11731 |   lt_cv_dlopen_self=cross | 
 | 11732 | else | 
 | 11733 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 11734 |   lt_status=$lt_dlunknown | 
 | 11735 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 11736 | #line 11736 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11737 | #include "confdefs.h" | 
 | 11738 |  | 
 | 11739 | #if HAVE_DLFCN_H | 
 | 11740 | #include <dlfcn.h> | 
 | 11741 | #endif | 
 | 11742 |  | 
 | 11743 | #include <stdio.h> | 
 | 11744 |  | 
 | 11745 | #ifdef RTLD_GLOBAL | 
 | 11746 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 11747 | #else | 
 | 11748 | #  ifdef DL_GLOBAL | 
 | 11749 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 11750 | #  else | 
 | 11751 | #    define LT_DLGLOBAL		0 | 
 | 11752 | #  endif | 
 | 11753 | #endif | 
 | 11754 |  | 
 | 11755 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 11756 |    find out it does not work in some platform. */ | 
 | 11757 | #ifndef LT_DLLAZY_OR_NOW | 
 | 11758 | #  ifdef RTLD_LAZY | 
 | 11759 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 11760 | #  else | 
 | 11761 | #    ifdef DL_LAZY | 
 | 11762 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 11763 | #    else | 
 | 11764 | #      ifdef RTLD_NOW | 
 | 11765 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 11766 | #      else | 
 | 11767 | #        ifdef DL_NOW | 
 | 11768 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 11769 | #        else | 
 | 11770 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 11771 | #        endif | 
 | 11772 | #      endif | 
 | 11773 | #    endif | 
 | 11774 | #  endif | 
 | 11775 | #endif | 
 | 11776 |  | 
 | 11777 | #ifdef __cplusplus | 
 | 11778 | extern "C" void exit (int); | 
 | 11779 | #endif | 
 | 11780 |  | 
 | 11781 | void fnord() { int i=42;} | 
 | 11782 | int main () | 
 | 11783 | { | 
 | 11784 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 11785 |   int status = $lt_dlunknown; | 
 | 11786 |  | 
 | 11787 |   if (self) | 
 | 11788 |     { | 
 | 11789 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 11790 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 11791 |       /* dlclose (self); */ | 
 | 11792 |     } | 
 | 11793 |  | 
 | 11794 |     exit (status); | 
 | 11795 | } | 
 | 11796 | EOF | 
 | 11797 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11798 |   (eval $ac_link) 2>&5 | 
 | 11799 |   ac_status=$? | 
 | 11800 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11801 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 11802 |     (./conftest; exit; ) 2>/dev/null | 
 | 11803 |     lt_status=$? | 
 | 11804 |     case x$lt_status in | 
 | 11805 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 11806 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 11807 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 11808 |     esac | 
 | 11809 |   else : | 
 | 11810 |     # compilation failed | 
 | 11811 |     lt_cv_dlopen_self=no | 
 | 11812 |   fi | 
 | 11813 | fi | 
 | 11814 | rm -fr conftest* | 
 | 11815 |  | 
 | 11816 |  | 
 | 11817 | fi | 
 | 11818 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 11819 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 11820 |  | 
 | 11821 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 11822 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 11823 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 11824 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 11825 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 11826 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11827 | else | 
 | 11828 |   	  if test "$cross_compiling" = yes; then : | 
 | 11829 |   lt_cv_dlopen_self_static=cross | 
 | 11830 | else | 
 | 11831 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 11832 |   lt_status=$lt_dlunknown | 
 | 11833 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 11834 | #line 11834 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11835 | #include "confdefs.h" | 
 | 11836 |  | 
 | 11837 | #if HAVE_DLFCN_H | 
 | 11838 | #include <dlfcn.h> | 
 | 11839 | #endif | 
 | 11840 |  | 
 | 11841 | #include <stdio.h> | 
 | 11842 |  | 
 | 11843 | #ifdef RTLD_GLOBAL | 
 | 11844 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 11845 | #else | 
 | 11846 | #  ifdef DL_GLOBAL | 
 | 11847 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 11848 | #  else | 
 | 11849 | #    define LT_DLGLOBAL		0 | 
 | 11850 | #  endif | 
 | 11851 | #endif | 
 | 11852 |  | 
 | 11853 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 11854 |    find out it does not work in some platform. */ | 
 | 11855 | #ifndef LT_DLLAZY_OR_NOW | 
 | 11856 | #  ifdef RTLD_LAZY | 
 | 11857 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 11858 | #  else | 
 | 11859 | #    ifdef DL_LAZY | 
 | 11860 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 11861 | #    else | 
 | 11862 | #      ifdef RTLD_NOW | 
 | 11863 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 11864 | #      else | 
 | 11865 | #        ifdef DL_NOW | 
 | 11866 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 11867 | #        else | 
 | 11868 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 11869 | #        endif | 
 | 11870 | #      endif | 
 | 11871 | #    endif | 
 | 11872 | #  endif | 
 | 11873 | #endif | 
 | 11874 |  | 
 | 11875 | #ifdef __cplusplus | 
 | 11876 | extern "C" void exit (int); | 
 | 11877 | #endif | 
 | 11878 |  | 
 | 11879 | void fnord() { int i=42;} | 
 | 11880 | int main () | 
 | 11881 | { | 
 | 11882 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 11883 |   int status = $lt_dlunknown; | 
 | 11884 |  | 
 | 11885 |   if (self) | 
 | 11886 |     { | 
 | 11887 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 11888 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 11889 |       /* dlclose (self); */ | 
 | 11890 |     } | 
 | 11891 |  | 
 | 11892 |     exit (status); | 
 | 11893 | } | 
 | 11894 | EOF | 
 | 11895 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11896 |   (eval $ac_link) 2>&5 | 
 | 11897 |   ac_status=$? | 
 | 11898 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11899 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 11900 |     (./conftest; exit; ) 2>/dev/null | 
 | 11901 |     lt_status=$? | 
 | 11902 |     case x$lt_status in | 
 | 11903 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 11904 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 11905 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 11906 |     esac | 
 | 11907 |   else : | 
 | 11908 |     # compilation failed | 
 | 11909 |     lt_cv_dlopen_self_static=no | 
 | 11910 |   fi | 
 | 11911 | fi | 
 | 11912 | rm -fr conftest* | 
 | 11913 |  | 
 | 11914 |  | 
 | 11915 | fi | 
 | 11916 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 11917 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 11918 |     fi | 
 | 11919 |  | 
 | 11920 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 11921 |     LDFLAGS="$save_LDFLAGS" | 
 | 11922 |     LIBS="$save_LIBS" | 
 | 11923 |     ;; | 
 | 11924 |   esac | 
 | 11925 |  | 
 | 11926 |   case $lt_cv_dlopen_self in | 
 | 11927 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 11928 |   *) enable_dlopen_self=unknown ;; | 
 | 11929 |   esac | 
 | 11930 |  | 
 | 11931 |   case $lt_cv_dlopen_self_static in | 
 | 11932 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 11933 |   *) enable_dlopen_self_static=unknown ;; | 
 | 11934 |   esac | 
 | 11935 | fi | 
 | 11936 |  | 
 | 11937 |  | 
 | 11938 | # The else clause should only fire when bootstrapping the | 
 | 11939 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 11940 | # with your package, and you will get complaints that there are | 
 | 11941 | # no rules to generate ltmain.sh. | 
 | 11942 | if test -f "$ltmain"; then | 
 | 11943 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 11944 |   # without removal of \ escapes. | 
 | 11945 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 11946 |     setopt NO_GLOB_SUBST | 
 | 11947 |   fi | 
 | 11948 |   # Now quote all the things that may contain metacharacters while being | 
 | 11949 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 11950 |   # variables and quote the copies for generation of the libtool script. | 
 | 11951 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
 | 11952 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 11953 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 11954 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 11955 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 11956 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 11957 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 11958 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 11959 |     compiler_CXX \ | 
 | 11960 |     CC_CXX \ | 
 | 11961 |     LD_CXX \ | 
 | 11962 |     lt_prog_compiler_wl_CXX \ | 
 | 11963 |     lt_prog_compiler_pic_CXX \ | 
 | 11964 |     lt_prog_compiler_static_CXX \ | 
 | 11965 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 11966 |     export_dynamic_flag_spec_CXX \ | 
 | 11967 |     thread_safe_flag_spec_CXX \ | 
 | 11968 |     whole_archive_flag_spec_CXX \ | 
 | 11969 |     enable_shared_with_static_runtimes_CXX \ | 
 | 11970 |     old_archive_cmds_CXX \ | 
 | 11971 |     old_archive_from_new_cmds_CXX \ | 
 | 11972 |     predep_objects_CXX \ | 
 | 11973 |     postdep_objects_CXX \ | 
 | 11974 |     predeps_CXX \ | 
 | 11975 |     postdeps_CXX \ | 
 | 11976 |     compiler_lib_search_path_CXX \ | 
 | 11977 |     archive_cmds_CXX \ | 
 | 11978 |     archive_expsym_cmds_CXX \ | 
 | 11979 |     postinstall_cmds_CXX \ | 
 | 11980 |     postuninstall_cmds_CXX \ | 
 | 11981 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 11982 |     allow_undefined_flag_CXX \ | 
 | 11983 |     no_undefined_flag_CXX \ | 
 | 11984 |     export_symbols_cmds_CXX \ | 
 | 11985 |     hardcode_libdir_flag_spec_CXX \ | 
 | 11986 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 11987 |     hardcode_libdir_separator_CXX \ | 
 | 11988 |     hardcode_automatic_CXX \ | 
 | 11989 |     module_cmds_CXX \ | 
 | 11990 |     module_expsym_cmds_CXX \ | 
 | 11991 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 11992 |     exclude_expsyms_CXX \ | 
 | 11993 |     include_expsyms_CXX; do | 
 | 11994 |  | 
 | 11995 |     case $var in | 
 | 11996 |     old_archive_cmds_CXX | \ | 
 | 11997 |     old_archive_from_new_cmds_CXX | \ | 
 | 11998 |     archive_cmds_CXX | \ | 
 | 11999 |     archive_expsym_cmds_CXX | \ | 
 | 12000 |     module_cmds_CXX | \ | 
 | 12001 |     module_expsym_cmds_CXX | \ | 
 | 12002 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 12003 |     export_symbols_cmds_CXX | \ | 
 | 12004 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 12005 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 12006 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 12007 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 12008 |       # Double-quote double-evaled strings. | 
 | 12009 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
 | 12010 |       ;; | 
 | 12011 |     *) | 
 | 12012 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 12013 |       ;; | 
 | 12014 |     esac | 
 | 12015 |   done | 
 | 12016 |  | 
 | 12017 |   case $lt_echo in | 
 | 12018 |   *'\$0 --fallback-echo"') | 
 | 12019 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 12020 |     ;; | 
 | 12021 |   esac | 
 | 12022 |  | 
 | 12023 | cfgfile="$ofile" | 
 | 12024 |  | 
 | 12025 |   cat <<__EOF__ >> "$cfgfile" | 
 | 12026 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 12027 |  | 
 | 12028 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 12029 |  | 
 | 12030 | # Shell to use when invoking shell scripts. | 
 | 12031 | SHELL=$lt_SHELL | 
 | 12032 |  | 
 | 12033 | # Whether or not to build shared libraries. | 
 | 12034 | build_libtool_libs=$enable_shared | 
 | 12035 |  | 
 | 12036 | # Whether or not to build static libraries. | 
 | 12037 | build_old_libs=$enable_static | 
 | 12038 |  | 
 | 12039 | # Whether or not to add -lc for building shared libraries. | 
 | 12040 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 12041 |  | 
 | 12042 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 12043 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 12044 |  | 
 | 12045 | # Whether or not to optimize for fast installation. | 
 | 12046 | fast_install=$enable_fast_install | 
 | 12047 |  | 
 | 12048 | # The host system. | 
 | 12049 | host_alias=$host_alias | 
 | 12050 | host=$host | 
 | 12051 |  | 
 | 12052 | # An echo program that does not interpret backslashes. | 
 | 12053 | echo=$lt_echo | 
 | 12054 |  | 
 | 12055 | # The archiver. | 
 | 12056 | AR=$lt_AR | 
 | 12057 | AR_FLAGS=$lt_AR_FLAGS | 
 | 12058 |  | 
 | 12059 | # A C compiler. | 
 | 12060 | LTCC=$lt_LTCC | 
 | 12061 |  | 
 | 12062 | # A language-specific compiler. | 
 | 12063 | CC=$lt_compiler_CXX | 
 | 12064 |  | 
 | 12065 | # Is the compiler the GNU C compiler? | 
 | 12066 | with_gcc=$GCC_CXX | 
 | 12067 |  | 
 | 12068 | # An ERE matcher. | 
 | 12069 | EGREP=$lt_EGREP | 
 | 12070 |  | 
 | 12071 | # The linker used to build libraries. | 
 | 12072 | LD=$lt_LD_CXX | 
 | 12073 |  | 
 | 12074 | # Whether we need hard or soft links. | 
 | 12075 | LN_S=$lt_LN_S | 
 | 12076 |  | 
 | 12077 | # A BSD-compatible nm program. | 
 | 12078 | NM=$lt_NM | 
 | 12079 |  | 
 | 12080 | # A symbol stripping program | 
 | 12081 | STRIP=$STRIP | 
 | 12082 |  | 
 | 12083 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 12084 | MAGIC_CMD=$MAGIC_CMD | 
 | 12085 |  | 
 | 12086 | # Used on cygwin: DLL creation program. | 
 | 12087 | DLLTOOL="$DLLTOOL" | 
 | 12088 |  | 
 | 12089 | # Used on cygwin: object dumper. | 
 | 12090 | OBJDUMP="$OBJDUMP" | 
 | 12091 |  | 
 | 12092 | # Used on cygwin: assembler. | 
 | 12093 | AS="$AS" | 
 | 12094 |  | 
 | 12095 | # The name of the directory that contains temporary libtool files. | 
 | 12096 | objdir=$objdir | 
 | 12097 |  | 
 | 12098 | # How to create reloadable object files. | 
 | 12099 | reload_flag=$lt_reload_flag | 
 | 12100 | reload_cmds=$lt_reload_cmds | 
 | 12101 |  | 
 | 12102 | # How to pass a linker flag through the compiler. | 
 | 12103 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 12104 |  | 
 | 12105 | # Object file suffix (normally "o"). | 
 | 12106 | objext="$ac_objext" | 
 | 12107 |  | 
 | 12108 | # Old archive suffix (normally "a"). | 
 | 12109 | libext="$libext" | 
 | 12110 |  | 
 | 12111 | # Shared library suffix (normally ".so"). | 
 | 12112 | shrext='$shrext' | 
 | 12113 |  | 
 | 12114 | # Executable file suffix (normally ""). | 
 | 12115 | exeext="$exeext" | 
 | 12116 |  | 
 | 12117 | # Additional compiler flags for building library objects. | 
 | 12118 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 12119 | pic_mode=$pic_mode | 
 | 12120 |  | 
 | 12121 | # What is the maximum length of a command? | 
 | 12122 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 12123 |  | 
 | 12124 | # Does compiler simultaneously support -c and -o options? | 
 | 12125 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 12126 |  | 
 | 12127 | # Must we lock files when doing compilation ? | 
 | 12128 | need_locks=$lt_need_locks | 
 | 12129 |  | 
 | 12130 | # Do we need the lib prefix for modules? | 
 | 12131 | need_lib_prefix=$need_lib_prefix | 
 | 12132 |  | 
 | 12133 | # Do we need a version for libraries? | 
 | 12134 | need_version=$need_version | 
 | 12135 |  | 
 | 12136 | # Whether dlopen is supported. | 
 | 12137 | dlopen_support=$enable_dlopen | 
 | 12138 |  | 
 | 12139 | # Whether dlopen of programs is supported. | 
 | 12140 | dlopen_self=$enable_dlopen_self | 
 | 12141 |  | 
 | 12142 | # Whether dlopen of statically linked programs is supported. | 
 | 12143 | dlopen_self_static=$enable_dlopen_self_static | 
 | 12144 |  | 
 | 12145 | # Compiler flag to prevent dynamic linking. | 
 | 12146 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 12147 |  | 
 | 12148 | # Compiler flag to turn off builtin functions. | 
 | 12149 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 12150 |  | 
 | 12151 | # Compiler flag to allow reflexive dlopens. | 
 | 12152 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 12153 |  | 
 | 12154 | # Compiler flag to generate shared objects directly from archives. | 
 | 12155 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 12156 |  | 
 | 12157 | # Compiler flag to generate thread-safe objects. | 
 | 12158 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 12159 |  | 
 | 12160 | # Library versioning type. | 
 | 12161 | version_type=$version_type | 
 | 12162 |  | 
 | 12163 | # Format of library name prefix. | 
 | 12164 | libname_spec=$lt_libname_spec | 
 | 12165 |  | 
 | 12166 | # List of archive names.  First name is the real one, the rest are links. | 
 | 12167 | # The last name is the one that the linker finds with -lNAME. | 
 | 12168 | library_names_spec=$lt_library_names_spec | 
 | 12169 |  | 
 | 12170 | # The coded name of the library, if different from the real name. | 
 | 12171 | soname_spec=$lt_soname_spec | 
 | 12172 |  | 
 | 12173 | # Commands used to build and install an old-style archive. | 
 | 12174 | RANLIB=$lt_RANLIB | 
 | 12175 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 12176 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 12177 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 12178 |  | 
 | 12179 | # Create an old-style archive from a shared archive. | 
 | 12180 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 12181 |  | 
 | 12182 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 12183 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 12184 |  | 
 | 12185 | # Commands used to build and install a shared archive. | 
 | 12186 | archive_cmds=$lt_archive_cmds_CXX | 
 | 12187 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 12188 | postinstall_cmds=$lt_postinstall_cmds | 
 | 12189 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 12190 |  | 
 | 12191 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 12192 | module_cmds=$lt_module_cmds_CXX | 
 | 12193 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 12194 |  | 
 | 12195 | # Commands to strip libraries. | 
 | 12196 | old_striplib=$lt_old_striplib | 
 | 12197 | striplib=$lt_striplib | 
 | 12198 |  | 
 | 12199 | # Dependencies to place before the objects being linked to create a | 
 | 12200 | # shared library. | 
 | 12201 | predep_objects=$lt_predep_objects_CXX | 
 | 12202 |  | 
 | 12203 | # Dependencies to place after the objects being linked to create a | 
 | 12204 | # shared library. | 
 | 12205 | postdep_objects=$lt_postdep_objects_CXX | 
 | 12206 |  | 
 | 12207 | # Dependencies to place before the objects being linked to create a | 
 | 12208 | # shared library. | 
 | 12209 | predeps=$lt_predeps_CXX | 
 | 12210 |  | 
 | 12211 | # Dependencies to place after the objects being linked to create a | 
 | 12212 | # shared library. | 
 | 12213 | postdeps=$lt_postdeps_CXX | 
 | 12214 |  | 
 | 12215 | # The library search path used internally by the compiler when linking | 
 | 12216 | # a shared library. | 
 | 12217 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 12218 |  | 
 | 12219 | # Method to check whether dependent libraries are shared objects. | 
 | 12220 | deplibs_check_method=$lt_deplibs_check_method | 
 | 12221 |  | 
 | 12222 | # Command to use when deplibs_check_method == file_magic. | 
 | 12223 | file_magic_cmd=$lt_file_magic_cmd | 
 | 12224 |  | 
 | 12225 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 12226 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 12227 |  | 
 | 12228 | # Flag that forces no undefined symbols. | 
 | 12229 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 12230 |  | 
 | 12231 | # Commands used to finish a libtool library installation in a directory. | 
 | 12232 | finish_cmds=$lt_finish_cmds | 
 | 12233 |  | 
 | 12234 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 12235 | finish_eval=$lt_finish_eval | 
 | 12236 |  | 
 | 12237 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 12238 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 12239 |  | 
 | 12240 | # Transform the output of nm in a proper C declaration | 
 | 12241 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 12242 |  | 
 | 12243 | # Transform the output of nm in a C name address pair | 
 | 12244 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 12245 |  | 
 | 12246 | # This is the shared library runtime path variable. | 
 | 12247 | runpath_var=$runpath_var | 
 | 12248 |  | 
 | 12249 | # This is the shared library path variable. | 
 | 12250 | shlibpath_var=$shlibpath_var | 
 | 12251 |  | 
 | 12252 | # Is shlibpath searched before the hard-coded library search path? | 
 | 12253 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 12254 |  | 
 | 12255 | # How to hardcode a shared library path into an executable. | 
 | 12256 | hardcode_action=$hardcode_action_CXX | 
 | 12257 |  | 
 | 12258 | # Whether we should hardcode library paths into libraries. | 
 | 12259 | hardcode_into_libs=$hardcode_into_libs | 
 | 12260 |  | 
 | 12261 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 12262 | # This must work even if \$libdir does not exist. | 
 | 12263 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 12264 |  | 
 | 12265 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 12266 | # a binary during linking. This must work even if \$libdir does | 
 | 12267 | # not exist. | 
 | 12268 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 12269 |  | 
 | 12270 | # Whether we need a single -rpath flag with a separated argument. | 
 | 12271 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 12272 |  | 
 | 12273 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 12274 | # resulting binary. | 
 | 12275 | hardcode_direct=$hardcode_direct_CXX | 
 | 12276 |  | 
 | 12277 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 12278 | # resulting binary. | 
 | 12279 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 12280 |  | 
 | 12281 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 12282 | # the resulting binary. | 
 | 12283 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 12284 |  | 
 | 12285 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 12286 | # and all subsequent libraries and executables linked against it. | 
 | 12287 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 12288 |  | 
 | 12289 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 12290 | # restored at relink time. | 
 | 12291 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 12292 |  | 
 | 12293 | # Whether libtool must link a program against all its dependency libraries. | 
 | 12294 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 12295 |  | 
 | 12296 | # Compile-time system search path for libraries | 
 | 12297 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 12298 |  | 
 | 12299 | # Run-time system search path for libraries | 
 | 12300 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 12301 |  | 
 | 12302 | # Fix the shell variable \$srcfile for the compiler. | 
 | 12303 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 12304 |  | 
 | 12305 | # Set to yes if exported symbols are required. | 
 | 12306 | always_export_symbols=$always_export_symbols_CXX | 
 | 12307 |  | 
 | 12308 | # The commands to list exported symbols. | 
 | 12309 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 12310 |  | 
 | 12311 | # The commands to extract the exported symbol list from a shared archive. | 
 | 12312 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 12313 |  | 
 | 12314 | # Symbols that should not be listed in the preloaded symbols. | 
 | 12315 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 12316 |  | 
 | 12317 | # Symbols that must always be exported. | 
 | 12318 | include_expsyms=$lt_include_expsyms_CXX | 
 | 12319 |  | 
 | 12320 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 12321 |  | 
 | 12322 | __EOF__ | 
 | 12323 |  | 
 | 12324 |  | 
 | 12325 | else | 
 | 12326 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 12327 |   # `config.status --recheck' to rerun these tests and create the | 
 | 12328 |   # libtool script then. | 
 | 12329 |   test -f Makefile && make "$ltmain" | 
 | 12330 | fi | 
 | 12331 |  | 
 | 12332 |  | 
 | 12333 | ac_ext=c | 
 | 12334 | ac_cpp='$CPP $CPPFLAGS' | 
 | 12335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 12336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 12338 |  | 
 | 12339 | CC=$lt_save_CC | 
 | 12340 | LDCXX=$LD | 
 | 12341 | LD=$lt_save_LD | 
 | 12342 | GCC=$lt_save_GCC | 
 | 12343 | with_gnu_ldcxx=$with_gnu_ld | 
 | 12344 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 12345 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 12346 | lt_cv_path_LD=$lt_save_path_LD | 
 | 12347 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 12348 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 12349 |  | 
 | 12350 | 	else | 
 | 12351 | 	  tagname="" | 
 | 12352 | 	fi | 
 | 12353 | 	;; | 
 | 12354 |  | 
 | 12355 |       F77) | 
 | 12356 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 12357 |  | 
 | 12358 | ac_ext=f | 
 | 12359 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 12360 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 12361 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 12362 |  | 
 | 12363 |  | 
 | 12364 | archive_cmds_need_lc_F77=no | 
 | 12365 | allow_undefined_flag_F77= | 
 | 12366 | always_export_symbols_F77=no | 
 | 12367 | archive_expsym_cmds_F77= | 
 | 12368 | export_dynamic_flag_spec_F77= | 
 | 12369 | hardcode_direct_F77=no | 
 | 12370 | hardcode_libdir_flag_spec_F77= | 
 | 12371 | hardcode_libdir_flag_spec_ld_F77= | 
 | 12372 | hardcode_libdir_separator_F77= | 
 | 12373 | hardcode_minus_L_F77=no | 
 | 12374 | hardcode_automatic_F77=no | 
 | 12375 | module_cmds_F77= | 
 | 12376 | module_expsym_cmds_F77= | 
 | 12377 | link_all_deplibs_F77=unknown | 
 | 12378 | old_archive_cmds_F77=$old_archive_cmds | 
 | 12379 | no_undefined_flag_F77= | 
 | 12380 | whole_archive_flag_spec_F77= | 
 | 12381 | enable_shared_with_static_runtimes_F77=no | 
 | 12382 |  | 
 | 12383 | # Source file extension for f77 test sources. | 
 | 12384 | ac_ext=f | 
 | 12385 |  | 
 | 12386 | # Object file extension for compiled f77 test sources. | 
 | 12387 | objext=o | 
 | 12388 | objext_F77=$objext | 
 | 12389 |  | 
 | 12390 | # Code to be used in simple compile tests | 
 | 12391 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 12392 |  | 
 | 12393 | # Code to be used in simple link tests | 
 | 12394 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 12395 |  | 
 | 12396 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 12397 |  | 
 | 12398 | # If no C compiler was specified, use CC. | 
 | 12399 | LTCC=${LTCC-"$CC"} | 
 | 12400 |  | 
 | 12401 | # Allow CC to be a program name with arguments. | 
 | 12402 | compiler=$CC | 
 | 12403 |  | 
 | 12404 |  | 
 | 12405 | # Allow CC to be a program name with arguments. | 
 | 12406 | lt_save_CC="$CC" | 
 | 12407 | CC=${F77-"f77"} | 
 | 12408 | compiler=$CC | 
 | 12409 | compiler_F77=$CC | 
 | 12410 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 
 | 12411 |  | 
 | 12412 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 12413 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 
 | 12414 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 12415 | echo "${ECHO_T}$can_build_shared" >&6 | 
 | 12416 |  | 
 | 12417 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 12418 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | 
 | 12419 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 12420 |  | 
 | 12421 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 12422 | # are all built from PIC. | 
 | 12423 | case "$host_os" in | 
 | 12424 | aix3*) | 
 | 12425 |   test "$enable_shared" = yes && enable_static=no | 
 | 12426 |   if test -n "$RANLIB"; then | 
 | 12427 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
 | 12428 |     postinstall_cmds='$RANLIB $lib' | 
 | 12429 |   fi | 
 | 12430 |   ;; | 
 | 12431 | aix4*) | 
 | 12432 |   test "$enable_shared" = yes && enable_static=no | 
 | 12433 |   ;; | 
 | 12434 | esac | 
 | 12435 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 12436 | echo "${ECHO_T}$enable_shared" >&6 | 
 | 12437 |  | 
 | 12438 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 12439 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | 
 | 12440 | # Make sure either enable_shared or enable_static is yes. | 
 | 12441 | test "$enable_shared" = yes || enable_static=yes | 
 | 12442 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 12443 | echo "${ECHO_T}$enable_static" >&6 | 
 | 12444 |  | 
 | 12445 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 12446 |  | 
 | 12447 | GCC_F77="$G77" | 
 | 12448 | LD_F77="$LD" | 
 | 12449 |  | 
 | 12450 | lt_prog_compiler_wl_F77= | 
 | 12451 | lt_prog_compiler_pic_F77= | 
 | 12452 | lt_prog_compiler_static_F77= | 
 | 12453 |  | 
 | 12454 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 12455 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 12456 |  | 
 | 12457 |   if test "$GCC" = yes; then | 
 | 12458 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 12459 |     lt_prog_compiler_static_F77='-static' | 
 | 12460 |  | 
 | 12461 |     case $host_os in | 
 | 12462 |       aix*) | 
 | 12463 |       # All AIX code is PIC. | 
 | 12464 |       if test "$host_cpu" = ia64; then | 
 | 12465 | 	# AIX 5 now supports IA64 processor | 
 | 12466 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 12467 |       fi | 
 | 12468 |       ;; | 
 | 12469 |  | 
 | 12470 |     amigaos*) | 
 | 12471 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 12472 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 12473 |       # like `-m68040'. | 
 | 12474 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 12475 |       ;; | 
 | 12476 |  | 
 | 12477 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 12478 |       # PIC is the default for these OSes. | 
 | 12479 |       ;; | 
 | 12480 |  | 
 | 12481 |     mingw* | pw32* | os2*) | 
 | 12482 |       # This hack is so that the source file can tell whether it is being | 
 | 12483 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 12484 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 12485 |       ;; | 
 | 12486 |  | 
 | 12487 |     darwin* | rhapsody*) | 
 | 12488 |       # PIC is the default on this platform | 
 | 12489 |       # Common symbols not allowed in MH_DYLIB files | 
 | 12490 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 12491 |       ;; | 
 | 12492 |  | 
 | 12493 |     msdosdjgpp*) | 
 | 12494 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 12495 |       # on systems that don't support them. | 
 | 12496 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 12497 |       enable_shared=no | 
 | 12498 |       ;; | 
 | 12499 |  | 
 | 12500 |     sysv4*MP*) | 
 | 12501 |       if test -d /usr/nec; then | 
 | 12502 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 12503 |       fi | 
 | 12504 |       ;; | 
 | 12505 |  | 
 | 12506 |     hpux*) | 
 | 12507 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 12508 |       # not for PA HP-UX. | 
 | 12509 |       case "$host_cpu" in | 
 | 12510 |       hppa*64*|ia64*) | 
 | 12511 | 	# +Z the default | 
 | 12512 | 	;; | 
 | 12513 |       *) | 
 | 12514 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 12515 | 	;; | 
 | 12516 |       esac | 
 | 12517 |       ;; | 
 | 12518 |  | 
 | 12519 |     *) | 
 | 12520 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 12521 |       ;; | 
 | 12522 |     esac | 
 | 12523 |   else | 
 | 12524 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 12525 |     case $host_os in | 
 | 12526 |     aix*) | 
 | 12527 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12528 |       if test "$host_cpu" = ia64; then | 
 | 12529 | 	# AIX 5 now supports IA64 processor | 
 | 12530 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 12531 |       else | 
 | 12532 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 12533 |       fi | 
 | 12534 |       ;; | 
 | 12535 |  | 
 | 12536 |     mingw* | pw32* | os2*) | 
 | 12537 |       # This hack is so that the source file can tell whether it is being | 
 | 12538 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 12539 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 12540 |       ;; | 
 | 12541 |  | 
 | 12542 |     hpux9* | hpux10* | hpux11*) | 
 | 12543 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12544 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 12545 |       # not for PA HP-UX. | 
 | 12546 |       case "$host_cpu" in | 
 | 12547 |       hppa*64*|ia64*) | 
 | 12548 | 	# +Z the default | 
 | 12549 | 	;; | 
 | 12550 |       *) | 
 | 12551 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 12552 | 	;; | 
 | 12553 |       esac | 
 | 12554 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 12555 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 12556 |       ;; | 
 | 12557 |  | 
 | 12558 |     irix5* | irix6* | nonstopux*) | 
 | 12559 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12560 |       # PIC (with -KPIC) is the default. | 
 | 12561 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 12562 |       ;; | 
 | 12563 |  | 
 | 12564 |     newsos6) | 
 | 12565 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 12566 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 12567 |       ;; | 
 | 12568 |  | 
 | 12569 |     linux*) | 
 | 12570 |       case $CC in | 
 | 12571 |       icc|ecc) | 
 | 12572 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 12573 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 12574 | 	lt_prog_compiler_static_F77='-static' | 
 | 12575 |         ;; | 
 | 12576 |       ccc) | 
 | 12577 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 12578 |         # All Alpha code is PIC. | 
 | 12579 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 12580 |         ;; | 
 | 12581 |       esac | 
 | 12582 |       ;; | 
 | 12583 |  | 
 | 12584 |     osf3* | osf4* | osf5*) | 
 | 12585 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12586 |       # All OSF/1 code is PIC. | 
 | 12587 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 12588 |       ;; | 
 | 12589 |  | 
 | 12590 |     sco3.2v5*) | 
 | 12591 |       lt_prog_compiler_pic_F77='-Kpic' | 
 | 12592 |       lt_prog_compiler_static_F77='-dn' | 
 | 12593 |       ;; | 
 | 12594 |  | 
 | 12595 |     solaris*) | 
 | 12596 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12597 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 12598 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 12599 |       ;; | 
 | 12600 |  | 
 | 12601 |     sunos4*) | 
 | 12602 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 12603 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 12604 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 12605 |       ;; | 
 | 12606 |  | 
 | 12607 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 12608 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 12609 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 12610 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 12611 |       ;; | 
 | 12612 |  | 
 | 12613 |     sysv4*MP*) | 
 | 12614 |       if test -d /usr/nec ;then | 
 | 12615 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 12616 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 12617 |       fi | 
 | 12618 |       ;; | 
 | 12619 |  | 
 | 12620 |     uts4*) | 
 | 12621 |       lt_prog_compiler_pic_F77='-pic' | 
 | 12622 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 12623 |       ;; | 
 | 12624 |  | 
 | 12625 |     *) | 
 | 12626 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 12627 |       ;; | 
 | 12628 |     esac | 
 | 12629 |   fi | 
 | 12630 |  | 
 | 12631 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 12632 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | 
 | 12633 |  | 
 | 12634 | # | 
 | 12635 | # Check to make sure the PIC flag actually works. | 
 | 12636 | # | 
 | 12637 | if test -n "$lt_prog_compiler_pic_F77"; then | 
 | 12638 |   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | 
 | 12639 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | 
 | 12640 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 12641 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12642 | else | 
 | 12643 |   lt_prog_compiler_pic_works_F77=no | 
 | 12644 |   ac_outfile=conftest.$ac_objext | 
 | 12645 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 12646 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 12647 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12648 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12649 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12650 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12651 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 12652 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12653 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12654 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12655 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 12656 |    (eval echo "\"\$as_me:12656: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12657 |    (eval "$lt_compile" 2>conftest.err) | 
 | 12658 |    ac_status=$? | 
 | 12659 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 12660 |    echo "$as_me:12660: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12661 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 12662 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12663 |      # So say no if there are warnings | 
 | 12664 |      if test ! -s conftest.err; then | 
 | 12665 |        lt_prog_compiler_pic_works_F77=yes | 
 | 12666 |      fi | 
 | 12667 |    fi | 
 | 12668 |    $rm conftest* | 
 | 12669 |  | 
 | 12670 | fi | 
 | 12671 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 12672 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | 
 | 12673 |  | 
 | 12674 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 12675 |     case $lt_prog_compiler_pic_F77 in | 
 | 12676 |      "" | " "*) ;; | 
 | 12677 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 12678 |      esac | 
 | 12679 | else | 
 | 12680 |     lt_prog_compiler_pic_F77= | 
 | 12681 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 12682 | fi | 
 | 12683 |  | 
 | 12684 | fi | 
 | 12685 | case "$host_os" in | 
 | 12686 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 12687 |   *djgpp*) | 
 | 12688 |     lt_prog_compiler_pic_F77= | 
 | 12689 |     ;; | 
 | 12690 |   *) | 
 | 12691 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 12692 |     ;; | 
 | 12693 | esac | 
 | 12694 |  | 
 | 12695 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 12696 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 12697 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 12698 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12699 | else | 
 | 12700 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 12701 |    $rm -r conftest 2>/dev/null | 
 | 12702 |    mkdir conftest | 
 | 12703 |    cd conftest | 
 | 12704 |    mkdir out | 
 | 12705 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 12706 |  | 
 | 12707 |    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
 | 12708 |    # that will create temporary files in the current directory regardless of | 
 | 12709 |    # the output directory.  Thus, making CWD read-only will cause this test | 
 | 12710 |    # to fail, enabling locking or at least warning the user not to do parallel | 
 | 12711 |    # builds. | 
 | 12712 |    chmod -w . | 
 | 12713 |  | 
 | 12714 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 12715 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 12716 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 12717 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 12718 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 12719 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 12720 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 12721 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 12722 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 12723 |    (eval echo "\"\$as_me:12723: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12724 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 12725 |    ac_status=$? | 
 | 12726 |    cat out/conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 12727 |    echo "$as_me:12727: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12728 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 12729 |    then | 
 | 12730 |      # The compiler can only warn and ignore the option if not recognized | 
 | 12731 |      # So say no if there are warnings | 
 | 12732 |      if test ! -s out/conftest.err; then | 
 | 12733 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 12734 |      fi | 
 | 12735 |    fi | 
 | 12736 |    chmod u+w . | 
 | 12737 |    $rm conftest* out/* | 
 | 12738 |    rmdir out | 
 | 12739 |    cd .. | 
 | 12740 |    rmdir conftest | 
 | 12741 |    $rm conftest* | 
 | 12742 |  | 
 | 12743 | fi | 
 | 12744 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 12745 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | 
 | 12746 |  | 
 | 12747 |  | 
 | 12748 | hard_links="nottested" | 
 | 12749 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 12750 |   # do not overwrite the value of need_locks provided by the user | 
 | 12751 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 12752 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 12753 |   hard_links=yes | 
 | 12754 |   $rm conftest* | 
 | 12755 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12756 |   touch conftest.a | 
 | 12757 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 12758 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 12759 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 12760 | echo "${ECHO_T}$hard_links" >&6 | 
 | 12761 |   if test "$hard_links" = no; then | 
 | 12762 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 12763 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 12764 |     need_locks=warn | 
 | 12765 |   fi | 
 | 12766 | else | 
 | 12767 |   need_locks=no | 
 | 12768 | fi | 
 | 12769 |  | 
 | 12770 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 12771 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 12772 |  | 
 | 12773 |   runpath_var= | 
 | 12774 |   allow_undefined_flag_F77= | 
 | 12775 |   enable_shared_with_static_runtimes_F77=no | 
 | 12776 |   archive_cmds_F77= | 
 | 12777 |   archive_expsym_cmds_F77= | 
 | 12778 |   old_archive_From_new_cmds_F77= | 
 | 12779 |   old_archive_from_expsyms_cmds_F77= | 
 | 12780 |   export_dynamic_flag_spec_F77= | 
 | 12781 |   whole_archive_flag_spec_F77= | 
 | 12782 |   thread_safe_flag_spec_F77= | 
 | 12783 |   hardcode_libdir_flag_spec_F77= | 
 | 12784 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 12785 |   hardcode_libdir_separator_F77= | 
 | 12786 |   hardcode_direct_F77=no | 
 | 12787 |   hardcode_minus_L_F77=no | 
 | 12788 |   hardcode_shlibpath_var_F77=unsupported | 
 | 12789 |   link_all_deplibs_F77=unknown | 
 | 12790 |   hardcode_automatic_F77=no | 
 | 12791 |   module_cmds_F77= | 
 | 12792 |   module_expsym_cmds_F77= | 
 | 12793 |   always_export_symbols_F77=no | 
 | 12794 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12795 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 12796 |   # included in the symbol list | 
 | 12797 |   include_expsyms_F77= | 
 | 12798 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 12799 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 12800 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 12801 |   # as well as any symbol that contains `d'. | 
 | 12802 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 12803 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 12804 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 12805 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 12806 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 12807 |   # preloaded symbol tables. | 
 | 12808 |   extract_expsyms_cmds= | 
 | 12809 |  | 
 | 12810 |   case $host_os in | 
 | 12811 |   cygwin* | mingw* | pw32*) | 
 | 12812 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 12813 |     # When not using gcc, we currently assume that we are using | 
 | 12814 |     # Microsoft Visual C++. | 
 | 12815 |     if test "$GCC" != yes; then | 
 | 12816 |       with_gnu_ld=no | 
 | 12817 |     fi | 
 | 12818 |     ;; | 
 | 12819 |   openbsd*) | 
 | 12820 |     with_gnu_ld=no | 
 | 12821 |     ;; | 
 | 12822 |   esac | 
 | 12823 |  | 
 | 12824 |   ld_shlibs_F77=yes | 
 | 12825 |   if test "$with_gnu_ld" = yes; then | 
 | 12826 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 12827 |     wlarc='${wl}' | 
 | 12828 |  | 
 | 12829 |     # See if GNU ld supports shared libraries. | 
 | 12830 |     case $host_os in | 
 | 12831 |     aix3* | aix4* | aix5*) | 
 | 12832 |       # On AIX/PPC, the GNU linker is very broken | 
 | 12833 |       if test "$host_cpu" != ia64; then | 
 | 12834 | 	ld_shlibs_F77=no | 
 | 12835 | 	cat <<EOF 1>&2 | 
 | 12836 |  | 
 | 12837 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 12838 | *** to be unable to reliably create shared libraries on AIX. | 
 | 12839 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 12840 | *** really care for shared libraries, you may want to modify your PATH | 
 | 12841 | *** so that a non-GNU linker is found, and then restart. | 
 | 12842 |  | 
 | 12843 | EOF | 
 | 12844 |       fi | 
 | 12845 |       ;; | 
 | 12846 |  | 
 | 12847 |     amigaos*) | 
 | 12848 |       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)' | 
 | 12849 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 12850 |       hardcode_minus_L_F77=yes | 
 | 12851 |  | 
 | 12852 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 12853 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 12854 |       # to version 4, is to share data among multiple programs linked | 
 | 12855 |       # with the same dynamic library.  Since this doesn't match the | 
 | 12856 |       # behavior of shared libraries on other platforms, we can't use | 
 | 12857 |       # them. | 
 | 12858 |       ld_shlibs_F77=no | 
 | 12859 |       ;; | 
 | 12860 |  | 
 | 12861 |     beos*) | 
 | 12862 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12863 | 	allow_undefined_flag_F77=unsupported | 
 | 12864 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 12865 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 12866 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12867 |       else | 
 | 12868 | 	ld_shlibs_F77=no | 
 | 12869 |       fi | 
 | 12870 |       ;; | 
 | 12871 |  | 
 | 12872 |     cygwin* | mingw* | pw32*) | 
 | 12873 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 12874 |       # as there is no search path for DLLs. | 
 | 12875 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 12876 |       allow_undefined_flag_F77=unsupported | 
 | 12877 |       always_export_symbols_F77=no | 
 | 12878 |       enable_shared_with_static_runtimes_F77=yes | 
 | 12879 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 12880 |  | 
 | 12881 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 12882 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 12883 | 	# If the export-symbols file already is a .def file (1st line | 
 | 12884 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 12885 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 12886 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 12887 | 	else | 
 | 12888 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 12889 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
 | 12890 | 	fi~ | 
 | 12891 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
 | 12892 |       else | 
 | 12893 | 	ld_shlibs=no | 
 | 12894 |       fi | 
 | 12895 |       ;; | 
 | 12896 |  | 
 | 12897 |     netbsd*) | 
 | 12898 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 12899 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 12900 | 	wlarc= | 
 | 12901 |       else | 
 | 12902 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12903 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12904 |       fi | 
 | 12905 |       ;; | 
 | 12906 |  | 
 | 12907 |     solaris* | sysv5*) | 
 | 12908 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 12909 | 	ld_shlibs_F77=no | 
 | 12910 | 	cat <<EOF 1>&2 | 
 | 12911 |  | 
 | 12912 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 12913 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 12914 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 12915 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 12916 | *** your PATH or compiler configuration so that the native linker is | 
 | 12917 | *** used, and then restart. | 
 | 12918 |  | 
 | 12919 | EOF | 
 | 12920 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12921 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12922 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12923 |       else | 
 | 12924 | 	ld_shlibs_F77=no | 
 | 12925 |       fi | 
 | 12926 |       ;; | 
 | 12927 |  | 
 | 12928 |     sunos4*) | 
 | 12929 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 12930 |       wlarc= | 
 | 12931 |       hardcode_direct_F77=yes | 
 | 12932 |       hardcode_shlibpath_var_F77=no | 
 | 12933 |       ;; | 
 | 12934 |  | 
 | 12935 |     *) | 
 | 12936 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 12937 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 12938 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 12939 |       else | 
 | 12940 | 	ld_shlibs_F77=no | 
 | 12941 |       fi | 
 | 12942 |       ;; | 
 | 12943 |     esac | 
 | 12944 |  | 
 | 12945 |     if test "$ld_shlibs_F77" = yes; then | 
 | 12946 |       runpath_var=LD_RUN_PATH | 
 | 12947 |       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 12948 |       export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 12949 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 12950 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 12951 |  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 12952 |       else | 
 | 12953 |   	whole_archive_flag_spec_F77= | 
 | 12954 |       fi | 
 | 12955 |     fi | 
 | 12956 |   else | 
 | 12957 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 12958 |     case $host_os in | 
 | 12959 |     aix3*) | 
 | 12960 |       allow_undefined_flag_F77=unsupported | 
 | 12961 |       always_export_symbols_F77=yes | 
 | 12962 |       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' | 
 | 12963 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 12964 |       # are no directories specified by -L. | 
 | 12965 |       hardcode_minus_L_F77=yes | 
 | 12966 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 12967 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 12968 | 	# broken collect2. | 
 | 12969 | 	hardcode_direct_F77=unsupported | 
 | 12970 |       fi | 
 | 12971 |       ;; | 
 | 12972 |  | 
 | 12973 |     aix4* | aix5*) | 
 | 12974 |       if test "$host_cpu" = ia64; then | 
 | 12975 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 12976 | 	# have to do anything special. | 
 | 12977 | 	aix_use_runtimelinking=no | 
 | 12978 | 	exp_sym_flag='-Bexport' | 
 | 12979 | 	no_entry_flag="" | 
 | 12980 |       else | 
 | 12981 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 12982 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 12983 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 12984 | 	  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' | 
 | 12985 | 	else | 
 | 12986 | 	  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' | 
 | 12987 | 	fi | 
 | 12988 | 	aix_use_runtimelinking=no | 
 | 12989 |  | 
 | 12990 | 	# Test if we are trying to use run time linking or normal | 
 | 12991 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 12992 | 	# need to do runtime linking. | 
 | 12993 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 12994 | 	  for ld_flag in $LDFLAGS; do | 
 | 12995 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 12996 |   	    aix_use_runtimelinking=yes | 
 | 12997 |   	    break | 
 | 12998 |   	  fi | 
 | 12999 | 	  done | 
 | 13000 | 	esac | 
 | 13001 |  | 
 | 13002 | 	exp_sym_flag='-bexport' | 
 | 13003 | 	no_entry_flag='-bnoentry' | 
 | 13004 |       fi | 
 | 13005 |  | 
 | 13006 |       # When large executables or shared objects are built, AIX ld can | 
 | 13007 |       # have problems creating the table of contents.  If linking a library | 
 | 13008 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 13009 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 13010 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 13011 |  | 
 | 13012 |       archive_cmds_F77='' | 
 | 13013 |       hardcode_direct_F77=yes | 
 | 13014 |       hardcode_libdir_separator_F77=':' | 
 | 13015 |       link_all_deplibs_F77=yes | 
 | 13016 |  | 
 | 13017 |       if test "$GCC" = yes; then | 
 | 13018 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 13019 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 13020 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 13021 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 13022 | 	  if test -f "$collect2name" && \ | 
 | 13023 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 13024 | 	  then | 
 | 13025 |   	  # We have reworked collect2 | 
 | 13026 |   	  hardcode_direct_F77=yes | 
 | 13027 | 	  else | 
 | 13028 |   	  # We have old collect2 | 
 | 13029 |   	  hardcode_direct_F77=unsupported | 
 | 13030 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 13031 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 13032 |   	  # to unsupported forces relinking | 
 | 13033 |   	  hardcode_minus_L_F77=yes | 
 | 13034 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13035 |   	  hardcode_libdir_separator_F77= | 
 | 13036 | 	  fi | 
 | 13037 | 	esac | 
 | 13038 | 	shared_flag='-shared' | 
 | 13039 |       else | 
 | 13040 | 	# not using gcc | 
 | 13041 | 	if test "$host_cpu" = ia64; then | 
 | 13042 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 13043 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 13044 | 	  shared_flag='-G' | 
 | 13045 | 	else | 
 | 13046 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 13047 | 	    shared_flag='${wl}-G' | 
 | 13048 | 	  else | 
 | 13049 | 	    shared_flag='${wl}-bM:SRE' | 
 | 13050 |   	fi | 
 | 13051 | 	fi | 
 | 13052 |       fi | 
 | 13053 |  | 
 | 13054 |       # It seems that -bexpall does not export symbols beginning with | 
 | 13055 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 13056 |       always_export_symbols_F77=yes | 
 | 13057 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 13058 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 13059 | 	# -berok will link without error, but may produce a broken library. | 
 | 13060 | 	allow_undefined_flag_F77='-berok' | 
 | 13061 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 13062 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 13063 |       program main | 
 | 13064 |  | 
 | 13065 |       end | 
 | 13066 | _ACEOF | 
 | 13067 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 13069 |   (eval $ac_link) 2>&5 | 
 | 13070 |   ac_status=$? | 
 | 13071 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13072 |   (exit $ac_status); } && | 
 | 13073 |          { ac_try='test -s conftest$ac_exeext' | 
 | 13074 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13075 |   (eval $ac_try) 2>&5 | 
 | 13076 |   ac_status=$? | 
 | 13077 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13078 |   (exit $ac_status); }; }; then | 
 | 13079 |  | 
 | 13080 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13081 | }'` | 
 | 13082 | # Check for a 64-bit object if we didn't find anything. | 
 | 13083 | 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; } | 
 | 13084 | }'`; fi | 
 | 13085 | else | 
 | 13086 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13087 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13088 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13089 | fi | 
 | 13090 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 13091 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13092 |  | 
 | 13093 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13094 | 	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" | 
 | 13095 |        else | 
 | 13096 | 	if test "$host_cpu" = ia64; then | 
 | 13097 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 13098 | 	  allow_undefined_flag_F77="-z nodefs" | 
 | 13099 | 	  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" | 
 | 13100 | 	else | 
 | 13101 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 13102 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 13103 |       program main | 
 | 13104 |  | 
 | 13105 |       end | 
 | 13106 | _ACEOF | 
 | 13107 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 13108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 13109 |   (eval $ac_link) 2>&5 | 
 | 13110 |   ac_status=$? | 
 | 13111 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13112 |   (exit $ac_status); } && | 
 | 13113 |          { ac_try='test -s conftest$ac_exeext' | 
 | 13114 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 13115 |   (eval $ac_try) 2>&5 | 
 | 13116 |   ac_status=$? | 
 | 13117 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13118 |   (exit $ac_status); }; }; then | 
 | 13119 |  | 
 | 13120 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 13121 | }'` | 
 | 13122 | # Check for a 64-bit object if we didn't find anything. | 
 | 13123 | 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; } | 
 | 13124 | }'`; fi | 
 | 13125 | else | 
 | 13126 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13127 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13128 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13129 | fi | 
 | 13130 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 13131 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 13132 |  | 
 | 13133 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 13134 | 	  # Warning - without using the other run time loading flags, | 
 | 13135 | 	  # -berok will link without error, but may produce a broken library. | 
 | 13136 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 13137 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
 | 13138 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 13139 | 	  always_export_symbols_F77=yes | 
 | 13140 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 13141 | 	  whole_archive_flag_spec_F77=' ' | 
 | 13142 | 	  archive_cmds_need_lc_F77=yes | 
 | 13143 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
 | 13144 | 	  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' | 
 | 13145 | 	fi | 
 | 13146 |       fi | 
 | 13147 |       ;; | 
 | 13148 |  | 
 | 13149 |     amigaos*) | 
 | 13150 |       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)' | 
 | 13151 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13152 |       hardcode_minus_L_F77=yes | 
 | 13153 |       # see comment about different semantics on the GNU ld section | 
 | 13154 |       ld_shlibs_F77=no | 
 | 13155 |       ;; | 
 | 13156 |  | 
 | 13157 |     bsdi4*) | 
 | 13158 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 13159 |       ;; | 
 | 13160 |  | 
 | 13161 |     cygwin* | mingw* | pw32*) | 
 | 13162 |       # When not using gcc, we currently assume that we are using | 
 | 13163 |       # Microsoft Visual C++. | 
 | 13164 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 13165 |       # no search path for DLLs. | 
 | 13166 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 13167 |       allow_undefined_flag_F77=unsupported | 
 | 13168 |       # Tell ltmain to make .lib files, not .a files. | 
 | 13169 |       libext=lib | 
 | 13170 |       # Tell ltmain to make .dll files, not .so files. | 
 | 13171 |       shrext=".dll" | 
 | 13172 |       # FIXME: Setting linknames here is a bad hack. | 
 | 13173 |       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
 | 13174 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 13175 |       old_archive_From_new_cmds_F77='true' | 
 | 13176 |       # FIXME: Should let the user specify the lib program. | 
 | 13177 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 13178 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 13179 |       enable_shared_with_static_runtimes_F77=yes | 
 | 13180 |       ;; | 
 | 13181 |  | 
 | 13182 |     darwin* | rhapsody*) | 
 | 13183 |     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 13184 |       archive_cmds_need_lc_F77=no | 
 | 13185 |       case "$host_os" in | 
 | 13186 |       rhapsody* | darwin1.[012]) | 
 | 13187 | 	allow_undefined_flag_F77='-undefined suppress' | 
 | 13188 | 	;; | 
 | 13189 |       *) # Darwin 1.3 on | 
 | 13190 | 	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' | 
 | 13191 | 	;; | 
 | 13192 |       esac | 
 | 13193 |       # FIXME: Relying on posixy $() will cause problems for | 
 | 13194 |       #        cross-compilation, but unfortunately the echo tests do not | 
 | 13195 |       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
 | 13196 |       #	       `"' quotes if we put them in here... so don't! | 
 | 13197 |     	lt_int_apple_cc_single_mod=no | 
 | 13198 |     	output_verbose_link_cmd='echo' | 
 | 13199 |     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
 | 13200 |     	  lt_int_apple_cc_single_mod=yes | 
 | 13201 |     	fi | 
 | 13202 |     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 13203 |     	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 13204 |     	else | 
 | 13205 |         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' | 
 | 13206 |       fi | 
 | 13207 |       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
 | 13208 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 13209 |         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 13210 |           archive_expsym_cmds_F77='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}' | 
 | 13211 |         else | 
 | 13212 |           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
 | 13213 |         fi | 
 | 13214 |           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 13215 |       hardcode_direct_F77=no | 
 | 13216 |       hardcode_automatic_F77=yes | 
 | 13217 |       hardcode_shlibpath_var_F77=unsupported | 
 | 13218 |       whole_archive_flag_spec_F77='-all_load $convenience' | 
 | 13219 |       link_all_deplibs_F77=yes | 
 | 13220 |     fi | 
 | 13221 |       ;; | 
 | 13222 |  | 
 | 13223 |     dgux*) | 
 | 13224 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13225 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13226 |       hardcode_shlibpath_var_F77=no | 
 | 13227 |       ;; | 
 | 13228 |  | 
 | 13229 |     freebsd1*) | 
 | 13230 |       ld_shlibs_F77=no | 
 | 13231 |       ;; | 
 | 13232 |  | 
 | 13233 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 13234 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 13235 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 13236 |     # extra space). | 
 | 13237 |     freebsd2.2*) | 
 | 13238 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 13239 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13240 |       hardcode_direct_F77=yes | 
 | 13241 |       hardcode_shlibpath_var_F77=no | 
 | 13242 |       ;; | 
 | 13243 |  | 
 | 13244 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 13245 |     freebsd2*) | 
 | 13246 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13247 |       hardcode_direct_F77=yes | 
 | 13248 |       hardcode_minus_L_F77=yes | 
 | 13249 |       hardcode_shlibpath_var_F77=no | 
 | 13250 |       ;; | 
 | 13251 |  | 
 | 13252 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
 | 13253 |     freebsd*) | 
 | 13254 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13255 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13256 |       hardcode_direct_F77=yes | 
 | 13257 |       hardcode_shlibpath_var_F77=no | 
 | 13258 |       ;; | 
 | 13259 |  | 
 | 13260 |     hpux9*) | 
 | 13261 |       if test "$GCC" = yes; then | 
 | 13262 | 	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' | 
 | 13263 |       else | 
 | 13264 | 	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' | 
 | 13265 |       fi | 
 | 13266 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13267 |       hardcode_libdir_separator_F77=: | 
 | 13268 |       hardcode_direct_F77=yes | 
 | 13269 |  | 
 | 13270 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 13271 |       # but as the default location of the library. | 
 | 13272 |       hardcode_minus_L_F77=yes | 
 | 13273 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13274 |       ;; | 
 | 13275 |  | 
 | 13276 |     hpux10* | hpux11*) | 
 | 13277 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 13278 | 	case "$host_cpu" in | 
 | 13279 | 	hppa*64*|ia64*) | 
 | 13280 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13281 | 	  ;; | 
 | 13282 | 	*) | 
 | 13283 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13284 | 	  ;; | 
 | 13285 | 	esac | 
 | 13286 |       else | 
 | 13287 | 	case "$host_cpu" in | 
 | 13288 | 	hppa*64*|ia64*) | 
 | 13289 | 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13290 | 	  ;; | 
 | 13291 | 	*) | 
 | 13292 | 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 13293 | 	  ;; | 
 | 13294 | 	esac | 
 | 13295 |       fi | 
 | 13296 |       if test "$with_gnu_ld" = no; then | 
 | 13297 | 	case "$host_cpu" in | 
 | 13298 | 	hppa*64*) | 
 | 13299 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13300 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 13301 | 	  hardcode_libdir_separator_F77=: | 
 | 13302 | 	  hardcode_direct_F77=no | 
 | 13303 | 	  hardcode_shlibpath_var_F77=no | 
 | 13304 | 	  ;; | 
 | 13305 | 	ia64*) | 
 | 13306 | 	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13307 | 	  hardcode_direct_F77=no | 
 | 13308 | 	  hardcode_shlibpath_var_F77=no | 
 | 13309 |  | 
 | 13310 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13311 | 	  # but as the default location of the library. | 
 | 13312 | 	  hardcode_minus_L_F77=yes | 
 | 13313 | 	  ;; | 
 | 13314 | 	*) | 
 | 13315 | 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 13316 | 	  hardcode_libdir_separator_F77=: | 
 | 13317 | 	  hardcode_direct_F77=yes | 
 | 13318 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13319 |  | 
 | 13320 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 13321 | 	  # but as the default location of the library. | 
 | 13322 | 	  hardcode_minus_L_F77=yes | 
 | 13323 | 	  ;; | 
 | 13324 | 	esac | 
 | 13325 |       fi | 
 | 13326 |       ;; | 
 | 13327 |  | 
 | 13328 |     irix5* | irix6* | nonstopux*) | 
 | 13329 |       if test "$GCC" = yes; then | 
 | 13330 | 	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' | 
 | 13331 |       else | 
 | 13332 | 	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' | 
 | 13333 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 13334 |       fi | 
 | 13335 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13336 |       hardcode_libdir_separator_F77=: | 
 | 13337 |       link_all_deplibs_F77=yes | 
 | 13338 |       ;; | 
 | 13339 |  | 
 | 13340 |     netbsd*) | 
 | 13341 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 13342 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 13343 |       else | 
 | 13344 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 13345 |       fi | 
 | 13346 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13347 |       hardcode_direct_F77=yes | 
 | 13348 |       hardcode_shlibpath_var_F77=no | 
 | 13349 |       ;; | 
 | 13350 |  | 
 | 13351 |     newsos6) | 
 | 13352 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13353 |       hardcode_direct_F77=yes | 
 | 13354 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13355 |       hardcode_libdir_separator_F77=: | 
 | 13356 |       hardcode_shlibpath_var_F77=no | 
 | 13357 |       ;; | 
 | 13358 |  | 
 | 13359 |     openbsd*) | 
 | 13360 |       hardcode_direct_F77=yes | 
 | 13361 |       hardcode_shlibpath_var_F77=no | 
 | 13362 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 13363 | 	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13364 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 13365 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 13366 |       else | 
 | 13367 |        case $host_os in | 
 | 13368 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 13369 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 13370 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13371 | 	   ;; | 
 | 13372 | 	 *) | 
 | 13373 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13374 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 13375 | 	   ;; | 
 | 13376 |        esac | 
 | 13377 |       fi | 
 | 13378 |       ;; | 
 | 13379 |  | 
 | 13380 |     os2*) | 
 | 13381 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13382 |       hardcode_minus_L_F77=yes | 
 | 13383 |       allow_undefined_flag_F77=unsupported | 
 | 13384 |       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' | 
 | 13385 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 13386 |       ;; | 
 | 13387 |  | 
 | 13388 |     osf3*) | 
 | 13389 |       if test "$GCC" = yes; then | 
 | 13390 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 13391 | 	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' | 
 | 13392 |       else | 
 | 13393 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 13394 | 	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' | 
 | 13395 |       fi | 
 | 13396 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13397 |       hardcode_libdir_separator_F77=: | 
 | 13398 |       ;; | 
 | 13399 |  | 
 | 13400 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 13401 |       if test "$GCC" = yes; then | 
 | 13402 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 13403 | 	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' | 
 | 13404 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 13405 |       else | 
 | 13406 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 13407 | 	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' | 
 | 13408 | 	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~ | 
 | 13409 | 	$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' | 
 | 13410 |  | 
 | 13411 | 	# Both c and cxx compiler support -rpath directly | 
 | 13412 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 13413 |       fi | 
 | 13414 |       hardcode_libdir_separator_F77=: | 
 | 13415 |       ;; | 
 | 13416 |  | 
 | 13417 |     sco3.2v5*) | 
 | 13418 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13419 |       hardcode_shlibpath_var_F77=no | 
 | 13420 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
 | 13421 |       runpath_var=LD_RUN_PATH | 
 | 13422 |       hardcode_runpath_var=yes | 
 | 13423 |       ;; | 
 | 13424 |  | 
 | 13425 |     solaris*) | 
 | 13426 |       no_undefined_flag_F77=' -z text' | 
 | 13427 |       if test "$GCC" = yes; then | 
 | 13428 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13429 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13430 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
 | 13431 |       else | 
 | 13432 | 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13433 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13434 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 13435 |       fi | 
 | 13436 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 13437 |       hardcode_shlibpath_var_F77=no | 
 | 13438 |       case $host_os in | 
 | 13439 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 13440 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 13441 | 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 13442 |       esac | 
 | 13443 |       link_all_deplibs_F77=yes | 
 | 13444 |       ;; | 
 | 13445 |  | 
 | 13446 |     sunos4*) | 
 | 13447 |       if test "x$host_vendor" = xsequent; then | 
 | 13448 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 13449 | 	# files that make .init and .fini sections work. | 
 | 13450 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13451 |       else | 
 | 13452 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 13453 |       fi | 
 | 13454 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13455 |       hardcode_direct_F77=yes | 
 | 13456 |       hardcode_minus_L_F77=yes | 
 | 13457 |       hardcode_shlibpath_var_F77=no | 
 | 13458 |       ;; | 
 | 13459 |  | 
 | 13460 |     sysv4) | 
 | 13461 |       case $host_vendor in | 
 | 13462 | 	sni) | 
 | 13463 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13464 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 13465 | 	;; | 
 | 13466 | 	siemens) | 
 | 13467 | 	  ## LD is ld it makes a PLAMLIB | 
 | 13468 | 	  ## CC just makes a GrossModule. | 
 | 13469 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 13470 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 13471 | 	  hardcode_direct_F77=no | 
 | 13472 |         ;; | 
 | 13473 | 	motorola) | 
 | 13474 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13475 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 13476 | 	;; | 
 | 13477 |       esac | 
 | 13478 |       runpath_var='LD_RUN_PATH' | 
 | 13479 |       hardcode_shlibpath_var_F77=no | 
 | 13480 |       ;; | 
 | 13481 |  | 
 | 13482 |     sysv4.3*) | 
 | 13483 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13484 |       hardcode_shlibpath_var_F77=no | 
 | 13485 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 13486 |       ;; | 
 | 13487 |  | 
 | 13488 |     sysv4*MP*) | 
 | 13489 |       if test -d /usr/nec; then | 
 | 13490 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13491 | 	hardcode_shlibpath_var_F77=no | 
 | 13492 | 	runpath_var=LD_RUN_PATH | 
 | 13493 | 	hardcode_runpath_var=yes | 
 | 13494 | 	ld_shlibs_F77=yes | 
 | 13495 |       fi | 
 | 13496 |       ;; | 
 | 13497 |  | 
 | 13498 |     sysv4.2uw2*) | 
 | 13499 |       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 13500 |       hardcode_direct_F77=yes | 
 | 13501 |       hardcode_minus_L_F77=no | 
 | 13502 |       hardcode_shlibpath_var_F77=no | 
 | 13503 |       hardcode_runpath_var=yes | 
 | 13504 |       runpath_var=LD_RUN_PATH | 
 | 13505 |       ;; | 
 | 13506 |  | 
 | 13507 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 13508 |       no_undefined_flag_F77='${wl}-z ${wl}text' | 
 | 13509 |       if test "$GCC" = yes; then | 
 | 13510 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13511 |       else | 
 | 13512 | 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 13513 |       fi | 
 | 13514 |       runpath_var='LD_RUN_PATH' | 
 | 13515 |       hardcode_shlibpath_var_F77=no | 
 | 13516 |       ;; | 
 | 13517 |  | 
 | 13518 |     sysv5*) | 
 | 13519 |       no_undefined_flag_F77=' -z text' | 
 | 13520 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 13521 |       # object files and a static libstdc++, better avoid it by now | 
 | 13522 |       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13523 |       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 13524 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 13525 |       hardcode_libdir_flag_spec_F77= | 
 | 13526 |       hardcode_shlibpath_var_F77=no | 
 | 13527 |       runpath_var='LD_RUN_PATH' | 
 | 13528 |       ;; | 
 | 13529 |  | 
 | 13530 |     uts4*) | 
 | 13531 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 13532 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 13533 |       hardcode_shlibpath_var_F77=no | 
 | 13534 |       ;; | 
 | 13535 |  | 
 | 13536 |     *) | 
 | 13537 |       ld_shlibs_F77=no | 
 | 13538 |       ;; | 
 | 13539 |     esac | 
 | 13540 |   fi | 
 | 13541 |  | 
 | 13542 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 13543 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 
 | 13544 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 13545 |  | 
 | 13546 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 13547 | if test "$GCC" = yes; then | 
 | 13548 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 13549 | fi | 
 | 13550 |  | 
 | 13551 | # | 
 | 13552 | # Do we need to explicitly link libc? | 
 | 13553 | # | 
 | 13554 | case "x$archive_cmds_need_lc_F77" in | 
 | 13555 | x|xyes) | 
 | 13556 |   # Assume -lc should be added | 
 | 13557 |   archive_cmds_need_lc_F77=yes | 
 | 13558 |  | 
 | 13559 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 13560 |     case $archive_cmds_F77 in | 
 | 13561 |     *'~'*) | 
 | 13562 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 13563 |       ;; | 
 | 13564 |     '$CC '*) | 
 | 13565 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 13566 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 13567 |       # to ld, don't add -lc before -lgcc. | 
 | 13568 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 13569 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 13570 |       $rm conftest* | 
 | 13571 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13572 |  | 
 | 13573 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13574 |   (eval $ac_compile) 2>&5 | 
 | 13575 |   ac_status=$? | 
 | 13576 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13577 |   (exit $ac_status); } 2>conftest.err; then | 
 | 13578 |         soname=conftest | 
 | 13579 |         lib=conftest | 
 | 13580 |         libobjs=conftest.$ac_objext | 
 | 13581 |         deplibs= | 
 | 13582 |         wl=$lt_prog_compiler_wl_F77 | 
 | 13583 |         compiler_flags=-v | 
 | 13584 |         linker_flags=-v | 
 | 13585 |         verstring= | 
 | 13586 |         output_objdir=. | 
 | 13587 |         libname=conftest | 
 | 13588 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 13589 |         allow_undefined_flag_F77= | 
 | 13590 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 13591 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 13592 |   ac_status=$? | 
 | 13593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13594 |   (exit $ac_status); } | 
 | 13595 |         then | 
 | 13596 | 	  archive_cmds_need_lc_F77=no | 
 | 13597 |         else | 
 | 13598 | 	  archive_cmds_need_lc_F77=yes | 
 | 13599 |         fi | 
 | 13600 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 13601 |       else | 
 | 13602 |         cat conftest.err 1>&5 | 
 | 13603 |       fi | 
 | 13604 |       $rm conftest* | 
 | 13605 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 13606 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | 
 | 13607 |       ;; | 
 | 13608 |     esac | 
 | 13609 |   fi | 
 | 13610 |   ;; | 
 | 13611 | esac | 
 | 13612 |  | 
 | 13613 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 13614 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 13615 | hardcode_action_F77= | 
 | 13616 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 13617 |    test -n "$runpath_var F77" || \ | 
 | 13618 |    test "X$hardcode_automatic_F77"="Xyes" ; then | 
 | 13619 |  | 
 | 13620 |   # We can hardcode non-existant directories. | 
 | 13621 |   if test "$hardcode_direct_F77" != no && | 
 | 13622 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 13623 |      # have to relink, otherwise we might link with an installed library | 
 | 13624 |      # when we should be linking with a yet-to-be-installed one | 
 | 13625 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 13626 |      test "$hardcode_minus_L_F77" != no; then | 
 | 13627 |     # Linking always hardcodes the temporary library directory. | 
 | 13628 |     hardcode_action_F77=relink | 
 | 13629 |   else | 
 | 13630 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 13631 |     hardcode_action_F77=immediate | 
 | 13632 |   fi | 
 | 13633 | else | 
 | 13634 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 13635 |   # directories. | 
 | 13636 |   hardcode_action_F77=unsupported | 
 | 13637 | fi | 
 | 13638 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 13639 | echo "${ECHO_T}$hardcode_action_F77" >&6 | 
 | 13640 |  | 
 | 13641 | if test "$hardcode_action_F77" = relink; then | 
 | 13642 |   # Fast installation is not supported | 
 | 13643 |   enable_fast_install=no | 
 | 13644 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 13645 |      test "$enable_shared" = no; then | 
 | 13646 |   # Fast installation is not necessary | 
 | 13647 |   enable_fast_install=needless | 
 | 13648 | fi | 
 | 13649 |  | 
 | 13650 | striplib= | 
 | 13651 | old_striplib= | 
 | 13652 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 13653 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 13654 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 13655 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 13656 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 13657 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13658 | echo "${ECHO_T}yes" >&6 | 
 | 13659 | else | 
 | 13660 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 13661 |   case $host_os in | 
 | 13662 |    darwin*) | 
 | 13663 |        if test -n "$STRIP" ; then | 
 | 13664 |          striplib="$STRIP -x" | 
 | 13665 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 13666 | echo "${ECHO_T}yes" >&6 | 
 | 13667 |        else | 
 | 13668 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13669 | echo "${ECHO_T}no" >&6 | 
 | 13670 | fi | 
 | 13671 |        ;; | 
 | 13672 |    *) | 
 | 13673 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 13674 | echo "${ECHO_T}no" >&6 | 
 | 13675 |     ;; | 
 | 13676 |   esac | 
 | 13677 | fi | 
 | 13678 |  | 
 | 13679 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 13680 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 13681 | library_names_spec= | 
 | 13682 | libname_spec='lib$name' | 
 | 13683 | soname_spec= | 
 | 13684 | shrext=".so" | 
 | 13685 | postinstall_cmds= | 
 | 13686 | postuninstall_cmds= | 
 | 13687 | finish_cmds= | 
 | 13688 | finish_eval= | 
 | 13689 | shlibpath_var= | 
 | 13690 | shlibpath_overrides_runpath=unknown | 
 | 13691 | version_type=none | 
 | 13692 | dynamic_linker="$host_os ld.so" | 
 | 13693 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 13694 | if test "$GCC" = yes; then | 
 | 13695 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13696 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 13697 |     # if the path contains ";" then we assume it to be the separator | 
 | 13698 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 13699 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 13700 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 13701 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13702 |   else | 
 | 13703 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13704 |   fi | 
 | 13705 | else | 
 | 13706 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 13707 | fi | 
 | 13708 | need_lib_prefix=unknown | 
 | 13709 | hardcode_into_libs=no | 
 | 13710 |  | 
 | 13711 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 13712 | # flags to be left without arguments | 
 | 13713 | need_version=unknown | 
 | 13714 |  | 
 | 13715 | case $host_os in | 
 | 13716 | aix3*) | 
 | 13717 |   version_type=linux | 
 | 13718 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 13719 |   shlibpath_var=LIBPATH | 
 | 13720 |  | 
 | 13721 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 13722 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13723 |   ;; | 
 | 13724 |  | 
 | 13725 | aix4* | aix5*) | 
 | 13726 |   version_type=linux | 
 | 13727 |   need_lib_prefix=no | 
 | 13728 |   need_version=no | 
 | 13729 |   hardcode_into_libs=yes | 
 | 13730 |   if test "$host_cpu" = ia64; then | 
 | 13731 |     # AIX 5 supports IA64 | 
 | 13732 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 13733 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13734 |   else | 
 | 13735 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 13736 |     # for dependence libraries.  The import file would start with | 
 | 13737 |     # the line `#! .'.  This would cause the generated library to | 
 | 13738 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 13739 |     # development snapshots of GCC prior to 3.0. | 
 | 13740 |     case $host_os in | 
 | 13741 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 13742 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 13743 | 	   echo ' yes ' | 
 | 13744 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 13745 | 	: | 
 | 13746 |       else | 
 | 13747 | 	can_build_shared=no | 
 | 13748 |       fi | 
 | 13749 |       ;; | 
 | 13750 |     esac | 
 | 13751 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 13752 |     # soname into executable. Probably we can add versioning support to | 
 | 13753 |     # collect2, so additional links can be useful in future. | 
 | 13754 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 13755 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 13756 |       # instead of lib<name>.a to let people know that these are not | 
 | 13757 |       # typical AIX shared libraries. | 
 | 13758 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13759 |     else | 
 | 13760 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 13761 |       # and later when we are not doing run time linking. | 
 | 13762 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 13763 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13764 |     fi | 
 | 13765 |     shlibpath_var=LIBPATH | 
 | 13766 |   fi | 
 | 13767 |   ;; | 
 | 13768 |  | 
 | 13769 | amigaos*) | 
 | 13770 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 13771 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 13772 |   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' | 
 | 13773 |   ;; | 
 | 13774 |  | 
 | 13775 | beos*) | 
 | 13776 |   library_names_spec='${libname}${shared_ext}' | 
 | 13777 |   dynamic_linker="$host_os ld.so" | 
 | 13778 |   shlibpath_var=LIBRARY_PATH | 
 | 13779 |   ;; | 
 | 13780 |  | 
 | 13781 | bsdi4*) | 
 | 13782 |   version_type=linux | 
 | 13783 |   need_version=no | 
 | 13784 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13785 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13786 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 13787 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13788 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 13789 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 13790 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 13791 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 13792 |   # libtool to hard-code these into programs | 
 | 13793 |   ;; | 
 | 13794 |  | 
 | 13795 | cygwin* | mingw* | pw32*) | 
 | 13796 |   version_type=windows | 
 | 13797 |   shrext=".dll" | 
 | 13798 |   need_version=no | 
 | 13799 |   need_lib_prefix=no | 
 | 13800 |  | 
 | 13801 |   case $GCC,$host_os in | 
 | 13802 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 13803 |     library_names_spec='$libname.dll.a' | 
 | 13804 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 13805 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 13806 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 13807 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 13808 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 13809 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 13810 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 13811 |       dlpath=$dir/\$dldll~ | 
 | 13812 |        $rm \$dlpath' | 
 | 13813 |     shlibpath_overrides_runpath=yes | 
 | 13814 |  | 
 | 13815 |     case $host_os in | 
 | 13816 |     cygwin*) | 
 | 13817 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 13818 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 13819 |       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
 | 13820 |       ;; | 
 | 13821 |     mingw*) | 
 | 13822 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 13823 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 13824 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 13825 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 13826 |         # It is most probably a Windows format PATH printed by | 
 | 13827 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 13828 |         # path with ; separators, and with drive letters. We can handle the | 
 | 13829 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 13830 |         # especially as we might pass files found there to a mingw objdump, | 
 | 13831 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 13832 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 13833 |       else | 
 | 13834 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 13835 |       fi | 
 | 13836 |       ;; | 
 | 13837 |     pw32*) | 
 | 13838 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 13839 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 13840 |       ;; | 
 | 13841 |     esac | 
 | 13842 |     ;; | 
 | 13843 |  | 
 | 13844 |   *) | 
 | 13845 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 13846 |     ;; | 
 | 13847 |   esac | 
 | 13848 |   dynamic_linker='Win32 ld.exe' | 
 | 13849 |   # FIXME: first we should search . and the directory the executable is in | 
 | 13850 |   shlibpath_var=PATH | 
 | 13851 |   ;; | 
 | 13852 |  | 
 | 13853 | darwin* | rhapsody*) | 
 | 13854 |   dynamic_linker="$host_os dyld" | 
 | 13855 |   version_type=darwin | 
 | 13856 |   need_lib_prefix=no | 
 | 13857 |   need_version=no | 
 | 13858 |   # FIXME: Relying on posixy $() will cause problems for | 
 | 13859 |   #        cross-compilation, but unfortunately the echo tests do not | 
 | 13860 |   #        yet detect zsh echo's removal of \ escapes. | 
 | 13861 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 13862 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 13863 |   shlibpath_overrides_runpath=yes | 
 | 13864 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 13865 |   shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 13866 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 13867 |   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 13868 |   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"` | 
 | 13869 |   fi | 
 | 13870 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 13871 |   ;; | 
 | 13872 |  | 
 | 13873 | dgux*) | 
 | 13874 |   version_type=linux | 
 | 13875 |   need_lib_prefix=no | 
 | 13876 |   need_version=no | 
 | 13877 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 13878 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13879 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13880 |   ;; | 
 | 13881 |  | 
 | 13882 | freebsd1*) | 
 | 13883 |   dynamic_linker=no | 
 | 13884 |   ;; | 
 | 13885 |  | 
 | 13886 | freebsd*) | 
 | 13887 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 13888 |   version_type=freebsd-$objformat | 
 | 13889 |   case $version_type in | 
 | 13890 |     freebsd-elf*) | 
 | 13891 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 13892 |       need_version=no | 
 | 13893 |       need_lib_prefix=no | 
 | 13894 |       ;; | 
 | 13895 |     freebsd-*) | 
 | 13896 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 13897 |       need_version=yes | 
 | 13898 |       ;; | 
 | 13899 |   esac | 
 | 13900 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13901 |   case $host_os in | 
 | 13902 |   freebsd2*) | 
 | 13903 |     shlibpath_overrides_runpath=yes | 
 | 13904 |     ;; | 
 | 13905 |   freebsd3.01* | freebsdelf3.01*) | 
 | 13906 |     shlibpath_overrides_runpath=yes | 
 | 13907 |     hardcode_into_libs=yes | 
 | 13908 |     ;; | 
 | 13909 |   *) # from 3.2 on | 
 | 13910 |     shlibpath_overrides_runpath=no | 
 | 13911 |     hardcode_into_libs=yes | 
 | 13912 |     ;; | 
 | 13913 |   esac | 
 | 13914 |   ;; | 
 | 13915 |  | 
 | 13916 | gnu*) | 
 | 13917 |   version_type=linux | 
 | 13918 |   need_lib_prefix=no | 
 | 13919 |   need_version=no | 
 | 13920 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 13921 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13922 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 13923 |   hardcode_into_libs=yes | 
 | 13924 |   ;; | 
 | 13925 |  | 
 | 13926 | hpux9* | hpux10* | hpux11*) | 
 | 13927 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 13928 |   # link against other versions. | 
 | 13929 |   version_type=sunos | 
 | 13930 |   need_lib_prefix=no | 
 | 13931 |   need_version=no | 
 | 13932 |   case "$host_cpu" in | 
 | 13933 |   ia64*) | 
 | 13934 |     shrext='.so' | 
 | 13935 |     hardcode_into_libs=yes | 
 | 13936 |     dynamic_linker="$host_os dld.so" | 
 | 13937 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 13938 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13939 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13940 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13941 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 13942 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 13943 |     else | 
 | 13944 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 13945 |     fi | 
 | 13946 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13947 |     ;; | 
 | 13948 |    hppa*64*) | 
 | 13949 |      shrext='.sl' | 
 | 13950 |      hardcode_into_libs=yes | 
 | 13951 |      dynamic_linker="$host_os dld.sl" | 
 | 13952 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 13953 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 13954 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13955 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13956 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 13957 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 13958 |      ;; | 
 | 13959 |    *) | 
 | 13960 |     shrext='.sl' | 
 | 13961 |     dynamic_linker="$host_os dld.sl" | 
 | 13962 |     shlibpath_var=SHLIB_PATH | 
 | 13963 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 13964 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 13965 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13966 |     ;; | 
 | 13967 |   esac | 
 | 13968 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 13969 |   postinstall_cmds='chmod 555 $lib' | 
 | 13970 |   ;; | 
 | 13971 |  | 
 | 13972 | irix5* | irix6* | nonstopux*) | 
 | 13973 |   case $host_os in | 
 | 13974 |     nonstopux*) version_type=nonstopux ;; | 
 | 13975 |     *) | 
 | 13976 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 13977 | 		version_type=linux | 
 | 13978 | 	else | 
 | 13979 | 		version_type=irix | 
 | 13980 | 	fi ;; | 
 | 13981 |   esac | 
 | 13982 |   need_lib_prefix=no | 
 | 13983 |   need_version=no | 
 | 13984 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 13985 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 13986 |   case $host_os in | 
 | 13987 |   irix5* | nonstopux*) | 
 | 13988 |     libsuff= shlibsuff= | 
 | 13989 |     ;; | 
 | 13990 |   *) | 
 | 13991 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 13992 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 13993 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 13994 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 13995 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 13996 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 13997 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 13998 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 13999 |     esac | 
 | 14000 |     ;; | 
 | 14001 |   esac | 
 | 14002 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 14003 |   shlibpath_overrides_runpath=no | 
 | 14004 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 14005 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 14006 |   hardcode_into_libs=yes | 
 | 14007 |   ;; | 
 | 14008 |  | 
 | 14009 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 14010 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 14011 |   dynamic_linker=no | 
 | 14012 |   ;; | 
 | 14013 |  | 
 | 14014 | # This must be Linux ELF. | 
 | 14015 | linux*) | 
 | 14016 |   version_type=linux | 
 | 14017 |   need_lib_prefix=no | 
 | 14018 |   need_version=no | 
 | 14019 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14020 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14021 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 14022 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14023 |   shlibpath_overrides_runpath=no | 
 | 14024 |   # This implies no fast_install, which is unacceptable. | 
 | 14025 |   # Some rework will be needed to allow for fast_install | 
 | 14026 |   # before this can be enabled. | 
 | 14027 |   hardcode_into_libs=yes | 
 | 14028 |  | 
 | 14029 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 14030 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 14031 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 14032 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 14033 |   # people can always --disable-shared, the test was removed, and we | 
 | 14034 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 14035 |   dynamic_linker='GNU/Linux ld.so' | 
 | 14036 |   ;; | 
 | 14037 |  | 
 | 14038 | netbsd*) | 
 | 14039 |   version_type=sunos | 
 | 14040 |   need_lib_prefix=no | 
 | 14041 |   need_version=no | 
 | 14042 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 14043 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14044 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14045 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 14046 |   else | 
 | 14047 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
 | 14048 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14049 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 14050 |   fi | 
 | 14051 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14052 |   shlibpath_overrides_runpath=yes | 
 | 14053 |   hardcode_into_libs=yes | 
 | 14054 |   ;; | 
 | 14055 |  | 
 | 14056 | newsos6) | 
 | 14057 |   version_type=linux | 
 | 14058 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14059 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14060 |   shlibpath_overrides_runpath=yes | 
 | 14061 |   ;; | 
 | 14062 |  | 
 | 14063 | nto-qnx) | 
 | 14064 |   version_type=linux | 
 | 14065 |   need_lib_prefix=no | 
 | 14066 |   need_version=no | 
 | 14067 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14068 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14069 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14070 |   shlibpath_overrides_runpath=yes | 
 | 14071 |   ;; | 
 | 14072 |  | 
 | 14073 | openbsd*) | 
 | 14074 |   version_type=sunos | 
 | 14075 |   need_lib_prefix=no | 
 | 14076 |   need_version=no | 
 | 14077 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14078 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 14079 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14080 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 14081 |     case $host_os in | 
 | 14082 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 14083 | 	shlibpath_overrides_runpath=no | 
 | 14084 | 	;; | 
 | 14085 |       *) | 
 | 14086 | 	shlibpath_overrides_runpath=yes | 
 | 14087 | 	;; | 
 | 14088 |       esac | 
 | 14089 |   else | 
 | 14090 |     shlibpath_overrides_runpath=yes | 
 | 14091 |   fi | 
 | 14092 |   ;; | 
 | 14093 |  | 
 | 14094 | os2*) | 
 | 14095 |   libname_spec='$name' | 
 | 14096 |   shrext=".dll" | 
 | 14097 |   need_lib_prefix=no | 
 | 14098 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 14099 |   dynamic_linker='OS/2 ld.exe' | 
 | 14100 |   shlibpath_var=LIBPATH | 
 | 14101 |   ;; | 
 | 14102 |  | 
 | 14103 | osf3* | osf4* | osf5*) | 
 | 14104 |   version_type=osf | 
 | 14105 |   need_lib_prefix=no | 
 | 14106 |   need_version=no | 
 | 14107 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14108 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14109 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14110 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 14111 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 14112 |   ;; | 
 | 14113 |  | 
 | 14114 | sco3.2v5*) | 
 | 14115 |   version_type=osf | 
 | 14116 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14117 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14118 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14119 |   ;; | 
 | 14120 |  | 
 | 14121 | solaris*) | 
 | 14122 |   version_type=linux | 
 | 14123 |   need_lib_prefix=no | 
 | 14124 |   need_version=no | 
 | 14125 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14126 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14127 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14128 |   shlibpath_overrides_runpath=yes | 
 | 14129 |   hardcode_into_libs=yes | 
 | 14130 |   # ldd complains unless libraries are executable | 
 | 14131 |   postinstall_cmds='chmod +x $lib' | 
 | 14132 |   ;; | 
 | 14133 |  | 
 | 14134 | sunos4*) | 
 | 14135 |   version_type=sunos | 
 | 14136 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 14137 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 14138 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14139 |   shlibpath_overrides_runpath=yes | 
 | 14140 |   if test "$with_gnu_ld" = yes; then | 
 | 14141 |     need_lib_prefix=no | 
 | 14142 |   fi | 
 | 14143 |   need_version=yes | 
 | 14144 |   ;; | 
 | 14145 |  | 
 | 14146 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 14147 |   version_type=linux | 
 | 14148 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14149 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14150 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14151 |   case $host_vendor in | 
 | 14152 |     sni) | 
 | 14153 |       shlibpath_overrides_runpath=no | 
 | 14154 |       need_lib_prefix=no | 
 | 14155 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 14156 |       runpath_var=LD_RUN_PATH | 
 | 14157 |       ;; | 
 | 14158 |     siemens) | 
 | 14159 |       need_lib_prefix=no | 
 | 14160 |       ;; | 
 | 14161 |     motorola) | 
 | 14162 |       need_lib_prefix=no | 
 | 14163 |       need_version=no | 
 | 14164 |       shlibpath_overrides_runpath=no | 
 | 14165 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 14166 |       ;; | 
 | 14167 |   esac | 
 | 14168 |   ;; | 
 | 14169 |  | 
 | 14170 | sysv4*MP*) | 
 | 14171 |   if test -d /usr/nec ;then | 
 | 14172 |     version_type=linux | 
 | 14173 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 14174 |     soname_spec='$libname${shared_ext}.$major' | 
 | 14175 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 14176 |   fi | 
 | 14177 |   ;; | 
 | 14178 |  | 
 | 14179 | uts4*) | 
 | 14180 |   version_type=linux | 
 | 14181 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 14182 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 14183 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 14184 |   ;; | 
 | 14185 |  | 
 | 14186 | *) | 
 | 14187 |   dynamic_linker=no | 
 | 14188 |   ;; | 
 | 14189 | esac | 
 | 14190 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 14191 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 14192 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 14193 |  | 
 | 14194 |  | 
 | 14195 | # The else clause should only fire when bootstrapping the | 
 | 14196 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 14197 | # with your package, and you will get complaints that there are | 
 | 14198 | # no rules to generate ltmain.sh. | 
 | 14199 | if test -f "$ltmain"; then | 
 | 14200 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 14201 |   # without removal of \ escapes. | 
 | 14202 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 14203 |     setopt NO_GLOB_SUBST | 
 | 14204 |   fi | 
 | 14205 |   # Now quote all the things that may contain metacharacters while being | 
 | 14206 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 14207 |   # variables and quote the copies for generation of the libtool script. | 
 | 14208 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
 | 14209 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 14210 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 14211 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 14212 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 14213 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 14214 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 14215 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 14216 |     compiler_F77 \ | 
 | 14217 |     CC_F77 \ | 
 | 14218 |     LD_F77 \ | 
 | 14219 |     lt_prog_compiler_wl_F77 \ | 
 | 14220 |     lt_prog_compiler_pic_F77 \ | 
 | 14221 |     lt_prog_compiler_static_F77 \ | 
 | 14222 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 14223 |     export_dynamic_flag_spec_F77 \ | 
 | 14224 |     thread_safe_flag_spec_F77 \ | 
 | 14225 |     whole_archive_flag_spec_F77 \ | 
 | 14226 |     enable_shared_with_static_runtimes_F77 \ | 
 | 14227 |     old_archive_cmds_F77 \ | 
 | 14228 |     old_archive_from_new_cmds_F77 \ | 
 | 14229 |     predep_objects_F77 \ | 
 | 14230 |     postdep_objects_F77 \ | 
 | 14231 |     predeps_F77 \ | 
 | 14232 |     postdeps_F77 \ | 
 | 14233 |     compiler_lib_search_path_F77 \ | 
 | 14234 |     archive_cmds_F77 \ | 
 | 14235 |     archive_expsym_cmds_F77 \ | 
 | 14236 |     postinstall_cmds_F77 \ | 
 | 14237 |     postuninstall_cmds_F77 \ | 
 | 14238 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 14239 |     allow_undefined_flag_F77 \ | 
 | 14240 |     no_undefined_flag_F77 \ | 
 | 14241 |     export_symbols_cmds_F77 \ | 
 | 14242 |     hardcode_libdir_flag_spec_F77 \ | 
 | 14243 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 14244 |     hardcode_libdir_separator_F77 \ | 
 | 14245 |     hardcode_automatic_F77 \ | 
 | 14246 |     module_cmds_F77 \ | 
 | 14247 |     module_expsym_cmds_F77 \ | 
 | 14248 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 14249 |     exclude_expsyms_F77 \ | 
 | 14250 |     include_expsyms_F77; do | 
 | 14251 |  | 
 | 14252 |     case $var in | 
 | 14253 |     old_archive_cmds_F77 | \ | 
 | 14254 |     old_archive_from_new_cmds_F77 | \ | 
 | 14255 |     archive_cmds_F77 | \ | 
 | 14256 |     archive_expsym_cmds_F77 | \ | 
 | 14257 |     module_cmds_F77 | \ | 
 | 14258 |     module_expsym_cmds_F77 | \ | 
 | 14259 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 14260 |     export_symbols_cmds_F77 | \ | 
 | 14261 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 14262 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 14263 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 14264 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 14265 |       # Double-quote double-evaled strings. | 
 | 14266 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
 | 14267 |       ;; | 
 | 14268 |     *) | 
 | 14269 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 14270 |       ;; | 
 | 14271 |     esac | 
 | 14272 |   done | 
 | 14273 |  | 
 | 14274 |   case $lt_echo in | 
 | 14275 |   *'\$0 --fallback-echo"') | 
 | 14276 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 14277 |     ;; | 
 | 14278 |   esac | 
 | 14279 |  | 
 | 14280 | cfgfile="$ofile" | 
 | 14281 |  | 
 | 14282 |   cat <<__EOF__ >> "$cfgfile" | 
 | 14283 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 14284 |  | 
 | 14285 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 14286 |  | 
 | 14287 | # Shell to use when invoking shell scripts. | 
 | 14288 | SHELL=$lt_SHELL | 
 | 14289 |  | 
 | 14290 | # Whether or not to build shared libraries. | 
 | 14291 | build_libtool_libs=$enable_shared | 
 | 14292 |  | 
 | 14293 | # Whether or not to build static libraries. | 
 | 14294 | build_old_libs=$enable_static | 
 | 14295 |  | 
 | 14296 | # Whether or not to add -lc for building shared libraries. | 
 | 14297 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 14298 |  | 
 | 14299 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 14300 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 14301 |  | 
 | 14302 | # Whether or not to optimize for fast installation. | 
 | 14303 | fast_install=$enable_fast_install | 
 | 14304 |  | 
 | 14305 | # The host system. | 
 | 14306 | host_alias=$host_alias | 
 | 14307 | host=$host | 
 | 14308 |  | 
 | 14309 | # An echo program that does not interpret backslashes. | 
 | 14310 | echo=$lt_echo | 
 | 14311 |  | 
 | 14312 | # The archiver. | 
 | 14313 | AR=$lt_AR | 
 | 14314 | AR_FLAGS=$lt_AR_FLAGS | 
 | 14315 |  | 
 | 14316 | # A C compiler. | 
 | 14317 | LTCC=$lt_LTCC | 
 | 14318 |  | 
 | 14319 | # A language-specific compiler. | 
 | 14320 | CC=$lt_compiler_F77 | 
 | 14321 |  | 
 | 14322 | # Is the compiler the GNU C compiler? | 
 | 14323 | with_gcc=$GCC_F77 | 
 | 14324 |  | 
 | 14325 | # An ERE matcher. | 
 | 14326 | EGREP=$lt_EGREP | 
 | 14327 |  | 
 | 14328 | # The linker used to build libraries. | 
 | 14329 | LD=$lt_LD_F77 | 
 | 14330 |  | 
 | 14331 | # Whether we need hard or soft links. | 
 | 14332 | LN_S=$lt_LN_S | 
 | 14333 |  | 
 | 14334 | # A BSD-compatible nm program. | 
 | 14335 | NM=$lt_NM | 
 | 14336 |  | 
 | 14337 | # A symbol stripping program | 
 | 14338 | STRIP=$STRIP | 
 | 14339 |  | 
 | 14340 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 14341 | MAGIC_CMD=$MAGIC_CMD | 
 | 14342 |  | 
 | 14343 | # Used on cygwin: DLL creation program. | 
 | 14344 | DLLTOOL="$DLLTOOL" | 
 | 14345 |  | 
 | 14346 | # Used on cygwin: object dumper. | 
 | 14347 | OBJDUMP="$OBJDUMP" | 
 | 14348 |  | 
 | 14349 | # Used on cygwin: assembler. | 
 | 14350 | AS="$AS" | 
 | 14351 |  | 
 | 14352 | # The name of the directory that contains temporary libtool files. | 
 | 14353 | objdir=$objdir | 
 | 14354 |  | 
 | 14355 | # How to create reloadable object files. | 
 | 14356 | reload_flag=$lt_reload_flag | 
 | 14357 | reload_cmds=$lt_reload_cmds | 
 | 14358 |  | 
 | 14359 | # How to pass a linker flag through the compiler. | 
 | 14360 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 14361 |  | 
 | 14362 | # Object file suffix (normally "o"). | 
 | 14363 | objext="$ac_objext" | 
 | 14364 |  | 
 | 14365 | # Old archive suffix (normally "a"). | 
 | 14366 | libext="$libext" | 
 | 14367 |  | 
 | 14368 | # Shared library suffix (normally ".so"). | 
 | 14369 | shrext='$shrext' | 
 | 14370 |  | 
 | 14371 | # Executable file suffix (normally ""). | 
 | 14372 | exeext="$exeext" | 
 | 14373 |  | 
 | 14374 | # Additional compiler flags for building library objects. | 
 | 14375 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 14376 | pic_mode=$pic_mode | 
 | 14377 |  | 
 | 14378 | # What is the maximum length of a command? | 
 | 14379 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 14380 |  | 
 | 14381 | # Does compiler simultaneously support -c and -o options? | 
 | 14382 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 14383 |  | 
 | 14384 | # Must we lock files when doing compilation ? | 
 | 14385 | need_locks=$lt_need_locks | 
 | 14386 |  | 
 | 14387 | # Do we need the lib prefix for modules? | 
 | 14388 | need_lib_prefix=$need_lib_prefix | 
 | 14389 |  | 
 | 14390 | # Do we need a version for libraries? | 
 | 14391 | need_version=$need_version | 
 | 14392 |  | 
 | 14393 | # Whether dlopen is supported. | 
 | 14394 | dlopen_support=$enable_dlopen | 
 | 14395 |  | 
 | 14396 | # Whether dlopen of programs is supported. | 
 | 14397 | dlopen_self=$enable_dlopen_self | 
 | 14398 |  | 
 | 14399 | # Whether dlopen of statically linked programs is supported. | 
 | 14400 | dlopen_self_static=$enable_dlopen_self_static | 
 | 14401 |  | 
 | 14402 | # Compiler flag to prevent dynamic linking. | 
 | 14403 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 14404 |  | 
 | 14405 | # Compiler flag to turn off builtin functions. | 
 | 14406 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 14407 |  | 
 | 14408 | # Compiler flag to allow reflexive dlopens. | 
 | 14409 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 14410 |  | 
 | 14411 | # Compiler flag to generate shared objects directly from archives. | 
 | 14412 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 14413 |  | 
 | 14414 | # Compiler flag to generate thread-safe objects. | 
 | 14415 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 14416 |  | 
 | 14417 | # Library versioning type. | 
 | 14418 | version_type=$version_type | 
 | 14419 |  | 
 | 14420 | # Format of library name prefix. | 
 | 14421 | libname_spec=$lt_libname_spec | 
 | 14422 |  | 
 | 14423 | # List of archive names.  First name is the real one, the rest are links. | 
 | 14424 | # The last name is the one that the linker finds with -lNAME. | 
 | 14425 | library_names_spec=$lt_library_names_spec | 
 | 14426 |  | 
 | 14427 | # The coded name of the library, if different from the real name. | 
 | 14428 | soname_spec=$lt_soname_spec | 
 | 14429 |  | 
 | 14430 | # Commands used to build and install an old-style archive. | 
 | 14431 | RANLIB=$lt_RANLIB | 
 | 14432 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 14433 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 14434 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 14435 |  | 
 | 14436 | # Create an old-style archive from a shared archive. | 
 | 14437 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 14438 |  | 
 | 14439 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 14440 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 14441 |  | 
 | 14442 | # Commands used to build and install a shared archive. | 
 | 14443 | archive_cmds=$lt_archive_cmds_F77 | 
 | 14444 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 14445 | postinstall_cmds=$lt_postinstall_cmds | 
 | 14446 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 14447 |  | 
 | 14448 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 14449 | module_cmds=$lt_module_cmds_F77 | 
 | 14450 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 14451 |  | 
 | 14452 | # Commands to strip libraries. | 
 | 14453 | old_striplib=$lt_old_striplib | 
 | 14454 | striplib=$lt_striplib | 
 | 14455 |  | 
 | 14456 | # Dependencies to place before the objects being linked to create a | 
 | 14457 | # shared library. | 
 | 14458 | predep_objects=$lt_predep_objects_F77 | 
 | 14459 |  | 
 | 14460 | # Dependencies to place after the objects being linked to create a | 
 | 14461 | # shared library. | 
 | 14462 | postdep_objects=$lt_postdep_objects_F77 | 
 | 14463 |  | 
 | 14464 | # Dependencies to place before the objects being linked to create a | 
 | 14465 | # shared library. | 
 | 14466 | predeps=$lt_predeps_F77 | 
 | 14467 |  | 
 | 14468 | # Dependencies to place after the objects being linked to create a | 
 | 14469 | # shared library. | 
 | 14470 | postdeps=$lt_postdeps_F77 | 
 | 14471 |  | 
 | 14472 | # The library search path used internally by the compiler when linking | 
 | 14473 | # a shared library. | 
 | 14474 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 14475 |  | 
 | 14476 | # Method to check whether dependent libraries are shared objects. | 
 | 14477 | deplibs_check_method=$lt_deplibs_check_method | 
 | 14478 |  | 
 | 14479 | # Command to use when deplibs_check_method == file_magic. | 
 | 14480 | file_magic_cmd=$lt_file_magic_cmd | 
 | 14481 |  | 
 | 14482 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 14483 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 14484 |  | 
 | 14485 | # Flag that forces no undefined symbols. | 
 | 14486 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 14487 |  | 
 | 14488 | # Commands used to finish a libtool library installation in a directory. | 
 | 14489 | finish_cmds=$lt_finish_cmds | 
 | 14490 |  | 
 | 14491 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 14492 | finish_eval=$lt_finish_eval | 
 | 14493 |  | 
 | 14494 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 14495 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 14496 |  | 
 | 14497 | # Transform the output of nm in a proper C declaration | 
 | 14498 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 14499 |  | 
 | 14500 | # Transform the output of nm in a C name address pair | 
 | 14501 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 14502 |  | 
 | 14503 | # This is the shared library runtime path variable. | 
 | 14504 | runpath_var=$runpath_var | 
 | 14505 |  | 
 | 14506 | # This is the shared library path variable. | 
 | 14507 | shlibpath_var=$shlibpath_var | 
 | 14508 |  | 
 | 14509 | # Is shlibpath searched before the hard-coded library search path? | 
 | 14510 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 14511 |  | 
 | 14512 | # How to hardcode a shared library path into an executable. | 
 | 14513 | hardcode_action=$hardcode_action_F77 | 
 | 14514 |  | 
 | 14515 | # Whether we should hardcode library paths into libraries. | 
 | 14516 | hardcode_into_libs=$hardcode_into_libs | 
 | 14517 |  | 
 | 14518 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 14519 | # This must work even if \$libdir does not exist. | 
 | 14520 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 14521 |  | 
 | 14522 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 14523 | # a binary during linking. This must work even if \$libdir does | 
 | 14524 | # not exist. | 
 | 14525 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 14526 |  | 
 | 14527 | # Whether we need a single -rpath flag with a separated argument. | 
 | 14528 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 14529 |  | 
 | 14530 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 14531 | # resulting binary. | 
 | 14532 | hardcode_direct=$hardcode_direct_F77 | 
 | 14533 |  | 
 | 14534 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 14535 | # resulting binary. | 
 | 14536 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 14537 |  | 
 | 14538 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 14539 | # the resulting binary. | 
 | 14540 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 14541 |  | 
 | 14542 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 14543 | # and all subsequent libraries and executables linked against it. | 
 | 14544 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 14545 |  | 
 | 14546 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 14547 | # restored at relink time. | 
 | 14548 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 14549 |  | 
 | 14550 | # Whether libtool must link a program against all its dependency libraries. | 
 | 14551 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 14552 |  | 
 | 14553 | # Compile-time system search path for libraries | 
 | 14554 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 14555 |  | 
 | 14556 | # Run-time system search path for libraries | 
 | 14557 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 14558 |  | 
 | 14559 | # Fix the shell variable \$srcfile for the compiler. | 
 | 14560 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 14561 |  | 
 | 14562 | # Set to yes if exported symbols are required. | 
 | 14563 | always_export_symbols=$always_export_symbols_F77 | 
 | 14564 |  | 
 | 14565 | # The commands to list exported symbols. | 
 | 14566 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 14567 |  | 
 | 14568 | # The commands to extract the exported symbol list from a shared archive. | 
 | 14569 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 14570 |  | 
 | 14571 | # Symbols that should not be listed in the preloaded symbols. | 
 | 14572 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 14573 |  | 
 | 14574 | # Symbols that must always be exported. | 
 | 14575 | include_expsyms=$lt_include_expsyms_F77 | 
 | 14576 |  | 
 | 14577 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 14578 |  | 
 | 14579 | __EOF__ | 
 | 14580 |  | 
 | 14581 |  | 
 | 14582 | else | 
 | 14583 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 14584 |   # `config.status --recheck' to rerun these tests and create the | 
 | 14585 |   # libtool script then. | 
 | 14586 |   test -f Makefile && make "$ltmain" | 
 | 14587 | fi | 
 | 14588 |  | 
 | 14589 |  | 
 | 14590 | ac_ext=c | 
 | 14591 | ac_cpp='$CPP $CPPFLAGS' | 
 | 14592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 14593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 14594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 14595 |  | 
 | 14596 | CC="$lt_save_CC" | 
 | 14597 |  | 
 | 14598 | 	else | 
 | 14599 | 	  tagname="" | 
 | 14600 | 	fi | 
 | 14601 | 	;; | 
 | 14602 |  | 
 | 14603 |       GCJ) | 
 | 14604 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
 | 14605 |  | 
 | 14606 |  | 
 | 14607 |  | 
 | 14608 | # Source file extension for Java test sources. | 
 | 14609 | ac_ext=java | 
 | 14610 |  | 
 | 14611 | # Object file extension for compiled Java test sources. | 
 | 14612 | objext=o | 
 | 14613 | objext_GCJ=$objext | 
 | 14614 |  | 
 | 14615 | # Code to be used in simple compile tests | 
 | 14616 | lt_simple_compile_test_code="class foo {}\n" | 
 | 14617 |  | 
 | 14618 | # Code to be used in simple link tests | 
 | 14619 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | 
 | 14620 |  | 
 | 14621 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 14622 |  | 
 | 14623 | # If no C compiler was specified, use CC. | 
 | 14624 | LTCC=${LTCC-"$CC"} | 
 | 14625 |  | 
 | 14626 | # Allow CC to be a program name with arguments. | 
 | 14627 | compiler=$CC | 
 | 14628 |  | 
 | 14629 |  | 
 | 14630 | # Allow CC to be a program name with arguments. | 
 | 14631 | lt_save_CC="$CC" | 
 | 14632 | CC=${GCJ-"gcj"} | 
 | 14633 | compiler=$CC | 
 | 14634 | compiler_GCJ=$CC | 
 | 14635 |  | 
 | 14636 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 14637 | archive_cmds_need_lc_GCJ=no | 
 | 14638 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14639 |  | 
 | 14640 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 14641 |  | 
 | 14642 | if test "$GCC" = yes; then | 
 | 14643 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 14644 |  | 
 | 14645 |   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
 | 14646 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | 
 | 14647 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 14648 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14649 | else | 
 | 14650 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 14651 |   ac_outfile=conftest.$ac_objext | 
 | 14652 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14653 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 14654 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 14655 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 14656 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 14657 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 14658 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 14659 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 14660 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 14661 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 14662 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14663 |    (eval echo "\"\$as_me:14663: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14664 |    (eval "$lt_compile" 2>conftest.err) | 
 | 14665 |    ac_status=$? | 
 | 14666 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14667 |    echo "$as_me:14667: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14668 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 14669 |      # The compiler can only warn and ignore the option if not recognized | 
 | 14670 |      # So say no if there are warnings | 
 | 14671 |      if test ! -s conftest.err; then | 
 | 14672 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 14673 |      fi | 
 | 14674 |    fi | 
 | 14675 |    $rm conftest* | 
 | 14676 |  | 
 | 14677 | fi | 
 | 14678 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 14679 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | 
 | 14680 |  | 
 | 14681 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 14682 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 14683 | else | 
 | 14684 |     : | 
 | 14685 | fi | 
 | 14686 |  | 
 | 14687 | fi | 
 | 14688 |  | 
 | 14689 | lt_prog_compiler_wl_GCJ= | 
 | 14690 | lt_prog_compiler_pic_GCJ= | 
 | 14691 | lt_prog_compiler_static_GCJ= | 
 | 14692 |  | 
 | 14693 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 14694 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | 
 | 14695 |  | 
 | 14696 |   if test "$GCC" = yes; then | 
 | 14697 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14698 |     lt_prog_compiler_static_GCJ='-static' | 
 | 14699 |  | 
 | 14700 |     case $host_os in | 
 | 14701 |       aix*) | 
 | 14702 |       # All AIX code is PIC. | 
 | 14703 |       if test "$host_cpu" = ia64; then | 
 | 14704 | 	# AIX 5 now supports IA64 processor | 
 | 14705 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14706 |       fi | 
 | 14707 |       ;; | 
 | 14708 |  | 
 | 14709 |     amigaos*) | 
 | 14710 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 14711 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 14712 |       # like `-m68040'. | 
 | 14713 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 14714 |       ;; | 
 | 14715 |  | 
 | 14716 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 14717 |       # PIC is the default for these OSes. | 
 | 14718 |       ;; | 
 | 14719 |  | 
 | 14720 |     mingw* | pw32* | os2*) | 
 | 14721 |       # This hack is so that the source file can tell whether it is being | 
 | 14722 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 14723 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 14724 |       ;; | 
 | 14725 |  | 
 | 14726 |     darwin* | rhapsody*) | 
 | 14727 |       # PIC is the default on this platform | 
 | 14728 |       # Common symbols not allowed in MH_DYLIB files | 
 | 14729 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 14730 |       ;; | 
 | 14731 |  | 
 | 14732 |     msdosdjgpp*) | 
 | 14733 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 14734 |       # on systems that don't support them. | 
 | 14735 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 14736 |       enable_shared=no | 
 | 14737 |       ;; | 
 | 14738 |  | 
 | 14739 |     sysv4*MP*) | 
 | 14740 |       if test -d /usr/nec; then | 
 | 14741 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 14742 |       fi | 
 | 14743 |       ;; | 
 | 14744 |  | 
 | 14745 |     hpux*) | 
 | 14746 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 14747 |       # not for PA HP-UX. | 
 | 14748 |       case "$host_cpu" in | 
 | 14749 |       hppa*64*|ia64*) | 
 | 14750 | 	# +Z the default | 
 | 14751 | 	;; | 
 | 14752 |       *) | 
 | 14753 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 14754 | 	;; | 
 | 14755 |       esac | 
 | 14756 |       ;; | 
 | 14757 |  | 
 | 14758 |     *) | 
 | 14759 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 14760 |       ;; | 
 | 14761 |     esac | 
 | 14762 |   else | 
 | 14763 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 14764 |     case $host_os in | 
 | 14765 |     aix*) | 
 | 14766 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14767 |       if test "$host_cpu" = ia64; then | 
 | 14768 | 	# AIX 5 now supports IA64 processor | 
 | 14769 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14770 |       else | 
 | 14771 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 14772 |       fi | 
 | 14773 |       ;; | 
 | 14774 |  | 
 | 14775 |     mingw* | pw32* | os2*) | 
 | 14776 |       # This hack is so that the source file can tell whether it is being | 
 | 14777 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 14778 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 14779 |       ;; | 
 | 14780 |  | 
 | 14781 |     hpux9* | hpux10* | hpux11*) | 
 | 14782 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14783 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 14784 |       # not for PA HP-UX. | 
 | 14785 |       case "$host_cpu" in | 
 | 14786 |       hppa*64*|ia64*) | 
 | 14787 | 	# +Z the default | 
 | 14788 | 	;; | 
 | 14789 |       *) | 
 | 14790 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 14791 | 	;; | 
 | 14792 |       esac | 
 | 14793 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 14794 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 14795 |       ;; | 
 | 14796 |  | 
 | 14797 |     irix5* | irix6* | nonstopux*) | 
 | 14798 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14799 |       # PIC (with -KPIC) is the default. | 
 | 14800 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 14801 |       ;; | 
 | 14802 |  | 
 | 14803 |     newsos6) | 
 | 14804 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 14805 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14806 |       ;; | 
 | 14807 |  | 
 | 14808 |     linux*) | 
 | 14809 |       case $CC in | 
 | 14810 |       icc|ecc) | 
 | 14811 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14812 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 14813 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 14814 |         ;; | 
 | 14815 |       ccc) | 
 | 14816 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14817 |         # All Alpha code is PIC. | 
 | 14818 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 14819 |         ;; | 
 | 14820 |       esac | 
 | 14821 |       ;; | 
 | 14822 |  | 
 | 14823 |     osf3* | osf4* | osf5*) | 
 | 14824 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14825 |       # All OSF/1 code is PIC. | 
 | 14826 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 14827 |       ;; | 
 | 14828 |  | 
 | 14829 |     sco3.2v5*) | 
 | 14830 |       lt_prog_compiler_pic_GCJ='-Kpic' | 
 | 14831 |       lt_prog_compiler_static_GCJ='-dn' | 
 | 14832 |       ;; | 
 | 14833 |  | 
 | 14834 |     solaris*) | 
 | 14835 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14836 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 14837 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14838 |       ;; | 
 | 14839 |  | 
 | 14840 |     sunos4*) | 
 | 14841 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 14842 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 14843 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14844 |       ;; | 
 | 14845 |  | 
 | 14846 |     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 14847 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 14848 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 14849 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14850 |       ;; | 
 | 14851 |  | 
 | 14852 |     sysv4*MP*) | 
 | 14853 |       if test -d /usr/nec ;then | 
 | 14854 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 14855 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14856 |       fi | 
 | 14857 |       ;; | 
 | 14858 |  | 
 | 14859 |     uts4*) | 
 | 14860 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 14861 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 14862 |       ;; | 
 | 14863 |  | 
 | 14864 |     *) | 
 | 14865 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 14866 |       ;; | 
 | 14867 |     esac | 
 | 14868 |   fi | 
 | 14869 |  | 
 | 14870 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 14871 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | 
 | 14872 |  | 
 | 14873 | # | 
 | 14874 | # Check to make sure the PIC flag actually works. | 
 | 14875 | # | 
 | 14876 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
 | 14877 |   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | 
 | 14878 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | 
 | 14879 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 14880 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14881 | else | 
 | 14882 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 14883 |   ac_outfile=conftest.$ac_objext | 
 | 14884 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14885 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 14886 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 14887 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 14888 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 14889 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 14890 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 14891 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 14892 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 14893 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 14894 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14895 |    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14896 |    (eval "$lt_compile" 2>conftest.err) | 
 | 14897 |    ac_status=$? | 
 | 14898 |    cat conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14899 |    echo "$as_me:14899: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14900 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 14901 |      # The compiler can only warn and ignore the option if not recognized | 
 | 14902 |      # So say no if there are warnings | 
 | 14903 |      if test ! -s conftest.err; then | 
 | 14904 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 14905 |      fi | 
 | 14906 |    fi | 
 | 14907 |    $rm conftest* | 
 | 14908 |  | 
 | 14909 | fi | 
 | 14910 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 14911 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | 
 | 14912 |  | 
 | 14913 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 14914 |     case $lt_prog_compiler_pic_GCJ in | 
 | 14915 |      "" | " "*) ;; | 
 | 14916 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 14917 |      esac | 
 | 14918 | else | 
 | 14919 |     lt_prog_compiler_pic_GCJ= | 
 | 14920 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 14921 | fi | 
 | 14922 |  | 
 | 14923 | fi | 
 | 14924 | case "$host_os" in | 
 | 14925 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 14926 |   *djgpp*) | 
 | 14927 |     lt_prog_compiler_pic_GCJ= | 
 | 14928 |     ;; | 
 | 14929 |   *) | 
 | 14930 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 14931 |     ;; | 
 | 14932 | esac | 
 | 14933 |  | 
 | 14934 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 14935 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 
 | 14936 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 14937 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14938 | else | 
 | 14939 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 14940 |    $rm -r conftest 2>/dev/null | 
 | 14941 |    mkdir conftest | 
 | 14942 |    cd conftest | 
 | 14943 |    mkdir out | 
 | 14944 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14945 |  | 
 | 14946 |    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | 
 | 14947 |    # that will create temporary files in the current directory regardless of | 
 | 14948 |    # the output directory.  Thus, making CWD read-only will cause this test | 
 | 14949 |    # to fail, enabling locking or at least warning the user not to do parallel | 
 | 14950 |    # builds. | 
 | 14951 |    chmod -w . | 
 | 14952 |  | 
 | 14953 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 14954 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 14955 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 14956 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 14957 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 14958 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 14959 |    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 
 | 14960 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 14961 |    -e 's:$: $lt_compiler_flag:'` | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14962 |    (eval echo "\"\$as_me:14962: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14963 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 14964 |    ac_status=$? | 
 | 14965 |    cat out/conftest.err >&5 | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 14966 |    echo "$as_me:14966: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14967 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 14968 |    then | 
 | 14969 |      # The compiler can only warn and ignore the option if not recognized | 
 | 14970 |      # So say no if there are warnings | 
 | 14971 |      if test ! -s out/conftest.err; then | 
 | 14972 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 14973 |      fi | 
 | 14974 |    fi | 
 | 14975 |    chmod u+w . | 
 | 14976 |    $rm conftest* out/* | 
 | 14977 |    rmdir out | 
 | 14978 |    cd .. | 
 | 14979 |    rmdir conftest | 
 | 14980 |    $rm conftest* | 
 | 14981 |  | 
 | 14982 | fi | 
 | 14983 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 14984 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | 
 | 14985 |  | 
 | 14986 |  | 
 | 14987 | hard_links="nottested" | 
 | 14988 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 14989 |   # do not overwrite the value of need_locks provided by the user | 
 | 14990 |   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 14991 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | 
 | 14992 |   hard_links=yes | 
 | 14993 |   $rm conftest* | 
 | 14994 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 14995 |   touch conftest.a | 
 | 14996 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 14997 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 14998 |   echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 14999 | echo "${ECHO_T}$hard_links" >&6 | 
 | 15000 |   if test "$hard_links" = no; then | 
 | 15001 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 15002 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 15003 |     need_locks=warn | 
 | 15004 |   fi | 
 | 15005 | else | 
 | 15006 |   need_locks=no | 
 | 15007 | fi | 
 | 15008 |  | 
 | 15009 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15010 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | 
 | 15011 |  | 
 | 15012 |   runpath_var= | 
 | 15013 |   allow_undefined_flag_GCJ= | 
 | 15014 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 15015 |   archive_cmds_GCJ= | 
 | 15016 |   archive_expsym_cmds_GCJ= | 
 | 15017 |   old_archive_From_new_cmds_GCJ= | 
 | 15018 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 15019 |   export_dynamic_flag_spec_GCJ= | 
 | 15020 |   whole_archive_flag_spec_GCJ= | 
 | 15021 |   thread_safe_flag_spec_GCJ= | 
 | 15022 |   hardcode_libdir_flag_spec_GCJ= | 
 | 15023 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 15024 |   hardcode_libdir_separator_GCJ= | 
 | 15025 |   hardcode_direct_GCJ=no | 
 | 15026 |   hardcode_minus_L_GCJ=no | 
 | 15027 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 15028 |   link_all_deplibs_GCJ=unknown | 
 | 15029 |   hardcode_automatic_GCJ=no | 
 | 15030 |   module_cmds_GCJ= | 
 | 15031 |   module_expsym_cmds_GCJ= | 
 | 15032 |   always_export_symbols_GCJ=no | 
 | 15033 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15034 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 15035 |   # included in the symbol list | 
 | 15036 |   include_expsyms_GCJ= | 
 | 15037 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 15038 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 15039 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 15040 |   # as well as any symbol that contains `d'. | 
 | 15041 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 15042 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 15043 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 15044 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 15045 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 15046 |   # preloaded symbol tables. | 
 | 15047 |   extract_expsyms_cmds= | 
 | 15048 |  | 
 | 15049 |   case $host_os in | 
 | 15050 |   cygwin* | mingw* | pw32*) | 
 | 15051 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 15052 |     # When not using gcc, we currently assume that we are using | 
 | 15053 |     # Microsoft Visual C++. | 
 | 15054 |     if test "$GCC" != yes; then | 
 | 15055 |       with_gnu_ld=no | 
 | 15056 |     fi | 
 | 15057 |     ;; | 
 | 15058 |   openbsd*) | 
 | 15059 |     with_gnu_ld=no | 
 | 15060 |     ;; | 
 | 15061 |   esac | 
 | 15062 |  | 
 | 15063 |   ld_shlibs_GCJ=yes | 
 | 15064 |   if test "$with_gnu_ld" = yes; then | 
 | 15065 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15066 |     wlarc='${wl}' | 
 | 15067 |  | 
 | 15068 |     # See if GNU ld supports shared libraries. | 
 | 15069 |     case $host_os in | 
 | 15070 |     aix3* | aix4* | aix5*) | 
 | 15071 |       # On AIX/PPC, the GNU linker is very broken | 
 | 15072 |       if test "$host_cpu" != ia64; then | 
 | 15073 | 	ld_shlibs_GCJ=no | 
 | 15074 | 	cat <<EOF 1>&2 | 
 | 15075 |  | 
 | 15076 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 15077 | *** to be unable to reliably create shared libraries on AIX. | 
 | 15078 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 15079 | *** really care for shared libraries, you may want to modify your PATH | 
 | 15080 | *** so that a non-GNU linker is found, and then restart. | 
 | 15081 |  | 
 | 15082 | EOF | 
 | 15083 |       fi | 
 | 15084 |       ;; | 
 | 15085 |  | 
 | 15086 |     amigaos*) | 
 | 15087 |       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)' | 
 | 15088 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15089 |       hardcode_minus_L_GCJ=yes | 
 | 15090 |  | 
 | 15091 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 15092 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 15093 |       # to version 4, is to share data among multiple programs linked | 
 | 15094 |       # with the same dynamic library.  Since this doesn't match the | 
 | 15095 |       # behavior of shared libraries on other platforms, we can't use | 
 | 15096 |       # them. | 
 | 15097 |       ld_shlibs_GCJ=no | 
 | 15098 |       ;; | 
 | 15099 |  | 
 | 15100 |     beos*) | 
 | 15101 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15102 | 	allow_undefined_flag_GCJ=unsupported | 
 | 15103 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 15104 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 15105 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15106 |       else | 
 | 15107 | 	ld_shlibs_GCJ=no | 
 | 15108 |       fi | 
 | 15109 |       ;; | 
 | 15110 |  | 
 | 15111 |     cygwin* | mingw* | pw32*) | 
 | 15112 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 15113 |       # as there is no search path for DLLs. | 
 | 15114 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15115 |       allow_undefined_flag_GCJ=unsupported | 
 | 15116 |       always_export_symbols_GCJ=no | 
 | 15117 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 15118 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15119 |  | 
 | 15120 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
 | 15121 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 
 | 15122 | 	# If the export-symbols file already is a .def file (1st line | 
 | 15123 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 15124 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15125 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 15126 | 	else | 
 | 15127 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 15128 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
 | 15129 | 	fi~ | 
 | 15130 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib' | 
 | 15131 |       else | 
 | 15132 | 	ld_shlibs=no | 
 | 15133 |       fi | 
 | 15134 |       ;; | 
 | 15135 |  | 
 | 15136 |     netbsd*) | 
 | 15137 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15138 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 15139 | 	wlarc= | 
 | 15140 |       else | 
 | 15141 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15142 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15143 |       fi | 
 | 15144 |       ;; | 
 | 15145 |  | 
 | 15146 |     solaris* | sysv5*) | 
 | 15147 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 15148 | 	ld_shlibs_GCJ=no | 
 | 15149 | 	cat <<EOF 1>&2 | 
 | 15150 |  | 
 | 15151 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 15152 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 15153 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 15154 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 15155 | *** your PATH or compiler configuration so that the native linker is | 
 | 15156 | *** used, and then restart. | 
 | 15157 |  | 
 | 15158 | EOF | 
 | 15159 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15160 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15161 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15162 |       else | 
 | 15163 | 	ld_shlibs_GCJ=no | 
 | 15164 |       fi | 
 | 15165 |       ;; | 
 | 15166 |  | 
 | 15167 |     sunos4*) | 
 | 15168 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15169 |       wlarc= | 
 | 15170 |       hardcode_direct_GCJ=yes | 
 | 15171 |       hardcode_shlibpath_var_GCJ=no | 
 | 15172 |       ;; | 
 | 15173 |  | 
 | 15174 |     *) | 
 | 15175 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15176 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15177 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15178 |       else | 
 | 15179 | 	ld_shlibs_GCJ=no | 
 | 15180 |       fi | 
 | 15181 |       ;; | 
 | 15182 |     esac | 
 | 15183 |  | 
 | 15184 |     if test "$ld_shlibs_GCJ" = yes; then | 
 | 15185 |       runpath_var=LD_RUN_PATH | 
 | 15186 |       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 15187 |       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 15188 |       # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15189 |       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 15190 |  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15191 |       else | 
 | 15192 |   	whole_archive_flag_spec_GCJ= | 
 | 15193 |       fi | 
 | 15194 |     fi | 
 | 15195 |   else | 
 | 15196 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 15197 |     case $host_os in | 
 | 15198 |     aix3*) | 
 | 15199 |       allow_undefined_flag_GCJ=unsupported | 
 | 15200 |       always_export_symbols_GCJ=yes | 
 | 15201 |       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' | 
 | 15202 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 15203 |       # are no directories specified by -L. | 
 | 15204 |       hardcode_minus_L_GCJ=yes | 
 | 15205 |       if test "$GCC" = yes && test -z "$link_static_flag"; then | 
 | 15206 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 15207 | 	# broken collect2. | 
 | 15208 | 	hardcode_direct_GCJ=unsupported | 
 | 15209 |       fi | 
 | 15210 |       ;; | 
 | 15211 |  | 
 | 15212 |     aix4* | aix5*) | 
 | 15213 |       if test "$host_cpu" = ia64; then | 
 | 15214 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 15215 | 	# have to do anything special. | 
 | 15216 | 	aix_use_runtimelinking=no | 
 | 15217 | 	exp_sym_flag='-Bexport' | 
 | 15218 | 	no_entry_flag="" | 
 | 15219 |       else | 
 | 15220 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 15221 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 15222 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 15223 | 	  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' | 
 | 15224 | 	else | 
 | 15225 | 	  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' | 
 | 15226 | 	fi | 
 | 15227 | 	aix_use_runtimelinking=no | 
 | 15228 |  | 
 | 15229 | 	# Test if we are trying to use run time linking or normal | 
 | 15230 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15231 | 	# need to do runtime linking. | 
 | 15232 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15233 | 	  for ld_flag in $LDFLAGS; do | 
 | 15234 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 15235 |   	    aix_use_runtimelinking=yes | 
 | 15236 |   	    break | 
 | 15237 |   	  fi | 
 | 15238 | 	  done | 
 | 15239 | 	esac | 
 | 15240 |  | 
 | 15241 | 	exp_sym_flag='-bexport' | 
 | 15242 | 	no_entry_flag='-bnoentry' | 
 | 15243 |       fi | 
 | 15244 |  | 
 | 15245 |       # When large executables or shared objects are built, AIX ld can | 
 | 15246 |       # have problems creating the table of contents.  If linking a library | 
 | 15247 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15248 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15249 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15250 |  | 
 | 15251 |       archive_cmds_GCJ='' | 
 | 15252 |       hardcode_direct_GCJ=yes | 
 | 15253 |       hardcode_libdir_separator_GCJ=':' | 
 | 15254 |       link_all_deplibs_GCJ=yes | 
 | 15255 |  | 
 | 15256 |       if test "$GCC" = yes; then | 
 | 15257 | 	case $host_os in aix4.012|aix4.012.*) | 
 | 15258 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 15259 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 15260 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 15261 | 	  if test -f "$collect2name" && \ | 
 | 15262 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15263 | 	  then | 
 | 15264 |   	  # We have reworked collect2 | 
 | 15265 |   	  hardcode_direct_GCJ=yes | 
 | 15266 | 	  else | 
 | 15267 |   	  # We have old collect2 | 
 | 15268 |   	  hardcode_direct_GCJ=unsupported | 
 | 15269 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15270 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15271 |   	  # to unsupported forces relinking | 
 | 15272 |   	  hardcode_minus_L_GCJ=yes | 
 | 15273 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15274 |   	  hardcode_libdir_separator_GCJ= | 
 | 15275 | 	  fi | 
 | 15276 | 	esac | 
 | 15277 | 	shared_flag='-shared' | 
 | 15278 |       else | 
 | 15279 | 	# not using gcc | 
 | 15280 | 	if test "$host_cpu" = ia64; then | 
 | 15281 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 15282 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 15283 | 	  shared_flag='-G' | 
 | 15284 | 	else | 
 | 15285 |   	if test "$aix_use_runtimelinking" = yes; then | 
 | 15286 | 	    shared_flag='${wl}-G' | 
 | 15287 | 	  else | 
 | 15288 | 	    shared_flag='${wl}-bM:SRE' | 
 | 15289 |   	fi | 
 | 15290 | 	fi | 
 | 15291 |       fi | 
 | 15292 |  | 
 | 15293 |       # It seems that -bexpall does not export symbols beginning with | 
 | 15294 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 15295 |       always_export_symbols_GCJ=yes | 
 | 15296 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 15297 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 15298 | 	# -berok will link without error, but may produce a broken library. | 
 | 15299 | 	allow_undefined_flag_GCJ='-berok' | 
 | 15300 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 15301 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 15302 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15303 | /* confdefs.h.  */ | 
 | 15304 | _ACEOF | 
 | 15305 | cat confdefs.h >>conftest.$ac_ext | 
 | 15306 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15307 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15308 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15309 | int | 
 | 15310 | main () | 
 | 15311 | { | 
 | 15312 |  | 
 | 15313 |   ; | 
 | 15314 |   return 0; | 
 | 15315 | } | 
 | 15316 | _ACEOF | 
 | 15317 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 15319 |   (eval $ac_link) 2>&5 | 
 | 15320 |   ac_status=$? | 
 | 15321 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15322 |   (exit $ac_status); } && | 
 | 15323 |          { ac_try='test -s conftest$ac_exeext' | 
 | 15324 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15325 |   (eval $ac_try) 2>&5 | 
 | 15326 |   ac_status=$? | 
 | 15327 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15328 |   (exit $ac_status); }; }; then | 
 | 15329 |  | 
 | 15330 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15331 | }'` | 
 | 15332 | # Check for a 64-bit object if we didn't find anything. | 
 | 15333 | 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; } | 
 | 15334 | }'`; fi | 
 | 15335 | else | 
 | 15336 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15337 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15338 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15339 | fi | 
 | 15340 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 15341 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15342 |  | 
 | 15343 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15344 | 	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" | 
 | 15345 |        else | 
 | 15346 | 	if test "$host_cpu" = ia64; then | 
 | 15347 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 15348 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
 | 15349 | 	  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" | 
 | 15350 | 	else | 
 | 15351 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 15352 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 15353 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15354 | /* confdefs.h.  */ | 
 | 15355 | _ACEOF | 
 | 15356 | cat confdefs.h >>conftest.$ac_ext | 
 | 15357 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15358 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15359 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15360 | int | 
 | 15361 | main () | 
 | 15362 | { | 
 | 15363 |  | 
 | 15364 |   ; | 
 | 15365 |   return 0; | 
 | 15366 | } | 
 | 15367 | _ACEOF | 
 | 15368 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 15369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 15370 |   (eval $ac_link) 2>&5 | 
 | 15371 |   ac_status=$? | 
 | 15372 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15373 |   (exit $ac_status); } && | 
 | 15374 |          { ac_try='test -s conftest$ac_exeext' | 
 | 15375 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 15376 |   (eval $ac_try) 2>&5 | 
 | 15377 |   ac_status=$? | 
 | 15378 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15379 |   (exit $ac_status); }; }; then | 
 | 15380 |  | 
 | 15381 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15382 | }'` | 
 | 15383 | # Check for a 64-bit object if we didn't find anything. | 
 | 15384 | 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; } | 
 | 15385 | }'`; fi | 
 | 15386 | else | 
 | 15387 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15388 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15389 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15390 | fi | 
 | 15391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 15392 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 15393 |  | 
 | 15394 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15395 | 	  # Warning - without using the other run time loading flags, | 
 | 15396 | 	  # -berok will link without error, but may produce a broken library. | 
 | 15397 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 15398 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
 | 15399 | 	  # -bexpall does not export symbols beginning with underscore (_) | 
 | 15400 | 	  always_export_symbols_GCJ=yes | 
 | 15401 | 	  # Exported symbols can be pulled into shared objects from archives | 
 | 15402 | 	  whole_archive_flag_spec_GCJ=' ' | 
 | 15403 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 15404 | 	  # This is similar to how AIX traditionally builds it's shared libraries. | 
 | 15405 | 	  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' | 
 | 15406 | 	fi | 
 | 15407 |       fi | 
 | 15408 |       ;; | 
 | 15409 |  | 
 | 15410 |     amigaos*) | 
 | 15411 |       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)' | 
 | 15412 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15413 |       hardcode_minus_L_GCJ=yes | 
 | 15414 |       # see comment about different semantics on the GNU ld section | 
 | 15415 |       ld_shlibs_GCJ=no | 
 | 15416 |       ;; | 
 | 15417 |  | 
 | 15418 |     bsdi4*) | 
 | 15419 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 15420 |       ;; | 
 | 15421 |  | 
 | 15422 |     cygwin* | mingw* | pw32*) | 
 | 15423 |       # When not using gcc, we currently assume that we are using | 
 | 15424 |       # Microsoft Visual C++. | 
 | 15425 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 15426 |       # no search path for DLLs. | 
 | 15427 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 15428 |       allow_undefined_flag_GCJ=unsupported | 
 | 15429 |       # Tell ltmain to make .lib files, not .a files. | 
 | 15430 |       libext=lib | 
 | 15431 |       # Tell ltmain to make .dll files, not .so files. | 
 | 15432 |       shrext=".dll" | 
 | 15433 |       # FIXME: Setting linknames here is a bad hack. | 
 | 15434 |       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
 | 15435 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 15436 |       old_archive_From_new_cmds_GCJ='true' | 
 | 15437 |       # FIXME: Should let the user specify the lib program. | 
 | 15438 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 15439 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 15440 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 15441 |       ;; | 
 | 15442 |  | 
 | 15443 |     darwin* | rhapsody*) | 
 | 15444 |     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 15445 |       archive_cmds_need_lc_GCJ=no | 
 | 15446 |       case "$host_os" in | 
 | 15447 |       rhapsody* | darwin1.[012]) | 
 | 15448 | 	allow_undefined_flag_GCJ='-undefined suppress' | 
 | 15449 | 	;; | 
 | 15450 |       *) # Darwin 1.3 on | 
 | 15451 | 	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | 
 | 15452 | 	;; | 
 | 15453 |       esac | 
 | 15454 |       # FIXME: Relying on posixy $() will cause problems for | 
 | 15455 |       #        cross-compilation, but unfortunately the echo tests do not | 
 | 15456 |       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles | 
 | 15457 |       #	       `"' quotes if we put them in here... so don't! | 
 | 15458 |     	lt_int_apple_cc_single_mod=no | 
 | 15459 |     	output_verbose_link_cmd='echo' | 
 | 15460 |     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 
 | 15461 |     	  lt_int_apple_cc_single_mod=yes | 
 | 15462 |     	fi | 
 | 15463 |     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 15464 |     	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 15465 |     	else | 
 | 15466 |         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' | 
 | 15467 |       fi | 
 | 15468 |       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | 
 | 15469 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | 
 | 15470 |         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
 | 15471 |           archive_expsym_cmds_GCJ='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}' | 
 | 15472 |         else | 
 | 15473 |           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | 
 | 15474 |         fi | 
 | 15475 |           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 15476 |       hardcode_direct_GCJ=no | 
 | 15477 |       hardcode_automatic_GCJ=yes | 
 | 15478 |       hardcode_shlibpath_var_GCJ=unsupported | 
 | 15479 |       whole_archive_flag_spec_GCJ='-all_load $convenience' | 
 | 15480 |       link_all_deplibs_GCJ=yes | 
 | 15481 |     fi | 
 | 15482 |       ;; | 
 | 15483 |  | 
 | 15484 |     dgux*) | 
 | 15485 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15486 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15487 |       hardcode_shlibpath_var_GCJ=no | 
 | 15488 |       ;; | 
 | 15489 |  | 
 | 15490 |     freebsd1*) | 
 | 15491 |       ld_shlibs_GCJ=no | 
 | 15492 |       ;; | 
 | 15493 |  | 
 | 15494 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 15495 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 15496 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 15497 |     # extra space). | 
 | 15498 |     freebsd2.2*) | 
 | 15499 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 15500 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 15501 |       hardcode_direct_GCJ=yes | 
 | 15502 |       hardcode_shlibpath_var_GCJ=no | 
 | 15503 |       ;; | 
 | 15504 |  | 
 | 15505 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 15506 |     freebsd2*) | 
 | 15507 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15508 |       hardcode_direct_GCJ=yes | 
 | 15509 |       hardcode_minus_L_GCJ=yes | 
 | 15510 |       hardcode_shlibpath_var_GCJ=no | 
 | 15511 |       ;; | 
 | 15512 |  | 
 | 15513 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
 | 15514 |     freebsd*) | 
 | 15515 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15516 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 15517 |       hardcode_direct_GCJ=yes | 
 | 15518 |       hardcode_shlibpath_var_GCJ=no | 
 | 15519 |       ;; | 
 | 15520 |  | 
 | 15521 |     hpux9*) | 
 | 15522 |       if test "$GCC" = yes; then | 
 | 15523 | 	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' | 
 | 15524 |       else | 
 | 15525 | 	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' | 
 | 15526 |       fi | 
 | 15527 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 15528 |       hardcode_libdir_separator_GCJ=: | 
 | 15529 |       hardcode_direct_GCJ=yes | 
 | 15530 |  | 
 | 15531 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 15532 |       # but as the default location of the library. | 
 | 15533 |       hardcode_minus_L_GCJ=yes | 
 | 15534 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 15535 |       ;; | 
 | 15536 |  | 
 | 15537 |     hpux10* | hpux11*) | 
 | 15538 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 15539 | 	case "$host_cpu" in | 
 | 15540 | 	hppa*64*|ia64*) | 
 | 15541 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15542 | 	  ;; | 
 | 15543 | 	*) | 
 | 15544 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15545 | 	  ;; | 
 | 15546 | 	esac | 
 | 15547 |       else | 
 | 15548 | 	case "$host_cpu" in | 
 | 15549 | 	hppa*64*|ia64*) | 
 | 15550 | 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15551 | 	  ;; | 
 | 15552 | 	*) | 
 | 15553 | 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 15554 | 	  ;; | 
 | 15555 | 	esac | 
 | 15556 |       fi | 
 | 15557 |       if test "$with_gnu_ld" = no; then | 
 | 15558 | 	case "$host_cpu" in | 
 | 15559 | 	hppa*64*) | 
 | 15560 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 15561 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 15562 | 	  hardcode_libdir_separator_GCJ=: | 
 | 15563 | 	  hardcode_direct_GCJ=no | 
 | 15564 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 15565 | 	  ;; | 
 | 15566 | 	ia64*) | 
 | 15567 | 	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15568 | 	  hardcode_direct_GCJ=no | 
 | 15569 | 	  hardcode_shlibpath_var_GCJ=no | 
 | 15570 |  | 
 | 15571 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 15572 | 	  # but as the default location of the library. | 
 | 15573 | 	  hardcode_minus_L_GCJ=yes | 
 | 15574 | 	  ;; | 
 | 15575 | 	*) | 
 | 15576 | 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 15577 | 	  hardcode_libdir_separator_GCJ=: | 
 | 15578 | 	  hardcode_direct_GCJ=yes | 
 | 15579 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 15580 |  | 
 | 15581 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 15582 | 	  # but as the default location of the library. | 
 | 15583 | 	  hardcode_minus_L_GCJ=yes | 
 | 15584 | 	  ;; | 
 | 15585 | 	esac | 
 | 15586 |       fi | 
 | 15587 |       ;; | 
 | 15588 |  | 
 | 15589 |     irix5* | irix6* | nonstopux*) | 
 | 15590 |       if test "$GCC" = yes; then | 
 | 15591 | 	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' | 
 | 15592 |       else | 
 | 15593 | 	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' | 
 | 15594 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 15595 |       fi | 
 | 15596 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 15597 |       hardcode_libdir_separator_GCJ=: | 
 | 15598 |       link_all_deplibs_GCJ=yes | 
 | 15599 |       ;; | 
 | 15600 |  | 
 | 15601 |     netbsd*) | 
 | 15602 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15603 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 15604 |       else | 
 | 15605 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 15606 |       fi | 
 | 15607 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 15608 |       hardcode_direct_GCJ=yes | 
 | 15609 |       hardcode_shlibpath_var_GCJ=no | 
 | 15610 |       ;; | 
 | 15611 |  | 
 | 15612 |     newsos6) | 
 | 15613 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15614 |       hardcode_direct_GCJ=yes | 
 | 15615 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 15616 |       hardcode_libdir_separator_GCJ=: | 
 | 15617 |       hardcode_shlibpath_var_GCJ=no | 
 | 15618 |       ;; | 
 | 15619 |  | 
 | 15620 |     openbsd*) | 
 | 15621 |       hardcode_direct_GCJ=yes | 
 | 15622 |       hardcode_shlibpath_var_GCJ=no | 
 | 15623 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 15624 | 	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15625 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 15626 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 15627 |       else | 
 | 15628 |        case $host_os in | 
 | 15629 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 15630 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15631 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 15632 | 	   ;; | 
 | 15633 | 	 *) | 
 | 15634 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15635 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 15636 | 	   ;; | 
 | 15637 |        esac | 
 | 15638 |       fi | 
 | 15639 |       ;; | 
 | 15640 |  | 
 | 15641 |     os2*) | 
 | 15642 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15643 |       hardcode_minus_L_GCJ=yes | 
 | 15644 |       allow_undefined_flag_GCJ=unsupported | 
 | 15645 |       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' | 
 | 15646 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 15647 |       ;; | 
 | 15648 |  | 
 | 15649 |     osf3*) | 
 | 15650 |       if test "$GCC" = yes; then | 
 | 15651 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 15652 | 	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' | 
 | 15653 |       else | 
 | 15654 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 15655 | 	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' | 
 | 15656 |       fi | 
 | 15657 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 15658 |       hardcode_libdir_separator_GCJ=: | 
 | 15659 |       ;; | 
 | 15660 |  | 
 | 15661 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 15662 |       if test "$GCC" = yes; then | 
 | 15663 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 15664 | 	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' | 
 | 15665 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 15666 |       else | 
 | 15667 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 15668 | 	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' | 
 | 15669 | 	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~ | 
 | 15670 | 	$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' | 
 | 15671 |  | 
 | 15672 | 	# Both c and cxx compiler support -rpath directly | 
 | 15673 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 15674 |       fi | 
 | 15675 |       hardcode_libdir_separator_GCJ=: | 
 | 15676 |       ;; | 
 | 15677 |  | 
 | 15678 |     sco3.2v5*) | 
 | 15679 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15680 |       hardcode_shlibpath_var_GCJ=no | 
 | 15681 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
 | 15682 |       runpath_var=LD_RUN_PATH | 
 | 15683 |       hardcode_runpath_var=yes | 
 | 15684 |       ;; | 
 | 15685 |  | 
 | 15686 |     solaris*) | 
 | 15687 |       no_undefined_flag_GCJ=' -z text' | 
 | 15688 |       if test "$GCC" = yes; then | 
 | 15689 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15690 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 15691 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
 | 15692 |       else | 
 | 15693 | 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15694 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 15695 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 15696 |       fi | 
 | 15697 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 15698 |       hardcode_shlibpath_var_GCJ=no | 
 | 15699 |       case $host_os in | 
 | 15700 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 15701 |       *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 15702 | 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 15703 |       esac | 
 | 15704 |       link_all_deplibs_GCJ=yes | 
 | 15705 |       ;; | 
 | 15706 |  | 
 | 15707 |     sunos4*) | 
 | 15708 |       if test "x$host_vendor" = xsequent; then | 
 | 15709 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 15710 | 	# files that make .init and .fini sections work. | 
 | 15711 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15712 |       else | 
 | 15713 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 15714 |       fi | 
 | 15715 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15716 |       hardcode_direct_GCJ=yes | 
 | 15717 |       hardcode_minus_L_GCJ=yes | 
 | 15718 |       hardcode_shlibpath_var_GCJ=no | 
 | 15719 |       ;; | 
 | 15720 |  | 
 | 15721 |     sysv4) | 
 | 15722 |       case $host_vendor in | 
 | 15723 | 	sni) | 
 | 15724 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15725 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 15726 | 	;; | 
 | 15727 | 	siemens) | 
 | 15728 | 	  ## LD is ld it makes a PLAMLIB | 
 | 15729 | 	  ## CC just makes a GrossModule. | 
 | 15730 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 15731 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 15732 | 	  hardcode_direct_GCJ=no | 
 | 15733 |         ;; | 
 | 15734 | 	motorola) | 
 | 15735 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15736 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 15737 | 	;; | 
 | 15738 |       esac | 
 | 15739 |       runpath_var='LD_RUN_PATH' | 
 | 15740 |       hardcode_shlibpath_var_GCJ=no | 
 | 15741 |       ;; | 
 | 15742 |  | 
 | 15743 |     sysv4.3*) | 
 | 15744 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15745 |       hardcode_shlibpath_var_GCJ=no | 
 | 15746 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 15747 |       ;; | 
 | 15748 |  | 
 | 15749 |     sysv4*MP*) | 
 | 15750 |       if test -d /usr/nec; then | 
 | 15751 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15752 | 	hardcode_shlibpath_var_GCJ=no | 
 | 15753 | 	runpath_var=LD_RUN_PATH | 
 | 15754 | 	hardcode_runpath_var=yes | 
 | 15755 | 	ld_shlibs_GCJ=yes | 
 | 15756 |       fi | 
 | 15757 |       ;; | 
 | 15758 |  | 
 | 15759 |     sysv4.2uw2*) | 
 | 15760 |       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 15761 |       hardcode_direct_GCJ=yes | 
 | 15762 |       hardcode_minus_L_GCJ=no | 
 | 15763 |       hardcode_shlibpath_var_GCJ=no | 
 | 15764 |       hardcode_runpath_var=yes | 
 | 15765 |       runpath_var=LD_RUN_PATH | 
 | 15766 |       ;; | 
 | 15767 |  | 
 | 15768 |    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*) | 
 | 15769 |       no_undefined_flag_GCJ='${wl}-z ${wl}text' | 
 | 15770 |       if test "$GCC" = yes; then | 
 | 15771 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15772 |       else | 
 | 15773 | 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15774 |       fi | 
 | 15775 |       runpath_var='LD_RUN_PATH' | 
 | 15776 |       hardcode_shlibpath_var_GCJ=no | 
 | 15777 |       ;; | 
 | 15778 |  | 
 | 15779 |     sysv5*) | 
 | 15780 |       no_undefined_flag_GCJ=' -z text' | 
 | 15781 |       # $CC -shared without GNU ld will not create a library from C++ | 
 | 15782 |       # object files and a static libstdc++, better avoid it by now | 
 | 15783 |       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15784 |       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 15785 |   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
 | 15786 |       hardcode_libdir_flag_spec_GCJ= | 
 | 15787 |       hardcode_shlibpath_var_GCJ=no | 
 | 15788 |       runpath_var='LD_RUN_PATH' | 
 | 15789 |       ;; | 
 | 15790 |  | 
 | 15791 |     uts4*) | 
 | 15792 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15793 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 15794 |       hardcode_shlibpath_var_GCJ=no | 
 | 15795 |       ;; | 
 | 15796 |  | 
 | 15797 |     *) | 
 | 15798 |       ld_shlibs_GCJ=no | 
 | 15799 |       ;; | 
 | 15800 |     esac | 
 | 15801 |   fi | 
 | 15802 |  | 
 | 15803 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 15804 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 
 | 15805 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 15806 |  | 
 | 15807 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 15808 | if test "$GCC" = yes; then | 
 | 15809 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 15810 | fi | 
 | 15811 |  | 
 | 15812 | # | 
 | 15813 | # Do we need to explicitly link libc? | 
 | 15814 | # | 
 | 15815 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 15816 | x|xyes) | 
 | 15817 |   # Assume -lc should be added | 
 | 15818 |   archive_cmds_need_lc_GCJ=yes | 
 | 15819 |  | 
 | 15820 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 15821 |     case $archive_cmds_GCJ in | 
 | 15822 |     *'~'*) | 
 | 15823 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 15824 |       ;; | 
 | 15825 |     '$CC '*) | 
 | 15826 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 15827 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 15828 |       # to ld, don't add -lc before -lgcc. | 
 | 15829 |       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 15830 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | 
 | 15831 |       $rm conftest* | 
 | 15832 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15833 |  | 
 | 15834 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 15835 |   (eval $ac_compile) 2>&5 | 
 | 15836 |   ac_status=$? | 
 | 15837 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15838 |   (exit $ac_status); } 2>conftest.err; then | 
 | 15839 |         soname=conftest | 
 | 15840 |         lib=conftest | 
 | 15841 |         libobjs=conftest.$ac_objext | 
 | 15842 |         deplibs= | 
 | 15843 |         wl=$lt_prog_compiler_wl_GCJ | 
 | 15844 |         compiler_flags=-v | 
 | 15845 |         linker_flags=-v | 
 | 15846 |         verstring= | 
 | 15847 |         output_objdir=. | 
 | 15848 |         libname=conftest | 
 | 15849 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 15850 |         allow_undefined_flag_GCJ= | 
 | 15851 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 15852 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 15853 |   ac_status=$? | 
 | 15854 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15855 |   (exit $ac_status); } | 
 | 15856 |         then | 
 | 15857 | 	  archive_cmds_need_lc_GCJ=no | 
 | 15858 |         else | 
 | 15859 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 15860 |         fi | 
 | 15861 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 15862 |       else | 
 | 15863 |         cat conftest.err 1>&5 | 
 | 15864 |       fi | 
 | 15865 |       $rm conftest* | 
 | 15866 |       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 15867 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | 
 | 15868 |       ;; | 
 | 15869 |     esac | 
 | 15870 |   fi | 
 | 15871 |   ;; | 
 | 15872 | esac | 
 | 15873 |  | 
 | 15874 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 15875 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 
 | 15876 | hardcode_action_GCJ= | 
 | 15877 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 15878 |    test -n "$runpath_var GCJ" || \ | 
 | 15879 |    test "X$hardcode_automatic_GCJ"="Xyes" ; then | 
 | 15880 |  | 
 | 15881 |   # We can hardcode non-existant directories. | 
 | 15882 |   if test "$hardcode_direct_GCJ" != no && | 
 | 15883 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 15884 |      # have to relink, otherwise we might link with an installed library | 
 | 15885 |      # when we should be linking with a yet-to-be-installed one | 
 | 15886 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 15887 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 15888 |     # Linking always hardcodes the temporary library directory. | 
 | 15889 |     hardcode_action_GCJ=relink | 
 | 15890 |   else | 
 | 15891 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 15892 |     hardcode_action_GCJ=immediate | 
 | 15893 |   fi | 
 | 15894 | else | 
 | 15895 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 15896 |   # directories. | 
 | 15897 |   hardcode_action_GCJ=unsupported | 
 | 15898 | fi | 
 | 15899 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 15900 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | 
 | 15901 |  | 
 | 15902 | if test "$hardcode_action_GCJ" = relink; then | 
 | 15903 |   # Fast installation is not supported | 
 | 15904 |   enable_fast_install=no | 
 | 15905 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 15906 |      test "$enable_shared" = no; then | 
 | 15907 |   # Fast installation is not necessary | 
 | 15908 |   enable_fast_install=needless | 
 | 15909 | fi | 
 | 15910 |  | 
 | 15911 | striplib= | 
 | 15912 | old_striplib= | 
 | 15913 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 15914 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | 
 | 15915 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 15916 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 15917 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 15918 |   echo "$as_me:$LINENO: result: yes" >&5 | 
 | 15919 | echo "${ECHO_T}yes" >&6 | 
 | 15920 | else | 
 | 15921 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 15922 |   case $host_os in | 
 | 15923 |    darwin*) | 
 | 15924 |        if test -n "$STRIP" ; then | 
 | 15925 |          striplib="$STRIP -x" | 
 | 15926 |          echo "$as_me:$LINENO: result: yes" >&5 | 
 | 15927 | echo "${ECHO_T}yes" >&6 | 
 | 15928 |        else | 
 | 15929 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 15930 | echo "${ECHO_T}no" >&6 | 
 | 15931 | fi | 
 | 15932 |        ;; | 
 | 15933 |    *) | 
 | 15934 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 15935 | echo "${ECHO_T}no" >&6 | 
 | 15936 |     ;; | 
 | 15937 |   esac | 
 | 15938 | fi | 
 | 15939 |  | 
 | 15940 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 15941 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | 
 | 15942 | library_names_spec= | 
 | 15943 | libname_spec='lib$name' | 
 | 15944 | soname_spec= | 
 | 15945 | shrext=".so" | 
 | 15946 | postinstall_cmds= | 
 | 15947 | postuninstall_cmds= | 
 | 15948 | finish_cmds= | 
 | 15949 | finish_eval= | 
 | 15950 | shlibpath_var= | 
 | 15951 | shlibpath_overrides_runpath=unknown | 
 | 15952 | version_type=none | 
 | 15953 | dynamic_linker="$host_os ld.so" | 
 | 15954 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 15955 | if test "$GCC" = yes; then | 
 | 15956 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 15957 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 15958 |     # if the path contains ";" then we assume it to be the separator | 
 | 15959 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 15960 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 15961 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 15962 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 15963 |   else | 
 | 15964 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 15965 |   fi | 
 | 15966 | else | 
 | 15967 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 15968 | fi | 
 | 15969 | need_lib_prefix=unknown | 
 | 15970 | hardcode_into_libs=no | 
 | 15971 |  | 
 | 15972 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 15973 | # flags to be left without arguments | 
 | 15974 | need_version=unknown | 
 | 15975 |  | 
 | 15976 | case $host_os in | 
 | 15977 | aix3*) | 
 | 15978 |   version_type=linux | 
 | 15979 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 15980 |   shlibpath_var=LIBPATH | 
 | 15981 |  | 
 | 15982 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 15983 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15984 |   ;; | 
 | 15985 |  | 
 | 15986 | aix4* | aix5*) | 
 | 15987 |   version_type=linux | 
 | 15988 |   need_lib_prefix=no | 
 | 15989 |   need_version=no | 
 | 15990 |   hardcode_into_libs=yes | 
 | 15991 |   if test "$host_cpu" = ia64; then | 
 | 15992 |     # AIX 5 supports IA64 | 
 | 15993 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 15994 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 15995 |   else | 
 | 15996 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 15997 |     # for dependence libraries.  The import file would start with | 
 | 15998 |     # the line `#! .'.  This would cause the generated library to | 
 | 15999 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 16000 |     # development snapshots of GCC prior to 3.0. | 
 | 16001 |     case $host_os in | 
 | 16002 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 16003 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 16004 | 	   echo ' yes ' | 
 | 16005 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 16006 | 	: | 
 | 16007 |       else | 
 | 16008 | 	can_build_shared=no | 
 | 16009 |       fi | 
 | 16010 |       ;; | 
 | 16011 |     esac | 
 | 16012 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 16013 |     # soname into executable. Probably we can add versioning support to | 
 | 16014 |     # collect2, so additional links can be useful in future. | 
 | 16015 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 16016 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 16017 |       # instead of lib<name>.a to let people know that these are not | 
 | 16018 |       # typical AIX shared libraries. | 
 | 16019 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16020 |     else | 
 | 16021 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 16022 |       # and later when we are not doing run time linking. | 
 | 16023 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 16024 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16025 |     fi | 
 | 16026 |     shlibpath_var=LIBPATH | 
 | 16027 |   fi | 
 | 16028 |   ;; | 
 | 16029 |  | 
 | 16030 | amigaos*) | 
 | 16031 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 16032 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 16033 |   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' | 
 | 16034 |   ;; | 
 | 16035 |  | 
 | 16036 | beos*) | 
 | 16037 |   library_names_spec='${libname}${shared_ext}' | 
 | 16038 |   dynamic_linker="$host_os ld.so" | 
 | 16039 |   shlibpath_var=LIBRARY_PATH | 
 | 16040 |   ;; | 
 | 16041 |  | 
 | 16042 | bsdi4*) | 
 | 16043 |   version_type=linux | 
 | 16044 |   need_version=no | 
 | 16045 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16046 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16047 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 16048 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16049 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 16050 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 16051 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 16052 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 16053 |   # libtool to hard-code these into programs | 
 | 16054 |   ;; | 
 | 16055 |  | 
 | 16056 | cygwin* | mingw* | pw32*) | 
 | 16057 |   version_type=windows | 
 | 16058 |   shrext=".dll" | 
 | 16059 |   need_version=no | 
 | 16060 |   need_lib_prefix=no | 
 | 16061 |  | 
 | 16062 |   case $GCC,$host_os in | 
 | 16063 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 16064 |     library_names_spec='$libname.dll.a' | 
 | 16065 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 16066 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 16067 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 16068 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 16069 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 16070 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 16071 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 16072 |       dlpath=$dir/\$dldll~ | 
 | 16073 |        $rm \$dlpath' | 
 | 16074 |     shlibpath_overrides_runpath=yes | 
 | 16075 |  | 
 | 16076 |     case $host_os in | 
 | 16077 |     cygwin*) | 
 | 16078 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 16079 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16080 |       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 
 | 16081 |       ;; | 
 | 16082 |     mingw*) | 
 | 16083 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 16084 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16085 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16086 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 16087 |         # It is most probably a Windows format PATH printed by | 
 | 16088 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 16089 |         # path with ; separators, and with drive letters. We can handle the | 
 | 16090 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 16091 |         # especially as we might pass files found there to a mingw objdump, | 
 | 16092 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 16093 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16094 |       else | 
 | 16095 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16096 |       fi | 
 | 16097 |       ;; | 
 | 16098 |     pw32*) | 
 | 16099 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 16100 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | 
 | 16101 |       ;; | 
 | 16102 |     esac | 
 | 16103 |     ;; | 
 | 16104 |  | 
 | 16105 |   *) | 
 | 16106 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 16107 |     ;; | 
 | 16108 |   esac | 
 | 16109 |   dynamic_linker='Win32 ld.exe' | 
 | 16110 |   # FIXME: first we should search . and the directory the executable is in | 
 | 16111 |   shlibpath_var=PATH | 
 | 16112 |   ;; | 
 | 16113 |  | 
 | 16114 | darwin* | rhapsody*) | 
 | 16115 |   dynamic_linker="$host_os dyld" | 
 | 16116 |   version_type=darwin | 
 | 16117 |   need_lib_prefix=no | 
 | 16118 |   need_version=no | 
 | 16119 |   # FIXME: Relying on posixy $() will cause problems for | 
 | 16120 |   #        cross-compilation, but unfortunately the echo tests do not | 
 | 16121 |   #        yet detect zsh echo's removal of \ escapes. | 
 | 16122 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 16123 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 16124 |   shlibpath_overrides_runpath=yes | 
 | 16125 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 16126 |   shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 
 | 16127 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 16128 |   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 
 | 16129 |   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"` | 
 | 16130 |   fi | 
 | 16131 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 16132 |   ;; | 
 | 16133 |  | 
 | 16134 | dgux*) | 
 | 16135 |   version_type=linux | 
 | 16136 |   need_lib_prefix=no | 
 | 16137 |   need_version=no | 
 | 16138 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 16139 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16140 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16141 |   ;; | 
 | 16142 |  | 
 | 16143 | freebsd1*) | 
 | 16144 |   dynamic_linker=no | 
 | 16145 |   ;; | 
 | 16146 |  | 
 | 16147 | freebsd*) | 
 | 16148 |   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 
 | 16149 |   version_type=freebsd-$objformat | 
 | 16150 |   case $version_type in | 
 | 16151 |     freebsd-elf*) | 
 | 16152 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16153 |       need_version=no | 
 | 16154 |       need_lib_prefix=no | 
 | 16155 |       ;; | 
 | 16156 |     freebsd-*) | 
 | 16157 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 16158 |       need_version=yes | 
 | 16159 |       ;; | 
 | 16160 |   esac | 
 | 16161 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16162 |   case $host_os in | 
 | 16163 |   freebsd2*) | 
 | 16164 |     shlibpath_overrides_runpath=yes | 
 | 16165 |     ;; | 
 | 16166 |   freebsd3.01* | freebsdelf3.01*) | 
 | 16167 |     shlibpath_overrides_runpath=yes | 
 | 16168 |     hardcode_into_libs=yes | 
 | 16169 |     ;; | 
 | 16170 |   *) # from 3.2 on | 
 | 16171 |     shlibpath_overrides_runpath=no | 
 | 16172 |     hardcode_into_libs=yes | 
 | 16173 |     ;; | 
 | 16174 |   esac | 
 | 16175 |   ;; | 
 | 16176 |  | 
 | 16177 | gnu*) | 
 | 16178 |   version_type=linux | 
 | 16179 |   need_lib_prefix=no | 
 | 16180 |   need_version=no | 
 | 16181 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 16182 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16183 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16184 |   hardcode_into_libs=yes | 
 | 16185 |   ;; | 
 | 16186 |  | 
 | 16187 | hpux9* | hpux10* | hpux11*) | 
 | 16188 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 16189 |   # link against other versions. | 
 | 16190 |   version_type=sunos | 
 | 16191 |   need_lib_prefix=no | 
 | 16192 |   need_version=no | 
 | 16193 |   case "$host_cpu" in | 
 | 16194 |   ia64*) | 
 | 16195 |     shrext='.so' | 
 | 16196 |     hardcode_into_libs=yes | 
 | 16197 |     dynamic_linker="$host_os dld.so" | 
 | 16198 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16199 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16200 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16201 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16202 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 16203 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 16204 |     else | 
 | 16205 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 16206 |     fi | 
 | 16207 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16208 |     ;; | 
 | 16209 |    hppa*64*) | 
 | 16210 |      shrext='.sl' | 
 | 16211 |      hardcode_into_libs=yes | 
 | 16212 |      dynamic_linker="$host_os dld.sl" | 
 | 16213 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 16214 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16215 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16216 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16217 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 16218 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16219 |      ;; | 
 | 16220 |    *) | 
 | 16221 |     shrext='.sl' | 
 | 16222 |     dynamic_linker="$host_os dld.sl" | 
 | 16223 |     shlibpath_var=SHLIB_PATH | 
 | 16224 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 16225 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16226 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16227 |     ;; | 
 | 16228 |   esac | 
 | 16229 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 16230 |   postinstall_cmds='chmod 555 $lib' | 
 | 16231 |   ;; | 
 | 16232 |  | 
 | 16233 | irix5* | irix6* | nonstopux*) | 
 | 16234 |   case $host_os in | 
 | 16235 |     nonstopux*) version_type=nonstopux ;; | 
 | 16236 |     *) | 
 | 16237 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 16238 | 		version_type=linux | 
 | 16239 | 	else | 
 | 16240 | 		version_type=irix | 
 | 16241 | 	fi ;; | 
 | 16242 |   esac | 
 | 16243 |   need_lib_prefix=no | 
 | 16244 |   need_version=no | 
 | 16245 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16246 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16247 |   case $host_os in | 
 | 16248 |   irix5* | nonstopux*) | 
 | 16249 |     libsuff= shlibsuff= | 
 | 16250 |     ;; | 
 | 16251 |   *) | 
 | 16252 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 16253 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 16254 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 16255 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 16256 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 16257 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 16258 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 16259 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 16260 |     esac | 
 | 16261 |     ;; | 
 | 16262 |   esac | 
 | 16263 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 16264 |   shlibpath_overrides_runpath=no | 
 | 16265 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 16266 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 16267 |   hardcode_into_libs=yes | 
 | 16268 |   ;; | 
 | 16269 |  | 
 | 16270 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 16271 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 16272 |   dynamic_linker=no | 
 | 16273 |   ;; | 
 | 16274 |  | 
 | 16275 | # This must be Linux ELF. | 
 | 16276 | linux*) | 
 | 16277 |   version_type=linux | 
 | 16278 |   need_lib_prefix=no | 
 | 16279 |   need_version=no | 
 | 16280 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16281 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16282 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 16283 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16284 |   shlibpath_overrides_runpath=no | 
 | 16285 |   # This implies no fast_install, which is unacceptable. | 
 | 16286 |   # Some rework will be needed to allow for fast_install | 
 | 16287 |   # before this can be enabled. | 
 | 16288 |   hardcode_into_libs=yes | 
 | 16289 |  | 
 | 16290 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 16291 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 16292 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 16293 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 16294 |   # people can always --disable-shared, the test was removed, and we | 
 | 16295 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 16296 |   dynamic_linker='GNU/Linux ld.so' | 
 | 16297 |   ;; | 
 | 16298 |  | 
 | 16299 | netbsd*) | 
 | 16300 |   version_type=sunos | 
 | 16301 |   need_lib_prefix=no | 
 | 16302 |   need_version=no | 
 | 16303 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16304 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 16305 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 16306 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 16307 |   else | 
 | 16308 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 
 | 16309 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16310 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 16311 |   fi | 
 | 16312 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16313 |   shlibpath_overrides_runpath=yes | 
 | 16314 |   hardcode_into_libs=yes | 
 | 16315 |   ;; | 
 | 16316 |  | 
 | 16317 | newsos6) | 
 | 16318 |   version_type=linux | 
 | 16319 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16320 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16321 |   shlibpath_overrides_runpath=yes | 
 | 16322 |   ;; | 
 | 16323 |  | 
 | 16324 | nto-qnx) | 
 | 16325 |   version_type=linux | 
 | 16326 |   need_lib_prefix=no | 
 | 16327 |   need_version=no | 
 | 16328 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16329 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16330 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16331 |   shlibpath_overrides_runpath=yes | 
 | 16332 |   ;; | 
 | 16333 |  | 
 | 16334 | openbsd*) | 
 | 16335 |   version_type=sunos | 
 | 16336 |   need_lib_prefix=no | 
 | 16337 |   need_version=no | 
 | 16338 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 16339 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 16340 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16341 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 16342 |     case $host_os in | 
 | 16343 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 16344 | 	shlibpath_overrides_runpath=no | 
 | 16345 | 	;; | 
 | 16346 |       *) | 
 | 16347 | 	shlibpath_overrides_runpath=yes | 
 | 16348 | 	;; | 
 | 16349 |       esac | 
 | 16350 |   else | 
 | 16351 |     shlibpath_overrides_runpath=yes | 
 | 16352 |   fi | 
 | 16353 |   ;; | 
 | 16354 |  | 
 | 16355 | os2*) | 
 | 16356 |   libname_spec='$name' | 
 | 16357 |   shrext=".dll" | 
 | 16358 |   need_lib_prefix=no | 
 | 16359 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 16360 |   dynamic_linker='OS/2 ld.exe' | 
 | 16361 |   shlibpath_var=LIBPATH | 
 | 16362 |   ;; | 
 | 16363 |  | 
 | 16364 | osf3* | osf4* | osf5*) | 
 | 16365 |   version_type=osf | 
 | 16366 |   need_lib_prefix=no | 
 | 16367 |   need_version=no | 
 | 16368 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16369 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16370 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16371 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 16372 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 16373 |   ;; | 
 | 16374 |  | 
 | 16375 | sco3.2v5*) | 
 | 16376 |   version_type=osf | 
 | 16377 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16378 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16379 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16380 |   ;; | 
 | 16381 |  | 
 | 16382 | solaris*) | 
 | 16383 |   version_type=linux | 
 | 16384 |   need_lib_prefix=no | 
 | 16385 |   need_version=no | 
 | 16386 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16387 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16388 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16389 |   shlibpath_overrides_runpath=yes | 
 | 16390 |   hardcode_into_libs=yes | 
 | 16391 |   # ldd complains unless libraries are executable | 
 | 16392 |   postinstall_cmds='chmod +x $lib' | 
 | 16393 |   ;; | 
 | 16394 |  | 
 | 16395 | sunos4*) | 
 | 16396 |   version_type=sunos | 
 | 16397 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 16398 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 16399 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16400 |   shlibpath_overrides_runpath=yes | 
 | 16401 |   if test "$with_gnu_ld" = yes; then | 
 | 16402 |     need_lib_prefix=no | 
 | 16403 |   fi | 
 | 16404 |   need_version=yes | 
 | 16405 |   ;; | 
 | 16406 |  | 
 | 16407 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 16408 |   version_type=linux | 
 | 16409 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16410 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16411 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16412 |   case $host_vendor in | 
 | 16413 |     sni) | 
 | 16414 |       shlibpath_overrides_runpath=no | 
 | 16415 |       need_lib_prefix=no | 
 | 16416 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 16417 |       runpath_var=LD_RUN_PATH | 
 | 16418 |       ;; | 
 | 16419 |     siemens) | 
 | 16420 |       need_lib_prefix=no | 
 | 16421 |       ;; | 
 | 16422 |     motorola) | 
 | 16423 |       need_lib_prefix=no | 
 | 16424 |       need_version=no | 
 | 16425 |       shlibpath_overrides_runpath=no | 
 | 16426 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 16427 |       ;; | 
 | 16428 |   esac | 
 | 16429 |   ;; | 
 | 16430 |  | 
 | 16431 | sysv4*MP*) | 
 | 16432 |   if test -d /usr/nec ;then | 
 | 16433 |     version_type=linux | 
 | 16434 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 16435 |     soname_spec='$libname${shared_ext}.$major' | 
 | 16436 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16437 |   fi | 
 | 16438 |   ;; | 
 | 16439 |  | 
 | 16440 | uts4*) | 
 | 16441 |   version_type=linux | 
 | 16442 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16443 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16444 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16445 |   ;; | 
 | 16446 |  | 
 | 16447 | *) | 
 | 16448 |   dynamic_linker=no | 
 | 16449 |   ;; | 
 | 16450 | esac | 
 | 16451 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 16452 | echo "${ECHO_T}$dynamic_linker" >&6 | 
 | 16453 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 16454 |  | 
 | 16455 | if test "x$enable_dlopen" != xyes; then | 
 | 16456 |   enable_dlopen=unknown | 
 | 16457 |   enable_dlopen_self=unknown | 
 | 16458 |   enable_dlopen_self_static=unknown | 
 | 16459 | else | 
 | 16460 |   lt_cv_dlopen=no | 
 | 16461 |   lt_cv_dlopen_libs= | 
 | 16462 |  | 
 | 16463 |   case $host_os in | 
 | 16464 |   beos*) | 
 | 16465 |     lt_cv_dlopen="load_add_on" | 
 | 16466 |     lt_cv_dlopen_libs= | 
 | 16467 |     lt_cv_dlopen_self=yes | 
 | 16468 |     ;; | 
 | 16469 |  | 
 | 16470 |   mingw* | pw32*) | 
 | 16471 |     lt_cv_dlopen="LoadLibrary" | 
 | 16472 |     lt_cv_dlopen_libs= | 
 | 16473 |    ;; | 
 | 16474 |  | 
 | 16475 |   cygwin*) | 
 | 16476 |     lt_cv_dlopen="dlopen" | 
 | 16477 |     lt_cv_dlopen_libs= | 
 | 16478 |    ;; | 
 | 16479 |  | 
 | 16480 |   darwin*) | 
 | 16481 |   # if libdl is installed we need to link against it | 
 | 16482 |     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 16483 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 16484 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 16485 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16486 | else | 
 | 16487 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16488 | LIBS="-ldl  $LIBS" | 
 | 16489 | cat >conftest.$ac_ext <<_ACEOF | 
 | 16490 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16491 | /* confdefs.h.  */ | 
 | 16492 | _ACEOF | 
 | 16493 | cat confdefs.h >>conftest.$ac_ext | 
 | 16494 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16495 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16496 |  | 
 | 16497 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16498 | #ifdef __cplusplus | 
 | 16499 | extern "C" | 
 | 16500 | #endif | 
 | 16501 | /* We use char because int might match the return type of a gcc2 | 
 | 16502 |    builtin and then its argument prototype would still apply.  */ | 
 | 16503 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16504 | int | 
 | 16505 | main () | 
 | 16506 | { | 
 | 16507 | dlopen (); | 
 | 16508 |   ; | 
 | 16509 |   return 0; | 
 | 16510 | } | 
 | 16511 | _ACEOF | 
 | 16512 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16514 |   (eval $ac_link) 2>&5 | 
 | 16515 |   ac_status=$? | 
 | 16516 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16517 |   (exit $ac_status); } && | 
 | 16518 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16519 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16520 |   (eval $ac_try) 2>&5 | 
 | 16521 |   ac_status=$? | 
 | 16522 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16523 |   (exit $ac_status); }; }; then | 
 | 16524 |   ac_cv_lib_dl_dlopen=yes | 
 | 16525 | else | 
 | 16526 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16527 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16528 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16529 | ac_cv_lib_dl_dlopen=no | 
 | 16530 | fi | 
 | 16531 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16532 | LIBS=$ac_check_lib_save_LIBS | 
 | 16533 | fi | 
 | 16534 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 16535 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 16536 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 16537 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 16538 | else | 
 | 16539 |  | 
 | 16540 |     lt_cv_dlopen="dyld" | 
 | 16541 |     lt_cv_dlopen_libs= | 
 | 16542 |     lt_cv_dlopen_self=yes | 
 | 16543 |  | 
 | 16544 | fi | 
 | 16545 |  | 
 | 16546 |    ;; | 
 | 16547 |  | 
 | 16548 |   *) | 
 | 16549 |     echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 16550 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | 
 | 16551 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 16552 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16553 | else | 
 | 16554 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 16555 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16556 | /* confdefs.h.  */ | 
 | 16557 | _ACEOF | 
 | 16558 | cat confdefs.h >>conftest.$ac_ext | 
 | 16559 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16560 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16561 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16562 |     which can conflict with char shl_load (); below. | 
 | 16563 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 16564 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 16565 | #ifdef __STDC__ | 
 | 16566 | # include <limits.h> | 
 | 16567 | #else | 
 | 16568 | # include <assert.h> | 
 | 16569 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16570 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16571 | #ifdef __cplusplus | 
 | 16572 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16573 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16574 | #endif | 
 | 16575 | /* We use char because int might match the return type of a gcc2 | 
 | 16576 |    builtin and then its argument prototype would still apply.  */ | 
 | 16577 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16578 | /* The GNU C library defines this for functions which it implements | 
 | 16579 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 16580 |     something starting with __ and the normal name is an alias.  */ | 
 | 16581 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | 
 | 16582 | choke me | 
 | 16583 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16584 | char (*f) () = shl_load; | 
 | 16585 | #endif | 
 | 16586 | #ifdef __cplusplus | 
 | 16587 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16588 | #endif | 
 | 16589 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16590 | int | 
 | 16591 | main () | 
 | 16592 | { | 
 | 16593 | return f != shl_load; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16594 |   ; | 
 | 16595 |   return 0; | 
 | 16596 | } | 
 | 16597 | _ACEOF | 
 | 16598 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16600 |   (eval $ac_link) 2>&5 | 
 | 16601 |   ac_status=$? | 
 | 16602 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16603 |   (exit $ac_status); } && | 
 | 16604 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16605 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16606 |   (eval $ac_try) 2>&5 | 
 | 16607 |   ac_status=$? | 
 | 16608 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16609 |   (exit $ac_status); }; }; then | 
 | 16610 |   ac_cv_func_shl_load=yes | 
 | 16611 | else | 
 | 16612 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16613 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16614 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16615 | ac_cv_func_shl_load=no | 
 | 16616 | fi | 
 | 16617 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16618 | fi | 
 | 16619 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 16620 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | 
 | 16621 | if test $ac_cv_func_shl_load = yes; then | 
 | 16622 |   lt_cv_dlopen="shl_load" | 
 | 16623 | else | 
 | 16624 |   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 16625 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | 
 | 16626 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 16627 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16628 | else | 
 | 16629 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16630 | LIBS="-ldld  $LIBS" | 
 | 16631 | cat >conftest.$ac_ext <<_ACEOF | 
 | 16632 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16633 | /* confdefs.h.  */ | 
 | 16634 | _ACEOF | 
 | 16635 | cat confdefs.h >>conftest.$ac_ext | 
 | 16636 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16637 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16638 |  | 
 | 16639 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16640 | #ifdef __cplusplus | 
 | 16641 | extern "C" | 
 | 16642 | #endif | 
 | 16643 | /* We use char because int might match the return type of a gcc2 | 
 | 16644 |    builtin and then its argument prototype would still apply.  */ | 
 | 16645 | char shl_load (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16646 | int | 
 | 16647 | main () | 
 | 16648 | { | 
 | 16649 | shl_load (); | 
 | 16650 |   ; | 
 | 16651 |   return 0; | 
 | 16652 | } | 
 | 16653 | _ACEOF | 
 | 16654 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16656 |   (eval $ac_link) 2>&5 | 
 | 16657 |   ac_status=$? | 
 | 16658 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16659 |   (exit $ac_status); } && | 
 | 16660 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16661 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16662 |   (eval $ac_try) 2>&5 | 
 | 16663 |   ac_status=$? | 
 | 16664 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16665 |   (exit $ac_status); }; }; then | 
 | 16666 |   ac_cv_lib_dld_shl_load=yes | 
 | 16667 | else | 
 | 16668 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16669 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16670 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16671 | ac_cv_lib_dld_shl_load=no | 
 | 16672 | fi | 
 | 16673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16674 | LIBS=$ac_check_lib_save_LIBS | 
 | 16675 | fi | 
 | 16676 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 16677 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | 
 | 16678 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 16679 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 16680 | else | 
 | 16681 |   echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 16682 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | 
 | 16683 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 16684 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16685 | else | 
 | 16686 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 16687 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16688 | /* confdefs.h.  */ | 
 | 16689 | _ACEOF | 
 | 16690 | cat confdefs.h >>conftest.$ac_ext | 
 | 16691 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16692 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16693 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16694 |     which can conflict with char dlopen (); below. | 
 | 16695 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 16696 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 16697 | #ifdef __STDC__ | 
 | 16698 | # include <limits.h> | 
 | 16699 | #else | 
 | 16700 | # include <assert.h> | 
 | 16701 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16702 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16703 | #ifdef __cplusplus | 
 | 16704 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16705 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16706 | #endif | 
 | 16707 | /* We use char because int might match the return type of a gcc2 | 
 | 16708 |    builtin and then its argument prototype would still apply.  */ | 
 | 16709 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16710 | /* The GNU C library defines this for functions which it implements | 
 | 16711 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 16712 |     something starting with __ and the normal name is an alias.  */ | 
 | 16713 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | 
 | 16714 | choke me | 
 | 16715 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16716 | char (*f) () = dlopen; | 
 | 16717 | #endif | 
 | 16718 | #ifdef __cplusplus | 
 | 16719 | } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16720 | #endif | 
 | 16721 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16722 | int | 
 | 16723 | main () | 
 | 16724 | { | 
 | 16725 | return f != dlopen; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16726 |   ; | 
 | 16727 |   return 0; | 
 | 16728 | } | 
 | 16729 | _ACEOF | 
 | 16730 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16732 |   (eval $ac_link) 2>&5 | 
 | 16733 |   ac_status=$? | 
 | 16734 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16735 |   (exit $ac_status); } && | 
 | 16736 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16737 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16738 |   (eval $ac_try) 2>&5 | 
 | 16739 |   ac_status=$? | 
 | 16740 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16741 |   (exit $ac_status); }; }; then | 
 | 16742 |   ac_cv_func_dlopen=yes | 
 | 16743 | else | 
 | 16744 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16745 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16746 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16747 | ac_cv_func_dlopen=no | 
 | 16748 | fi | 
 | 16749 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16750 | fi | 
 | 16751 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 16752 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | 
 | 16753 | if test $ac_cv_func_dlopen = yes; then | 
 | 16754 |   lt_cv_dlopen="dlopen" | 
 | 16755 | else | 
 | 16756 |   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 16757 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | 
 | 16758 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 16759 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16760 | else | 
 | 16761 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16762 | LIBS="-ldl  $LIBS" | 
 | 16763 | cat >conftest.$ac_ext <<_ACEOF | 
 | 16764 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16765 | /* confdefs.h.  */ | 
 | 16766 | _ACEOF | 
 | 16767 | cat confdefs.h >>conftest.$ac_ext | 
 | 16768 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16769 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16770 |  | 
 | 16771 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16772 | #ifdef __cplusplus | 
 | 16773 | extern "C" | 
 | 16774 | #endif | 
 | 16775 | /* We use char because int might match the return type of a gcc2 | 
 | 16776 |    builtin and then its argument prototype would still apply.  */ | 
 | 16777 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16778 | int | 
 | 16779 | main () | 
 | 16780 | { | 
 | 16781 | dlopen (); | 
 | 16782 |   ; | 
 | 16783 |   return 0; | 
 | 16784 | } | 
 | 16785 | _ACEOF | 
 | 16786 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16788 |   (eval $ac_link) 2>&5 | 
 | 16789 |   ac_status=$? | 
 | 16790 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16791 |   (exit $ac_status); } && | 
 | 16792 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16793 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16794 |   (eval $ac_try) 2>&5 | 
 | 16795 |   ac_status=$? | 
 | 16796 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16797 |   (exit $ac_status); }; }; then | 
 | 16798 |   ac_cv_lib_dl_dlopen=yes | 
 | 16799 | else | 
 | 16800 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16801 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16802 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16803 | ac_cv_lib_dl_dlopen=no | 
 | 16804 | fi | 
 | 16805 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16806 | LIBS=$ac_check_lib_save_LIBS | 
 | 16807 | fi | 
 | 16808 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 16809 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | 
 | 16810 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 16811 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 16812 | else | 
 | 16813 |   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 16814 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | 
 | 16815 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 16816 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16817 | else | 
 | 16818 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16819 | LIBS="-lsvld  $LIBS" | 
 | 16820 | cat >conftest.$ac_ext <<_ACEOF | 
 | 16821 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16822 | /* confdefs.h.  */ | 
 | 16823 | _ACEOF | 
 | 16824 | cat confdefs.h >>conftest.$ac_ext | 
 | 16825 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16826 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16827 |  | 
 | 16828 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16829 | #ifdef __cplusplus | 
 | 16830 | extern "C" | 
 | 16831 | #endif | 
 | 16832 | /* We use char because int might match the return type of a gcc2 | 
 | 16833 |    builtin and then its argument prototype would still apply.  */ | 
 | 16834 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16835 | int | 
 | 16836 | main () | 
 | 16837 | { | 
 | 16838 | dlopen (); | 
 | 16839 |   ; | 
 | 16840 |   return 0; | 
 | 16841 | } | 
 | 16842 | _ACEOF | 
 | 16843 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16845 |   (eval $ac_link) 2>&5 | 
 | 16846 |   ac_status=$? | 
 | 16847 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16848 |   (exit $ac_status); } && | 
 | 16849 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16850 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16851 |   (eval $ac_try) 2>&5 | 
 | 16852 |   ac_status=$? | 
 | 16853 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16854 |   (exit $ac_status); }; }; then | 
 | 16855 |   ac_cv_lib_svld_dlopen=yes | 
 | 16856 | else | 
 | 16857 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16858 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16859 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16860 | ac_cv_lib_svld_dlopen=no | 
 | 16861 | fi | 
 | 16862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16863 | LIBS=$ac_check_lib_save_LIBS | 
 | 16864 | fi | 
 | 16865 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 16866 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | 
 | 16867 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 16868 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 16869 | else | 
 | 16870 |   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 16871 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | 
 | 16872 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 16873 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16874 | else | 
 | 16875 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16876 | LIBS="-ldld  $LIBS" | 
 | 16877 | cat >conftest.$ac_ext <<_ACEOF | 
 | 16878 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16879 | /* confdefs.h.  */ | 
 | 16880 | _ACEOF | 
 | 16881 | cat confdefs.h >>conftest.$ac_ext | 
 | 16882 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 16883 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16884 |  | 
 | 16885 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 16886 | #ifdef __cplusplus | 
 | 16887 | extern "C" | 
 | 16888 | #endif | 
 | 16889 | /* We use char because int might match the return type of a gcc2 | 
 | 16890 |    builtin and then its argument prototype would still apply.  */ | 
 | 16891 | char dld_link (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16892 | int | 
 | 16893 | main () | 
 | 16894 | { | 
 | 16895 | dld_link (); | 
 | 16896 |   ; | 
 | 16897 |   return 0; | 
 | 16898 | } | 
 | 16899 | _ACEOF | 
 | 16900 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 16901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 16902 |   (eval $ac_link) 2>&5 | 
 | 16903 |   ac_status=$? | 
 | 16904 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16905 |   (exit $ac_status); } && | 
 | 16906 |          { ac_try='test -s conftest$ac_exeext' | 
 | 16907 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 16908 |   (eval $ac_try) 2>&5 | 
 | 16909 |   ac_status=$? | 
 | 16910 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16911 |   (exit $ac_status); }; }; then | 
 | 16912 |   ac_cv_lib_dld_dld_link=yes | 
 | 16913 | else | 
 | 16914 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16915 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 16916 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16917 | ac_cv_lib_dld_dld_link=no | 
 | 16918 | fi | 
 | 16919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 16920 | LIBS=$ac_check_lib_save_LIBS | 
 | 16921 | fi | 
 | 16922 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 16923 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | 
 | 16924 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 16925 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 16926 | fi | 
 | 16927 |  | 
 | 16928 |  | 
 | 16929 | fi | 
 | 16930 |  | 
 | 16931 |  | 
 | 16932 | fi | 
 | 16933 |  | 
 | 16934 |  | 
 | 16935 | fi | 
 | 16936 |  | 
 | 16937 |  | 
 | 16938 | fi | 
 | 16939 |  | 
 | 16940 |  | 
 | 16941 | fi | 
 | 16942 |  | 
 | 16943 |     ;; | 
 | 16944 |   esac | 
 | 16945 |  | 
 | 16946 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 16947 |     enable_dlopen=yes | 
 | 16948 |   else | 
 | 16949 |     enable_dlopen=no | 
 | 16950 |   fi | 
 | 16951 |  | 
 | 16952 |   case $lt_cv_dlopen in | 
 | 16953 |   dlopen) | 
 | 16954 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 16955 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 16956 |  | 
 | 16957 |     save_LDFLAGS="$LDFLAGS" | 
 | 16958 |     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 16959 |  | 
 | 16960 |     save_LIBS="$LIBS" | 
 | 16961 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 16962 |  | 
 | 16963 |     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 16964 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | 
 | 16965 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 16966 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 16967 | else | 
 | 16968 |   	  if test "$cross_compiling" = yes; then : | 
 | 16969 |   lt_cv_dlopen_self=cross | 
 | 16970 | else | 
 | 16971 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 16972 |   lt_status=$lt_dlunknown | 
 | 16973 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 16974 | #line 16974 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16975 | #include "confdefs.h" | 
 | 16976 |  | 
 | 16977 | #if HAVE_DLFCN_H | 
 | 16978 | #include <dlfcn.h> | 
 | 16979 | #endif | 
 | 16980 |  | 
 | 16981 | #include <stdio.h> | 
 | 16982 |  | 
 | 16983 | #ifdef RTLD_GLOBAL | 
 | 16984 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 16985 | #else | 
 | 16986 | #  ifdef DL_GLOBAL | 
 | 16987 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 16988 | #  else | 
 | 16989 | #    define LT_DLGLOBAL		0 | 
 | 16990 | #  endif | 
 | 16991 | #endif | 
 | 16992 |  | 
 | 16993 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 16994 |    find out it does not work in some platform. */ | 
 | 16995 | #ifndef LT_DLLAZY_OR_NOW | 
 | 16996 | #  ifdef RTLD_LAZY | 
 | 16997 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 16998 | #  else | 
 | 16999 | #    ifdef DL_LAZY | 
 | 17000 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17001 | #    else | 
 | 17002 | #      ifdef RTLD_NOW | 
 | 17003 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17004 | #      else | 
 | 17005 | #        ifdef DL_NOW | 
 | 17006 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17007 | #        else | 
 | 17008 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17009 | #        endif | 
 | 17010 | #      endif | 
 | 17011 | #    endif | 
 | 17012 | #  endif | 
 | 17013 | #endif | 
 | 17014 |  | 
 | 17015 | #ifdef __cplusplus | 
 | 17016 | extern "C" void exit (int); | 
 | 17017 | #endif | 
 | 17018 |  | 
 | 17019 | void fnord() { int i=42;} | 
 | 17020 | int main () | 
 | 17021 | { | 
 | 17022 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17023 |   int status = $lt_dlunknown; | 
 | 17024 |  | 
 | 17025 |   if (self) | 
 | 17026 |     { | 
 | 17027 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17028 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17029 |       /* dlclose (self); */ | 
 | 17030 |     } | 
 | 17031 |  | 
 | 17032 |     exit (status); | 
 | 17033 | } | 
 | 17034 | EOF | 
 | 17035 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17036 |   (eval $ac_link) 2>&5 | 
 | 17037 |   ac_status=$? | 
 | 17038 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17039 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 17040 |     (./conftest; exit; ) 2>/dev/null | 
 | 17041 |     lt_status=$? | 
 | 17042 |     case x$lt_status in | 
 | 17043 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17044 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17045 |       x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 
 | 17046 |     esac | 
 | 17047 |   else : | 
 | 17048 |     # compilation failed | 
 | 17049 |     lt_cv_dlopen_self=no | 
 | 17050 |   fi | 
 | 17051 | fi | 
 | 17052 | rm -fr conftest* | 
 | 17053 |  | 
 | 17054 |  | 
 | 17055 | fi | 
 | 17056 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 17057 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 
 | 17058 |  | 
 | 17059 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 17060 |       LDFLAGS="$LDFLAGS $link_static_flag" | 
 | 17061 |       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 17062 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 
 | 17063 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 17064 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17065 | else | 
 | 17066 |   	  if test "$cross_compiling" = yes; then : | 
 | 17067 |   lt_cv_dlopen_self_static=cross | 
 | 17068 | else | 
 | 17069 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 17070 |   lt_status=$lt_dlunknown | 
 | 17071 |   cat > conftest.$ac_ext <<EOF | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 17072 | #line 17072 "configure" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17073 | #include "confdefs.h" | 
 | 17074 |  | 
 | 17075 | #if HAVE_DLFCN_H | 
 | 17076 | #include <dlfcn.h> | 
 | 17077 | #endif | 
 | 17078 |  | 
 | 17079 | #include <stdio.h> | 
 | 17080 |  | 
 | 17081 | #ifdef RTLD_GLOBAL | 
 | 17082 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17083 | #else | 
 | 17084 | #  ifdef DL_GLOBAL | 
 | 17085 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17086 | #  else | 
 | 17087 | #    define LT_DLGLOBAL		0 | 
 | 17088 | #  endif | 
 | 17089 | #endif | 
 | 17090 |  | 
 | 17091 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17092 |    find out it does not work in some platform. */ | 
 | 17093 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17094 | #  ifdef RTLD_LAZY | 
 | 17095 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17096 | #  else | 
 | 17097 | #    ifdef DL_LAZY | 
 | 17098 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17099 | #    else | 
 | 17100 | #      ifdef RTLD_NOW | 
 | 17101 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17102 | #      else | 
 | 17103 | #        ifdef DL_NOW | 
 | 17104 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17105 | #        else | 
 | 17106 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17107 | #        endif | 
 | 17108 | #      endif | 
 | 17109 | #    endif | 
 | 17110 | #  endif | 
 | 17111 | #endif | 
 | 17112 |  | 
 | 17113 | #ifdef __cplusplus | 
 | 17114 | extern "C" void exit (int); | 
 | 17115 | #endif | 
 | 17116 |  | 
 | 17117 | void fnord() { int i=42;} | 
 | 17118 | int main () | 
 | 17119 | { | 
 | 17120 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17121 |   int status = $lt_dlunknown; | 
 | 17122 |  | 
 | 17123 |   if (self) | 
 | 17124 |     { | 
 | 17125 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17126 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17127 |       /* dlclose (self); */ | 
 | 17128 |     } | 
 | 17129 |  | 
 | 17130 |     exit (status); | 
 | 17131 | } | 
 | 17132 | EOF | 
 | 17133 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17134 |   (eval $ac_link) 2>&5 | 
 | 17135 |   ac_status=$? | 
 | 17136 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17137 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 17138 |     (./conftest; exit; ) 2>/dev/null | 
 | 17139 |     lt_status=$? | 
 | 17140 |     case x$lt_status in | 
 | 17141 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 17142 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 17143 |       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 17144 |     esac | 
 | 17145 |   else : | 
 | 17146 |     # compilation failed | 
 | 17147 |     lt_cv_dlopen_self_static=no | 
 | 17148 |   fi | 
 | 17149 | fi | 
 | 17150 | rm -fr conftest* | 
 | 17151 |  | 
 | 17152 |  | 
 | 17153 | fi | 
 | 17154 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 17155 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | 
 | 17156 |     fi | 
 | 17157 |  | 
 | 17158 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 17159 |     LDFLAGS="$save_LDFLAGS" | 
 | 17160 |     LIBS="$save_LIBS" | 
 | 17161 |     ;; | 
 | 17162 |   esac | 
 | 17163 |  | 
 | 17164 |   case $lt_cv_dlopen_self in | 
 | 17165 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 17166 |   *) enable_dlopen_self=unknown ;; | 
 | 17167 |   esac | 
 | 17168 |  | 
 | 17169 |   case $lt_cv_dlopen_self_static in | 
 | 17170 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 17171 |   *) enable_dlopen_self_static=unknown ;; | 
 | 17172 |   esac | 
 | 17173 | fi | 
 | 17174 |  | 
 | 17175 |  | 
 | 17176 | # The else clause should only fire when bootstrapping the | 
 | 17177 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 17178 | # with your package, and you will get complaints that there are | 
 | 17179 | # no rules to generate ltmain.sh. | 
 | 17180 | if test -f "$ltmain"; then | 
 | 17181 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 17182 |   # without removal of \ escapes. | 
 | 17183 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 17184 |     setopt NO_GLOB_SUBST | 
 | 17185 |   fi | 
 | 17186 |   # Now quote all the things that may contain metacharacters while being | 
 | 17187 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 17188 |   # variables and quote the copies for generation of the libtool script. | 
 | 17189 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
 | 17190 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 17191 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 17192 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 17193 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 17194 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 17195 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 17196 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 17197 |     compiler_GCJ \ | 
 | 17198 |     CC_GCJ \ | 
 | 17199 |     LD_GCJ \ | 
 | 17200 |     lt_prog_compiler_wl_GCJ \ | 
 | 17201 |     lt_prog_compiler_pic_GCJ \ | 
 | 17202 |     lt_prog_compiler_static_GCJ \ | 
 | 17203 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 17204 |     export_dynamic_flag_spec_GCJ \ | 
 | 17205 |     thread_safe_flag_spec_GCJ \ | 
 | 17206 |     whole_archive_flag_spec_GCJ \ | 
 | 17207 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 17208 |     old_archive_cmds_GCJ \ | 
 | 17209 |     old_archive_from_new_cmds_GCJ \ | 
 | 17210 |     predep_objects_GCJ \ | 
 | 17211 |     postdep_objects_GCJ \ | 
 | 17212 |     predeps_GCJ \ | 
 | 17213 |     postdeps_GCJ \ | 
 | 17214 |     compiler_lib_search_path_GCJ \ | 
 | 17215 |     archive_cmds_GCJ \ | 
 | 17216 |     archive_expsym_cmds_GCJ \ | 
 | 17217 |     postinstall_cmds_GCJ \ | 
 | 17218 |     postuninstall_cmds_GCJ \ | 
 | 17219 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 17220 |     allow_undefined_flag_GCJ \ | 
 | 17221 |     no_undefined_flag_GCJ \ | 
 | 17222 |     export_symbols_cmds_GCJ \ | 
 | 17223 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 17224 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 17225 |     hardcode_libdir_separator_GCJ \ | 
 | 17226 |     hardcode_automatic_GCJ \ | 
 | 17227 |     module_cmds_GCJ \ | 
 | 17228 |     module_expsym_cmds_GCJ \ | 
 | 17229 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 17230 |     exclude_expsyms_GCJ \ | 
 | 17231 |     include_expsyms_GCJ; do | 
 | 17232 |  | 
 | 17233 |     case $var in | 
 | 17234 |     old_archive_cmds_GCJ | \ | 
 | 17235 |     old_archive_from_new_cmds_GCJ | \ | 
 | 17236 |     archive_cmds_GCJ | \ | 
 | 17237 |     archive_expsym_cmds_GCJ | \ | 
 | 17238 |     module_cmds_GCJ | \ | 
 | 17239 |     module_expsym_cmds_GCJ | \ | 
 | 17240 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 17241 |     export_symbols_cmds_GCJ | \ | 
 | 17242 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 17243 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 17244 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 17245 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 17246 |       # Double-quote double-evaled strings. | 
 | 17247 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
 | 17248 |       ;; | 
 | 17249 |     *) | 
 | 17250 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 17251 |       ;; | 
 | 17252 |     esac | 
 | 17253 |   done | 
 | 17254 |  | 
 | 17255 |   case $lt_echo in | 
 | 17256 |   *'\$0 --fallback-echo"') | 
 | 17257 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 17258 |     ;; | 
 | 17259 |   esac | 
 | 17260 |  | 
 | 17261 | cfgfile="$ofile" | 
 | 17262 |  | 
 | 17263 |   cat <<__EOF__ >> "$cfgfile" | 
 | 17264 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 17265 |  | 
 | 17266 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 17267 |  | 
 | 17268 | # Shell to use when invoking shell scripts. | 
 | 17269 | SHELL=$lt_SHELL | 
 | 17270 |  | 
 | 17271 | # Whether or not to build shared libraries. | 
 | 17272 | build_libtool_libs=$enable_shared | 
 | 17273 |  | 
 | 17274 | # Whether or not to build static libraries. | 
 | 17275 | build_old_libs=$enable_static | 
 | 17276 |  | 
 | 17277 | # Whether or not to add -lc for building shared libraries. | 
 | 17278 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 17279 |  | 
 | 17280 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 17281 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 17282 |  | 
 | 17283 | # Whether or not to optimize for fast installation. | 
 | 17284 | fast_install=$enable_fast_install | 
 | 17285 |  | 
 | 17286 | # The host system. | 
 | 17287 | host_alias=$host_alias | 
 | 17288 | host=$host | 
 | 17289 |  | 
 | 17290 | # An echo program that does not interpret backslashes. | 
 | 17291 | echo=$lt_echo | 
 | 17292 |  | 
 | 17293 | # The archiver. | 
 | 17294 | AR=$lt_AR | 
 | 17295 | AR_FLAGS=$lt_AR_FLAGS | 
 | 17296 |  | 
 | 17297 | # A C compiler. | 
 | 17298 | LTCC=$lt_LTCC | 
 | 17299 |  | 
 | 17300 | # A language-specific compiler. | 
 | 17301 | CC=$lt_compiler_GCJ | 
 | 17302 |  | 
 | 17303 | # Is the compiler the GNU C compiler? | 
 | 17304 | with_gcc=$GCC_GCJ | 
 | 17305 |  | 
 | 17306 | # An ERE matcher. | 
 | 17307 | EGREP=$lt_EGREP | 
 | 17308 |  | 
 | 17309 | # The linker used to build libraries. | 
 | 17310 | LD=$lt_LD_GCJ | 
 | 17311 |  | 
 | 17312 | # Whether we need hard or soft links. | 
 | 17313 | LN_S=$lt_LN_S | 
 | 17314 |  | 
 | 17315 | # A BSD-compatible nm program. | 
 | 17316 | NM=$lt_NM | 
 | 17317 |  | 
 | 17318 | # A symbol stripping program | 
 | 17319 | STRIP=$STRIP | 
 | 17320 |  | 
 | 17321 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 17322 | MAGIC_CMD=$MAGIC_CMD | 
 | 17323 |  | 
 | 17324 | # Used on cygwin: DLL creation program. | 
 | 17325 | DLLTOOL="$DLLTOOL" | 
 | 17326 |  | 
 | 17327 | # Used on cygwin: object dumper. | 
 | 17328 | OBJDUMP="$OBJDUMP" | 
 | 17329 |  | 
 | 17330 | # Used on cygwin: assembler. | 
 | 17331 | AS="$AS" | 
 | 17332 |  | 
 | 17333 | # The name of the directory that contains temporary libtool files. | 
 | 17334 | objdir=$objdir | 
 | 17335 |  | 
 | 17336 | # How to create reloadable object files. | 
 | 17337 | reload_flag=$lt_reload_flag | 
 | 17338 | reload_cmds=$lt_reload_cmds | 
 | 17339 |  | 
 | 17340 | # How to pass a linker flag through the compiler. | 
 | 17341 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 17342 |  | 
 | 17343 | # Object file suffix (normally "o"). | 
 | 17344 | objext="$ac_objext" | 
 | 17345 |  | 
 | 17346 | # Old archive suffix (normally "a"). | 
 | 17347 | libext="$libext" | 
 | 17348 |  | 
 | 17349 | # Shared library suffix (normally ".so"). | 
 | 17350 | shrext='$shrext' | 
 | 17351 |  | 
 | 17352 | # Executable file suffix (normally ""). | 
 | 17353 | exeext="$exeext" | 
 | 17354 |  | 
 | 17355 | # Additional compiler flags for building library objects. | 
 | 17356 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 17357 | pic_mode=$pic_mode | 
 | 17358 |  | 
 | 17359 | # What is the maximum length of a command? | 
 | 17360 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 17361 |  | 
 | 17362 | # Does compiler simultaneously support -c and -o options? | 
 | 17363 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 17364 |  | 
 | 17365 | # Must we lock files when doing compilation ? | 
 | 17366 | need_locks=$lt_need_locks | 
 | 17367 |  | 
 | 17368 | # Do we need the lib prefix for modules? | 
 | 17369 | need_lib_prefix=$need_lib_prefix | 
 | 17370 |  | 
 | 17371 | # Do we need a version for libraries? | 
 | 17372 | need_version=$need_version | 
 | 17373 |  | 
 | 17374 | # Whether dlopen is supported. | 
 | 17375 | dlopen_support=$enable_dlopen | 
 | 17376 |  | 
 | 17377 | # Whether dlopen of programs is supported. | 
 | 17378 | dlopen_self=$enable_dlopen_self | 
 | 17379 |  | 
 | 17380 | # Whether dlopen of statically linked programs is supported. | 
 | 17381 | dlopen_self_static=$enable_dlopen_self_static | 
 | 17382 |  | 
 | 17383 | # Compiler flag to prevent dynamic linking. | 
 | 17384 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 17385 |  | 
 | 17386 | # Compiler flag to turn off builtin functions. | 
 | 17387 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 17388 |  | 
 | 17389 | # Compiler flag to allow reflexive dlopens. | 
 | 17390 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 17391 |  | 
 | 17392 | # Compiler flag to generate shared objects directly from archives. | 
 | 17393 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 17394 |  | 
 | 17395 | # Compiler flag to generate thread-safe objects. | 
 | 17396 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 17397 |  | 
 | 17398 | # Library versioning type. | 
 | 17399 | version_type=$version_type | 
 | 17400 |  | 
 | 17401 | # Format of library name prefix. | 
 | 17402 | libname_spec=$lt_libname_spec | 
 | 17403 |  | 
 | 17404 | # List of archive names.  First name is the real one, the rest are links. | 
 | 17405 | # The last name is the one that the linker finds with -lNAME. | 
 | 17406 | library_names_spec=$lt_library_names_spec | 
 | 17407 |  | 
 | 17408 | # The coded name of the library, if different from the real name. | 
 | 17409 | soname_spec=$lt_soname_spec | 
 | 17410 |  | 
 | 17411 | # Commands used to build and install an old-style archive. | 
 | 17412 | RANLIB=$lt_RANLIB | 
 | 17413 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 17414 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 17415 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 17416 |  | 
 | 17417 | # Create an old-style archive from a shared archive. | 
 | 17418 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 17419 |  | 
 | 17420 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 17421 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 17422 |  | 
 | 17423 | # Commands used to build and install a shared archive. | 
 | 17424 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 17425 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 17426 | postinstall_cmds=$lt_postinstall_cmds | 
 | 17427 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 17428 |  | 
 | 17429 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 17430 | module_cmds=$lt_module_cmds_GCJ | 
 | 17431 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 17432 |  | 
 | 17433 | # Commands to strip libraries. | 
 | 17434 | old_striplib=$lt_old_striplib | 
 | 17435 | striplib=$lt_striplib | 
 | 17436 |  | 
 | 17437 | # Dependencies to place before the objects being linked to create a | 
 | 17438 | # shared library. | 
 | 17439 | predep_objects=$lt_predep_objects_GCJ | 
 | 17440 |  | 
 | 17441 | # Dependencies to place after the objects being linked to create a | 
 | 17442 | # shared library. | 
 | 17443 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 17444 |  | 
 | 17445 | # Dependencies to place before the objects being linked to create a | 
 | 17446 | # shared library. | 
 | 17447 | predeps=$lt_predeps_GCJ | 
 | 17448 |  | 
 | 17449 | # Dependencies to place after the objects being linked to create a | 
 | 17450 | # shared library. | 
 | 17451 | postdeps=$lt_postdeps_GCJ | 
 | 17452 |  | 
 | 17453 | # The library search path used internally by the compiler when linking | 
 | 17454 | # a shared library. | 
 | 17455 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 17456 |  | 
 | 17457 | # Method to check whether dependent libraries are shared objects. | 
 | 17458 | deplibs_check_method=$lt_deplibs_check_method | 
 | 17459 |  | 
 | 17460 | # Command to use when deplibs_check_method == file_magic. | 
 | 17461 | file_magic_cmd=$lt_file_magic_cmd | 
 | 17462 |  | 
 | 17463 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 17464 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 17465 |  | 
 | 17466 | # Flag that forces no undefined symbols. | 
 | 17467 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 17468 |  | 
 | 17469 | # Commands used to finish a libtool library installation in a directory. | 
 | 17470 | finish_cmds=$lt_finish_cmds | 
 | 17471 |  | 
 | 17472 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 17473 | finish_eval=$lt_finish_eval | 
 | 17474 |  | 
 | 17475 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 17476 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 17477 |  | 
 | 17478 | # Transform the output of nm in a proper C declaration | 
 | 17479 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 17480 |  | 
 | 17481 | # Transform the output of nm in a C name address pair | 
 | 17482 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 17483 |  | 
 | 17484 | # This is the shared library runtime path variable. | 
 | 17485 | runpath_var=$runpath_var | 
 | 17486 |  | 
 | 17487 | # This is the shared library path variable. | 
 | 17488 | shlibpath_var=$shlibpath_var | 
 | 17489 |  | 
 | 17490 | # Is shlibpath searched before the hard-coded library search path? | 
 | 17491 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 17492 |  | 
 | 17493 | # How to hardcode a shared library path into an executable. | 
 | 17494 | hardcode_action=$hardcode_action_GCJ | 
 | 17495 |  | 
 | 17496 | # Whether we should hardcode library paths into libraries. | 
 | 17497 | hardcode_into_libs=$hardcode_into_libs | 
 | 17498 |  | 
 | 17499 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 17500 | # This must work even if \$libdir does not exist. | 
 | 17501 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 17502 |  | 
 | 17503 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 17504 | # a binary during linking. This must work even if \$libdir does | 
 | 17505 | # not exist. | 
 | 17506 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 17507 |  | 
 | 17508 | # Whether we need a single -rpath flag with a separated argument. | 
 | 17509 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 17510 |  | 
 | 17511 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 17512 | # resulting binary. | 
 | 17513 | hardcode_direct=$hardcode_direct_GCJ | 
 | 17514 |  | 
 | 17515 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 17516 | # resulting binary. | 
 | 17517 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 17518 |  | 
 | 17519 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 17520 | # the resulting binary. | 
 | 17521 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 17522 |  | 
 | 17523 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 17524 | # and all subsequent libraries and executables linked against it. | 
 | 17525 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 17526 |  | 
 | 17527 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 17528 | # restored at relink time. | 
 | 17529 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 17530 |  | 
 | 17531 | # Whether libtool must link a program against all its dependency libraries. | 
 | 17532 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 17533 |  | 
 | 17534 | # Compile-time system search path for libraries | 
 | 17535 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 17536 |  | 
 | 17537 | # Run-time system search path for libraries | 
 | 17538 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 17539 |  | 
 | 17540 | # Fix the shell variable \$srcfile for the compiler. | 
 | 17541 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 17542 |  | 
 | 17543 | # Set to yes if exported symbols are required. | 
 | 17544 | always_export_symbols=$always_export_symbols_GCJ | 
 | 17545 |  | 
 | 17546 | # The commands to list exported symbols. | 
 | 17547 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 17548 |  | 
 | 17549 | # The commands to extract the exported symbol list from a shared archive. | 
 | 17550 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 17551 |  | 
 | 17552 | # Symbols that should not be listed in the preloaded symbols. | 
 | 17553 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 17554 |  | 
 | 17555 | # Symbols that must always be exported. | 
 | 17556 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 17557 |  | 
 | 17558 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 17559 |  | 
 | 17560 | __EOF__ | 
 | 17561 |  | 
 | 17562 |  | 
 | 17563 | else | 
 | 17564 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 17565 |   # `config.status --recheck' to rerun these tests and create the | 
 | 17566 |   # libtool script then. | 
 | 17567 |   test -f Makefile && make "$ltmain" | 
 | 17568 | fi | 
 | 17569 |  | 
 | 17570 |  | 
 | 17571 | ac_ext=c | 
 | 17572 | ac_cpp='$CPP $CPPFLAGS' | 
 | 17573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 17574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 17575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 17576 |  | 
 | 17577 | CC="$lt_save_CC" | 
 | 17578 |  | 
 | 17579 | 	else | 
 | 17580 | 	  tagname="" | 
 | 17581 | 	fi | 
 | 17582 | 	;; | 
 | 17583 |  | 
 | 17584 |       RC) | 
 | 17585 |  | 
 | 17586 |  | 
 | 17587 |  | 
 | 17588 | # Source file extension for RC test sources. | 
 | 17589 | ac_ext=rc | 
 | 17590 |  | 
 | 17591 | # Object file extension for compiled RC test sources. | 
 | 17592 | objext=o | 
 | 17593 | objext_RC=$objext | 
 | 17594 |  | 
 | 17595 | # Code to be used in simple compile tests | 
 | 17596 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 17597 |  | 
 | 17598 | # Code to be used in simple link tests | 
 | 17599 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 17600 |  | 
 | 17601 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 17602 |  | 
 | 17603 | # If no C compiler was specified, use CC. | 
 | 17604 | LTCC=${LTCC-"$CC"} | 
 | 17605 |  | 
 | 17606 | # Allow CC to be a program name with arguments. | 
 | 17607 | compiler=$CC | 
 | 17608 |  | 
 | 17609 |  | 
 | 17610 | # Allow CC to be a program name with arguments. | 
 | 17611 | lt_save_CC="$CC" | 
 | 17612 | CC=${RC-"windres"} | 
 | 17613 | compiler=$CC | 
 | 17614 | compiler_RC=$CC | 
 | 17615 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 17616 |  | 
 | 17617 | # The else clause should only fire when bootstrapping the | 
 | 17618 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 17619 | # with your package, and you will get complaints that there are | 
 | 17620 | # no rules to generate ltmain.sh. | 
 | 17621 | if test -f "$ltmain"; then | 
 | 17622 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 17623 |   # without removal of \ escapes. | 
 | 17624 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 17625 |     setopt NO_GLOB_SUBST | 
 | 17626 |   fi | 
 | 17627 |   # Now quote all the things that may contain metacharacters while being | 
 | 17628 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 17629 |   # variables and quote the copies for generation of the libtool script. | 
 | 17630 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 
 | 17631 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 17632 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 17633 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 17634 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 17635 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 17636 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 17637 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 17638 |     compiler_RC \ | 
 | 17639 |     CC_RC \ | 
 | 17640 |     LD_RC \ | 
 | 17641 |     lt_prog_compiler_wl_RC \ | 
 | 17642 |     lt_prog_compiler_pic_RC \ | 
 | 17643 |     lt_prog_compiler_static_RC \ | 
 | 17644 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 17645 |     export_dynamic_flag_spec_RC \ | 
 | 17646 |     thread_safe_flag_spec_RC \ | 
 | 17647 |     whole_archive_flag_spec_RC \ | 
 | 17648 |     enable_shared_with_static_runtimes_RC \ | 
 | 17649 |     old_archive_cmds_RC \ | 
 | 17650 |     old_archive_from_new_cmds_RC \ | 
 | 17651 |     predep_objects_RC \ | 
 | 17652 |     postdep_objects_RC \ | 
 | 17653 |     predeps_RC \ | 
 | 17654 |     postdeps_RC \ | 
 | 17655 |     compiler_lib_search_path_RC \ | 
 | 17656 |     archive_cmds_RC \ | 
 | 17657 |     archive_expsym_cmds_RC \ | 
 | 17658 |     postinstall_cmds_RC \ | 
 | 17659 |     postuninstall_cmds_RC \ | 
 | 17660 |     old_archive_from_expsyms_cmds_RC \ | 
 | 17661 |     allow_undefined_flag_RC \ | 
 | 17662 |     no_undefined_flag_RC \ | 
 | 17663 |     export_symbols_cmds_RC \ | 
 | 17664 |     hardcode_libdir_flag_spec_RC \ | 
 | 17665 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 17666 |     hardcode_libdir_separator_RC \ | 
 | 17667 |     hardcode_automatic_RC \ | 
 | 17668 |     module_cmds_RC \ | 
 | 17669 |     module_expsym_cmds_RC \ | 
 | 17670 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 17671 |     exclude_expsyms_RC \ | 
 | 17672 |     include_expsyms_RC; do | 
 | 17673 |  | 
 | 17674 |     case $var in | 
 | 17675 |     old_archive_cmds_RC | \ | 
 | 17676 |     old_archive_from_new_cmds_RC | \ | 
 | 17677 |     archive_cmds_RC | \ | 
 | 17678 |     archive_expsym_cmds_RC | \ | 
 | 17679 |     module_cmds_RC | \ | 
 | 17680 |     module_expsym_cmds_RC | \ | 
 | 17681 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 17682 |     export_symbols_cmds_RC | \ | 
 | 17683 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 17684 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 17685 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 17686 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 17687 |       # Double-quote double-evaled strings. | 
 | 17688 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
 | 17689 |       ;; | 
 | 17690 |     *) | 
 | 17691 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 17692 |       ;; | 
 | 17693 |     esac | 
 | 17694 |   done | 
 | 17695 |  | 
 | 17696 |   case $lt_echo in | 
 | 17697 |   *'\$0 --fallback-echo"') | 
 | 17698 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 17699 |     ;; | 
 | 17700 |   esac | 
 | 17701 |  | 
 | 17702 | cfgfile="$ofile" | 
 | 17703 |  | 
 | 17704 |   cat <<__EOF__ >> "$cfgfile" | 
 | 17705 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 17706 |  | 
 | 17707 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 17708 |  | 
 | 17709 | # Shell to use when invoking shell scripts. | 
 | 17710 | SHELL=$lt_SHELL | 
 | 17711 |  | 
 | 17712 | # Whether or not to build shared libraries. | 
 | 17713 | build_libtool_libs=$enable_shared | 
 | 17714 |  | 
 | 17715 | # Whether or not to build static libraries. | 
 | 17716 | build_old_libs=$enable_static | 
 | 17717 |  | 
 | 17718 | # Whether or not to add -lc for building shared libraries. | 
 | 17719 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 17720 |  | 
 | 17721 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 17722 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 17723 |  | 
 | 17724 | # Whether or not to optimize for fast installation. | 
 | 17725 | fast_install=$enable_fast_install | 
 | 17726 |  | 
 | 17727 | # The host system. | 
 | 17728 | host_alias=$host_alias | 
 | 17729 | host=$host | 
 | 17730 |  | 
 | 17731 | # An echo program that does not interpret backslashes. | 
 | 17732 | echo=$lt_echo | 
 | 17733 |  | 
 | 17734 | # The archiver. | 
 | 17735 | AR=$lt_AR | 
 | 17736 | AR_FLAGS=$lt_AR_FLAGS | 
 | 17737 |  | 
 | 17738 | # A C compiler. | 
 | 17739 | LTCC=$lt_LTCC | 
 | 17740 |  | 
 | 17741 | # A language-specific compiler. | 
 | 17742 | CC=$lt_compiler_RC | 
 | 17743 |  | 
 | 17744 | # Is the compiler the GNU C compiler? | 
 | 17745 | with_gcc=$GCC_RC | 
 | 17746 |  | 
 | 17747 | # An ERE matcher. | 
 | 17748 | EGREP=$lt_EGREP | 
 | 17749 |  | 
 | 17750 | # The linker used to build libraries. | 
 | 17751 | LD=$lt_LD_RC | 
 | 17752 |  | 
 | 17753 | # Whether we need hard or soft links. | 
 | 17754 | LN_S=$lt_LN_S | 
 | 17755 |  | 
 | 17756 | # A BSD-compatible nm program. | 
 | 17757 | NM=$lt_NM | 
 | 17758 |  | 
 | 17759 | # A symbol stripping program | 
 | 17760 | STRIP=$STRIP | 
 | 17761 |  | 
 | 17762 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 17763 | MAGIC_CMD=$MAGIC_CMD | 
 | 17764 |  | 
 | 17765 | # Used on cygwin: DLL creation program. | 
 | 17766 | DLLTOOL="$DLLTOOL" | 
 | 17767 |  | 
 | 17768 | # Used on cygwin: object dumper. | 
 | 17769 | OBJDUMP="$OBJDUMP" | 
 | 17770 |  | 
 | 17771 | # Used on cygwin: assembler. | 
 | 17772 | AS="$AS" | 
 | 17773 |  | 
 | 17774 | # The name of the directory that contains temporary libtool files. | 
 | 17775 | objdir=$objdir | 
 | 17776 |  | 
 | 17777 | # How to create reloadable object files. | 
 | 17778 | reload_flag=$lt_reload_flag | 
 | 17779 | reload_cmds=$lt_reload_cmds | 
 | 17780 |  | 
 | 17781 | # How to pass a linker flag through the compiler. | 
 | 17782 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 17783 |  | 
 | 17784 | # Object file suffix (normally "o"). | 
 | 17785 | objext="$ac_objext" | 
 | 17786 |  | 
 | 17787 | # Old archive suffix (normally "a"). | 
 | 17788 | libext="$libext" | 
 | 17789 |  | 
 | 17790 | # Shared library suffix (normally ".so"). | 
 | 17791 | shrext='$shrext' | 
 | 17792 |  | 
 | 17793 | # Executable file suffix (normally ""). | 
 | 17794 | exeext="$exeext" | 
 | 17795 |  | 
 | 17796 | # Additional compiler flags for building library objects. | 
 | 17797 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 17798 | pic_mode=$pic_mode | 
 | 17799 |  | 
 | 17800 | # What is the maximum length of a command? | 
 | 17801 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 17802 |  | 
 | 17803 | # Does compiler simultaneously support -c and -o options? | 
 | 17804 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 17805 |  | 
 | 17806 | # Must we lock files when doing compilation ? | 
 | 17807 | need_locks=$lt_need_locks | 
 | 17808 |  | 
 | 17809 | # Do we need the lib prefix for modules? | 
 | 17810 | need_lib_prefix=$need_lib_prefix | 
 | 17811 |  | 
 | 17812 | # Do we need a version for libraries? | 
 | 17813 | need_version=$need_version | 
 | 17814 |  | 
 | 17815 | # Whether dlopen is supported. | 
 | 17816 | dlopen_support=$enable_dlopen | 
 | 17817 |  | 
 | 17818 | # Whether dlopen of programs is supported. | 
 | 17819 | dlopen_self=$enable_dlopen_self | 
 | 17820 |  | 
 | 17821 | # Whether dlopen of statically linked programs is supported. | 
 | 17822 | dlopen_self_static=$enable_dlopen_self_static | 
 | 17823 |  | 
 | 17824 | # Compiler flag to prevent dynamic linking. | 
 | 17825 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 17826 |  | 
 | 17827 | # Compiler flag to turn off builtin functions. | 
 | 17828 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 17829 |  | 
 | 17830 | # Compiler flag to allow reflexive dlopens. | 
 | 17831 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 17832 |  | 
 | 17833 | # Compiler flag to generate shared objects directly from archives. | 
 | 17834 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 17835 |  | 
 | 17836 | # Compiler flag to generate thread-safe objects. | 
 | 17837 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 17838 |  | 
 | 17839 | # Library versioning type. | 
 | 17840 | version_type=$version_type | 
 | 17841 |  | 
 | 17842 | # Format of library name prefix. | 
 | 17843 | libname_spec=$lt_libname_spec | 
 | 17844 |  | 
 | 17845 | # List of archive names.  First name is the real one, the rest are links. | 
 | 17846 | # The last name is the one that the linker finds with -lNAME. | 
 | 17847 | library_names_spec=$lt_library_names_spec | 
 | 17848 |  | 
 | 17849 | # The coded name of the library, if different from the real name. | 
 | 17850 | soname_spec=$lt_soname_spec | 
 | 17851 |  | 
 | 17852 | # Commands used to build and install an old-style archive. | 
 | 17853 | RANLIB=$lt_RANLIB | 
 | 17854 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 17855 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 17856 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 17857 |  | 
 | 17858 | # Create an old-style archive from a shared archive. | 
 | 17859 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 17860 |  | 
 | 17861 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 17862 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 17863 |  | 
 | 17864 | # Commands used to build and install a shared archive. | 
 | 17865 | archive_cmds=$lt_archive_cmds_RC | 
 | 17866 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 17867 | postinstall_cmds=$lt_postinstall_cmds | 
 | 17868 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 17869 |  | 
 | 17870 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 17871 | module_cmds=$lt_module_cmds_RC | 
 | 17872 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 17873 |  | 
 | 17874 | # Commands to strip libraries. | 
 | 17875 | old_striplib=$lt_old_striplib | 
 | 17876 | striplib=$lt_striplib | 
 | 17877 |  | 
 | 17878 | # Dependencies to place before the objects being linked to create a | 
 | 17879 | # shared library. | 
 | 17880 | predep_objects=$lt_predep_objects_RC | 
 | 17881 |  | 
 | 17882 | # Dependencies to place after the objects being linked to create a | 
 | 17883 | # shared library. | 
 | 17884 | postdep_objects=$lt_postdep_objects_RC | 
 | 17885 |  | 
 | 17886 | # Dependencies to place before the objects being linked to create a | 
 | 17887 | # shared library. | 
 | 17888 | predeps=$lt_predeps_RC | 
 | 17889 |  | 
 | 17890 | # Dependencies to place after the objects being linked to create a | 
 | 17891 | # shared library. | 
 | 17892 | postdeps=$lt_postdeps_RC | 
 | 17893 |  | 
 | 17894 | # The library search path used internally by the compiler when linking | 
 | 17895 | # a shared library. | 
 | 17896 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 17897 |  | 
 | 17898 | # Method to check whether dependent libraries are shared objects. | 
 | 17899 | deplibs_check_method=$lt_deplibs_check_method | 
 | 17900 |  | 
 | 17901 | # Command to use when deplibs_check_method == file_magic. | 
 | 17902 | file_magic_cmd=$lt_file_magic_cmd | 
 | 17903 |  | 
 | 17904 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 17905 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 17906 |  | 
 | 17907 | # Flag that forces no undefined symbols. | 
 | 17908 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 17909 |  | 
 | 17910 | # Commands used to finish a libtool library installation in a directory. | 
 | 17911 | finish_cmds=$lt_finish_cmds | 
 | 17912 |  | 
 | 17913 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 17914 | finish_eval=$lt_finish_eval | 
 | 17915 |  | 
 | 17916 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 17917 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 17918 |  | 
 | 17919 | # Transform the output of nm in a proper C declaration | 
 | 17920 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 17921 |  | 
 | 17922 | # Transform the output of nm in a C name address pair | 
 | 17923 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 17924 |  | 
 | 17925 | # This is the shared library runtime path variable. | 
 | 17926 | runpath_var=$runpath_var | 
 | 17927 |  | 
 | 17928 | # This is the shared library path variable. | 
 | 17929 | shlibpath_var=$shlibpath_var | 
 | 17930 |  | 
 | 17931 | # Is shlibpath searched before the hard-coded library search path? | 
 | 17932 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 17933 |  | 
 | 17934 | # How to hardcode a shared library path into an executable. | 
 | 17935 | hardcode_action=$hardcode_action_RC | 
 | 17936 |  | 
 | 17937 | # Whether we should hardcode library paths into libraries. | 
 | 17938 | hardcode_into_libs=$hardcode_into_libs | 
 | 17939 |  | 
 | 17940 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 17941 | # This must work even if \$libdir does not exist. | 
 | 17942 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 17943 |  | 
 | 17944 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 17945 | # a binary during linking. This must work even if \$libdir does | 
 | 17946 | # not exist. | 
 | 17947 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 17948 |  | 
 | 17949 | # Whether we need a single -rpath flag with a separated argument. | 
 | 17950 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 17951 |  | 
 | 17952 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 17953 | # resulting binary. | 
 | 17954 | hardcode_direct=$hardcode_direct_RC | 
 | 17955 |  | 
 | 17956 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 17957 | # resulting binary. | 
 | 17958 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 17959 |  | 
 | 17960 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 17961 | # the resulting binary. | 
 | 17962 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 17963 |  | 
 | 17964 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 17965 | # and all subsequent libraries and executables linked against it. | 
 | 17966 | hardcode_automatic=$hardcode_automatic_RC | 
 | 17967 |  | 
 | 17968 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 17969 | # restored at relink time. | 
 | 17970 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 17971 |  | 
 | 17972 | # Whether libtool must link a program against all its dependency libraries. | 
 | 17973 | link_all_deplibs=$link_all_deplibs_RC | 
 | 17974 |  | 
 | 17975 | # Compile-time system search path for libraries | 
 | 17976 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 17977 |  | 
 | 17978 | # Run-time system search path for libraries | 
 | 17979 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 17980 |  | 
 | 17981 | # Fix the shell variable \$srcfile for the compiler. | 
 | 17982 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 17983 |  | 
 | 17984 | # Set to yes if exported symbols are required. | 
 | 17985 | always_export_symbols=$always_export_symbols_RC | 
 | 17986 |  | 
 | 17987 | # The commands to list exported symbols. | 
 | 17988 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 17989 |  | 
 | 17990 | # The commands to extract the exported symbol list from a shared archive. | 
 | 17991 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 17992 |  | 
 | 17993 | # Symbols that should not be listed in the preloaded symbols. | 
 | 17994 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 17995 |  | 
 | 17996 | # Symbols that must always be exported. | 
 | 17997 | include_expsyms=$lt_include_expsyms_RC | 
 | 17998 |  | 
 | 17999 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 18000 |  | 
 | 18001 | __EOF__ | 
 | 18002 |  | 
 | 18003 |  | 
 | 18004 | else | 
 | 18005 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18006 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18007 |   # libtool script then. | 
 | 18008 |   test -f Makefile && make "$ltmain" | 
 | 18009 | fi | 
 | 18010 |  | 
 | 18011 |  | 
 | 18012 | ac_ext=c | 
 | 18013 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18017 |  | 
 | 18018 | CC="$lt_save_CC" | 
 | 18019 |  | 
 | 18020 | 	;; | 
 | 18021 |  | 
 | 18022 |       *) | 
 | 18023 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 18024 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 18025 |    { (exit 1); exit 1; }; } | 
 | 18026 | 	;; | 
 | 18027 |       esac | 
 | 18028 |  | 
 | 18029 |       # Append the new tag name to the list of available tags. | 
 | 18030 |       if test -n "$tagname" ; then | 
 | 18031 |       available_tags="$available_tags $tagname" | 
 | 18032 |     fi | 
 | 18033 |     fi | 
 | 18034 |   done | 
 | 18035 |   IFS="$lt_save_ifs" | 
 | 18036 |  | 
 | 18037 |   # Now substitute the updated list of available tags. | 
 | 18038 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 18039 |     mv "${ofile}T" "$ofile" | 
 | 18040 |     chmod +x "$ofile" | 
 | 18041 |   else | 
 | 18042 |     rm -f "${ofile}T" | 
 | 18043 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 18044 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 18045 |    { (exit 1); exit 1; }; } | 
 | 18046 |   fi | 
 | 18047 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18048 |  | 
 | 18049 |  | 
 | 18050 |  | 
 | 18051 | # This can be used to rebuild libtool when needed | 
 | 18052 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 18053 |  | 
 | 18054 | # Always use our own libtool. | 
| John Criswell | 8d4221e | 2003-07-23 16:52:50 +0000 | [diff] [blame] | 18055 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18056 |  | 
 | 18057 | # Prevent multiple expansion | 
 | 18058 |  | 
 | 18059 |  | 
 | 18060 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18061 |  | 
 | 18062 |  | 
 | 18063 |  | 
 | 18064 |  | 
 | 18065 |  | 
 | 18066 |  | 
 | 18067 |  | 
 | 18068 |  | 
 | 18069 |  | 
 | 18070 |  | 
 | 18071 |  | 
 | 18072 |  | 
 | 18073 |  | 
 | 18074 |  | 
 | 18075 |  | 
 | 18076 |  | 
 | 18077 |  | 
 | 18078 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18079 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 18080 | set dummy dot; ac_word=$2 | 
 | 18081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18083 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 18084 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18085 | else | 
 | 18086 |   case $DOT in | 
 | 18087 |   [\\/]* | ?:[\\/]*) | 
 | 18088 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 18089 |   ;; | 
 | 18090 |   *) | 
 | 18091 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18092 | for as_dir in $PATH | 
 | 18093 | do | 
 | 18094 |   IFS=$as_save_IFS | 
 | 18095 |   test -z "$as_dir" && as_dir=. | 
 | 18096 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18097 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18098 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 18099 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18100 |     break 2 | 
 | 18101 |   fi | 
 | 18102 | done | 
 | 18103 | done | 
 | 18104 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18105 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18106 |   ;; | 
 | 18107 | esac | 
 | 18108 | fi | 
 | 18109 | DOT=$ac_cv_path_DOT | 
 | 18110 |  | 
 | 18111 | if test -n "$DOT"; then | 
 | 18112 |   echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 18113 | echo "${ECHO_T}$DOT" >&6 | 
 | 18114 | else | 
 | 18115 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18116 | echo "${ECHO_T}no" >&6 | 
 | 18117 | fi | 
 | 18118 |  | 
 | 18119 | # Extract the first word of "etags", so it can be a program name with args. | 
 | 18120 | set dummy etags; ac_word=$2 | 
 | 18121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18123 | if test "${ac_cv_path_ETAGS+set}" = set; then | 
 | 18124 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18125 | else | 
 | 18126 |   case $ETAGS in | 
 | 18127 |   [\\/]* | ?:[\\/]*) | 
 | 18128 |   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. | 
 | 18129 |   ;; | 
 | 18130 |   *) | 
 | 18131 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18132 | for as_dir in $PATH | 
 | 18133 | do | 
 | 18134 |   IFS=$as_save_IFS | 
 | 18135 |   test -z "$as_dir" && as_dir=. | 
 | 18136 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18137 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18138 |     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" | 
 | 18139 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18140 |     break 2 | 
 | 18141 |   fi | 
 | 18142 | done | 
 | 18143 | done | 
 | 18144 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18145 |   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18146 |   ;; | 
 | 18147 | esac | 
 | 18148 | fi | 
 | 18149 | ETAGS=$ac_cv_path_ETAGS | 
 | 18150 |  | 
 | 18151 | if test -n "$ETAGS"; then | 
 | 18152 |   echo "$as_me:$LINENO: result: $ETAGS" >&5 | 
 | 18153 | echo "${ECHO_T}$ETAGS" >&6 | 
 | 18154 | else | 
 | 18155 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18156 | echo "${ECHO_T}no" >&6 | 
 | 18157 | fi | 
 | 18158 |  | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18159 | # Extract the first word of "python", so it can be a program name with args. | 
 | 18160 | set dummy python; ac_word=$2 | 
 | 18161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18163 | if test "${ac_cv_path_PYTHON+set}" = set; then | 
 | 18164 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18165 | else | 
 | 18166 |   case $PYTHON in | 
 | 18167 |   [\\/]* | ?:[\\/]*) | 
 | 18168 |   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | 
 | 18169 |   ;; | 
 | 18170 |   *) | 
 | 18171 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18172 | for as_dir in $PATH | 
 | 18173 | do | 
 | 18174 |   IFS=$as_save_IFS | 
 | 18175 |   test -z "$as_dir" && as_dir=. | 
 | 18176 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18177 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18178 |     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | 
 | 18179 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18180 |     break 2 | 
 | 18181 |   fi | 
 | 18182 | done | 
 | 18183 | done | 
 | 18184 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18185 |   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18186 |   ;; | 
 | 18187 | esac | 
 | 18188 | fi | 
 | 18189 | PYTHON=$ac_cv_path_PYTHON | 
 | 18190 |  | 
 | 18191 | if test -n "$PYTHON"; then | 
 | 18192 |   echo "$as_me:$LINENO: result: $PYTHON" >&5 | 
 | 18193 | echo "${ECHO_T}$PYTHON" >&6 | 
 | 18194 | else | 
 | 18195 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18196 | echo "${ECHO_T}no" >&6 | 
 | 18197 | fi | 
 | 18198 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18199 | if test "$PYTHON" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18200 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18201 | 	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5 | 
 | 18202 | echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18203 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18204 | # Extract the first word of "qmtest", so it can be a program name with args. | 
 | 18205 | set dummy qmtest; ac_word=$2 | 
 | 18206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 18207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
 | 18208 | if test "${ac_cv_path_QMTEST+set}" = set; then | 
 | 18209 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18210 | else | 
 | 18211 |   case $QMTEST in | 
 | 18212 |   [\\/]* | ?:[\\/]*) | 
 | 18213 |   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path. | 
 | 18214 |   ;; | 
 | 18215 |   *) | 
 | 18216 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 18217 | for as_dir in $PATH | 
 | 18218 | do | 
 | 18219 |   IFS=$as_save_IFS | 
 | 18220 |   test -z "$as_dir" && as_dir=. | 
 | 18221 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 18222 |   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
 | 18223 |     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 18224 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 18225 |     break 2 | 
 | 18226 |   fi | 
 | 18227 | done | 
 | 18228 | done | 
 | 18229 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18230 |   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest" | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18231 |   ;; | 
 | 18232 | esac | 
 | 18233 | fi | 
 | 18234 | QMTEST=$ac_cv_path_QMTEST | 
 | 18235 |  | 
 | 18236 | if test -n "$QMTEST"; then | 
 | 18237 |   echo "$as_me:$LINENO: result: $QMTEST" >&5 | 
 | 18238 | echo "${ECHO_T}$QMTEST" >&6 | 
 | 18239 | else | 
 | 18240 |   echo "$as_me:$LINENO: result: no" >&5 | 
 | 18241 | echo "${ECHO_T}no" >&6 | 
 | 18242 | fi | 
 | 18243 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18244 | if test "$QMTEST" = "false" | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18245 | then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18246 | 	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5 | 
 | 18247 | echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;} | 
| John Criswell | 39827c8 | 2003-09-23 15:28:52 +0000 | [diff] [blame] | 18248 | fi | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18249 |  | 
 | 18250 | pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2` | 
 | 18251 | pymajor=`echo $pyversion | cut -d. -f1` | 
 | 18252 | pyminor=`echo $pyversion | cut -d. -f2` | 
 | 18253 |  | 
 | 18254 | if test "$pymajor" -ge "2" | 
 | 18255 | then | 
 | 18256 | 	if test "$pymajor" -eq "2" | 
 | 18257 | 	then | 
 | 18258 | 		if test "$pyminor" -lt "2" | 
 | 18259 | 		then | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18260 | 			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 18261 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18262 | 		fi | 
 | 18263 | 	fi | 
 | 18264 | else | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18265 | 	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5 | 
 | 18266 | echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;} | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 18267 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18268 |  | 
 | 18269 |  | 
 | 18270 |  | 
 | 18271 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18272 | echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 
 | 18273 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | 
 | 18274 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 
 | 18275 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18276 | else | 
 | 18277 |   ac_check_lib_save_LIBS=$LIBS | 
 | 18278 | LIBS="-lelf  $LIBS" | 
 | 18279 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18280 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18281 | /* confdefs.h.  */ | 
 | 18282 | _ACEOF | 
 | 18283 | cat confdefs.h >>conftest.$ac_ext | 
 | 18284 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18285 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18286 |  | 
 | 18287 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18288 | #ifdef __cplusplus | 
 | 18289 | extern "C" | 
 | 18290 | #endif | 
 | 18291 | /* We use char because int might match the return type of a gcc2 | 
 | 18292 |    builtin and then its argument prototype would still apply.  */ | 
 | 18293 | char elf_begin (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18294 | int | 
 | 18295 | main () | 
 | 18296 | { | 
 | 18297 | elf_begin (); | 
 | 18298 |   ; | 
 | 18299 |   return 0; | 
 | 18300 | } | 
 | 18301 | _ACEOF | 
 | 18302 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18304 |   (eval $ac_link) 2>&5 | 
 | 18305 |   ac_status=$? | 
 | 18306 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18307 |   (exit $ac_status); } && | 
 | 18308 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18309 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18310 |   (eval $ac_try) 2>&5 | 
 | 18311 |   ac_status=$? | 
 | 18312 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18313 |   (exit $ac_status); }; }; then | 
 | 18314 |   ac_cv_lib_elf_elf_begin=yes | 
 | 18315 | else | 
 | 18316 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18318 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18319 | ac_cv_lib_elf_elf_begin=no | 
 | 18320 | fi | 
 | 18321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18322 | LIBS=$ac_check_lib_save_LIBS | 
 | 18323 | fi | 
 | 18324 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 
 | 18325 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | 
 | 18326 | if test $ac_cv_lib_elf_elf_begin = yes; then | 
 | 18327 |   cat >>confdefs.h <<_ACEOF | 
 | 18328 | #define HAVE_LIBELF 1 | 
 | 18329 | _ACEOF | 
 | 18330 |  | 
 | 18331 |   LIBS="-lelf $LIBS" | 
 | 18332 |  | 
 | 18333 | fi | 
 | 18334 |  | 
 | 18335 |  | 
 | 18336 | echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 18337 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6 | 
 | 18338 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 18339 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18340 | else | 
 | 18341 |   ac_func_search_save_LIBS=$LIBS | 
 | 18342 | ac_cv_search_dlopen=no | 
 | 18343 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18344 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18345 | /* confdefs.h.  */ | 
 | 18346 | _ACEOF | 
 | 18347 | cat confdefs.h >>conftest.$ac_ext | 
 | 18348 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18349 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18350 |  | 
 | 18351 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18352 | #ifdef __cplusplus | 
 | 18353 | extern "C" | 
 | 18354 | #endif | 
 | 18355 | /* We use char because int might match the return type of a gcc2 | 
 | 18356 |    builtin and then its argument prototype would still apply.  */ | 
 | 18357 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18358 | int | 
 | 18359 | main () | 
 | 18360 | { | 
 | 18361 | dlopen (); | 
 | 18362 |   ; | 
 | 18363 |   return 0; | 
 | 18364 | } | 
 | 18365 | _ACEOF | 
 | 18366 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18368 |   (eval $ac_link) 2>&5 | 
 | 18369 |   ac_status=$? | 
 | 18370 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18371 |   (exit $ac_status); } && | 
 | 18372 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18373 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18374 |   (eval $ac_try) 2>&5 | 
 | 18375 |   ac_status=$? | 
 | 18376 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18377 |   (exit $ac_status); }; }; then | 
 | 18378 |   ac_cv_search_dlopen="none required" | 
 | 18379 | else | 
 | 18380 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18381 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18382 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18383 | fi | 
 | 18384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18385 | if test "$ac_cv_search_dlopen" = no; then | 
 | 18386 |   for ac_lib in dl; do | 
 | 18387 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 18388 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 18389 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18390 | /* confdefs.h.  */ | 
 | 18391 | _ACEOF | 
 | 18392 | cat confdefs.h >>conftest.$ac_ext | 
 | 18393 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18394 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18395 |  | 
 | 18396 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18397 | #ifdef __cplusplus | 
 | 18398 | extern "C" | 
 | 18399 | #endif | 
 | 18400 | /* We use char because int might match the return type of a gcc2 | 
 | 18401 |    builtin and then its argument prototype would still apply.  */ | 
 | 18402 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18403 | int | 
 | 18404 | main () | 
 | 18405 | { | 
 | 18406 | dlopen (); | 
 | 18407 |   ; | 
 | 18408 |   return 0; | 
 | 18409 | } | 
 | 18410 | _ACEOF | 
 | 18411 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18413 |   (eval $ac_link) 2>&5 | 
 | 18414 |   ac_status=$? | 
 | 18415 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18416 |   (exit $ac_status); } && | 
 | 18417 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18418 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18419 |   (eval $ac_try) 2>&5 | 
 | 18420 |   ac_status=$? | 
 | 18421 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18422 |   (exit $ac_status); }; }; then | 
 | 18423 |   ac_cv_search_dlopen="-l$ac_lib" | 
 | 18424 | break | 
 | 18425 | else | 
 | 18426 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18427 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18428 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18429 | fi | 
 | 18430 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18431 |   done | 
 | 18432 | fi | 
 | 18433 | LIBS=$ac_func_search_save_LIBS | 
 | 18434 | fi | 
 | 18435 | echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 18436 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6 | 
 | 18437 | if test "$ac_cv_search_dlopen" != no; then | 
 | 18438 |   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] | 18439 |  | 
 | 18440 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18441 | #define HAVE_DLOPEN 1 | 
 | 18442 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18443 |  | 
 | 18444 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 18445 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 18446 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18447 | fi | 
 | 18448 |  | 
 | 18449 |  | 
 | 18450 | echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 18451 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6 | 
 | 18452 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 18453 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18454 | else | 
 | 18455 |   ac_func_search_save_LIBS=$LIBS | 
 | 18456 | ac_cv_search_mallinfo=no | 
 | 18457 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18458 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18459 | /* confdefs.h.  */ | 
 | 18460 | _ACEOF | 
 | 18461 | cat confdefs.h >>conftest.$ac_ext | 
 | 18462 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18463 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18464 |  | 
 | 18465 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18466 | #ifdef __cplusplus | 
 | 18467 | extern "C" | 
 | 18468 | #endif | 
 | 18469 | /* We use char because int might match the return type of a gcc2 | 
 | 18470 |    builtin and then its argument prototype would still apply.  */ | 
 | 18471 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18472 | int | 
 | 18473 | main () | 
 | 18474 | { | 
 | 18475 | mallinfo (); | 
 | 18476 |   ; | 
 | 18477 |   return 0; | 
 | 18478 | } | 
 | 18479 | _ACEOF | 
 | 18480 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18482 |   (eval $ac_link) 2>&5 | 
 | 18483 |   ac_status=$? | 
 | 18484 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18485 |   (exit $ac_status); } && | 
 | 18486 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18487 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18488 |   (eval $ac_try) 2>&5 | 
 | 18489 |   ac_status=$? | 
 | 18490 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18491 |   (exit $ac_status); }; }; then | 
 | 18492 |   ac_cv_search_mallinfo="none required" | 
 | 18493 | else | 
 | 18494 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18495 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18496 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18497 | fi | 
 | 18498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18499 | if test "$ac_cv_search_mallinfo" = no; then | 
 | 18500 |   for ac_lib in malloc; do | 
 | 18501 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 18502 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 18503 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18504 | /* confdefs.h.  */ | 
 | 18505 | _ACEOF | 
 | 18506 | cat confdefs.h >>conftest.$ac_ext | 
 | 18507 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18508 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18509 |  | 
 | 18510 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18511 | #ifdef __cplusplus | 
 | 18512 | extern "C" | 
 | 18513 | #endif | 
 | 18514 | /* We use char because int might match the return type of a gcc2 | 
 | 18515 |    builtin and then its argument prototype would still apply.  */ | 
 | 18516 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18517 | int | 
 | 18518 | main () | 
 | 18519 | { | 
 | 18520 | mallinfo (); | 
 | 18521 |   ; | 
 | 18522 |   return 0; | 
 | 18523 | } | 
 | 18524 | _ACEOF | 
 | 18525 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18527 |   (eval $ac_link) 2>&5 | 
 | 18528 |   ac_status=$? | 
 | 18529 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18530 |   (exit $ac_status); } && | 
 | 18531 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18532 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18533 |   (eval $ac_try) 2>&5 | 
 | 18534 |   ac_status=$? | 
 | 18535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18536 |   (exit $ac_status); }; }; then | 
 | 18537 |   ac_cv_search_mallinfo="-l$ac_lib" | 
 | 18538 | break | 
 | 18539 | else | 
 | 18540 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18542 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18543 | fi | 
 | 18544 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18545 |   done | 
 | 18546 | fi | 
 | 18547 | LIBS=$ac_func_search_save_LIBS | 
 | 18548 | fi | 
 | 18549 | echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 18550 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6 | 
 | 18551 | if test "$ac_cv_search_mallinfo" != no; then | 
 | 18552 |   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] | 18553 |  | 
 | 18554 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18555 | #define HAVE_MALLINFO 1 | 
 | 18556 | _ACEOF | 
 | 18557 |  | 
 | 18558 | fi | 
 | 18559 |  | 
 | 18560 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 18561 | echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
 | 18562 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6 | 
 | 18563 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 18564 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18565 | else | 
 | 18566 |   ac_func_search_save_LIBS=$LIBS | 
 | 18567 | ac_cv_search_pthread_mutex_lock=no | 
 | 18568 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18569 | #line $LINENO "configure" | 
 | 18570 | /* confdefs.h.  */ | 
 | 18571 | _ACEOF | 
 | 18572 | cat confdefs.h >>conftest.$ac_ext | 
 | 18573 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18574 | /* end confdefs.h.  */ | 
 | 18575 |  | 
 | 18576 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18577 | #ifdef __cplusplus | 
 | 18578 | extern "C" | 
 | 18579 | #endif | 
 | 18580 | /* We use char because int might match the return type of a gcc2 | 
 | 18581 |    builtin and then its argument prototype would still apply.  */ | 
 | 18582 | char pthread_mutex_lock (); | 
 | 18583 | int | 
 | 18584 | main () | 
 | 18585 | { | 
 | 18586 | pthread_mutex_lock (); | 
 | 18587 |   ; | 
 | 18588 |   return 0; | 
 | 18589 | } | 
 | 18590 | _ACEOF | 
 | 18591 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18593 |   (eval $ac_link) 2>&5 | 
 | 18594 |   ac_status=$? | 
 | 18595 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18596 |   (exit $ac_status); } && | 
 | 18597 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18598 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18599 |   (eval $ac_try) 2>&5 | 
 | 18600 |   ac_status=$? | 
 | 18601 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18602 |   (exit $ac_status); }; }; then | 
 | 18603 |   ac_cv_search_pthread_mutex_lock="none required" | 
 | 18604 | else | 
 | 18605 |   echo "$as_me: failed program was:" >&5 | 
 | 18606 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18607 |  | 
 | 18608 | fi | 
 | 18609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18610 | if test "$ac_cv_search_pthread_mutex_lock" = no; then | 
 | 18611 |   for ac_lib in pthread; do | 
 | 18612 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 18613 |     cat >conftest.$ac_ext <<_ACEOF | 
 | 18614 | #line $LINENO "configure" | 
 | 18615 | /* confdefs.h.  */ | 
 | 18616 | _ACEOF | 
 | 18617 | cat confdefs.h >>conftest.$ac_ext | 
 | 18618 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18619 | /* end confdefs.h.  */ | 
 | 18620 |  | 
 | 18621 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 18622 | #ifdef __cplusplus | 
 | 18623 | extern "C" | 
 | 18624 | #endif | 
 | 18625 | /* We use char because int might match the return type of a gcc2 | 
 | 18626 |    builtin and then its argument prototype would still apply.  */ | 
 | 18627 | char pthread_mutex_lock (); | 
 | 18628 | int | 
 | 18629 | main () | 
 | 18630 | { | 
 | 18631 | pthread_mutex_lock (); | 
 | 18632 |   ; | 
 | 18633 |   return 0; | 
 | 18634 | } | 
 | 18635 | _ACEOF | 
 | 18636 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 18637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18638 |   (eval $ac_link) 2>&5 | 
 | 18639 |   ac_status=$? | 
 | 18640 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18641 |   (exit $ac_status); } && | 
 | 18642 |          { ac_try='test -s conftest$ac_exeext' | 
 | 18643 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18644 |   (eval $ac_try) 2>&5 | 
 | 18645 |   ac_status=$? | 
 | 18646 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18647 |   (exit $ac_status); }; }; then | 
 | 18648 |   ac_cv_search_pthread_mutex_lock="-l$ac_lib" | 
 | 18649 | break | 
 | 18650 | else | 
 | 18651 |   echo "$as_me: failed program was:" >&5 | 
 | 18652 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18653 |  | 
 | 18654 | fi | 
 | 18655 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 18656 |   done | 
 | 18657 | fi | 
 | 18658 | LIBS=$ac_func_search_save_LIBS | 
 | 18659 | fi | 
 | 18660 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 18661 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6 | 
 | 18662 | if test "$ac_cv_search_pthread_mutex_lock" != no; then | 
 | 18663 |   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS" | 
 | 18664 |  | 
 | 18665 | cat >>confdefs.h <<\_ACEOF | 
 | 18666 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 18667 | _ACEOF | 
 | 18668 |  | 
 | 18669 | fi | 
 | 18670 |  | 
 | 18671 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18672 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 18673 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
 | 18674 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 18675 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18676 | else | 
 | 18677 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 18678 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18679 | /* confdefs.h.  */ | 
 | 18680 | _ACEOF | 
 | 18681 | cat confdefs.h >>conftest.$ac_ext | 
 | 18682 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18683 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18684 | #include <stdlib.h> | 
 | 18685 | #include <stdarg.h> | 
 | 18686 | #include <string.h> | 
 | 18687 | #include <float.h> | 
 | 18688 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18689 | int | 
 | 18690 | main () | 
 | 18691 | { | 
 | 18692 |  | 
 | 18693 |   ; | 
 | 18694 |   return 0; | 
 | 18695 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18696 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18697 | rm -f conftest.$ac_objext | 
 | 18698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 18699 |   (eval $ac_compile) 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18700 |   ac_status=$? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18701 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18702 |   (exit $ac_status); } && | 
 | 18703 |          { ac_try='test -s conftest.$ac_objext' | 
 | 18704 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18705 |   (eval $ac_try) 2>&5 | 
 | 18706 |   ac_status=$? | 
 | 18707 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18708 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18709 |   ac_cv_header_stdc=yes | 
 | 18710 | else | 
 | 18711 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18712 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18713 |  | 
 | 18714 | ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18715 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18716 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18717 |  | 
 | 18718 | if test $ac_cv_header_stdc = yes; then | 
 | 18719 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 18720 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 18721 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18722 | /* confdefs.h.  */ | 
 | 18723 | _ACEOF | 
 | 18724 | cat confdefs.h >>conftest.$ac_ext | 
 | 18725 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18726 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18727 | #include <string.h> | 
 | 18728 |  | 
 | 18729 | _ACEOF | 
 | 18730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18731 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18732 |   : | 
 | 18733 | else | 
 | 18734 |   ac_cv_header_stdc=no | 
 | 18735 | fi | 
 | 18736 | rm -f conftest* | 
 | 18737 |  | 
 | 18738 | fi | 
 | 18739 |  | 
 | 18740 | if test $ac_cv_header_stdc = yes; then | 
 | 18741 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 18742 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 18743 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18744 | /* confdefs.h.  */ | 
 | 18745 | _ACEOF | 
 | 18746 | cat confdefs.h >>conftest.$ac_ext | 
 | 18747 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18748 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18749 | #include <stdlib.h> | 
 | 18750 |  | 
 | 18751 | _ACEOF | 
 | 18752 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18753 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18754 |   : | 
 | 18755 | else | 
 | 18756 |   ac_cv_header_stdc=no | 
 | 18757 | fi | 
 | 18758 | rm -f conftest* | 
 | 18759 |  | 
 | 18760 | fi | 
 | 18761 |  | 
 | 18762 | if test $ac_cv_header_stdc = yes; then | 
 | 18763 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 18764 |   if test "$cross_compiling" = yes; then | 
 | 18765 |   : | 
 | 18766 | else | 
 | 18767 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 18768 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18769 | /* confdefs.h.  */ | 
 | 18770 | _ACEOF | 
 | 18771 | cat confdefs.h >>conftest.$ac_ext | 
 | 18772 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18773 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18774 | #include <ctype.h> | 
 | 18775 | #if ((' ' & 0x0FF) == 0x020) | 
 | 18776 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 18777 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 18778 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18779 | # define ISLOWER(c) \ | 
 | 18780 |                    (('a' <= (c) && (c) <= 'i') \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18781 |                      || ('j' <= (c) && (c) <= 'r') \ | 
 | 18782 |                      || ('s' <= (c) && (c) <= 'z')) | 
 | 18783 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 18784 | #endif | 
 | 18785 |  | 
 | 18786 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 18787 | int | 
 | 18788 | main () | 
 | 18789 | { | 
 | 18790 |   int i; | 
 | 18791 |   for (i = 0; i < 256; i++) | 
 | 18792 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 18793 |         || toupper (i) != TOUPPER (i)) | 
 | 18794 |       exit(2); | 
 | 18795 |   exit (0); | 
 | 18796 | } | 
 | 18797 | _ACEOF | 
 | 18798 | rm -f conftest$ac_exeext | 
 | 18799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 18800 |   (eval $ac_link) 2>&5 | 
 | 18801 |   ac_status=$? | 
 | 18802 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18803 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 18804 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18805 |   (eval $ac_try) 2>&5 | 
 | 18806 |   ac_status=$? | 
 | 18807 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18808 |   (exit $ac_status); }; }; then | 
 | 18809 |   : | 
 | 18810 | else | 
 | 18811 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 18812 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18813 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18814 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18815 | ( exit $ac_status ) | 
 | 18816 | ac_cv_header_stdc=no | 
 | 18817 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18818 | rm -f core 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] | 18819 | fi | 
 | 18820 | fi | 
 | 18821 | fi | 
 | 18822 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 18823 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
 | 18824 | if test $ac_cv_header_stdc = yes; then | 
 | 18825 |  | 
 | 18826 | cat >>confdefs.h <<\_ACEOF | 
 | 18827 | #define STDC_HEADERS 1 | 
 | 18828 | _ACEOF | 
 | 18829 |  | 
 | 18830 | fi | 
 | 18831 |  | 
 | 18832 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 18833 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | 
 | 18834 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 18835 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18836 | else | 
 | 18837 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 18838 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18839 | /* confdefs.h.  */ | 
 | 18840 | _ACEOF | 
 | 18841 | cat confdefs.h >>conftest.$ac_ext | 
 | 18842 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18843 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18844 | #include <sys/types.h> | 
 | 18845 | #include <sys/wait.h> | 
 | 18846 | #ifndef WEXITSTATUS | 
 | 18847 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
 | 18848 | #endif | 
 | 18849 | #ifndef WIFEXITED | 
 | 18850 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 18851 | #endif | 
 | 18852 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18853 | int | 
 | 18854 | main () | 
 | 18855 | { | 
 | 18856 |   int s; | 
 | 18857 |   wait (&s); | 
 | 18858 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 18859 |   ; | 
 | 18860 |   return 0; | 
 | 18861 | } | 
 | 18862 | _ACEOF | 
 | 18863 | rm -f conftest.$ac_objext | 
 | 18864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 18865 |   (eval $ac_compile) 2>&5 | 
 | 18866 |   ac_status=$? | 
 | 18867 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18868 |   (exit $ac_status); } && | 
 | 18869 |          { ac_try='test -s conftest.$ac_objext' | 
 | 18870 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18871 |   (eval $ac_try) 2>&5 | 
 | 18872 |   ac_status=$? | 
 | 18873 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18874 |   (exit $ac_status); }; }; then | 
 | 18875 |   ac_cv_header_sys_wait_h=yes | 
 | 18876 | else | 
 | 18877 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18878 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18879 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18880 | ac_cv_header_sys_wait_h=no | 
 | 18881 | fi | 
 | 18882 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 18883 | fi | 
 | 18884 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 18885 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | 
 | 18886 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 18887 |  | 
 | 18888 | cat >>confdefs.h <<\_ACEOF | 
 | 18889 | #define HAVE_SYS_WAIT_H 1 | 
 | 18890 | _ACEOF | 
 | 18891 |  | 
 | 18892 | fi | 
 | 18893 |  | 
 | 18894 |  | 
 | 18895 |  | 
 | 18896 |  | 
 | 18897 |  | 
 | 18898 |  | 
 | 18899 |  | 
 | 18900 |  | 
 | 18901 |  | 
 | 18902 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 18903 |  | 
 | 18904 | for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18905 | do | 
 | 18906 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 18907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 18908 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 18909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 18910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 18911 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18912 | fi | 
 | 18913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 18914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 18915 | else | 
 | 18916 |   # Is the header compilable? | 
 | 18917 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 18918 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 18919 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18920 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18921 | /* confdefs.h.  */ | 
 | 18922 | _ACEOF | 
 | 18923 | cat confdefs.h >>conftest.$ac_ext | 
 | 18924 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18925 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18926 | $ac_includes_default | 
 | 18927 | #include <$ac_header> | 
 | 18928 | _ACEOF | 
 | 18929 | rm -f conftest.$ac_objext | 
 | 18930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 18931 |   (eval $ac_compile) 2>&5 | 
 | 18932 |   ac_status=$? | 
 | 18933 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18934 |   (exit $ac_status); } && | 
 | 18935 |          { ac_try='test -s conftest.$ac_objext' | 
 | 18936 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 18937 |   (eval $ac_try) 2>&5 | 
 | 18938 |   ac_status=$? | 
 | 18939 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18940 |   (exit $ac_status); }; }; then | 
 | 18941 |   ac_header_compiler=yes | 
 | 18942 | else | 
 | 18943 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18944 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18945 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18946 | ac_header_compiler=no | 
 | 18947 | fi | 
 | 18948 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 18949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 18950 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 18951 |  | 
 | 18952 | # Is the header present? | 
 | 18953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 18954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 18955 | cat >conftest.$ac_ext <<_ACEOF | 
 | 18956 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18957 | /* confdefs.h.  */ | 
 | 18958 | _ACEOF | 
 | 18959 | cat confdefs.h >>conftest.$ac_ext | 
 | 18960 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18961 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18962 | #include <$ac_header> | 
 | 18963 | _ACEOF | 
 | 18964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 18965 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 18966 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18967 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18968 |   rm -f conftest.er1 | 
 | 18969 |   cat conftest.err >&5 | 
 | 18970 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 18971 |   (exit $ac_status); } >/dev/null; then | 
 | 18972 |   if test -s conftest.err; then | 
 | 18973 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 18974 |   else | 
 | 18975 |     ac_cpp_err= | 
 | 18976 |   fi | 
 | 18977 | else | 
 | 18978 |   ac_cpp_err=yes | 
 | 18979 | fi | 
 | 18980 | if test -z "$ac_cpp_err"; then | 
 | 18981 |   ac_header_preproc=yes | 
 | 18982 | else | 
 | 18983 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18984 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 18985 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18986 |   ac_header_preproc=no | 
 | 18987 | fi | 
 | 18988 | rm -f conftest.err conftest.$ac_ext | 
 | 18989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 18990 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 18991 |  | 
 | 18992 | # So?  What about this header? | 
 | 18993 | case $ac_header_compiler:$ac_header_preproc in | 
 | 18994 |   yes:no ) | 
 | 18995 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 18996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 18997 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18998 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 18999 |     ( | 
 | 19000 |       cat <<\_ASBOX | 
 | 19001 | ## ------------------------------------ ## | 
 | 19002 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 19003 | ## ------------------------------------ ## | 
 | 19004 | _ASBOX | 
 | 19005 |     ) | | 
 | 19006 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 19007 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19008 |   no:yes ) | 
 | 19009 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 19010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 19011 |     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
 | 19012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
 | 19013 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 19015 |     ( | 
 | 19016 |       cat <<\_ASBOX | 
 | 19017 | ## ------------------------------------ ## | 
 | 19018 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 19019 | ## ------------------------------------ ## | 
 | 19020 | _ASBOX | 
 | 19021 |     ) | | 
 | 19022 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 19023 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19024 | esac | 
 | 19025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 19026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 19027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 19028 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19029 | else | 
 | 19030 |   eval "$as_ac_Header=$ac_header_preproc" | 
 | 19031 | fi | 
 | 19032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 19033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 19034 |  | 
 | 19035 | fi | 
 | 19036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 19037 |   cat >>confdefs.h <<_ACEOF | 
 | 19038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 19039 | _ACEOF | 
 | 19040 |  | 
 | 19041 | fi | 
 | 19042 |  | 
 | 19043 | done | 
 | 19044 |  | 
 | 19045 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19046 | echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 19047 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | 
 | 19048 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 19049 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19050 | else | 
 | 19051 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19052 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19053 | /* confdefs.h.  */ | 
 | 19054 | _ACEOF | 
 | 19055 | cat confdefs.h >>conftest.$ac_ext | 
 | 19056 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19057 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19058 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19059 | int | 
 | 19060 | main () | 
 | 19061 | { | 
 | 19062 | if ((pid_t *) 0) | 
 | 19063 |   return 0; | 
 | 19064 | if (sizeof (pid_t)) | 
 | 19065 |   return 0; | 
 | 19066 |   ; | 
 | 19067 |   return 0; | 
 | 19068 | } | 
 | 19069 | _ACEOF | 
 | 19070 | rm -f conftest.$ac_objext | 
 | 19071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19072 |   (eval $ac_compile) 2>&5 | 
 | 19073 |   ac_status=$? | 
 | 19074 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19075 |   (exit $ac_status); } && | 
 | 19076 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19077 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19078 |   (eval $ac_try) 2>&5 | 
 | 19079 |   ac_status=$? | 
 | 19080 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19081 |   (exit $ac_status); }; }; then | 
 | 19082 |   ac_cv_type_pid_t=yes | 
 | 19083 | else | 
 | 19084 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19085 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19086 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19087 | ac_cv_type_pid_t=no | 
 | 19088 | fi | 
 | 19089 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19090 | fi | 
 | 19091 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 19092 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | 
 | 19093 | if test $ac_cv_type_pid_t = yes; then | 
 | 19094 |   : | 
 | 19095 | else | 
 | 19096 |  | 
 | 19097 | cat >>confdefs.h <<_ACEOF | 
 | 19098 | #define pid_t int | 
 | 19099 | _ACEOF | 
 | 19100 |  | 
 | 19101 | fi | 
 | 19102 |  | 
 | 19103 | echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 19104 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | 
 | 19105 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 19106 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19107 | else | 
 | 19108 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19109 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19110 | /* confdefs.h.  */ | 
 | 19111 | _ACEOF | 
 | 19112 | cat confdefs.h >>conftest.$ac_ext | 
 | 19113 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19114 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19115 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19116 | int | 
 | 19117 | main () | 
 | 19118 | { | 
 | 19119 | if ((size_t *) 0) | 
 | 19120 |   return 0; | 
 | 19121 | if (sizeof (size_t)) | 
 | 19122 |   return 0; | 
 | 19123 |   ; | 
 | 19124 |   return 0; | 
 | 19125 | } | 
 | 19126 | _ACEOF | 
 | 19127 | rm -f conftest.$ac_objext | 
 | 19128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19129 |   (eval $ac_compile) 2>&5 | 
 | 19130 |   ac_status=$? | 
 | 19131 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19132 |   (exit $ac_status); } && | 
 | 19133 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19134 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19135 |   (eval $ac_try) 2>&5 | 
 | 19136 |   ac_status=$? | 
 | 19137 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19138 |   (exit $ac_status); }; }; then | 
 | 19139 |   ac_cv_type_size_t=yes | 
 | 19140 | else | 
 | 19141 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19142 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19143 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19144 | ac_cv_type_size_t=no | 
 | 19145 | fi | 
 | 19146 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19147 | fi | 
 | 19148 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 19149 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | 
 | 19150 | if test $ac_cv_type_size_t = yes; then | 
 | 19151 |   : | 
 | 19152 | else | 
 | 19153 |  | 
 | 19154 | cat >>confdefs.h <<_ACEOF | 
 | 19155 | #define size_t unsigned | 
 | 19156 | _ACEOF | 
 | 19157 |  | 
 | 19158 | fi | 
 | 19159 |  | 
 | 19160 | echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 19161 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | 
 | 19162 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 19163 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19164 | else | 
 | 19165 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19166 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19167 | /* confdefs.h.  */ | 
 | 19168 | _ACEOF | 
 | 19169 | cat confdefs.h >>conftest.$ac_ext | 
 | 19170 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19171 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19172 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19173 | int | 
 | 19174 | main () | 
 | 19175 | { | 
 | 19176 | if ((int64_t *) 0) | 
 | 19177 |   return 0; | 
 | 19178 | if (sizeof (int64_t)) | 
 | 19179 |   return 0; | 
 | 19180 |   ; | 
 | 19181 |   return 0; | 
 | 19182 | } | 
 | 19183 | _ACEOF | 
 | 19184 | rm -f conftest.$ac_objext | 
 | 19185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19186 |   (eval $ac_compile) 2>&5 | 
 | 19187 |   ac_status=$? | 
 | 19188 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19189 |   (exit $ac_status); } && | 
 | 19190 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19191 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19192 |   (eval $ac_try) 2>&5 | 
 | 19193 |   ac_status=$? | 
 | 19194 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19195 |   (exit $ac_status); }; }; then | 
 | 19196 |   ac_cv_type_int64_t=yes | 
 | 19197 | else | 
 | 19198 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19199 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19200 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19201 | ac_cv_type_int64_t=no | 
 | 19202 | fi | 
 | 19203 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19204 | fi | 
 | 19205 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 19206 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | 
 | 19207 | if test $ac_cv_type_int64_t = yes; then | 
 | 19208 |  | 
 | 19209 | cat >>confdefs.h <<_ACEOF | 
 | 19210 | #define HAVE_INT64_T 1 | 
 | 19211 | _ACEOF | 
 | 19212 |  | 
 | 19213 |  | 
 | 19214 | else | 
 | 19215 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 19216 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 19217 |    { (exit 1); exit 1; }; } | 
 | 19218 | fi | 
 | 19219 |  | 
 | 19220 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 19221 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | 
 | 19222 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 19223 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19224 | else | 
 | 19225 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19226 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19227 | /* confdefs.h.  */ | 
 | 19228 | _ACEOF | 
 | 19229 | cat confdefs.h >>conftest.$ac_ext | 
 | 19230 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19231 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19232 | $ac_includes_default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19233 | int | 
 | 19234 | main () | 
 | 19235 | { | 
 | 19236 | if ((uint64_t *) 0) | 
 | 19237 |   return 0; | 
 | 19238 | if (sizeof (uint64_t)) | 
 | 19239 |   return 0; | 
 | 19240 |   ; | 
 | 19241 |   return 0; | 
 | 19242 | } | 
 | 19243 | _ACEOF | 
 | 19244 | rm -f conftest.$ac_objext | 
 | 19245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19246 |   (eval $ac_compile) 2>&5 | 
 | 19247 |   ac_status=$? | 
 | 19248 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19249 |   (exit $ac_status); } && | 
 | 19250 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19251 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19252 |   (eval $ac_try) 2>&5 | 
 | 19253 |   ac_status=$? | 
 | 19254 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19255 |   (exit $ac_status); }; }; then | 
 | 19256 |   ac_cv_type_uint64_t=yes | 
 | 19257 | else | 
 | 19258 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19259 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19260 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19261 | ac_cv_type_uint64_t=no | 
 | 19262 | fi | 
 | 19263 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19264 | fi | 
 | 19265 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 19266 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | 
 | 19267 | if test $ac_cv_type_uint64_t = yes; then | 
 | 19268 |  | 
 | 19269 | cat >>confdefs.h <<_ACEOF | 
 | 19270 | #define HAVE_UINT64_T 1 | 
 | 19271 | _ACEOF | 
 | 19272 |  | 
 | 19273 |  | 
 | 19274 | else | 
 | 19275 |   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5 | 
 | 19276 | echo "$as_me: error: Type uint64_t required but not found" >&2;} | 
 | 19277 |    { (exit 1); exit 1; }; } | 
 | 19278 | fi | 
 | 19279 |  | 
 | 19280 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 19281 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | 
 | 19282 | if test "${ac_cv_header_time+set}" = set; then | 
 | 19283 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19284 | else | 
 | 19285 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19286 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19287 | /* confdefs.h.  */ | 
 | 19288 | _ACEOF | 
 | 19289 | cat confdefs.h >>conftest.$ac_ext | 
 | 19290 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19291 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19292 | #include <sys/types.h> | 
 | 19293 | #include <sys/time.h> | 
 | 19294 | #include <time.h> | 
 | 19295 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19296 | int | 
 | 19297 | main () | 
 | 19298 | { | 
 | 19299 | if ((struct tm *) 0) | 
 | 19300 | return 0; | 
 | 19301 |   ; | 
 | 19302 |   return 0; | 
 | 19303 | } | 
 | 19304 | _ACEOF | 
 | 19305 | rm -f conftest.$ac_objext | 
 | 19306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19307 |   (eval $ac_compile) 2>&5 | 
 | 19308 |   ac_status=$? | 
 | 19309 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19310 |   (exit $ac_status); } && | 
 | 19311 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19312 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19313 |   (eval $ac_try) 2>&5 | 
 | 19314 |   ac_status=$? | 
 | 19315 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19316 |   (exit $ac_status); }; }; then | 
 | 19317 |   ac_cv_header_time=yes | 
 | 19318 | else | 
 | 19319 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19320 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19321 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19322 | ac_cv_header_time=no | 
 | 19323 | fi | 
 | 19324 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19325 | fi | 
 | 19326 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 19327 | echo "${ECHO_T}$ac_cv_header_time" >&6 | 
 | 19328 | if test $ac_cv_header_time = yes; then | 
 | 19329 |  | 
 | 19330 | cat >>confdefs.h <<\_ACEOF | 
 | 19331 | #define TIME_WITH_SYS_TIME 1 | 
 | 19332 | _ACEOF | 
 | 19333 |  | 
 | 19334 | fi | 
 | 19335 |  | 
 | 19336 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 19337 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | 
 | 19338 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 19339 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19340 | else | 
 | 19341 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19342 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19343 | /* confdefs.h.  */ | 
 | 19344 | _ACEOF | 
 | 19345 | cat confdefs.h >>conftest.$ac_ext | 
 | 19346 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19347 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19348 | #include <sys/types.h> | 
 | 19349 | #include <time.h> | 
 | 19350 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19351 | int | 
 | 19352 | main () | 
 | 19353 | { | 
 | 19354 | struct tm *tp; tp->tm_sec; | 
 | 19355 |   ; | 
 | 19356 |   return 0; | 
 | 19357 | } | 
 | 19358 | _ACEOF | 
 | 19359 | rm -f conftest.$ac_objext | 
 | 19360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19361 |   (eval $ac_compile) 2>&5 | 
 | 19362 |   ac_status=$? | 
 | 19363 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19364 |   (exit $ac_status); } && | 
 | 19365 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19366 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19367 |   (eval $ac_try) 2>&5 | 
 | 19368 |   ac_status=$? | 
 | 19369 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19370 |   (exit $ac_status); }; }; then | 
 | 19371 |   ac_cv_struct_tm=time.h | 
 | 19372 | else | 
 | 19373 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19374 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19375 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19376 | ac_cv_struct_tm=sys/time.h | 
 | 19377 | fi | 
 | 19378 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19379 | fi | 
 | 19380 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 19381 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | 
 | 19382 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 19383 |  | 
 | 19384 | cat >>confdefs.h <<\_ACEOF | 
 | 19385 | #define TM_IN_SYS_TIME 1 | 
 | 19386 | _ACEOF | 
 | 19387 |  | 
 | 19388 | fi | 
 | 19389 |  | 
 | 19390 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 19391 |  | 
 | 19392 |  | 
 | 19393 |  | 
 | 19394 | 	ac_ext=c | 
 | 19395 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19399 |  | 
 | 19400 | 	if test "$cross_compiling" = yes; then | 
 | 19401 |   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | 
 | 19402 | See \`config.log' for more details." >&5 | 
 | 19403 | echo "$as_me: error: cannot run test program while cross compiling | 
 | 19404 | See \`config.log' for more details." >&2;} | 
 | 19405 |    { (exit 1); exit 1; }; } | 
 | 19406 | else | 
 | 19407 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19408 | #line $LINENO "configure" | 
 | 19409 | /* confdefs.h.  */ | 
 | 19410 | _ACEOF | 
 | 19411 | cat confdefs.h >>conftest.$ac_ext | 
 | 19412 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19413 | /* end confdefs.h.  */ | 
 | 19414 | #include <stdio.h> | 
 | 19415 | 		                 #include <stdlib.h> | 
 | 19416 | int | 
 | 19417 | main () | 
 | 19418 | { | 
 | 19419 |  | 
 | 19420 | 		                 volatile double A, B; | 
 | 19421 | 		                 char Buffer[100]; | 
 | 19422 | 		                 A = 1; | 
 | 19423 | 		                 A /= 10.0; | 
 | 19424 | 		                 sprintf(Buffer, "%a", A); | 
 | 19425 | 		                 B = atof(Buffer); | 
 | 19426 | 		                 if (A != B) | 
 | 19427 | 							 return (1); | 
 | 19428 | 		                 if (A != 0x1.999999999999ap-4) | 
 | 19429 | 							 return (1); | 
 | 19430 | 		                 return (0); | 
 | 19431 |   ; | 
 | 19432 |   return 0; | 
 | 19433 | } | 
 | 19434 | _ACEOF | 
 | 19435 | rm -f conftest$ac_exeext | 
 | 19436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 19437 |   (eval $ac_link) 2>&5 | 
 | 19438 |   ac_status=$? | 
 | 19439 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19440 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 19441 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19442 |   (eval $ac_try) 2>&5 | 
 | 19443 |   ac_status=$? | 
 | 19444 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19445 |   (exit $ac_status); }; }; then | 
 | 19446 |   ac_c_printf_a=yes | 
 | 19447 | else | 
 | 19448 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 19449 | echo "$as_me: failed program was:" >&5 | 
 | 19450 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19451 |  | 
 | 19452 | ( exit $ac_status ) | 
 | 19453 | ac_c_printf_a=no | 
 | 19454 | fi | 
 | 19455 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 19456 | fi | 
 | 19457 | 	ac_ext=c | 
 | 19458 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19462 |  | 
 | 19463 | 	if test "$ac_c_printf_a" = "yes"; then | 
 | 19464 |  | 
 | 19465 | cat >>confdefs.h <<\_ACEOF | 
 | 19466 | #define HAVE_PRINTF_A 1 | 
 | 19467 | _ACEOF | 
 | 19468 |  | 
 | 19469 | 	fi | 
 | 19470 |  | 
 | 19471 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19472 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 19473 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 | 
 | 19474 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 19475 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19476 | else | 
 | 19477 |  | 
 | 19478 |  | 
 | 19479 |  ac_ext=cc | 
 | 19480 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19484 |  | 
 | 19485 |  cat >conftest.$ac_ext <<_ACEOF | 
 | 19486 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19487 | /* confdefs.h.  */ | 
 | 19488 | _ACEOF | 
 | 19489 | cat confdefs.h >>conftest.$ac_ext | 
 | 19490 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19491 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19492 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19493 | int | 
 | 19494 | main () | 
 | 19495 | { | 
 | 19496 | using namespace Outer::Inner; return i; | 
 | 19497 |   ; | 
 | 19498 |   return 0; | 
 | 19499 | } | 
 | 19500 | _ACEOF | 
 | 19501 | rm -f conftest.$ac_objext | 
 | 19502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19503 |   (eval $ac_compile) 2>&5 | 
 | 19504 |   ac_status=$? | 
 | 19505 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19506 |   (exit $ac_status); } && | 
 | 19507 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19508 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19509 |   (eval $ac_try) 2>&5 | 
 | 19510 |   ac_status=$? | 
 | 19511 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19512 |   (exit $ac_status); }; }; then | 
 | 19513 |   ac_cv_cxx_namespaces=yes | 
 | 19514 | else | 
 | 19515 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19516 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19517 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19518 | ac_cv_cxx_namespaces=no | 
 | 19519 | fi | 
 | 19520 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19521 |  ac_ext=c | 
 | 19522 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19526 |  | 
 | 19527 |  | 
 | 19528 | fi | 
 | 19529 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 19530 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 | 
 | 19531 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 19532 |  | 
 | 19533 | cat >>confdefs.h <<\_ACEOF | 
 | 19534 | #define HAVE_NAMESPACES | 
 | 19535 | _ACEOF | 
 | 19536 |  | 
 | 19537 | fi | 
 | 19538 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19539 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 | 
 | 19540 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6 | 
 | 19541 | 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] | 19542 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19543 | else | 
 | 19544 |  | 
 | 19545 |  | 
 | 19546 |  | 
 | 19547 |   ac_ext=cc | 
 | 19548 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19552 |  | 
 | 19553 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19554 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19555 | /* confdefs.h.  */ | 
 | 19556 | _ACEOF | 
 | 19557 | cat confdefs.h >>conftest.$ac_ext | 
 | 19558 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19559 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19560 | #include <ext/hash_map> | 
 | 19561 | #ifdef HAVE_NAMESPACES | 
 | 19562 | using namespace std; | 
 | 19563 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19564 | int | 
 | 19565 | main () | 
 | 19566 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19567 | hash_map<int, int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19568 |   ; | 
 | 19569 |   return 0; | 
 | 19570 | } | 
 | 19571 | _ACEOF | 
 | 19572 | rm -f conftest.$ac_objext | 
 | 19573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19574 |   (eval $ac_compile) 2>&5 | 
 | 19575 |   ac_status=$? | 
 | 19576 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19577 |   (exit $ac_status); } && | 
 | 19578 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19579 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19580 |   (eval $ac_try) 2>&5 | 
 | 19581 |   ac_status=$? | 
 | 19582 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19583 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19584 |   ac_cv_cxx_have_std_ext_hash_map=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19585 | else | 
 | 19586 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19587 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19588 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19589 | ac_cv_cxx_have_std_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19590 | fi | 
 | 19591 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19592 |   ac_ext=c | 
 | 19593 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19597 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19598 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19599 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 | 
 | 19600 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6 | 
 | 19601 |  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19602 |  | 
 | 19603 | cat >>confdefs.h <<\_ACEOF | 
 | 19604 | #define HAVE_STD_EXT_HASH_MAP | 
 | 19605 | _ACEOF | 
 | 19606 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19607 |  fi | 
 | 19608 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 | 
 | 19609 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6 | 
 | 19610 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then | 
 | 19611 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19612 | else | 
 | 19613 |  | 
 | 19614 |  | 
 | 19615 |  | 
 | 19616 |   ac_ext=cc | 
 | 19617 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19621 |  | 
 | 19622 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19623 | #line $LINENO "configure" | 
 | 19624 | /* confdefs.h.  */ | 
 | 19625 | _ACEOF | 
 | 19626 | cat confdefs.h >>conftest.$ac_ext | 
 | 19627 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19628 | /* end confdefs.h.  */ | 
 | 19629 | #include <ext/hash_map> | 
 | 19630 | #ifdef HAVE_NAMESPACES | 
 | 19631 | using namespace __gnu_cxx; | 
 | 19632 | #endif | 
 | 19633 | int | 
 | 19634 | main () | 
 | 19635 | { | 
 | 19636 | hash_map<int,int> t; | 
 | 19637 |   ; | 
 | 19638 |   return 0; | 
 | 19639 | } | 
 | 19640 | _ACEOF | 
 | 19641 | rm -f conftest.$ac_objext | 
 | 19642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19643 |   (eval $ac_compile) 2>&5 | 
 | 19644 |   ac_status=$? | 
 | 19645 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19646 |   (exit $ac_status); } && | 
 | 19647 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19648 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19649 |   (eval $ac_try) 2>&5 | 
 | 19650 |   ac_status=$? | 
 | 19651 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19652 |   (exit $ac_status); }; }; then | 
 | 19653 |   ac_cv_cxx_have_gnu_ext_hash_map=yes | 
 | 19654 | else | 
 | 19655 |   echo "$as_me: failed program was:" >&5 | 
 | 19656 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19657 |  | 
 | 19658 | ac_cv_cxx_have_gnu_ext_hash_map=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19659 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19660 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19661 |   ac_ext=c | 
 | 19662 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19666 |  | 
 | 19667 | fi | 
 | 19668 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 | 
 | 19669 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6 | 
 | 19670 |  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19671 |  | 
 | 19672 | cat >>confdefs.h <<\_ACEOF | 
 | 19673 | #define HAVE_GNU_EXT_HASH_MAP | 
 | 19674 | _ACEOF | 
 | 19675 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19676 |  fi | 
 | 19677 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 | 
 | 19678 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6 | 
 | 19679 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then | 
 | 19680 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19681 | else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19682 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19683 |  | 
 | 19684 |  | 
 | 19685 |   ac_ext=cc | 
 | 19686 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19687 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19688 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19689 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19690 |  | 
 | 19691 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19692 | #line $LINENO "configure" | 
 | 19693 | /* confdefs.h.  */ | 
 | 19694 | _ACEOF | 
 | 19695 | cat confdefs.h >>conftest.$ac_ext | 
 | 19696 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19697 | /* end confdefs.h.  */ | 
 | 19698 | #include <hash_map> | 
 | 19699 | int | 
 | 19700 | main () | 
 | 19701 | { | 
 | 19702 | hash_map<int,int> t; | 
 | 19703 |   ; | 
 | 19704 |   return 0; | 
 | 19705 | } | 
 | 19706 | _ACEOF | 
 | 19707 | rm -f conftest.$ac_objext | 
 | 19708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19709 |   (eval $ac_compile) 2>&5 | 
 | 19710 |   ac_status=$? | 
 | 19711 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19712 |   (exit $ac_status); } && | 
 | 19713 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19714 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19715 |   (eval $ac_try) 2>&5 | 
 | 19716 |   ac_status=$? | 
 | 19717 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19718 |   (exit $ac_status); }; }; then | 
 | 19719 |   ac_cv_cxx_have_global_hash_map=yes | 
 | 19720 | else | 
 | 19721 |   echo "$as_me: failed program was:" >&5 | 
 | 19722 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19723 |  | 
 | 19724 | ac_cv_cxx_have_global_hash_map=no | 
 | 19725 | fi | 
 | 19726 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19727 |   ac_ext=c | 
 | 19728 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19732 |  | 
 | 19733 | fi | 
 | 19734 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 | 
 | 19735 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6 | 
 | 19736 |  if test "$ac_cv_cxx_have_global_hash_map" = yes; then | 
 | 19737 |  | 
 | 19738 | cat >>confdefs.h <<\_ACEOF | 
 | 19739 | #define HAVE_GLOBAL_HASH_MAP | 
 | 19740 | _ACEOF | 
 | 19741 |  | 
 | 19742 |  fi | 
 | 19743 | echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 | 
 | 19744 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6 | 
 | 19745 | 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] | 19746 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19747 | else | 
 | 19748 |  | 
 | 19749 |  | 
 | 19750 |  | 
 | 19751 |   ac_ext=cc | 
 | 19752 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19756 |  | 
 | 19757 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19758 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19759 | /* confdefs.h.  */ | 
 | 19760 | _ACEOF | 
 | 19761 | cat confdefs.h >>conftest.$ac_ext | 
 | 19762 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19763 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19764 | #include <ext/hash_set> | 
 | 19765 | #ifdef HAVE_NAMESPACES | 
 | 19766 | using namespace std; | 
 | 19767 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19768 | int | 
 | 19769 | main () | 
 | 19770 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19771 | hash_set<int> t; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19772 |   ; | 
 | 19773 |   return 0; | 
 | 19774 | } | 
 | 19775 | _ACEOF | 
 | 19776 | rm -f conftest.$ac_objext | 
 | 19777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19778 |   (eval $ac_compile) 2>&5 | 
 | 19779 |   ac_status=$? | 
 | 19780 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19781 |   (exit $ac_status); } && | 
 | 19782 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19783 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19784 |   (eval $ac_try) 2>&5 | 
 | 19785 |   ac_status=$? | 
 | 19786 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19787 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19788 |   ac_cv_cxx_have_std_ext_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19789 | else | 
 | 19790 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19791 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19792 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19793 | ac_cv_cxx_have_std_ext_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19794 | fi | 
 | 19795 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19796 |   ac_ext=c | 
 | 19797 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19801 |  | 
 | 19802 | fi | 
 | 19803 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 | 
 | 19804 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6 | 
 | 19805 |  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then | 
 | 19806 |  | 
 | 19807 | cat >>confdefs.h <<\_ACEOF | 
 | 19808 | #define HAVE_STD_EXT_HASH_SET | 
 | 19809 | _ACEOF | 
 | 19810 |  | 
 | 19811 |  fi | 
 | 19812 |  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 | 
 | 19813 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6 | 
 | 19814 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then | 
 | 19815 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19816 | else | 
 | 19817 |  | 
 | 19818 |  | 
 | 19819 |  | 
 | 19820 |   ac_ext=cc | 
 | 19821 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19822 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19823 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19824 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19825 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19826 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19827 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19828 | /* confdefs.h.  */ | 
 | 19829 | _ACEOF | 
 | 19830 | cat confdefs.h >>conftest.$ac_ext | 
 | 19831 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19832 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19833 | #include <ext/hash_set> | 
 | 19834 | #ifdef HAVE_NAMESPACES | 
 | 19835 | using namespace __gnu_cxx; | 
 | 19836 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19837 | int | 
 | 19838 | main () | 
 | 19839 | { | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19840 | hash_set<int> t; | 
 | 19841 |   ; | 
 | 19842 |   return 0; | 
 | 19843 | } | 
 | 19844 | _ACEOF | 
 | 19845 | rm -f conftest.$ac_objext | 
 | 19846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19847 |   (eval $ac_compile) 2>&5 | 
 | 19848 |   ac_status=$? | 
 | 19849 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19850 |   (exit $ac_status); } && | 
 | 19851 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19852 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19853 |   (eval $ac_try) 2>&5 | 
 | 19854 |   ac_status=$? | 
 | 19855 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19856 |   (exit $ac_status); }; }; then | 
 | 19857 |   ac_cv_cxx_have_gnu_ext_hash_set=yes | 
 | 19858 | else | 
 | 19859 |   echo "$as_me: failed program was:" >&5 | 
 | 19860 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19861 |  | 
 | 19862 | ac_cv_cxx_have_gnu_ext_hash_set=no | 
 | 19863 | fi | 
 | 19864 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19865 |   ac_ext=c | 
 | 19866 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19870 |  | 
 | 19871 | fi | 
 | 19872 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 | 
 | 19873 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6 | 
 | 19874 |  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then | 
 | 19875 |  | 
 | 19876 | cat >>confdefs.h <<\_ACEOF | 
 | 19877 | #define HAVE_GNU_EXT_HASH_SET | 
 | 19878 | _ACEOF | 
 | 19879 |  | 
 | 19880 |  fi | 
 | 19881 |  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 | 
 | 19882 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6 | 
 | 19883 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then | 
 | 19884 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19885 | else | 
 | 19886 |  | 
 | 19887 |  | 
 | 19888 |  | 
 | 19889 |   ac_ext=cc | 
 | 19890 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19891 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19892 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19893 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19894 |  | 
 | 19895 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19896 | #line $LINENO "configure" | 
 | 19897 | /* confdefs.h.  */ | 
 | 19898 | _ACEOF | 
 | 19899 | cat confdefs.h >>conftest.$ac_ext | 
 | 19900 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19901 | /* end confdefs.h.  */ | 
 | 19902 | #include <hash_set> | 
 | 19903 | int | 
 | 19904 | main () | 
 | 19905 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19906 | hash_set<int> t; return 0; | 
 | 19907 |   ; | 
 | 19908 |   return 0; | 
 | 19909 | } | 
 | 19910 | _ACEOF | 
 | 19911 | rm -f conftest.$ac_objext | 
 | 19912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19913 |   (eval $ac_compile) 2>&5 | 
 | 19914 |   ac_status=$? | 
 | 19915 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19916 |   (exit $ac_status); } && | 
 | 19917 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19918 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19919 |   (eval $ac_try) 2>&5 | 
 | 19920 |   ac_status=$? | 
 | 19921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19922 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19923 |   ac_cv_cxx_have_global_hash_set=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19924 | else | 
 | 19925 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19926 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19927 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19928 | ac_cv_cxx_have_global_hash_set=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19929 | fi | 
 | 19930 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 19931 |   ac_ext=c | 
 | 19932 | ac_cpp='$CPP $CPPFLAGS' | 
 | 19933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 19936 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19937 | fi | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19938 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 | 
 | 19939 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6 | 
 | 19940 |  if test "$ac_cv_cxx_have_global_hash_set" = yes; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19941 |  | 
 | 19942 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19943 | #define HAVE_GLOBAL_HASH_SET | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19944 | _ACEOF | 
 | 19945 |  | 
| Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 19946 |  fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19947 | echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5 | 
 | 19948 | echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6 | 
 | 19949 | if test "${ac_cv_cxx_have_ext_slist+set}" = set; then | 
 | 19950 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 19951 | else | 
 | 19952 |  | 
 | 19953 |  | 
 | 19954 |  | 
 | 19955 |   ac_ext=cc | 
 | 19956 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 19957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 19958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 19959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 19960 |  | 
 | 19961 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 19962 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19963 | /* confdefs.h.  */ | 
 | 19964 | _ACEOF | 
 | 19965 | cat confdefs.h >>conftest.$ac_ext | 
 | 19966 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19967 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19968 | #include <ext/slist> | 
 | 19969 | #ifdef HAVE_NAMESPACES | 
 | 19970 | using namespace std; | 
 | 19971 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19972 | int | 
 | 19973 | main () | 
 | 19974 | { | 
 | 19975 | slist<int> s; return 0; | 
 | 19976 |   ; | 
 | 19977 |   return 0; | 
 | 19978 | } | 
 | 19979 | _ACEOF | 
 | 19980 | rm -f conftest.$ac_objext | 
 | 19981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19982 |   (eval $ac_compile) 2>&5 | 
 | 19983 |   ac_status=$? | 
 | 19984 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19985 |   (exit $ac_status); } && | 
 | 19986 |          { ac_try='test -s conftest.$ac_objext' | 
 | 19987 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 19988 |   (eval $ac_try) 2>&5 | 
 | 19989 |   ac_status=$? | 
 | 19990 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19991 |   (exit $ac_status); }; }; then | 
 | 19992 |   ac_cv_cxx_have_ext_slist=std | 
 | 19993 | else | 
 | 19994 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19995 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19996 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19997 | ac_cv_cxx_have_ext_slist=no | 
 | 19998 | fi | 
 | 19999 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20000 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20001 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20002 | /* confdefs.h.  */ | 
 | 20003 | _ACEOF | 
 | 20004 | cat confdefs.h >>conftest.$ac_ext | 
 | 20005 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20006 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20007 | #include <ext/slist> | 
 | 20008 | #ifdef HAVE_NAMESPACES | 
 | 20009 | using namespace __gnu_cxx; | 
 | 20010 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20011 | int | 
 | 20012 | main () | 
 | 20013 | { | 
 | 20014 | slist<int> s; return 0; | 
 | 20015 |   ; | 
 | 20016 |   return 0; | 
 | 20017 | } | 
 | 20018 | _ACEOF | 
 | 20019 | rm -f conftest.$ac_objext | 
 | 20020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20021 |   (eval $ac_compile) 2>&5 | 
 | 20022 |   ac_status=$? | 
 | 20023 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20024 |   (exit $ac_status); } && | 
 | 20025 |          { ac_try='test -s conftest.$ac_objext' | 
 | 20026 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20027 |   (eval $ac_try) 2>&5 | 
 | 20028 |   ac_status=$? | 
 | 20029 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20030 |   (exit $ac_status); }; }; then | 
 | 20031 |   ac_cv_cxx_have_ext_slist=gnu | 
 | 20032 | else | 
 | 20033 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20034 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20035 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20036 | ac_cv_cxx_have_ext_slist=no | 
 | 20037 | fi | 
 | 20038 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20039 |  | 
 | 20040 |   ac_ext=c | 
 | 20041 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20045 |  | 
 | 20046 |  | 
 | 20047 | fi | 
 | 20048 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5 | 
 | 20049 | echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6 | 
 | 20050 | if test "$ac_cv_cxx_have_ext_slist" = std; then | 
 | 20051 |  | 
 | 20052 | cat >>confdefs.h <<\_ACEOF | 
 | 20053 | #define HAVE_EXT_SLIST std | 
 | 20054 | _ACEOF | 
 | 20055 |  | 
 | 20056 | fi | 
 | 20057 | if test "$ac_cv_cxx_have_ext_slist" = gnu; then | 
 | 20058 |  | 
 | 20059 | cat >>confdefs.h <<\_ACEOF | 
 | 20060 | #define HAVE_EXT_SLIST gnu | 
 | 20061 | _ACEOF | 
 | 20062 |  | 
 | 20063 | fi | 
 | 20064 |  | 
 | 20065 | echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 20066 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6 | 
 | 20067 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 20068 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20069 | else | 
 | 20070 |  | 
 | 20071 |  | 
 | 20072 |  | 
 | 20073 |   ac_ext=cc | 
 | 20074 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 20075 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20076 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20077 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 20078 |  | 
 | 20079 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20080 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20081 | /* confdefs.h.  */ | 
 | 20082 | _ACEOF | 
 | 20083 | cat confdefs.h >>conftest.$ac_ext | 
 | 20084 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20085 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20086 | #include <iterator> | 
 | 20087 | #ifdef HAVE_NAMESPACES | 
 | 20088 | using namespace std; | 
 | 20089 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20090 | int | 
 | 20091 | main () | 
 | 20092 | { | 
 | 20093 | iterator<int,int,int> t; return 0; | 
 | 20094 |   ; | 
 | 20095 |   return 0; | 
 | 20096 | } | 
 | 20097 | _ACEOF | 
 | 20098 | rm -f conftest.$ac_objext | 
 | 20099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20100 |   (eval $ac_compile) 2>&5 | 
 | 20101 |   ac_status=$? | 
 | 20102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20103 |   (exit $ac_status); } && | 
 | 20104 |          { ac_try='test -s conftest.$ac_objext' | 
 | 20105 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20106 |   (eval $ac_try) 2>&5 | 
 | 20107 |   ac_status=$? | 
 | 20108 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20109 |   (exit $ac_status); }; }; then | 
 | 20110 |   ac_cv_cxx_have_std_iterator=yes | 
 | 20111 | else | 
 | 20112 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20113 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20114 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20115 | ac_cv_cxx_have_std_iterator=no | 
 | 20116 | fi | 
 | 20117 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20118 |   ac_ext=c | 
 | 20119 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20123 |  | 
 | 20124 |  | 
 | 20125 | fi | 
 | 20126 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 20127 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6 | 
 | 20128 | if test "$ac_cv_cxx_have_std_iterator" = yes; then | 
 | 20129 |  | 
 | 20130 | cat >>confdefs.h <<\_ACEOF | 
 | 20131 | #define HAVE_STD_ITERATOR | 
 | 20132 | _ACEOF | 
 | 20133 |  | 
 | 20134 | fi | 
 | 20135 |  | 
 | 20136 | echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 20137 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6 | 
 | 20138 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 20139 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20140 | else | 
 | 20141 |  | 
 | 20142 |  | 
 | 20143 |  | 
 | 20144 |   ac_ext=cc | 
 | 20145 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 20146 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20147 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20148 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 20149 |  | 
 | 20150 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20151 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20152 | /* confdefs.h.  */ | 
 | 20153 | _ACEOF | 
 | 20154 | cat confdefs.h >>conftest.$ac_ext | 
 | 20155 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20156 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20157 | #include <iterator> | 
 | 20158 | #ifdef HAVE_NAMESPACES | 
 | 20159 | using namespace std; | 
 | 20160 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20161 | int | 
 | 20162 | main () | 
 | 20163 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20164 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20165 |   ; | 
 | 20166 |   return 0; | 
 | 20167 | } | 
 | 20168 | _ACEOF | 
 | 20169 | rm -f conftest.$ac_objext | 
 | 20170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20171 |   (eval $ac_compile) 2>&5 | 
 | 20172 |   ac_status=$? | 
 | 20173 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20174 |   (exit $ac_status); } && | 
 | 20175 |          { ac_try='test -s conftest.$ac_objext' | 
 | 20176 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20177 |   (eval $ac_try) 2>&5 | 
 | 20178 |   ac_status=$? | 
 | 20179 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20180 |   (exit $ac_status); }; }; then | 
 | 20181 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 20182 | else | 
 | 20183 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20184 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20185 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20186 | ac_cv_cxx_have_bi_iterator=no | 
 | 20187 | fi | 
 | 20188 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20189 |   ac_ext=c | 
 | 20190 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20194 |  | 
 | 20195 |  | 
 | 20196 | fi | 
 | 20197 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 20198 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6 | 
 | 20199 | if test "$ac_cv_cxx_have_bi_iterator" = yes; then | 
 | 20200 |  | 
 | 20201 | cat >>confdefs.h <<\_ACEOF | 
 | 20202 | #define HAVE_BI_ITERATOR | 
 | 20203 | _ACEOF | 
 | 20204 |  | 
 | 20205 | fi | 
 | 20206 |  | 
 | 20207 | echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 20208 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6 | 
 | 20209 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 20210 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20211 | else | 
 | 20212 |  | 
 | 20213 |  | 
 | 20214 |  | 
 | 20215 |   ac_ext=cc | 
 | 20216 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 20217 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20218 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20219 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 20220 |  | 
 | 20221 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20222 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20223 | /* confdefs.h.  */ | 
 | 20224 | _ACEOF | 
 | 20225 | cat confdefs.h >>conftest.$ac_ext | 
 | 20226 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20227 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20228 | #include <iterator> | 
 | 20229 | #ifdef HAVE_NAMESPACES | 
 | 20230 | using namespace std; | 
 | 20231 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20232 | int | 
 | 20233 | main () | 
 | 20234 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 20235 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20236 |   ; | 
 | 20237 |   return 0; | 
 | 20238 | } | 
 | 20239 | _ACEOF | 
 | 20240 | rm -f conftest.$ac_objext | 
 | 20241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20242 |   (eval $ac_compile) 2>&5 | 
 | 20243 |   ac_status=$? | 
 | 20244 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20245 |   (exit $ac_status); } && | 
 | 20246 |          { ac_try='test -s conftest.$ac_objext' | 
 | 20247 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20248 |   (eval $ac_try) 2>&5 | 
 | 20249 |   ac_status=$? | 
 | 20250 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20251 |   (exit $ac_status); }; }; then | 
 | 20252 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 20253 | else | 
 | 20254 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20255 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20256 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20257 | ac_cv_cxx_have_fwd_iterator=no | 
 | 20258 | fi | 
 | 20259 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20260 |   ac_ext=c | 
 | 20261 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20265 |  | 
 | 20266 |  | 
 | 20267 | fi | 
 | 20268 | echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 20269 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6 | 
 | 20270 | if test "$ac_cv_cxx_have_fwd_iterator" = yes; then | 
 | 20271 |  | 
 | 20272 | cat >>confdefs.h <<\_ACEOF | 
 | 20273 | #define HAVE_FWD_ITERATOR | 
 | 20274 | _ACEOF | 
 | 20275 |  | 
 | 20276 | fi | 
 | 20277 |  | 
 | 20278 |  | 
 | 20279 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 20280 | # for constant arguments.  Useless! | 
 | 20281 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 20282 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | 
 | 20283 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
 | 20284 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20285 | else | 
 | 20286 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20287 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20288 | /* confdefs.h.  */ | 
 | 20289 | _ACEOF | 
 | 20290 | cat confdefs.h >>conftest.$ac_ext | 
 | 20291 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20292 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20293 | #include <alloca.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20294 | int | 
 | 20295 | main () | 
 | 20296 | { | 
 | 20297 | char *p = (char *) alloca (2 * sizeof (int)); | 
 | 20298 |   ; | 
 | 20299 |   return 0; | 
 | 20300 | } | 
 | 20301 | _ACEOF | 
 | 20302 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 20303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20304 |   (eval $ac_link) 2>&5 | 
 | 20305 |   ac_status=$? | 
 | 20306 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20307 |   (exit $ac_status); } && | 
 | 20308 |          { ac_try='test -s conftest$ac_exeext' | 
 | 20309 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20310 |   (eval $ac_try) 2>&5 | 
 | 20311 |   ac_status=$? | 
 | 20312 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20313 |   (exit $ac_status); }; }; then | 
 | 20314 |   ac_cv_working_alloca_h=yes | 
 | 20315 | else | 
 | 20316 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20318 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20319 | ac_cv_working_alloca_h=no | 
 | 20320 | fi | 
 | 20321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 20322 | fi | 
 | 20323 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 20324 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | 
 | 20325 | if test $ac_cv_working_alloca_h = yes; then | 
 | 20326 |  | 
 | 20327 | cat >>confdefs.h <<\_ACEOF | 
 | 20328 | #define HAVE_ALLOCA_H 1 | 
 | 20329 | _ACEOF | 
 | 20330 |  | 
 | 20331 | fi | 
 | 20332 |  | 
 | 20333 | echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 20334 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | 
 | 20335 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 20336 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20337 | else | 
 | 20338 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20339 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20340 | /* confdefs.h.  */ | 
 | 20341 | _ACEOF | 
 | 20342 | cat confdefs.h >>conftest.$ac_ext | 
 | 20343 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20344 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20345 | #ifdef __GNUC__ | 
 | 20346 | # define alloca __builtin_alloca | 
 | 20347 | #else | 
 | 20348 | # ifdef _MSC_VER | 
 | 20349 | #  include <malloc.h> | 
 | 20350 | #  define alloca _alloca | 
 | 20351 | # else | 
 | 20352 | #  if HAVE_ALLOCA_H | 
 | 20353 | #   include <alloca.h> | 
 | 20354 | #  else | 
 | 20355 | #   ifdef _AIX | 
 | 20356 |  #pragma alloca | 
 | 20357 | #   else | 
 | 20358 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 20359 | char *alloca (); | 
 | 20360 | #    endif | 
 | 20361 | #   endif | 
 | 20362 | #  endif | 
 | 20363 | # endif | 
 | 20364 | #endif | 
 | 20365 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20366 | int | 
 | 20367 | main () | 
 | 20368 | { | 
 | 20369 | char *p = (char *) alloca (1); | 
 | 20370 |   ; | 
 | 20371 |   return 0; | 
 | 20372 | } | 
 | 20373 | _ACEOF | 
 | 20374 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 20375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20376 |   (eval $ac_link) 2>&5 | 
 | 20377 |   ac_status=$? | 
 | 20378 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20379 |   (exit $ac_status); } && | 
 | 20380 |          { ac_try='test -s conftest$ac_exeext' | 
 | 20381 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20382 |   (eval $ac_try) 2>&5 | 
 | 20383 |   ac_status=$? | 
 | 20384 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20385 |   (exit $ac_status); }; }; then | 
 | 20386 |   ac_cv_func_alloca_works=yes | 
 | 20387 | else | 
 | 20388 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20389 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20390 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20391 | ac_cv_func_alloca_works=no | 
 | 20392 | fi | 
 | 20393 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 20394 | fi | 
 | 20395 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 20396 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | 
 | 20397 |  | 
 | 20398 | if test $ac_cv_func_alloca_works = yes; then | 
 | 20399 |  | 
 | 20400 | cat >>confdefs.h <<\_ACEOF | 
 | 20401 | #define HAVE_ALLOCA 1 | 
 | 20402 | _ACEOF | 
 | 20403 |  | 
 | 20404 | else | 
 | 20405 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 20406 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 20407 | # contain a buggy version.  If you still want to use their alloca, | 
 | 20408 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 20409 |  | 
 | 20410 | ALLOCA=alloca.$ac_objext | 
 | 20411 |  | 
 | 20412 | cat >>confdefs.h <<\_ACEOF | 
 | 20413 | #define C_ALLOCA 1 | 
 | 20414 | _ACEOF | 
 | 20415 |  | 
 | 20416 |  | 
 | 20417 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 20418 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | 
 | 20419 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 20420 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20421 | else | 
 | 20422 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20423 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20424 | /* confdefs.h.  */ | 
 | 20425 | _ACEOF | 
 | 20426 | cat confdefs.h >>conftest.$ac_ext | 
 | 20427 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20428 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20429 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 20430 | webecray | 
 | 20431 | #else | 
 | 20432 | wenotbecray | 
 | 20433 | #endif | 
 | 20434 |  | 
 | 20435 | _ACEOF | 
 | 20436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20437 |   $EGREP "webecray" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20438 |   ac_cv_os_cray=yes | 
 | 20439 | else | 
 | 20440 |   ac_cv_os_cray=no | 
 | 20441 | fi | 
 | 20442 | rm -f conftest* | 
 | 20443 |  | 
 | 20444 | fi | 
 | 20445 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 20446 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | 
 | 20447 | if test $ac_cv_os_cray = yes; then | 
 | 20448 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 20449 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 20450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 20451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 20452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 20453 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20454 | else | 
 | 20455 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20456 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20457 | /* confdefs.h.  */ | 
 | 20458 | _ACEOF | 
 | 20459 | cat confdefs.h >>conftest.$ac_ext | 
 | 20460 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20461 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20462 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20463 |     which can conflict with char $ac_func (); below. | 
 | 20464 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 20465 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 20466 | #ifdef __STDC__ | 
 | 20467 | # include <limits.h> | 
 | 20468 | #else | 
 | 20469 | # include <assert.h> | 
 | 20470 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20471 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 20472 | #ifdef __cplusplus | 
 | 20473 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20474 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20475 | #endif | 
 | 20476 | /* We use char because int might match the return type of a gcc2 | 
 | 20477 |    builtin and then its argument prototype would still apply.  */ | 
 | 20478 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20479 | /* The GNU C library defines this for functions which it implements | 
 | 20480 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 20481 |     something starting with __ and the normal name is an alias.  */ | 
 | 20482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 20483 | choke me | 
 | 20484 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20485 | char (*f) () = $ac_func; | 
 | 20486 | #endif | 
 | 20487 | #ifdef __cplusplus | 
 | 20488 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20489 | #endif | 
 | 20490 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20491 | int | 
 | 20492 | main () | 
 | 20493 | { | 
 | 20494 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20495 |   ; | 
 | 20496 |   return 0; | 
 | 20497 | } | 
 | 20498 | _ACEOF | 
 | 20499 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 20500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20501 |   (eval $ac_link) 2>&5 | 
 | 20502 |   ac_status=$? | 
 | 20503 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20504 |   (exit $ac_status); } && | 
 | 20505 |          { ac_try='test -s conftest$ac_exeext' | 
 | 20506 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20507 |   (eval $ac_try) 2>&5 | 
 | 20508 |   ac_status=$? | 
 | 20509 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20510 |   (exit $ac_status); }; }; then | 
 | 20511 |   eval "$as_ac_var=yes" | 
 | 20512 | else | 
 | 20513 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20514 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20515 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20516 | eval "$as_ac_var=no" | 
 | 20517 | fi | 
 | 20518 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 20519 | fi | 
 | 20520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 20521 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 20522 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 20523 |  | 
 | 20524 | cat >>confdefs.h <<_ACEOF | 
 | 20525 | #define CRAY_STACKSEG_END $ac_func | 
 | 20526 | _ACEOF | 
 | 20527 |  | 
 | 20528 |     break | 
 | 20529 | fi | 
 | 20530 |  | 
 | 20531 |   done | 
 | 20532 | fi | 
 | 20533 |  | 
 | 20534 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 20535 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | 
 | 20536 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 20537 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20538 | else | 
 | 20539 |   if test "$cross_compiling" = yes; then | 
 | 20540 |   ac_cv_c_stack_direction=0 | 
 | 20541 | else | 
 | 20542 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20543 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20544 | /* confdefs.h.  */ | 
 | 20545 | _ACEOF | 
 | 20546 | cat confdefs.h >>conftest.$ac_ext | 
 | 20547 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20548 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20549 | int | 
 | 20550 | find_stack_direction () | 
 | 20551 | { | 
 | 20552 |   static char *addr = 0; | 
 | 20553 |   auto char dummy; | 
 | 20554 |   if (addr == 0) | 
 | 20555 |     { | 
 | 20556 |       addr = &dummy; | 
 | 20557 |       return find_stack_direction (); | 
 | 20558 |     } | 
 | 20559 |   else | 
 | 20560 |     return (&dummy > addr) ? 1 : -1; | 
 | 20561 | } | 
 | 20562 |  | 
 | 20563 | int | 
 | 20564 | main () | 
 | 20565 | { | 
 | 20566 |   exit (find_stack_direction () < 0); | 
 | 20567 | } | 
 | 20568 | _ACEOF | 
 | 20569 | rm -f conftest$ac_exeext | 
 | 20570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20571 |   (eval $ac_link) 2>&5 | 
 | 20572 |   ac_status=$? | 
 | 20573 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20574 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 20575 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20576 |   (eval $ac_try) 2>&5 | 
 | 20577 |   ac_status=$? | 
 | 20578 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20579 |   (exit $ac_status); }; }; then | 
 | 20580 |   ac_cv_c_stack_direction=1 | 
 | 20581 | else | 
 | 20582 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 20583 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20584 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20585 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20586 | ( exit $ac_status ) | 
 | 20587 | ac_cv_c_stack_direction=-1 | 
 | 20588 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20589 | rm -f core 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] | 20590 | fi | 
 | 20591 | fi | 
 | 20592 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 20593 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | 
 | 20594 |  | 
 | 20595 | cat >>confdefs.h <<_ACEOF | 
 | 20596 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 20597 | _ACEOF | 
 | 20598 |  | 
 | 20599 |  | 
 | 20600 | fi | 
 | 20601 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20602 |  | 
 | 20603 |  | 
 | 20604 | for ac_header in stdlib.h unistd.h | 
 | 20605 | do | 
 | 20606 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 20607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20608 |   echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 20609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 20610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20611 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20612 | fi | 
 | 20613 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 20614 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 20615 | else | 
 | 20616 |   # Is the header compilable? | 
 | 20617 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 20618 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | 
 | 20619 | cat >conftest.$ac_ext <<_ACEOF | 
 | 20620 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20621 | /* confdefs.h.  */ | 
 | 20622 | _ACEOF | 
 | 20623 | cat confdefs.h >>conftest.$ac_ext | 
 | 20624 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20625 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20626 | $ac_includes_default | 
 | 20627 | #include <$ac_header> | 
 | 20628 | _ACEOF | 
 | 20629 | rm -f conftest.$ac_objext | 
 | 20630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20631 |   (eval $ac_compile) 2>&5 | 
 | 20632 |   ac_status=$? | 
 | 20633 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20634 |   (exit $ac_status); } && | 
 | 20635 |          { ac_try='test -s conftest.$ac_objext' | 
 | 20636 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20637 |   (eval $ac_try) 2>&5 | 
 | 20638 |   ac_status=$? | 
 | 20639 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20640 |   (exit $ac_status); }; }; then | 
 | 20641 |   ac_header_compiler=yes | 
 | 20642 | else | 
 | 20643 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20644 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20645 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20646 | ac_header_compiler=no | 
 | 20647 | fi | 
 | 20648 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 20649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 20650 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
 | 20651 |  | 
 | 20652 | # Is the header present? | 
 | 20653 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 20654 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | 
 | 20655 | cat >conftest.$ac_ext <<_ACEOF | 
 | 20656 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20657 | /* confdefs.h.  */ | 
 | 20658 | _ACEOF | 
 | 20659 | cat confdefs.h >>conftest.$ac_ext | 
 | 20660 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20661 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20662 | #include <$ac_header> | 
 | 20663 | _ACEOF | 
 | 20664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
 | 20665 |   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
 | 20666 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20667 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20668 |   rm -f conftest.er1 | 
 | 20669 |   cat conftest.err >&5 | 
 | 20670 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20671 |   (exit $ac_status); } >/dev/null; then | 
 | 20672 |   if test -s conftest.err; then | 
 | 20673 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 20674 |   else | 
 | 20675 |     ac_cpp_err= | 
 | 20676 |   fi | 
 | 20677 | else | 
 | 20678 |   ac_cpp_err=yes | 
 | 20679 | fi | 
 | 20680 | if test -z "$ac_cpp_err"; then | 
 | 20681 |   ac_header_preproc=yes | 
 | 20682 | else | 
 | 20683 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20684 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20685 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20686 |   ac_header_preproc=no | 
 | 20687 | fi | 
 | 20688 | rm -f conftest.err conftest.$ac_ext | 
 | 20689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 20690 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
 | 20691 |  | 
 | 20692 | # So?  What about this header? | 
 | 20693 | case $ac_header_compiler:$ac_header_preproc in | 
 | 20694 |   yes:no ) | 
 | 20695 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 20696 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 20697 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20698 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 20699 |     ( | 
 | 20700 |       cat <<\_ASBOX | 
 | 20701 | ## ------------------------------------ ## | 
 | 20702 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 20703 | ## ------------------------------------ ## | 
 | 20704 | _ASBOX | 
 | 20705 |     ) | | 
 | 20706 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20707 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20708 |   no:yes ) | 
 | 20709 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 20710 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 20711 |     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | 
 | 20712 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | 
 | 20713 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20714 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 20715 |     ( | 
 | 20716 |       cat <<\_ASBOX | 
 | 20717 | ## ------------------------------------ ## | 
 | 20718 | ## Report this to bug-autoconf@gnu.org. ## | 
 | 20719 | ## ------------------------------------ ## | 
 | 20720 | _ASBOX | 
 | 20721 |     ) | | 
 | 20722 |       sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 20723 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20724 | esac | 
 | 20725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 20726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
 | 20727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
 | 20728 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20729 | else | 
 | 20730 |   eval "$as_ac_Header=$ac_header_preproc" | 
 | 20731 | fi | 
 | 20732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
 | 20733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
 | 20734 |  | 
 | 20735 | fi | 
 | 20736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 20737 |   cat >>confdefs.h <<_ACEOF | 
 | 20738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 20739 | _ACEOF | 
 | 20740 |  | 
 | 20741 | fi | 
 | 20742 |  | 
 | 20743 | done | 
 | 20744 |  | 
 | 20745 |  | 
 | 20746 | for ac_func in getpagesize | 
 | 20747 | do | 
 | 20748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 20749 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 20750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 20751 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 20752 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20753 | else | 
 | 20754 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20755 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20756 | /* confdefs.h.  */ | 
 | 20757 | _ACEOF | 
 | 20758 | cat confdefs.h >>conftest.$ac_ext | 
 | 20759 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20760 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20761 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20762 |     which can conflict with char $ac_func (); below. | 
 | 20763 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 20764 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 20765 | #ifdef __STDC__ | 
 | 20766 | # include <limits.h> | 
 | 20767 | #else | 
 | 20768 | # include <assert.h> | 
 | 20769 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20770 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 20771 | #ifdef __cplusplus | 
 | 20772 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20773 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20774 | #endif | 
 | 20775 | /* We use char because int might match the return type of a gcc2 | 
 | 20776 |    builtin and then its argument prototype would still apply.  */ | 
 | 20777 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20778 | /* The GNU C library defines this for functions which it implements | 
 | 20779 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 20780 |     something starting with __ and the normal name is an alias.  */ | 
 | 20781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 20782 | choke me | 
 | 20783 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20784 | char (*f) () = $ac_func; | 
 | 20785 | #endif | 
 | 20786 | #ifdef __cplusplus | 
 | 20787 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20788 | #endif | 
 | 20789 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20790 | int | 
 | 20791 | main () | 
 | 20792 | { | 
 | 20793 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20794 |   ; | 
 | 20795 |   return 0; | 
 | 20796 | } | 
 | 20797 | _ACEOF | 
 | 20798 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 20799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20800 |   (eval $ac_link) 2>&5 | 
 | 20801 |   ac_status=$? | 
 | 20802 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20803 |   (exit $ac_status); } && | 
 | 20804 |          { ac_try='test -s conftest$ac_exeext' | 
 | 20805 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20806 |   (eval $ac_try) 2>&5 | 
 | 20807 |   ac_status=$? | 
 | 20808 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20809 |   (exit $ac_status); }; }; then | 
 | 20810 |   eval "$as_ac_var=yes" | 
 | 20811 | else | 
 | 20812 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20813 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20814 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20815 | eval "$as_ac_var=no" | 
 | 20816 | fi | 
 | 20817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 20818 | fi | 
 | 20819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 20820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 20821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 20822 |   cat >>confdefs.h <<_ACEOF | 
 | 20823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 20824 | _ACEOF | 
 | 20825 |  | 
 | 20826 | fi | 
 | 20827 | done | 
 | 20828 |  | 
 | 20829 | echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 20830 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | 
 | 20831 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 20832 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20833 | else | 
 | 20834 |   if test "$cross_compiling" = yes; then | 
 | 20835 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 20836 | else | 
 | 20837 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 20838 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20839 | /* confdefs.h.  */ | 
 | 20840 | _ACEOF | 
 | 20841 | cat confdefs.h >>conftest.$ac_ext | 
 | 20842 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 20843 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20844 | $ac_includes_default | 
 | 20845 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 20846 | #undef malloc | 
 | 20847 |  | 
 | 20848 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 20849 |    Here is a matrix of mmap possibilities: | 
 | 20850 | 	mmap private not fixed | 
 | 20851 | 	mmap private fixed at somewhere currently unmapped | 
 | 20852 | 	mmap private fixed at somewhere already mapped | 
 | 20853 | 	mmap shared not fixed | 
 | 20854 | 	mmap shared fixed at somewhere currently unmapped | 
 | 20855 | 	mmap shared fixed at somewhere already mapped | 
 | 20856 |    For private mappings, we should verify that changes cannot be read() | 
 | 20857 |    back from the file, nor mmap's back from the file at a different | 
 | 20858 |    address.  (There have been systems where private was not correctly | 
 | 20859 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 20860 |    VM page cache was not coherent with the file system buffer cache | 
 | 20861 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 20862 |    For shared mappings, we should conversely verify that changes get | 
 | 20863 |    propagated back to all the places they're supposed to be. | 
 | 20864 |  | 
 | 20865 |    Grep wants private fixed already mapped. | 
 | 20866 |    The main things grep needs to know about mmap are: | 
 | 20867 |    * does it exist and is it safe to write into the mmap'd area | 
 | 20868 |    * how to use it (BSD variants)  */ | 
 | 20869 |  | 
 | 20870 | #include <fcntl.h> | 
 | 20871 | #include <sys/mman.h> | 
 | 20872 |  | 
 | 20873 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 20874 | char *malloc (); | 
 | 20875 | #endif | 
 | 20876 |  | 
 | 20877 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 20878 | #if !HAVE_GETPAGESIZE | 
 | 20879 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 20880 | # if !HAVE_SYS_PARAM_H | 
 | 20881 | #  define HAVE_SYS_PARAM_H 1 | 
 | 20882 | # endif | 
 | 20883 |  | 
 | 20884 | # ifdef _SC_PAGESIZE | 
 | 20885 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 20886 | # else /* no _SC_PAGESIZE */ | 
 | 20887 | #  if HAVE_SYS_PARAM_H | 
 | 20888 | #   include <sys/param.h> | 
 | 20889 | #   ifdef EXEC_PAGESIZE | 
 | 20890 | #    define getpagesize() EXEC_PAGESIZE | 
 | 20891 | #   else /* no EXEC_PAGESIZE */ | 
 | 20892 | #    ifdef NBPG | 
 | 20893 | #     define getpagesize() NBPG * CLSIZE | 
 | 20894 | #     ifndef CLSIZE | 
 | 20895 | #      define CLSIZE 1 | 
 | 20896 | #     endif /* no CLSIZE */ | 
 | 20897 | #    else /* no NBPG */ | 
 | 20898 | #     ifdef NBPC | 
 | 20899 | #      define getpagesize() NBPC | 
 | 20900 | #     else /* no NBPC */ | 
 | 20901 | #      ifdef PAGESIZE | 
 | 20902 | #       define getpagesize() PAGESIZE | 
 | 20903 | #      endif /* PAGESIZE */ | 
 | 20904 | #     endif /* no NBPC */ | 
 | 20905 | #    endif /* no NBPG */ | 
 | 20906 | #   endif /* no EXEC_PAGESIZE */ | 
 | 20907 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 20908 | #   define getpagesize() 8192	/* punt totally */ | 
 | 20909 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 20910 | # endif /* no _SC_PAGESIZE */ | 
 | 20911 |  | 
 | 20912 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 20913 |  | 
 | 20914 | int | 
 | 20915 | main () | 
 | 20916 | { | 
 | 20917 |   char *data, *data2, *data3; | 
 | 20918 |   int i, pagesize; | 
 | 20919 |   int fd; | 
 | 20920 |  | 
 | 20921 |   pagesize = getpagesize (); | 
 | 20922 |  | 
 | 20923 |   /* First, make a file with some known garbage in it. */ | 
 | 20924 |   data = (char *) malloc (pagesize); | 
 | 20925 |   if (!data) | 
 | 20926 |     exit (1); | 
 | 20927 |   for (i = 0; i < pagesize; ++i) | 
 | 20928 |     *(data + i) = rand (); | 
 | 20929 |   umask (0); | 
 | 20930 |   fd = creat ("conftest.mmap", 0600); | 
 | 20931 |   if (fd < 0) | 
 | 20932 |     exit (1); | 
 | 20933 |   if (write (fd, data, pagesize) != pagesize) | 
 | 20934 |     exit (1); | 
 | 20935 |   close (fd); | 
 | 20936 |  | 
 | 20937 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 20938 |      something else allocated at it.  If we can, also make sure that | 
 | 20939 |      we see the same garbage.  */ | 
 | 20940 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 20941 |   if (fd < 0) | 
 | 20942 |     exit (1); | 
 | 20943 |   data2 = (char *) malloc (2 * pagesize); | 
 | 20944 |   if (!data2) | 
 | 20945 |     exit (1); | 
 | 20946 |   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | 
 | 20947 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
 | 20948 |                      MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
 | 20949 |     exit (1); | 
 | 20950 |   for (i = 0; i < pagesize; ++i) | 
 | 20951 |     if (*(data + i) != *(data2 + i)) | 
 | 20952 |       exit (1); | 
 | 20953 |  | 
 | 20954 |   /* Finally, make sure that changes to the mapped area do not | 
 | 20955 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 20956 |      some variants of i386 svr4.0.)  */ | 
 | 20957 |   for (i = 0; i < pagesize; ++i) | 
 | 20958 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 20959 |   data3 = (char *) malloc (pagesize); | 
 | 20960 |   if (!data3) | 
 | 20961 |     exit (1); | 
 | 20962 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 20963 |     exit (1); | 
 | 20964 |   for (i = 0; i < pagesize; ++i) | 
 | 20965 |     if (*(data + i) != *(data3 + i)) | 
 | 20966 |       exit (1); | 
 | 20967 |   close (fd); | 
 | 20968 |   exit (0); | 
 | 20969 | } | 
 | 20970 | _ACEOF | 
 | 20971 | rm -f conftest$ac_exeext | 
 | 20972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 20973 |   (eval $ac_link) 2>&5 | 
 | 20974 |   ac_status=$? | 
 | 20975 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20976 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 20977 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 20978 |   (eval $ac_try) 2>&5 | 
 | 20979 |   ac_status=$? | 
 | 20980 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20981 |   (exit $ac_status); }; }; then | 
 | 20982 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 20983 | else | 
 | 20984 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 20985 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20986 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 20987 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20988 | ( exit $ac_status ) | 
 | 20989 | ac_cv_func_mmap_fixed_mapped=no | 
 | 20990 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20991 | rm -f core 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] | 20992 | fi | 
 | 20993 | fi | 
 | 20994 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 20995 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | 
 | 20996 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 20997 |  | 
 | 20998 | cat >>confdefs.h <<\_ACEOF | 
 | 20999 | #define HAVE_MMAP 1 | 
 | 21000 | _ACEOF | 
 | 21001 |  | 
 | 21002 | fi | 
 | 21003 | rm -f conftest.mmap | 
 | 21004 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21005 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
 | 21006 | then | 
 | 21007 | 	{ { echo "$as_me:$LINENO: error: mmap() required but not found" >&5 | 
 | 21008 | echo "$as_me: error: mmap() required but not found" >&2;} | 
 | 21009 |    { (exit 1); exit 1; }; } | 
 | 21010 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21011 | echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
 | 21012 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6 | 
 | 21013 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 21014 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21015 | else | 
 | 21016 |  | 
 | 21017 |  | 
 | 21018 |   ac_ext=c | 
 | 21019 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21023 |  | 
 | 21024 |   if test "$cross_compiling" = yes; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21025 |   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | 
 | 21026 | See \`config.log' for more details." >&5 | 
 | 21027 | echo "$as_me: error: cannot run test program while cross compiling | 
 | 21028 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21029 |    { (exit 1); exit 1; }; } | 
 | 21030 | else | 
 | 21031 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 21032 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21033 | /* confdefs.h.  */ | 
 | 21034 | _ACEOF | 
 | 21035 | cat confdefs.h >>conftest.$ac_ext | 
 | 21036 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21037 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21038 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21039 | #ifdef HAVE_SYS_TYPES_H | 
 | 21040 | #include <sys/types.h> | 
 | 21041 | #endif | 
 | 21042 |  | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21043 | #ifdef HAVE_SYS_MMAN_H | 
 | 21044 | #include <sys/mman.h> | 
 | 21045 | #endif | 
 | 21046 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21047 | #ifdef HAVE_FCNTL_H | 
 | 21048 | #include <fcntl.h> | 
 | 21049 | #endif | 
 | 21050 |  | 
 | 21051 |   int fd; | 
 | 21052 |   int main () { | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21053 |   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21054 | _ACEOF | 
 | 21055 | rm -f conftest$ac_exeext | 
 | 21056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21057 |   (eval $ac_link) 2>&5 | 
 | 21058 |   ac_status=$? | 
 | 21059 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21060 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 21061 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21062 |   (eval $ac_try) 2>&5 | 
 | 21063 |   ac_status=$? | 
 | 21064 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21065 |   (exit $ac_status); }; }; then | 
 | 21066 |   ac_cv_func_mmap_file=yes | 
 | 21067 | else | 
 | 21068 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 21069 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21070 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21071 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21072 | ( exit $ac_status ) | 
 | 21073 | ac_cv_func_mmap_file=no | 
 | 21074 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21075 | rm -f core 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] | 21076 | fi | 
 | 21077 |   ac_ext=c | 
 | 21078 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21082 |  | 
 | 21083 |  | 
 | 21084 | fi | 
 | 21085 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 21086 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6 | 
 | 21087 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21088 |  | 
 | 21089 | cat >>confdefs.h <<\_ACEOF | 
 | 21090 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21091 | _ACEOF | 
 | 21092 |  | 
 | 21093 |    MMAP_FILE=yes | 
 | 21094 |  | 
 | 21095 | fi | 
 | 21096 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21097 | if test "$ac_cv_func_mmap_file" = "no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21098 | then | 
 | 21099 | 	{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5 | 
 | 21100 | echo "$as_me: error: mmap() of files required but not found" >&2;} | 
 | 21101 |    { (exit 1); exit 1; }; } | 
 | 21102 | fi | 
 | 21103 | echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 21104 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6 | 
 | 21105 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
 | 21106 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21107 | else | 
 | 21108 |  | 
 | 21109 |  | 
 | 21110 |   ac_ext=c | 
 | 21111 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21115 |  | 
 | 21116 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 21117 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21118 | /* confdefs.h.  */ | 
 | 21119 | _ACEOF | 
 | 21120 | cat confdefs.h >>conftest.$ac_ext | 
 | 21121 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21122 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21123 | #include <sys/mman.h> | 
 | 21124 |   #include <unistd.h> | 
 | 21125 |   #include <fcntl.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21126 | int | 
 | 21127 | main () | 
 | 21128 | { | 
 | 21129 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 21130 |   ; | 
 | 21131 |   return 0; | 
 | 21132 | } | 
 | 21133 | _ACEOF | 
 | 21134 | rm -f conftest.$ac_objext | 
 | 21135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 21136 |   (eval $ac_compile) 2>&5 | 
 | 21137 |   ac_status=$? | 
 | 21138 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21139 |   (exit $ac_status); } && | 
 | 21140 |          { ac_try='test -s conftest.$ac_objext' | 
 | 21141 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21142 |   (eval $ac_try) 2>&5 | 
 | 21143 |   ac_status=$? | 
 | 21144 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21145 |   (exit $ac_status); }; }; then | 
 | 21146 |   ac_cv_header_mmap_anon=yes | 
 | 21147 | else | 
 | 21148 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21149 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21150 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21151 | ac_cv_header_mmap_anon=no | 
 | 21152 | fi | 
 | 21153 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 21154 |   ac_ext=c | 
 | 21155 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21159 |  | 
 | 21160 |  | 
 | 21161 | fi | 
 | 21162 | echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 21163 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6 | 
 | 21164 | if test "$ac_cv_header_mmap_anon" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 21165 |  | 
 | 21166 | cat >>confdefs.h <<\_ACEOF | 
 | 21167 | #define HAVE_MMAP_ANONYMOUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21168 | _ACEOF | 
 | 21169 |  | 
 | 21170 | fi | 
 | 21171 |  | 
 | 21172 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 21173 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | 
 | 21174 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 21175 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21176 | else | 
 | 21177 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 21178 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21179 | /* confdefs.h.  */ | 
 | 21180 | _ACEOF | 
 | 21181 | cat confdefs.h >>conftest.$ac_ext | 
 | 21182 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21183 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21184 | #include <sys/types.h> | 
 | 21185 | #include <signal.h> | 
 | 21186 | #ifdef signal | 
 | 21187 | # undef signal | 
 | 21188 | #endif | 
 | 21189 | #ifdef __cplusplus | 
 | 21190 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 21191 | #else | 
 | 21192 | void (*signal ()) (); | 
 | 21193 | #endif | 
 | 21194 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21195 | int | 
 | 21196 | main () | 
 | 21197 | { | 
 | 21198 | int i; | 
 | 21199 |   ; | 
 | 21200 |   return 0; | 
 | 21201 | } | 
 | 21202 | _ACEOF | 
 | 21203 | rm -f conftest.$ac_objext | 
 | 21204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 21205 |   (eval $ac_compile) 2>&5 | 
 | 21206 |   ac_status=$? | 
 | 21207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21208 |   (exit $ac_status); } && | 
 | 21209 |          { ac_try='test -s conftest.$ac_objext' | 
 | 21210 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21211 |   (eval $ac_try) 2>&5 | 
 | 21212 |   ac_status=$? | 
 | 21213 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21214 |   (exit $ac_status); }; }; then | 
 | 21215 |   ac_cv_type_signal=void | 
 | 21216 | else | 
 | 21217 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21218 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21219 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21220 | ac_cv_type_signal=int | 
 | 21221 | fi | 
 | 21222 | rm -f conftest.$ac_objext conftest.$ac_ext | 
 | 21223 | fi | 
 | 21224 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 21225 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | 
 | 21226 |  | 
 | 21227 | cat >>confdefs.h <<_ACEOF | 
 | 21228 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 21229 | _ACEOF | 
 | 21230 |  | 
 | 21231 |  | 
 | 21232 |  | 
 | 21233 |  | 
 | 21234 |  | 
 | 21235 |  | 
 | 21236 |  | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 21237 | for ac_func in getcwd gettimeofday strdup strtoq strtoll | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21238 | do | 
 | 21239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 21240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 21241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 
 | 21242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | 
 | 21243 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21244 | else | 
 | 21245 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 21246 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21247 | /* confdefs.h.  */ | 
 | 21248 | _ACEOF | 
 | 21249 | cat confdefs.h >>conftest.$ac_ext | 
 | 21250 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21251 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21252 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21253 |     which can conflict with char $ac_func (); below. | 
 | 21254 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 21255 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 21256 | #ifdef __STDC__ | 
 | 21257 | # include <limits.h> | 
 | 21258 | #else | 
 | 21259 | # include <assert.h> | 
 | 21260 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21261 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 21262 | #ifdef __cplusplus | 
 | 21263 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21264 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21265 | #endif | 
 | 21266 | /* We use char because int might match the return type of a gcc2 | 
 | 21267 |    builtin and then its argument prototype would still apply.  */ | 
 | 21268 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21269 | /* The GNU C library defines this for functions which it implements | 
 | 21270 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 21271 |     something starting with __ and the normal name is an alias.  */ | 
 | 21272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 21273 | choke me | 
 | 21274 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21275 | char (*f) () = $ac_func; | 
 | 21276 | #endif | 
 | 21277 | #ifdef __cplusplus | 
 | 21278 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21279 | #endif | 
 | 21280 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21281 | int | 
 | 21282 | main () | 
 | 21283 | { | 
 | 21284 | return f != $ac_func; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21285 |   ; | 
 | 21286 |   return 0; | 
 | 21287 | } | 
 | 21288 | _ACEOF | 
 | 21289 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21291 |   (eval $ac_link) 2>&5 | 
 | 21292 |   ac_status=$? | 
 | 21293 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21294 |   (exit $ac_status); } && | 
 | 21295 |          { ac_try='test -s conftest$ac_exeext' | 
 | 21296 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21297 |   (eval $ac_try) 2>&5 | 
 | 21298 |   ac_status=$? | 
 | 21299 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21300 |   (exit $ac_status); }; }; then | 
 | 21301 |   eval "$as_ac_var=yes" | 
 | 21302 | else | 
 | 21303 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21304 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21305 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21306 | eval "$as_ac_var=no" | 
 | 21307 | fi | 
 | 21308 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 21309 | fi | 
 | 21310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | 
 | 21311 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | 
 | 21312 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 21313 |   cat >>confdefs.h <<_ACEOF | 
 | 21314 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 21315 | _ACEOF | 
 | 21316 |  | 
 | 21317 | fi | 
 | 21318 | done | 
 | 21319 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21320 | echo "$as_me:$LINENO: checking for mprotect" >&5 | 
 | 21321 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6 | 
 | 21322 | if test "${ac_cv_func_mprotect+set}" = set; then | 
 | 21323 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21324 | else | 
 | 21325 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 21326 | #line $LINENO "configure" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21327 | /* confdefs.h.  */ | 
 | 21328 | _ACEOF | 
 | 21329 | cat confdefs.h >>conftest.$ac_ext | 
 | 21330 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 21331 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21332 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21333 |     which can conflict with char mprotect (); below. | 
 | 21334 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 21335 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 21336 | #ifdef __STDC__ | 
 | 21337 | # include <limits.h> | 
 | 21338 | #else | 
 | 21339 | # include <assert.h> | 
 | 21340 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21341 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 21342 | #ifdef __cplusplus | 
 | 21343 | extern "C" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21344 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21345 | #endif | 
 | 21346 | /* We use char because int might match the return type of a gcc2 | 
 | 21347 |    builtin and then its argument prototype would still apply.  */ | 
 | 21348 | char mprotect (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21349 | /* The GNU C library defines this for functions which it implements | 
 | 21350 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 21351 |     something starting with __ and the normal name is an alias.  */ | 
 | 21352 | #if defined (__stub_mprotect) || defined (__stub___mprotect) | 
 | 21353 | choke me | 
 | 21354 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21355 | char (*f) () = mprotect; | 
 | 21356 | #endif | 
 | 21357 | #ifdef __cplusplus | 
 | 21358 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21359 | #endif | 
 | 21360 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21361 | int | 
 | 21362 | main () | 
 | 21363 | { | 
 | 21364 | return f != mprotect; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21365 |   ; | 
 | 21366 |   return 0; | 
 | 21367 | } | 
 | 21368 | _ACEOF | 
 | 21369 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21371 |   (eval $ac_link) 2>&5 | 
 | 21372 |   ac_status=$? | 
 | 21373 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21374 |   (exit $ac_status); } && | 
 | 21375 |          { ac_try='test -s conftest$ac_exeext' | 
 | 21376 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21377 |   (eval $ac_try) 2>&5 | 
 | 21378 |   ac_status=$? | 
 | 21379 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21380 |   (exit $ac_status); }; }; then | 
 | 21381 |   ac_cv_func_mprotect=yes | 
 | 21382 | else | 
 | 21383 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21384 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21385 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21386 | ac_cv_func_mprotect=no | 
 | 21387 | fi | 
 | 21388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
 | 21389 | fi | 
 | 21390 | echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 | 
 | 21391 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6 | 
 | 21392 | if test $ac_cv_func_mprotect = yes; then | 
 | 21393 |   : | 
 | 21394 | else | 
 | 21395 |   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 | 
 | 21396 | echo "$as_me: error: Function mprotect() required but not found" >&2;} | 
 | 21397 |    { (exit 1); exit 1; }; } | 
 | 21398 | fi | 
 | 21399 |  | 
 | 21400 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21401 |  | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21402 |  | 
 | 21403 |  | 
 | 21404 |   ac_ext=c | 
 | 21405 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21409 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21410 |   oldcflags="$CFLAGS" | 
 | 21411 |   CFLAGS="$CFLAGS -Wl,-R." | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21412 |   cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21413 | int main() { return 0; } | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21414 | _ACEOF | 
 | 21415 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 21416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 21417 |   (eval $ac_link) 2>&5 | 
 | 21418 |   ac_status=$? | 
 | 21419 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21420 |   (exit $ac_status); } && | 
 | 21421 |          { ac_try='test -s conftest$ac_exeext' | 
 | 21422 |   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
 | 21423 |   (eval $ac_try) 2>&5 | 
 | 21424 |   ac_status=$? | 
 | 21425 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 21426 |   (exit $ac_status); }; }; then | 
 | 21427 |   ac_cv_link_use_r=yes | 
 | 21428 | else | 
 | 21429 |   echo "$as_me: failed program was:" >&5 | 
 | 21430 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 21431 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21432 | ac_cv_link_use_r=no | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21433 | fi | 
 | 21434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21435 |   CFLAGS="$oldcflags" | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21436 |   ac_ext=c | 
 | 21437 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21441 |  | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21442 |   if test "$ac_cv_link_use_r" = yes | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21443 |   then | 
| Brian Gaeke | f91a15c | 2003-11-18 06:20:41 +0000 | [diff] [blame] | 21444 |  | 
 | 21445 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | cb7a1eb | 2003-11-17 19:46:02 +0000 | [diff] [blame] | 21446 | #define HAVE_LINK_R 1 | 
 | 21447 | _ACEOF | 
 | 21448 |  | 
 | 21449 |   fi | 
 | 21450 |  | 
 | 21451 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21452 | # Check whether --enable-optimized or --disable-optimized was given. | 
 | 21453 | if test "${enable_optimized+set}" = set; then | 
 | 21454 |   enableval="$enable_optimized" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21455 |  | 
 | 21456 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21457 |   enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21458 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21459 | if test ${enableval} = "no" | 
 | 21460 | then | 
 | 21461 | 	ENABLE_OPTIMIZED= | 
 | 21462 |  | 
 | 21463 | else | 
 | 21464 | 	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 21465 |  | 
 | 21466 | fi | 
 | 21467 |  | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21468 | # Check whether --enable-spec2000 or --disable-spec2000 was given. | 
 | 21469 | if test "${enable_spec2000+set}" = set; then | 
 | 21470 |   enableval="$enable_spec2000" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21471 |  | 
 | 21472 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21473 |   enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21474 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21475 | if test ${enableval} = "no" | 
 | 21476 | then | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21477 | 	if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec | 
 | 21478 | 	then | 
 | 21479 | 		SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21480 |  | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21481 | 		USE_SPEC=USE_SPEC=1 | 
 | 21482 |  | 
 | 21483 | 	else | 
 | 21484 | 		USE_SPEC= | 
 | 21485 |  | 
 | 21486 |  | 
 | 21487 | 	fi | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21488 | else | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 21489 | 	if test ${enableval} = "" | 
 | 21490 | 	then | 
 | 21491 | 		SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec | 
 | 21492 |  | 
 | 21493 | 	else | 
 | 21494 | 		SPEC_ROOT=${enableval} | 
 | 21495 |  | 
 | 21496 | 	fi | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21497 | 	USE_SPEC=USE_SPEC=1 | 
 | 21498 |  | 
 | 21499 | fi | 
 | 21500 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21501 | # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given. | 
 | 21502 | if test "${enable_precompiled_bytecode+set}" = set; then | 
 | 21503 |   enableval="$enable_precompiled_bytecode" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21504 |  | 
 | 21505 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21506 |   enableval=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21507 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21508 | if test ${enableval} = "no" | 
 | 21509 | then | 
 | 21510 | 	UPB= | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21511 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21512 | else | 
 | 21513 | 	UPB=USE_PRECOMPILED_BYTECODE=1 | 
 | 21514 |  | 
 | 21515 | fi | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21516 |  | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21517 | # Check whether --enable-llc_diffs or --disable-llc_diffs was given. | 
 | 21518 | if test "${enable_llc_diffs+set}" = set; then | 
 | 21519 |   enableval="$enable_llc_diffs" | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21520 |  | 
 | 21521 | else | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21522 |   enableval=yes | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21523 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21524 | if test ${enableval} = "no" | 
 | 21525 | then | 
 | 21526 | 	DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1 | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 21527 |  | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21528 | else | 
 | 21529 | 	DISABLE_LLC_DIFFS= | 
 | 21530 |  | 
 | 21531 | fi | 
 | 21532 |  | 
 | 21533 | # Check whether --enable-jit or --disable-jit was given. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21534 | if test "${enable_jit+set}" = set; then | 
 | 21535 |   enableval="$enable_jit" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21536 |  | 
 | 21537 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21538 |   enableval=default | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21539 | fi; | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21540 | if test ${enableval} = "no" | 
 | 21541 | then | 
 | 21542 | 	JIT= | 
 | 21543 |  | 
 | 21544 | else | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21545 | 	case $target in | 
 | 21546 | 		*i*86*) | 
 | 21547 | 			JIT=TARGET_HAS_JIT=1 | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21548 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21549 | 			;; | 
 | 21550 | 		*sparc*) | 
 | 21551 | 			JIT=TARGET_HAS_JIT=1 | 
 | 21552 |  | 
 | 21553 | 			;; | 
 | 21554 | 		*) | 
 | 21555 | 			JIT= | 
 | 21556 |  | 
 | 21557 | 			;; | 
 | 21558 | 	esac | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 21559 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 |  | 
 | 21561 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21562 | # Check whether --with-llvmgccdir or --without-llvmgccdir was given. | 
 | 21563 | if test "${with_llvmgccdir+set}" = set; then | 
 | 21564 |   withval="$with_llvmgccdir" | 
 | 21565 |   LLVMGCCDIR=$withval | 
 | 21566 |  | 
 | 21567 | fi; | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21568 | echo "$as_me:$LINENO: checking for llvm-gcc" >&5 | 
 | 21569 | echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6 | 
 | 21570 | LLVM_GCC_CHECK=no | 
 | 21571 | if test -d "$LLVMGCCDIR" | 
 | 21572 | then | 
 | 21573 | 	if test -x "$LLVMGCCDIR/bin/gcc" | 
 | 21574 | 	then | 
 | 21575 | 		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc" | 
 | 21576 | 	fi | 
 | 21577 | fi | 
 | 21578 | llvmgccwarn=no | 
 | 21579 | echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5 | 
 | 21580 | echo "${ECHO_T}$LLVM_GCC_CHECK" >&6 | 
 | 21581 | if test "$LLVM_GCC_CHECK" = "no" | 
 | 21582 | then | 
 | 21583 |     llvmgccwarn=yes | 
 | 21584 | fi | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 21585 | echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 21586 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6 | 
 | 21587 | LLVM_GCC_SANE=no | 
 | 21588 | if test -x "$LLVM_GCC_CHECK" | 
 | 21589 | then | 
 | 21590 | 	cp /dev/null conftest.c | 
 | 21591 |     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1 | 
 | 21592 | 	if test $? -eq 0 | 
 | 21593 | 	then | 
 | 21594 | 		LLVM_GCC_SANE=yes | 
 | 21595 | 	fi | 
 | 21596 | 	rm conftest.c | 
 | 21597 | fi | 
 | 21598 | echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5 | 
 | 21599 | echo "${ECHO_T}$LLVM_GCC_SANE" >&6 | 
 | 21600 | if test "$LLVM_GCC_SANE" = "no" | 
 | 21601 | then | 
 | 21602 | 	llvmgccwarn=yes | 
 | 21603 | fi | 
 | 21604 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21605 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21606 | # Check whether --with-bcrepos or --without-bcrepos was given. | 
 | 21607 | if test "${with_bcrepos+set}" = set; then | 
 | 21608 |   withval="$with_bcrepos" | 
 | 21609 |   BCR=$withval | 
 | 21610 |  | 
 | 21611 | else | 
 | 21612 |   BCR=/home/vadve/lattner/LLVMPrograms | 
 | 21613 |  | 
 | 21614 | fi; | 
 | 21615 |  | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 21616 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21617 | # Check whether --with-papi or --without-papi was given. | 
 | 21618 | if test "${with_papi+set}" = set; then | 
 | 21619 |   withval="$with_papi" | 
 | 21620 |   PAPIDIR=$withval | 
 | 21621 |  | 
 | 21622 | else | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 21623 |   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21624 |  | 
 | 21625 | fi; | 
 | 21626 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21627 |           ac_config_files="$ac_config_files Makefile.config" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21628 | cat >confcache <<\_ACEOF | 
 | 21629 | # This file is a shell script that caches the results of configure | 
 | 21630 | # tests run on this system so they can be shared between configure | 
 | 21631 | # scripts and configure runs, see configure's option --config-cache. | 
 | 21632 | # It is not useful on other systems.  If it contains results you don't | 
 | 21633 | # want to keep, you may remove or edit it. | 
 | 21634 | # | 
 | 21635 | # config.status only pays attention to the cache file if you give it | 
 | 21636 | # the --recheck option to rerun configure. | 
 | 21637 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21638 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21639 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 21640 | # following values. | 
 | 21641 |  | 
 | 21642 | _ACEOF | 
 | 21643 |  | 
 | 21644 | # The following way of writing the cache mishandles newlines in values, | 
 | 21645 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 21646 | # So, don't put newlines in cache variables' values. | 
 | 21647 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 21648 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 21649 | { | 
 | 21650 |   (set) 2>&1 | | 
 | 21651 |     case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 21652 |     *ac_space=\ *) | 
 | 21653 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 21654 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 21655 |       sed -n \ | 
 | 21656 |         "s/'/'\\\\''/g; | 
 | 21657 |     	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
 | 21658 |       ;; | 
 | 21659 |     *) | 
 | 21660 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 21661 |       sed -n \ | 
 | 21662 |         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
 | 21663 |       ;; | 
 | 21664 |     esac; | 
 | 21665 | } | | 
 | 21666 |   sed ' | 
 | 21667 |      t clear | 
 | 21668 |      : clear | 
 | 21669 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 21670 |      t end | 
 | 21671 |      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 21672 |      : end' >>confcache | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21673 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21674 |   if test -w $cache_file; then | 
 | 21675 |     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
 | 21676 |     cat confcache >$cache_file | 
 | 21677 |   else | 
 | 21678 |     echo "not updating unwritable cache $cache_file" | 
 | 21679 |   fi | 
 | 21680 | fi | 
 | 21681 | rm -f confcache | 
 | 21682 |  | 
 | 21683 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 21684 | # Let make expand exec_prefix. | 
 | 21685 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 21686 |  | 
 | 21687 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 21688 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 21689 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 21690 | # (actually we leave an empty line to preserve line numbers). | 
 | 21691 | if test "x$srcdir" = x.; then | 
 | 21692 |   ac_vpsub='/^[ 	]*VPATH[ 	]*=/{ | 
 | 21693 | s/:*\$(srcdir):*/:/; | 
 | 21694 | s/:*\${srcdir}:*/:/; | 
 | 21695 | s/:*@srcdir@:*/:/; | 
 | 21696 | s/^\([^=]*=[ 	]*\):*/\1/; | 
 | 21697 | s/:*$//; | 
 | 21698 | s/^[^=]*=[ 	]*$//; | 
 | 21699 | }' | 
 | 21700 | fi | 
 | 21701 |  | 
 | 21702 | DEFS=-DHAVE_CONFIG_H | 
 | 21703 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21704 | ac_libobjs= | 
 | 21705 | ac_ltlibobjs= | 
 | 21706 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 21707 |   # 1. Remove the extension, and $U if already installed. | 
 | 21708 |   ac_i=`echo "$ac_i" | | 
 | 21709 |          sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
 | 21710 |   # 2. Add them. | 
 | 21711 |   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
 | 21712 |   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
 | 21713 | done | 
 | 21714 | LIBOBJS=$ac_libobjs | 
 | 21715 |  | 
 | 21716 | LTLIBOBJS=$ac_ltlibobjs | 
 | 21717 |  | 
 | 21718 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21719 |  | 
 | 21720 | : ${CONFIG_STATUS=./config.status} | 
 | 21721 | ac_clean_files_save=$ac_clean_files | 
 | 21722 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 21723 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 21724 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 21725 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 21726 | #! $SHELL | 
 | 21727 | # Generated by $as_me. | 
 | 21728 | # Run this file to recreate the current configuration. | 
 | 21729 | # Compiler output produced by configure, useful for debugging | 
 | 21730 | # configure, is in config.log if it exists. | 
 | 21731 |  | 
 | 21732 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21733 | ac_cs_recheck=false | 
 | 21734 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21735 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 21736 | _ACEOF | 
 | 21737 |  | 
 | 21738 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 | ## --------------------- ## | 
 | 21740 | ## M4sh Initialization.  ## | 
 | 21741 | ## --------------------- ## | 
 | 21742 |  | 
 | 21743 | # Be Bourne compatible | 
 | 21744 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 21745 |   emulate sh | 
 | 21746 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21747 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 21748 |   # is contrary to our usage.  Disable this feature. | 
 | 21749 |   alias -g '${1+"$@"}'='"$@"' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21750 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
 | 21751 |   set -o posix | 
 | 21752 | fi | 
 | 21753 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21754 | # Support unset when possible. | 
 | 21755 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
 | 21756 |   as_unset=unset | 
 | 21757 | else | 
 | 21758 |   as_unset=false | 
 | 21759 | fi | 
 | 21760 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21761 |  | 
 | 21762 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 21763 | $as_unset ENV MAIL MAILPATH | 
 | 21764 | PS1='$ ' | 
 | 21765 | PS2='> ' | 
 | 21766 | PS4='+ ' | 
 | 21767 |  | 
 | 21768 | # NLS nuisances. | 
 | 21769 | for as_var in \ | 
 | 21770 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 21771 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 21772 |   LC_TELEPHONE LC_TIME | 
 | 21773 | do | 
 | 21774 |   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
 | 21775 |     eval $as_var=C; export $as_var | 
 | 21776 |   else | 
 | 21777 |     $as_unset $as_var | 
 | 21778 |   fi | 
 | 21779 | done | 
 | 21780 |  | 
 | 21781 | # Required to use basename. | 
 | 21782 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 21783 |   as_expr=expr | 
 | 21784 | else | 
 | 21785 |   as_expr=false | 
 | 21786 | fi | 
 | 21787 |  | 
 | 21788 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
 | 21789 |   as_basename=basename | 
 | 21790 | else | 
 | 21791 |   as_basename=false | 
 | 21792 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21793 |  | 
 | 21794 |  | 
 | 21795 | # Name of the executable. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21796 | as_me=`$as_basename "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21797 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 21798 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 21799 | 	 X"$0" : 'X\(/\)$' \| \ | 
 | 21800 | 	 .     : '\(.\)' 2>/dev/null || | 
 | 21801 | echo X/"$0" | | 
 | 21802 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
 | 21803 |   	  /^X\/\(\/\/\)$/{ s//\1/; q; } | 
 | 21804 |   	  /^X\/\(\/\).*/{ s//\1/; q; } | 
 | 21805 |   	  s/.*/./; q'` | 
 | 21806 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21807 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21808 | # PATH needs CR, and LINENO needs CR and PATH. | 
 | 21809 | # Avoid depending upon Character Ranges. | 
 | 21810 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 21811 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 21812 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 21813 | as_cr_digits='0123456789' | 
 | 21814 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 21815 |  | 
 | 21816 | # The user is always right. | 
 | 21817 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21818 |   echo "#! /bin/sh" >conf$$.sh | 
 | 21819 |   echo  "exit 0"   >>conf$$.sh | 
 | 21820 |   chmod +x conf$$.sh | 
 | 21821 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21822 |     PATH_SEPARATOR=';' | 
 | 21823 |   else | 
 | 21824 |     PATH_SEPARATOR=: | 
 | 21825 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21826 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21827 | fi | 
 | 21828 |  | 
 | 21829 |  | 
 | 21830 |   as_lineno_1=$LINENO | 
 | 21831 |   as_lineno_2=$LINENO | 
 | 21832 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 21833 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 21834 |   test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
 | 21835 |   # Find who we are.  Look in the path if we contain no path at all | 
 | 21836 |   # relative or not. | 
 | 21837 |   case $0 in | 
 | 21838 |     *[\\/]* ) as_myself=$0 ;; | 
 | 21839 |     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 21840 | for as_dir in $PATH | 
 | 21841 | do | 
 | 21842 |   IFS=$as_save_IFS | 
 | 21843 |   test -z "$as_dir" && as_dir=. | 
 | 21844 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 21845 | done | 
 | 21846 |  | 
 | 21847 |        ;; | 
 | 21848 |   esac | 
 | 21849 |   # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 21850 |   # in which case we are not to be found in the path. | 
 | 21851 |   if test "x$as_myself" = x; then | 
 | 21852 |     as_myself=$0 | 
 | 21853 |   fi | 
 | 21854 |   if test ! -f "$as_myself"; then | 
 | 21855 |     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
 | 21856 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
 | 21857 |    { (exit 1); exit 1; }; } | 
 | 21858 |   fi | 
 | 21859 |   case $CONFIG_SHELL in | 
 | 21860 |   '') | 
 | 21861 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 21862 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 21863 | do | 
 | 21864 |   IFS=$as_save_IFS | 
 | 21865 |   test -z "$as_dir" && as_dir=. | 
 | 21866 |   for as_base in sh bash ksh sh5; do | 
 | 21867 | 	 case $as_dir in | 
 | 21868 | 	 /*) | 
 | 21869 | 	   if ("$as_dir/$as_base" -c ' | 
 | 21870 |   as_lineno_1=$LINENO | 
 | 21871 |   as_lineno_2=$LINENO | 
 | 21872 |   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
 | 21873 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 21874 |   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] | 21875 | 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
 | 21876 | 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21877 | 	     CONFIG_SHELL=$as_dir/$as_base | 
 | 21878 | 	     export CONFIG_SHELL | 
 | 21879 | 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
 | 21880 | 	   fi;; | 
 | 21881 | 	 esac | 
 | 21882 |        done | 
 | 21883 | done | 
 | 21884 | ;; | 
 | 21885 |   esac | 
 | 21886 |  | 
 | 21887 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 21888 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
 | 21889 |   # line-number line before each line; the second 'sed' does the real | 
 | 21890 |   # work.  The second script uses 'N' to pair each line-number line | 
 | 21891 |   # with the numbered line, and appends trailing '-' during | 
 | 21892 |   # substitution so that $LINENO is not a special case at line end. | 
 | 21893 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
 | 21894 |   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
 | 21895 |   sed '=' <$as_myself | | 
 | 21896 |     sed ' | 
 | 21897 |       N | 
 | 21898 |       s,$,-, | 
 | 21899 |       : loop | 
 | 21900 |       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
 | 21901 |       t loop | 
 | 21902 |       s,-$,, | 
 | 21903 |       s,^['$as_cr_digits']*\n,, | 
 | 21904 |     ' >$as_me.lineno && | 
 | 21905 |   chmod +x $as_me.lineno || | 
 | 21906 |     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
 | 21907 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
 | 21908 |    { (exit 1); exit 1; }; } | 
 | 21909 |  | 
 | 21910 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 21911 |   # (the dirname of $[0] is not the place where we might find the | 
 | 21912 |   # original and so on.  Autoconf is especially sensible to this). | 
 | 21913 |   . ./$as_me.lineno | 
 | 21914 |   # Exit status is that of the last command. | 
 | 21915 |   exit | 
 | 21916 | } | 
 | 21917 |  | 
 | 21918 |  | 
 | 21919 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
 | 21920 |   *c*,-n*) ECHO_N= ECHO_C=' | 
 | 21921 | ' ECHO_T='	' ;; | 
 | 21922 |   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
 | 21923 |   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
 | 21924 | esac | 
 | 21925 |  | 
 | 21926 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
 | 21927 |   as_expr=expr | 
 | 21928 | else | 
 | 21929 |   as_expr=false | 
 | 21930 | fi | 
 | 21931 |  | 
 | 21932 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 21933 | echo >conf$$.file | 
 | 21934 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 21935 |   # We could just check for DJGPP; but this test a) works b) is more generic | 
 | 21936 |   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
 | 21937 |   if test -f conf$$.exe; then | 
 | 21938 |     # Don't use ln at all; we don't have any links | 
 | 21939 |     as_ln_s='cp -p' | 
 | 21940 |   else | 
 | 21941 |     as_ln_s='ln -s' | 
 | 21942 |   fi | 
 | 21943 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 21944 |   as_ln_s=ln | 
 | 21945 | else | 
 | 21946 |   as_ln_s='cp -p' | 
 | 21947 | fi | 
 | 21948 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 21949 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21950 | if mkdir -p . 2>/dev/null; then | 
 | 21951 |   as_mkdir_p=: | 
 | 21952 | else | 
 | 21953 |   as_mkdir_p=false | 
 | 21954 | fi | 
 | 21955 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21956 | as_executable_p="test -f" | 
 | 21957 |  | 
 | 21958 | # Sed expression to map a string onto a valid CPP name. | 
 | 21959 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
 | 21960 |  | 
 | 21961 | # Sed expression to map a string onto a valid variable name. | 
 | 21962 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
 | 21963 |  | 
 | 21964 |  | 
 | 21965 | # IFS | 
 | 21966 | # We need space, tab and new line, in precisely that order. | 
 | 21967 | as_nl=' | 
 | 21968 | ' | 
 | 21969 | IFS=" 	$as_nl" | 
 | 21970 |  | 
 | 21971 | # CDPATH. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21972 | $as_unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21973 |  | 
 | 21974 | exec 6>&1 | 
 | 21975 |  | 
 | 21976 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
 | 21977 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 21978 | # values after options handling.  Logging --version etc. is OK. | 
 | 21979 | exec 5>>config.log | 
 | 21980 | { | 
 | 21981 |   echo | 
 | 21982 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 21983 | ## Running $as_me. ## | 
 | 21984 | _ASBOX | 
 | 21985 | } >&5 | 
 | 21986 | cat >&5 <<_CSEOF | 
 | 21987 |  | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 21988 | This file was extended by [LLVM] $as_me [1.1], which was | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21989 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21990 |  | 
 | 21991 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 21992 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 21993 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 21994 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 21995 |   $ $0 $@ | 
 | 21996 |  | 
 | 21997 | _CSEOF | 
 | 21998 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
 | 21999 | echo >&5 | 
 | 22000 | _ACEOF | 
 | 22001 |  | 
 | 22002 | # Files that config.status was made for. | 
 | 22003 | if test -n "$ac_config_files"; then | 
 | 22004 |   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
 | 22005 | fi | 
 | 22006 |  | 
 | 22007 | if test -n "$ac_config_headers"; then | 
 | 22008 |   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
 | 22009 | fi | 
 | 22010 |  | 
 | 22011 | if test -n "$ac_config_links"; then | 
 | 22012 |   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
 | 22013 | fi | 
 | 22014 |  | 
 | 22015 | if test -n "$ac_config_commands"; then | 
 | 22016 |   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
 | 22017 | fi | 
 | 22018 |  | 
 | 22019 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22020 |  | 
 | 22021 | ac_cs_usage="\ | 
 | 22022 | \`$as_me' instantiates files from templates according to the | 
 | 22023 | current configuration. | 
 | 22024 |  | 
 | 22025 | Usage: $0 [OPTIONS] [FILE]... | 
 | 22026 |  | 
 | 22027 |   -h, --help       print this help, then exit | 
 | 22028 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22029 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22030 |   -d, --debug      don't remove temporary files | 
 | 22031 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 22032 |   --file=FILE[:TEMPLATE] | 
 | 22033 |                    instantiate the configuration file FILE | 
 | 22034 |   --header=FILE[:TEMPLATE] | 
 | 22035 |                    instantiate the configuration header FILE | 
 | 22036 |  | 
 | 22037 | Configuration files: | 
 | 22038 | $config_files | 
 | 22039 |  | 
 | 22040 | Configuration headers: | 
 | 22041 | $config_headers | 
 | 22042 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22043 | Configuration commands: | 
 | 22044 | $config_commands | 
 | 22045 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22046 | Report bugs to <bug-autoconf@gnu.org>." | 
 | 22047 | _ACEOF | 
 | 22048 |  | 
 | 22049 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 22050 | ac_cs_version="\\ | 
| John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 22051 | [LLVM] config.status [1.1] | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22052 | configured by $0, generated by GNU Autoconf 2.57, | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22053 |   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
 | 22054 |  | 
 | 22055 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | 
 | 22056 | Free Software Foundation, Inc. | 
 | 22057 | This config.status script is free software; the Free Software Foundation | 
 | 22058 | gives unlimited permission to copy, distribute and modify it." | 
 | 22059 | srcdir=$srcdir | 
 | 22060 | INSTALL="$INSTALL" | 
 | 22061 | _ACEOF | 
 | 22062 |  | 
 | 22063 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22064 | # If no file are specified by the user, then we need to provide default | 
 | 22065 | # value.  By we need to know if files were specified by the user. | 
 | 22066 | ac_need_defaults=: | 
 | 22067 | while test $# != 0 | 
 | 22068 | do | 
 | 22069 |   case $1 in | 
 | 22070 |   --*=*) | 
 | 22071 |     ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
 | 22072 |     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22073 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22074 |     ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22075 |   -*) | 
 | 22076 |     ac_option=$1 | 
 | 22077 |     ac_optarg=$2 | 
 | 22078 |     ac_shift=shift | 
 | 22079 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22080 |   *) # This is not an option, so the user has probably given explicit | 
 | 22081 |      # arguments. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22082 |      ac_option=$1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22083 |      ac_need_defaults=false;; | 
 | 22084 |   esac | 
 | 22085 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22086 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22087 |   # Handling of the options. | 
 | 22088 | _ACEOF | 
| John Criswell | d9cd144 | 2003-09-09 20:52:17 +0000 | [diff] [blame] | 22089 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22090 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 22091 |     ac_cs_recheck=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22092 |   --version | --vers* | -V ) | 
 | 22093 |     echo "$ac_cs_version"; exit 0 ;; | 
 | 22094 |   --he | --h) | 
 | 22095 |     # Conflict between --help and --header | 
 | 22096 |     { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
 | 22097 | Try \`$0 --help' for more information." >&5 | 
 | 22098 | echo "$as_me: error: ambiguous option: $1 | 
 | 22099 | Try \`$0 --help' for more information." >&2;} | 
 | 22100 |    { (exit 1); exit 1; }; };; | 
 | 22101 |   --help | --hel | -h ) | 
 | 22102 |     echo "$ac_cs_usage"; exit 0 ;; | 
 | 22103 |   --debug | --d* | -d ) | 
 | 22104 |     debug=: ;; | 
 | 22105 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22106 |     $ac_shift | 
 | 22107 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22108 |     ac_need_defaults=false;; | 
 | 22109 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22110 |     $ac_shift | 
 | 22111 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22112 |     ac_need_defaults=false;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22113 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 22114 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 22115 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22116 |  | 
 | 22117 |   # This is an error. | 
 | 22118 |   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
 | 22119 | Try \`$0 --help' for more information." >&5 | 
 | 22120 | echo "$as_me: error: unrecognized option: $1 | 
 | 22121 | Try \`$0 --help' for more information." >&2;} | 
 | 22122 |    { (exit 1); exit 1; }; } ;; | 
 | 22123 |  | 
 | 22124 |   *) ac_config_targets="$ac_config_targets $1" ;; | 
 | 22125 |  | 
 | 22126 |   esac | 
 | 22127 |   shift | 
 | 22128 | done | 
 | 22129 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22130 | ac_configure_extra_args= | 
 | 22131 |  | 
 | 22132 | if $ac_cs_silent; then | 
 | 22133 |   exec 6>/dev/null | 
 | 22134 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 22135 | fi | 
 | 22136 |  | 
 | 22137 | _ACEOF | 
 | 22138 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 22139 | if \$ac_cs_recheck; then | 
 | 22140 |   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 22141 |   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 22142 | fi | 
 | 22143 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22144 | _ACEOF | 
 | 22145 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22146 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 22147 | # | 
 | 22148 | # INIT-COMMANDS section. | 
 | 22149 | # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22150 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22151 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` | 
 | 22152 | ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22153 | ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22154 | ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22155 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile` | 
 | 22156 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22157 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py` | 
 | 22158 | ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22159 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile` | 
 | 22160 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs` | 
 | 22161 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile` | 
 | 22162 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report` | 
 | 22163 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report` | 
 | 22164 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report` | 
 | 22165 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile` | 
 | 22166 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile` | 
 | 22167 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile` | 
 | 22168 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile` | 
 | 22169 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report` | 
 | 22170 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile` | 
 | 22171 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report` | 
 | 22172 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile` | 
 | 22173 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot` | 
 | 22174 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile` | 
 | 22175 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile` | 
 | 22176 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile` | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22177 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22178 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile` | 
 | 22179 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc` | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22180 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in` | 
 | 22181 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile` | 
 | 22182 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in` | 
 | 22183 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile` | 
 | 22184 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in` | 
 | 22185 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile` | 
 | 22186 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in` | 
 | 22187 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile` | 
 | 22188 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in` | 
 | 22189 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile` | 
 | 22190 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in` | 
 | 22191 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile` | 
 | 22192 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22193 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile` | 
 | 22194 | ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22195 | ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22196 | ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22197 | ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22198 |  | 
 | 22199 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22200 |  | 
 | 22201 |  | 
 | 22202 |  | 
 | 22203 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22204 | for ac_config_target in $ac_config_targets | 
 | 22205 | do | 
 | 22206 |   case "$ac_config_target" in | 
 | 22207 |   # Handling of arguments. | 
 | 22208 |   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22209 |   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 22210 |   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22211 |   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22212 |   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22213 |   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 22214 |   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22215 |   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;; | 
 | 22216 |   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22217 |   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;; | 
 | 22218 |   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;; | 
 | 22219 |   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;; | 
 | 22220 |   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;; | 
 | 22221 |   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;; | 
 | 22222 |   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;; | 
 | 22223 |   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;; | 
 | 22224 |   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;; | 
 | 22225 |   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;; | 
 | 22226 |   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;; | 
 | 22227 |   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;; | 
 | 22228 |   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;; | 
 | 22229 |   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;; | 
 | 22230 |   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;; | 
 | 22231 |   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;; | 
 | 22232 |   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;; | 
 | 22233 |   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;; | 
 | 22234 |   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;; | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22235 |   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22236 |   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;; | 
 | 22237 |   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;; | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22238 |   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;; | 
 | 22239 |   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;; | 
 | 22240 |   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;; | 
 | 22241 |   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;; | 
 | 22242 |   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;; | 
 | 22243 |   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;; | 
 | 22244 |   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;; | 
 | 22245 |   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;; | 
 | 22246 |   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;; | 
 | 22247 |   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;; | 
 | 22248 |   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;; | 
 | 22249 |   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;; | 
 | 22250 |   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22251 |   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;; | 
 | 22252 |   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22253 |   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 22254 |   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22255 |   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22256 |   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;; | 
 | 22257 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 22258 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 22259 |    { (exit 1); exit 1; }; };; | 
 | 22260 |   esac | 
 | 22261 | done | 
 | 22262 |  | 
 | 22263 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 22264 | # then the envvar interface is used.  Set only those that are not. | 
 | 22265 | # We use the long form for the default assignment because of an extremely | 
 | 22266 | # bizarre bug on SunOS 4.1.3. | 
 | 22267 | if $ac_need_defaults; then | 
 | 22268 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 22269 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22270 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22271 | fi | 
 | 22272 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22273 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 22274 | # simply because there is no reason to put it here, and in addition, | 
 | 22275 | # creating and moving files from /tmp can sometimes cause problems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22276 | # Create a temporary directory, and hook for its removal unless debugging. | 
 | 22277 | $debug || | 
 | 22278 | { | 
 | 22279 |   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
 | 22280 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 22281 | } | 
 | 22282 |  | 
 | 22283 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22284 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22285 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22286 |   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22287 |   test -n "$tmp" && test -d "$tmp" | 
 | 22288 | }  || | 
 | 22289 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22290 |   tmp=./confstat$$-$RANDOM | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22291 |   (umask 077 && mkdir $tmp) | 
 | 22292 | } || | 
 | 22293 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22294 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22295 |    { (exit 1); exit 1; } | 
 | 22296 | } | 
 | 22297 |  | 
 | 22298 | _ACEOF | 
 | 22299 |  | 
 | 22300 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 22301 |  | 
 | 22302 | # | 
 | 22303 | # CONFIG_FILES section. | 
 | 22304 | # | 
 | 22305 |  | 
 | 22306 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 22307 | # This happens for instance when ./config.status config.h | 
 | 22308 | if test -n "\$CONFIG_FILES"; then | 
 | 22309 |   # Protect against being on the right side of a sed subst in config.status. | 
 | 22310 |   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
 | 22311 |    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
 | 22312 | s,@SHELL@,$SHELL,;t t | 
 | 22313 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
 | 22314 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
 | 22315 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
 | 22316 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
 | 22317 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
 | 22318 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
 | 22319 | s,@exec_prefix@,$exec_prefix,;t t | 
 | 22320 | s,@prefix@,$prefix,;t t | 
 | 22321 | s,@program_transform_name@,$program_transform_name,;t t | 
 | 22322 | s,@bindir@,$bindir,;t t | 
 | 22323 | s,@sbindir@,$sbindir,;t t | 
 | 22324 | s,@libexecdir@,$libexecdir,;t t | 
 | 22325 | s,@datadir@,$datadir,;t t | 
 | 22326 | s,@sysconfdir@,$sysconfdir,;t t | 
 | 22327 | s,@sharedstatedir@,$sharedstatedir,;t t | 
 | 22328 | s,@localstatedir@,$localstatedir,;t t | 
 | 22329 | s,@libdir@,$libdir,;t t | 
 | 22330 | s,@includedir@,$includedir,;t t | 
 | 22331 | s,@oldincludedir@,$oldincludedir,;t t | 
 | 22332 | s,@infodir@,$infodir,;t t | 
 | 22333 | s,@mandir@,$mandir,;t t | 
 | 22334 | s,@build_alias@,$build_alias,;t t | 
 | 22335 | s,@host_alias@,$host_alias,;t t | 
 | 22336 | s,@target_alias@,$target_alias,;t t | 
 | 22337 | s,@DEFS@,$DEFS,;t t | 
 | 22338 | s,@ECHO_C@,$ECHO_C,;t t | 
 | 22339 | s,@ECHO_N@,$ECHO_N,;t t | 
 | 22340 | s,@ECHO_T@,$ECHO_T,;t t | 
 | 22341 | s,@LIBS@,$LIBS,;t t | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22342 | s,@subdirs@,$subdirs,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22343 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
 | 22344 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
 | 22345 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
 | 22346 | s,@build@,$build,;t t | 
 | 22347 | s,@build_cpu@,$build_cpu,;t t | 
 | 22348 | s,@build_vendor@,$build_vendor,;t t | 
 | 22349 | s,@build_os@,$build_os,;t t | 
 | 22350 | s,@host@,$host,;t t | 
 | 22351 | s,@host_cpu@,$host_cpu,;t t | 
 | 22352 | s,@host_vendor@,$host_vendor,;t t | 
 | 22353 | s,@host_os@,$host_os,;t t | 
 | 22354 | s,@target@,$target,;t t | 
 | 22355 | s,@target_cpu@,$target_cpu,;t t | 
 | 22356 | s,@target_vendor@,$target_vendor,;t t | 
 | 22357 | s,@target_os@,$target_os,;t t | 
 | 22358 | s,@OS@,$OS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22359 | s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 22360 | s,@ARCH@,$ARCH,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22361 | s,@CXX@,$CXX,;t t | 
 | 22362 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
 | 22363 | s,@LDFLAGS@,$LDFLAGS,;t t | 
 | 22364 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
 | 22365 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
 | 22366 | s,@EXEEXT@,$EXEEXT,;t t | 
 | 22367 | s,@OBJEXT@,$OBJEXT,;t t | 
 | 22368 | s,@CC@,$CC,;t t | 
 | 22369 | s,@CFLAGS@,$CFLAGS,;t t | 
 | 22370 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
 | 22371 | s,@CPP@,$CPP,;t t | 
 | 22372 | s,@ifGNUmake@,$ifGNUmake,;t t | 
 | 22373 | s,@LEX@,$LEX,;t t | 
 | 22374 | s,@LEXLIB@,$LEXLIB,;t t | 
 | 22375 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
 | 22376 | s,@YACC@,$YACC,;t t | 
| Brian Gaeke | 1281063 | 2004-01-13 06:52:10 +0000 | [diff] [blame] | 22377 | s,@BISON@,$BISON,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22378 | s,@EGREP@,$EGREP,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22379 | s,@LN_S@,$LN_S,;t t | 
 | 22380 | s,@ECHO@,$ECHO,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22381 | s,@AR@,$AR,;t t | 
 | 22382 | s,@ac_ct_AR@,$ac_ct_AR,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22383 | s,@RANLIB@,$RANLIB,;t t | 
 | 22384 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
 | 22385 | s,@STRIP@,$STRIP,;t t | 
 | 22386 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22387 | s,@CXXCPP@,$CXXCPP,;t t | 
 | 22388 | s,@F77@,$F77,;t t | 
 | 22389 | s,@FFLAGS@,$FFLAGS,;t t | 
 | 22390 | s,@ac_ct_F77@,$ac_ct_F77,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22391 | s,@LIBTOOL@,$LIBTOOL,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22392 | s,@DOT@,$DOT,;t t | 
 | 22393 | s,@ETAGS@,$ETAGS,;t t | 
| John Criswell | de00db2 | 2003-08-25 16:49:54 +0000 | [diff] [blame] | 22394 | s,@PYTHON@,$PYTHON,;t t | 
 | 22395 | s,@QMTEST@,$QMTEST,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22396 | s,@ALLOCA@,$ALLOCA,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22397 | s,@MMAP_FILE@,$MMAP_FILE,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22398 | s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t | 
| John Criswell | 5512659 | 2003-10-07 21:57:39 +0000 | [diff] [blame] | 22399 | s,@SPEC_ROOT@,$SPEC_ROOT,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22400 | s,@USE_SPEC@,$USE_SPEC,;t t | 
 | 22401 | s,@UPB@,$UPB,;t t | 
| John Criswell | f02dbf0 | 2003-07-22 20:07:49 +0000 | [diff] [blame] | 22402 | s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22403 | s,@JIT@,$JIT,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22404 | s,@BCR@,$BCR,;t t | 
 | 22405 | s,@PAPIDIR@,$PAPIDIR,;t t | 
| Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 22406 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22407 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22408 | CEOF | 
 | 22409 |  | 
 | 22410 | _ACEOF | 
 | 22411 |  | 
 | 22412 |   cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22413 |   # Split the substitutions into bite-sized pieces for seds with | 
 | 22414 |   # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 22415 |   ac_max_sed_lines=48 | 
 | 22416 |   ac_sed_frag=1 # Number of current file. | 
 | 22417 |   ac_beg=1 # First line for current file. | 
 | 22418 |   ac_end=$ac_max_sed_lines # Line after last line for current file. | 
 | 22419 |   ac_more_lines=: | 
 | 22420 |   ac_sed_cmds= | 
 | 22421 |   while $ac_more_lines; do | 
 | 22422 |     if test $ac_beg -gt 1; then | 
 | 22423 |       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 22424 |     else | 
 | 22425 |       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
 | 22426 |     fi | 
 | 22427 |     if test ! -s $tmp/subs.frag; then | 
 | 22428 |       ac_more_lines=false | 
 | 22429 |     else | 
 | 22430 |       # The purpose of the label and of the branching condition is to | 
 | 22431 |       # speed up the sed processing (if there are no `@' at all, there | 
 | 22432 |       # is no need to browse any of the substitutions). | 
 | 22433 |       # These are the two extra sed commands mentioned above. | 
 | 22434 |       (echo ':t | 
 | 22435 |   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
 | 22436 |       if test -z "$ac_sed_cmds"; then | 
 | 22437 |   	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
 | 22438 |       else | 
 | 22439 |   	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 
 | 22440 |       fi | 
 | 22441 |       ac_sed_frag=`expr $ac_sed_frag + 1` | 
 | 22442 |       ac_beg=$ac_end | 
 | 22443 |       ac_end=`expr $ac_end + $ac_max_sed_lines` | 
 | 22444 |     fi | 
 | 22445 |   done | 
 | 22446 |   if test -z "$ac_sed_cmds"; then | 
 | 22447 |     ac_sed_cmds=cat | 
 | 22448 |   fi | 
 | 22449 | fi # test -n "$CONFIG_FILES" | 
 | 22450 |  | 
 | 22451 | _ACEOF | 
 | 22452 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22453 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
 | 22454 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 22455 |   case $ac_file in | 
 | 22456 |   - | *:- | *:-:* ) # input from stdin | 
 | 22457 |         cat >$tmp/stdin | 
 | 22458 |         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 22459 |         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
 | 22460 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 22461 |         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
 | 22462 |   * )   ac_file_in=$ac_file.in ;; | 
 | 22463 |   esac | 
 | 22464 |  | 
 | 22465 |   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
 | 22466 |   ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 22467 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 22468 |          X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 22469 |          X"$ac_file" : 'X\(//\)$' \| \ | 
 | 22470 |          X"$ac_file" : 'X\(/\)' \| \ | 
 | 22471 |          .     : '\(.\)' 2>/dev/null || | 
 | 22472 | echo X"$ac_file" | | 
 | 22473 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 22474 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 22475 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 22476 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 22477 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22478 |   { if $as_mkdir_p; then | 
 | 22479 |     mkdir -p "$ac_dir" | 
 | 22480 |   else | 
 | 22481 |     as_dir="$ac_dir" | 
 | 22482 |     as_dirs= | 
 | 22483 |     while test ! -d "$as_dir"; do | 
 | 22484 |       as_dirs="$as_dir $as_dirs" | 
 | 22485 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 22486 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 22487 |          X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 22488 |          X"$as_dir" : 'X\(//\)$' \| \ | 
 | 22489 |          X"$as_dir" : 'X\(/\)' \| \ | 
 | 22490 |          .     : '\(.\)' 2>/dev/null || | 
 | 22491 | echo X"$as_dir" | | 
 | 22492 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 22493 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 22494 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 22495 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 22496 |   	  s/.*/./; q'` | 
 | 22497 |     done | 
 | 22498 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 22499 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 22500 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 22501 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22502 |  | 
 | 22503 |   ac_builddir=. | 
 | 22504 |  | 
 | 22505 | if test "$ac_dir" != .; then | 
 | 22506 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 22507 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 22508 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 22509 | else | 
 | 22510 |   ac_dir_suffix= ac_top_builddir= | 
 | 22511 | fi | 
 | 22512 |  | 
 | 22513 | case $srcdir in | 
 | 22514 |   .)  # No --srcdir option.  We are building in place. | 
 | 22515 |     ac_srcdir=. | 
 | 22516 |     if test -z "$ac_top_builddir"; then | 
 | 22517 |        ac_top_srcdir=. | 
 | 22518 |     else | 
 | 22519 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 22520 |     fi ;; | 
 | 22521 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 22522 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 22523 |     ac_top_srcdir=$srcdir ;; | 
 | 22524 |   *) # Relative path. | 
 | 22525 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 22526 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 22527 | esac | 
 | 22528 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
 | 22529 | # absolute. | 
 | 22530 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22531 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22532 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
 | 22533 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
 | 22534 |  | 
 | 22535 |  | 
 | 22536 |   case $INSTALL in | 
 | 22537 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 22538 |   *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
 | 22539 |   esac | 
 | 22540 |  | 
 | 22541 |   if test x"$ac_file" != x-; then | 
 | 22542 |     { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 22543 | echo "$as_me: creating $ac_file" >&6;} | 
 | 22544 |     rm -f "$ac_file" | 
 | 22545 |   fi | 
 | 22546 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 22547 |   # use $as_me), people would be surprised to read: | 
 | 22548 |   #    /* config.h.  Generated by config.status.  */ | 
 | 22549 |   if test x"$ac_file" = x-; then | 
 | 22550 |     configure_input= | 
 | 22551 |   else | 
 | 22552 |     configure_input="$ac_file.  " | 
 | 22553 |   fi | 
 | 22554 |   configure_input=$configure_input"Generated from `echo $ac_file_in | | 
 | 22555 |                                      sed 's,.*/,,'` by configure." | 
 | 22556 |  | 
 | 22557 |   # First look for the input files in the build tree, otherwise in the | 
 | 22558 |   # src tree. | 
 | 22559 |   ac_file_inputs=`IFS=: | 
 | 22560 |     for f in $ac_file_in; do | 
 | 22561 |       case $f in | 
 | 22562 |       -) echo $tmp/stdin ;; | 
 | 22563 |       [\\/$]*) | 
 | 22564 |          # Absolute (can't be DOS-style, as IFS=:) | 
 | 22565 |          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
 | 22566 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 22567 |    { (exit 1); exit 1; }; } | 
 | 22568 |          echo $f;; | 
 | 22569 |       *) # Relative | 
 | 22570 |          if test -f "$f"; then | 
 | 22571 |            # Build tree | 
 | 22572 |            echo $f | 
 | 22573 |          elif test -f "$srcdir/$f"; then | 
 | 22574 |            # Source tree | 
 | 22575 |            echo $srcdir/$f | 
 | 22576 |          else | 
 | 22577 |            # /dev/null tree | 
 | 22578 |            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
 | 22579 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 22580 |    { (exit 1); exit 1; }; } | 
 | 22581 |          fi;; | 
 | 22582 |       esac | 
 | 22583 |     done` || { (exit 1); exit 1; } | 
 | 22584 | _ACEOF | 
 | 22585 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 22586 |   sed "$ac_vpsub | 
 | 22587 | $extrasub | 
 | 22588 | _ACEOF | 
 | 22589 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22590 | :t | 
 | 22591 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 22592 | s,@configure_input@,$configure_input,;t t | 
 | 22593 | s,@srcdir@,$ac_srcdir,;t t | 
 | 22594 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
 | 22595 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
 | 22596 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
 | 22597 | s,@builddir@,$ac_builddir,;t t | 
 | 22598 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
 | 22599 | s,@top_builddir@,$ac_top_builddir,;t t | 
 | 22600 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
 | 22601 | s,@INSTALL@,$ac_INSTALL,;t t | 
 | 22602 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
 | 22603 |   rm -f $tmp/stdin | 
 | 22604 |   if test x"$ac_file" != x-; then | 
 | 22605 |     mv $tmp/out $ac_file | 
 | 22606 |   else | 
 | 22607 |     cat $tmp/out | 
 | 22608 |     rm -f $tmp/out | 
 | 22609 |   fi | 
 | 22610 |  | 
 | 22611 | done | 
 | 22612 | _ACEOF | 
 | 22613 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22614 |  | 
 | 22615 | # | 
 | 22616 | # CONFIG_HEADER section. | 
 | 22617 | # | 
 | 22618 |  | 
 | 22619 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 22620 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
 | 22621 | # | 
 | 22622 | # ac_d sets the value in "#define NAME VALUE" lines. | 
 | 22623 | ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)' | 
 | 22624 | ac_dB='[ 	].*$,\1#\2' | 
 | 22625 | ac_dC=' ' | 
 | 22626 | ac_dD=',;t' | 
 | 22627 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
 | 22628 | ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
 | 22629 | ac_uB='$,\1#\2define\3' | 
 | 22630 | ac_uC=' ' | 
 | 22631 | ac_uD=',;t' | 
 | 22632 |  | 
 | 22633 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
 | 22634 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
 | 22635 |   case $ac_file in | 
 | 22636 |   - | *:- | *:-:* ) # input from stdin | 
 | 22637 |         cat >$tmp/stdin | 
 | 22638 |         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 22639 |         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
 | 22640 |   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 22641 |         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
 | 22642 |   * )   ac_file_in=$ac_file.in ;; | 
 | 22643 |   esac | 
 | 22644 |  | 
 | 22645 |   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 22646 | echo "$as_me: creating $ac_file" >&6;} | 
 | 22647 |  | 
 | 22648 |   # First look for the input files in the build tree, otherwise in the | 
 | 22649 |   # src tree. | 
 | 22650 |   ac_file_inputs=`IFS=: | 
 | 22651 |     for f in $ac_file_in; do | 
 | 22652 |       case $f in | 
 | 22653 |       -) echo $tmp/stdin ;; | 
 | 22654 |       [\\/$]*) | 
 | 22655 |          # Absolute (can't be DOS-style, as IFS=:) | 
 | 22656 |          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
 | 22657 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 22658 |    { (exit 1); exit 1; }; } | 
 | 22659 |          echo $f;; | 
 | 22660 |       *) # Relative | 
 | 22661 |          if test -f "$f"; then | 
 | 22662 |            # Build tree | 
 | 22663 |            echo $f | 
 | 22664 |          elif test -f "$srcdir/$f"; then | 
 | 22665 |            # Source tree | 
 | 22666 |            echo $srcdir/$f | 
 | 22667 |          else | 
 | 22668 |            # /dev/null tree | 
 | 22669 |            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
 | 22670 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
 | 22671 |    { (exit 1); exit 1; }; } | 
 | 22672 |          fi;; | 
 | 22673 |       esac | 
 | 22674 |     done` || { (exit 1); exit 1; } | 
 | 22675 |   # Remove the trailing spaces. | 
 | 22676 |   sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in | 
 | 22677 |  | 
 | 22678 | _ACEOF | 
 | 22679 |  | 
 | 22680 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
 | 22681 | # `conftest.undefs', that substitutes the proper values into | 
 | 22682 | # config.h.in to produce config.h.  The first handles `#define' | 
 | 22683 | # templates, and the second `#undef' templates. | 
 | 22684 | # And first: Protect against being on the right side of a sed subst in | 
 | 22685 | # config.status.  Protect against being in an unquoted here document | 
 | 22686 | # in config.status. | 
 | 22687 | rm -f conftest.defines conftest.undefs | 
 | 22688 | # Using a here document instead of a string reduces the quoting nightmare. | 
 | 22689 | # Putting comments in sed scripts is not portable. | 
 | 22690 | # | 
 | 22691 | # `end' is used to avoid that the second main sed command (meant for | 
 | 22692 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
 | 22693 | # See the Autoconf documentation for `clear'. | 
 | 22694 | cat >confdef2sed.sed <<\_ACEOF | 
 | 22695 | s/[\\&,]/\\&/g | 
 | 22696 | s,[\\$`],\\&,g | 
 | 22697 | t clear | 
 | 22698 | : clear | 
 | 22699 | s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 
 | 22700 | t end | 
 | 22701 | s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | 
 | 22702 | : end | 
 | 22703 | _ACEOF | 
 | 22704 | # If some macros were called several times there might be several times | 
 | 22705 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
 | 22706 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
 | 22707 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
 | 22708 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
 | 22709 | rm -f confdef2sed.sed | 
 | 22710 |  | 
 | 22711 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 22712 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 22713 | # on some systems where configure will not decide to define it. | 
 | 22714 | cat >>conftest.undefs <<\_ACEOF | 
 | 22715 | s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
 | 22716 | _ACEOF | 
 | 22717 |  | 
 | 22718 | # Break up conftest.defines because some shells have a limit on the size | 
 | 22719 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 22720 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22721 | echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22722 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
 | 22723 | echo '  :' >>$CONFIG_STATUS | 
 | 22724 | rm -f conftest.tail | 
 | 22725 | while grep . conftest.defines >/dev/null | 
 | 22726 | do | 
 | 22727 |   # Write a limited-size here document to $tmp/defines.sed. | 
 | 22728 |   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
 | 22729 |   # Speed up: don't consider the non `#define' lines. | 
 | 22730 |   echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS | 
 | 22731 |   # Work around the forget-to-reset-the-flag bug. | 
 | 22732 |   echo 't clr' >>$CONFIG_STATUS | 
 | 22733 |   echo ': clr' >>$CONFIG_STATUS | 
 | 22734 |   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
 | 22735 |   echo 'CEOF | 
 | 22736 |   sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
 | 22737 |   rm -f $tmp/in | 
 | 22738 |   mv $tmp/out $tmp/in | 
 | 22739 | ' >>$CONFIG_STATUS | 
 | 22740 |   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
 | 22741 |   rm -f conftest.defines | 
 | 22742 |   mv conftest.tail conftest.defines | 
 | 22743 | done | 
 | 22744 | rm -f conftest.defines | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22745 | echo '  fi # grep' >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22746 | echo >>$CONFIG_STATUS | 
 | 22747 |  | 
 | 22748 | # Break up conftest.undefs because some shells have a limit on the size | 
 | 22749 | # of here documents, and old seds have small limits too (100 cmds). | 
 | 22750 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
 | 22751 | rm -f conftest.tail | 
 | 22752 | while grep . conftest.undefs >/dev/null | 
 | 22753 | do | 
 | 22754 |   # Write a limited-size here document to $tmp/undefs.sed. | 
 | 22755 |   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
 | 22756 |   # Speed up: don't consider the non `#undef' | 
 | 22757 |   echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS | 
 | 22758 |   # Work around the forget-to-reset-the-flag bug. | 
 | 22759 |   echo 't clr' >>$CONFIG_STATUS | 
 | 22760 |   echo ': clr' >>$CONFIG_STATUS | 
 | 22761 |   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
 | 22762 |   echo 'CEOF | 
 | 22763 |   sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
 | 22764 |   rm -f $tmp/in | 
 | 22765 |   mv $tmp/out $tmp/in | 
 | 22766 | ' >>$CONFIG_STATUS | 
 | 22767 |   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
 | 22768 |   rm -f conftest.undefs | 
 | 22769 |   mv conftest.tail conftest.undefs | 
 | 22770 | done | 
 | 22771 | rm -f conftest.undefs | 
 | 22772 |  | 
 | 22773 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22774 |   # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 22775 |   # use $as_me), people would be surprised to read: | 
 | 22776 |   #    /* config.h.  Generated by config.status.  */ | 
 | 22777 |   if test x"$ac_file" = x-; then | 
 | 22778 |     echo "/* Generated by configure.  */" >$tmp/config.h | 
 | 22779 |   else | 
 | 22780 |     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
 | 22781 |   fi | 
 | 22782 |   cat $tmp/in >>$tmp/config.h | 
 | 22783 |   rm -f $tmp/in | 
 | 22784 |   if test x"$ac_file" != x-; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22785 |     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22786 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 22787 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 22788 |     else | 
 | 22789 |       ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
 | 22790 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 22791 |          X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 22792 |          X"$ac_file" : 'X\(//\)$' \| \ | 
 | 22793 |          X"$ac_file" : 'X\(/\)' \| \ | 
 | 22794 |          .     : '\(.\)' 2>/dev/null || | 
 | 22795 | echo X"$ac_file" | | 
 | 22796 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 22797 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 22798 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 22799 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 22800 |   	  s/.*/./; q'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22801 |       { if $as_mkdir_p; then | 
 | 22802 |     mkdir -p "$ac_dir" | 
 | 22803 |   else | 
 | 22804 |     as_dir="$ac_dir" | 
 | 22805 |     as_dirs= | 
 | 22806 |     while test ! -d "$as_dir"; do | 
 | 22807 |       as_dirs="$as_dir $as_dirs" | 
 | 22808 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 22809 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 22810 |          X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 22811 |          X"$as_dir" : 'X\(//\)$' \| \ | 
 | 22812 |          X"$as_dir" : 'X\(/\)' \| \ | 
 | 22813 |          .     : '\(.\)' 2>/dev/null || | 
 | 22814 | echo X"$as_dir" | | 
 | 22815 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 22816 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 22817 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 22818 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 22819 |   	  s/.*/./; q'` | 
 | 22820 |     done | 
 | 22821 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 22822 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 22823 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 22824 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22825 |  | 
 | 22826 |       rm -f $ac_file | 
 | 22827 |       mv $tmp/config.h $ac_file | 
 | 22828 |     fi | 
 | 22829 |   else | 
 | 22830 |     cat $tmp/config.h | 
 | 22831 |     rm -f $tmp/config.h | 
 | 22832 |   fi | 
 | 22833 | done | 
 | 22834 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22835 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22836 |  | 
 | 22837 | # | 
 | 22838 | # CONFIG_COMMANDS section. | 
 | 22839 | # | 
 | 22840 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | 
 | 22841 |   ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | 
 | 22842 |   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
 | 22843 |   ac_dir=`(dirname "$ac_dest") 2>/dev/null || | 
 | 22844 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 22845 |          X"$ac_dest" : 'X\(//\)[^/]' \| \ | 
 | 22846 |          X"$ac_dest" : 'X\(//\)$' \| \ | 
 | 22847 |          X"$ac_dest" : 'X\(/\)' \| \ | 
 | 22848 |          .     : '\(.\)' 2>/dev/null || | 
 | 22849 | echo X"$ac_dest" | | 
 | 22850 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 22851 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 22852 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 22853 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 22854 |   	  s/.*/./; q'` | 
 | 22855 |   ac_builddir=. | 
 | 22856 |  | 
 | 22857 | if test "$ac_dir" != .; then | 
 | 22858 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 22859 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 22860 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 22861 | else | 
 | 22862 |   ac_dir_suffix= ac_top_builddir= | 
 | 22863 | fi | 
 | 22864 |  | 
 | 22865 | case $srcdir in | 
 | 22866 |   .)  # No --srcdir option.  We are building in place. | 
 | 22867 |     ac_srcdir=. | 
 | 22868 |     if test -z "$ac_top_builddir"; then | 
 | 22869 |        ac_top_srcdir=. | 
 | 22870 |     else | 
 | 22871 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 22872 |     fi ;; | 
 | 22873 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 22874 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 22875 |     ac_top_srcdir=$srcdir ;; | 
 | 22876 |   *) # Relative path. | 
 | 22877 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 22878 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 22879 | esac | 
 | 22880 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
 | 22881 | # absolute. | 
 | 22882 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22883 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22884 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
 | 22885 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
 | 22886 |  | 
 | 22887 |  | 
 | 22888 |   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 
 | 22889 | echo "$as_me: executing $ac_dest commands" >&6;} | 
 | 22890 |   case $ac_dest in | 
 | 22891 |     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; | 
 | 22892 |     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22893 |     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] | 22894 |     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] | 22895 |     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; | 
 | 22896 |     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| John Criswell | f424d74 | 2003-10-07 21:13:47 +0000 | [diff] [blame] | 22897 |     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;; | 
 | 22898 |     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22899 |     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;; | 
 | 22900 |     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;; | 
 | 22901 |     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;; | 
 | 22902 |     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;; | 
 | 22903 |     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;; | 
 | 22904 |     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;; | 
 | 22905 |     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;; | 
 | 22906 |     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;; | 
 | 22907 |     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;; | 
 | 22908 |     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;; | 
 | 22909 |     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;; | 
 | 22910 |     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;; | 
 | 22911 |     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;; | 
 | 22912 |     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;; | 
 | 22913 |     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;; | 
 | 22914 |     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;; | 
 | 22915 |     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;; | 
 | 22916 |     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;; | 
| John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 22917 |     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22918 |     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;; | 
 | 22919 |     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;; | 
| Misha Brukman | 811ce9f | 2003-11-12 22:16:51 +0000 | [diff] [blame] | 22920 |     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;; | 
 | 22921 |     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;; | 
 | 22922 |     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;; | 
 | 22923 |     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;; | 
 | 22924 |     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;; | 
 | 22925 |     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;; | 
 | 22926 |     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;; | 
 | 22927 |     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;; | 
 | 22928 |     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;; | 
 | 22929 |     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;; | 
 | 22930 |     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;; | 
 | 22931 |     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;; | 
 | 22932 |     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22933 |     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;; | 
 | 22934 |     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22935 |     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] | 22936 |     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] | 22937 |     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] | 22938 |   esac | 
 | 22939 | done | 
 | 22940 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22941 |  | 
 | 22942 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 22943 |  | 
 | 22944 | { (exit 0); exit 0; } | 
 | 22945 | _ACEOF | 
 | 22946 | chmod +x $CONFIG_STATUS | 
 | 22947 | ac_clean_files=$ac_clean_files_save | 
 | 22948 |  | 
 | 22949 |  | 
 | 22950 | # configure is writing to config.log, and then calls config.status. | 
 | 22951 | # config.status does its own redirection, appending to config.log. | 
 | 22952 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 22953 | # by configure, so config.status won't be able to write to it; its | 
 | 22954 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 22955 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 22956 | # appended to by config.status.  When coming back to configure, we | 
 | 22957 | # need to make the FD available again. | 
 | 22958 | if test "$no_create" != yes; then | 
 | 22959 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22960 |   ac_config_status_args= | 
 | 22961 |   test "$silent" = yes && | 
 | 22962 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22963 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22964 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22965 |   exec 5>>config.log | 
 | 22966 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 22967 |   # would make configure fail if this is the last instruction. | 
 | 22968 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 22969 | fi | 
 | 22970 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22971 | # | 
 | 22972 | # CONFIG_SUBDIRS section. | 
 | 22973 | # | 
 | 22974 | if test "$no_recursion" != yes; then | 
 | 22975 |  | 
 | 22976 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 22977 |   ac_sub_configure_args= | 
 | 22978 |   ac_prev= | 
 | 22979 |   for ac_arg in $ac_configure_args; do | 
 | 22980 |     if test -n "$ac_prev"; then | 
 | 22981 |       ac_prev= | 
 | 22982 |       continue | 
 | 22983 |     fi | 
 | 22984 |     case $ac_arg in | 
 | 22985 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 22986 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 22987 |       ac_prev=cache_file ;; | 
 | 22988 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 22989 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 22990 |     | --c=*) | 
 | 22991 |       ;; | 
 | 22992 |     --config-cache | -C) | 
 | 22993 |       ;; | 
 | 22994 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 22995 |       ac_prev=srcdir ;; | 
 | 22996 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 22997 |       ;; | 
 | 22998 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 22999 |       ac_prev=prefix ;; | 
 | 23000 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 23001 |       ;; | 
 | 23002 |     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
 | 23003 |     esac | 
 | 23004 |   done | 
 | 23005 |  | 
 | 23006 |   # Always prepend --prefix to ensure using the same prefix | 
 | 23007 |   # in subdir configurations. | 
 | 23008 |   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | 
 | 23009 |  | 
 | 23010 |   ac_popdir=`pwd` | 
 | 23011 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 23012 |  | 
 | 23013 |     # Do not complain, so a configure script can configure whichever | 
 | 23014 |     # parts of a large source tree are present. | 
 | 23015 |     test -d $srcdir/$ac_dir || continue | 
 | 23016 |  | 
 | 23017 |     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | 
 | 23018 | echo "$as_me: configuring in $ac_dir" >&6;} | 
 | 23019 |     { if $as_mkdir_p; then | 
 | 23020 |     mkdir -p "$ac_dir" | 
 | 23021 |   else | 
 | 23022 |     as_dir="$ac_dir" | 
 | 23023 |     as_dirs= | 
 | 23024 |     while test ! -d "$as_dir"; do | 
 | 23025 |       as_dirs="$as_dir $as_dirs" | 
 | 23026 |       as_dir=`(dirname "$as_dir") 2>/dev/null || | 
 | 23027 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 23028 |          X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 23029 |          X"$as_dir" : 'X\(//\)$' \| \ | 
 | 23030 |          X"$as_dir" : 'X\(/\)' \| \ | 
 | 23031 |          .     : '\(.\)' 2>/dev/null || | 
 | 23032 | echo X"$as_dir" | | 
 | 23033 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
 | 23034 |   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
 | 23035 |   	  /^X\(\/\/\)$/{ s//\1/; q; } | 
 | 23036 |   	  /^X\(\/\).*/{ s//\1/; q; } | 
 | 23037 |   	  s/.*/./; q'` | 
 | 23038 |     done | 
 | 23039 |     test ! -n "$as_dirs" || mkdir $as_dirs | 
 | 23040 |   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
 | 23041 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
 | 23042 |    { (exit 1); exit 1; }; }; } | 
 | 23043 |  | 
 | 23044 |     ac_builddir=. | 
 | 23045 |  | 
 | 23046 | if test "$ac_dir" != .; then | 
 | 23047 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
 | 23048 |   # A "../" for each directory in $ac_dir_suffix. | 
 | 23049 |   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
 | 23050 | else | 
 | 23051 |   ac_dir_suffix= ac_top_builddir= | 
 | 23052 | fi | 
 | 23053 |  | 
 | 23054 | case $srcdir in | 
 | 23055 |   .)  # No --srcdir option.  We are building in place. | 
 | 23056 |     ac_srcdir=. | 
 | 23057 |     if test -z "$ac_top_builddir"; then | 
 | 23058 |        ac_top_srcdir=. | 
 | 23059 |     else | 
 | 23060 |        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
 | 23061 |     fi ;; | 
 | 23062 |   [\\/]* | ?:[\\/]* )  # Absolute path. | 
 | 23063 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 23064 |     ac_top_srcdir=$srcdir ;; | 
 | 23065 |   *) # Relative path. | 
 | 23066 |     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
 | 23067 |     ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
 | 23068 | esac | 
 | 23069 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
 | 23070 | # absolute. | 
 | 23071 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
 | 23072 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
 | 23073 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
 | 23074 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
 | 23075 |  | 
 | 23076 |  | 
 | 23077 |     cd $ac_dir | 
 | 23078 |  | 
 | 23079 |     # Check for guested configure; otherwise get Cygnus style configure. | 
 | 23080 |     if test -f $ac_srcdir/configure.gnu; then | 
 | 23081 |       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | 
 | 23082 |     elif test -f $ac_srcdir/configure; then | 
 | 23083 |       ac_sub_configure="$SHELL '$ac_srcdir/configure'" | 
 | 23084 |     elif test -f $ac_srcdir/configure.in; then | 
 | 23085 |       ac_sub_configure=$ac_configure | 
 | 23086 |     else | 
 | 23087 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 23088 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 23089 |       ac_sub_configure= | 
 | 23090 |     fi | 
 | 23091 |  | 
 | 23092 |     # The recursion is here. | 
 | 23093 |     if test -n "$ac_sub_configure"; then | 
 | 23094 |       # Make the cache file name correct relative to the subdirectory. | 
 | 23095 |       case $cache_file in | 
 | 23096 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
 | 23097 |       *) # Relative path. | 
 | 23098 |         ac_sub_cache_file=$ac_top_builddir$cache_file ;; | 
 | 23099 |       esac | 
 | 23100 |  | 
 | 23101 |       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 23102 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
 | 23103 |       # The eval makes quoting arguments work. | 
 | 23104 |       eval $ac_sub_configure $ac_sub_configure_args \ | 
 | 23105 |            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | 
 | 23106 |         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
 | 23107 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 23108 |    { (exit 1); exit 1; }; } | 
 | 23109 |     fi | 
 | 23110 |  | 
 | 23111 |     cd $ac_popdir | 
 | 23112 |   done | 
 | 23113 | fi | 
 | 23114 |  | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 23115 |  | 
 | 23116 | if test $llvmgccwarn = yes | 
 | 23117 | then | 
 | 23118 | 	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5 | 
 | 23119 | echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;} | 
 | 23120 | 	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5 | 
 | 23121 | echo "$as_me: WARNING: ***** appear to be working." >&2;} | 
 | 23122 | 	{ echo "$as_me:$LINENO: WARNING: ***** " >&5 | 
 | 23123 | echo "$as_me: WARNING: ***** " >&2;} | 
 | 23124 | 	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5 | 
 | 23125 | echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;} | 
 | 23126 | 	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5 | 
 | 23127 | echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;} | 
 | 23128 | 	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5 | 
 | 23129 | echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;} | 
 | 23130 | fi |