| 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. | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.7svn. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # | 
 | 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 6 | # | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
 | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation | 
 | 10 | # gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # | 
| Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## | 
 | 14 | ## M4sh Initialization.  ## | 
 | 15 | ## --------------------- ## | 
 | 16 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17 | # Be Bourne compatible | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 19 |   emulate sh | 
 | 20 |   NULLCMD=: | 
 | 21 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 22 |   # is contrary to our usage.  Disable this feature. | 
 | 23 |   alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 |   setopt NO_GLOB_SUBST | 
 | 25 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 26 |   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
 | 29 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32 | # PATH needs CR | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. | 
 | 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 37 | as_cr_digits='0123456789' | 
 | 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 39 |  | 
 | 40 | # The user is always right. | 
 | 41 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 42 |   echo "#! /bin/sh" >conf$$.sh | 
 | 43 |   echo  "exit 0"   >>conf$$.sh | 
 | 44 |   chmod +x conf$$.sh | 
 | 45 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
 | 46 |     PATH_SEPARATOR=';' | 
 | 47 |   else | 
 | 48 |     PATH_SEPARATOR=: | 
 | 49 |   fi | 
 | 50 |   rm -f conf$$.sh | 
 | 51 | fi | 
 | 52 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. | 
 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
 | 55 |   as_unset=unset | 
 | 56 | else | 
 | 57 |   as_unset=false | 
 | 58 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 |  | 
 | 61 | # IFS | 
 | 62 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 63 | # there to prevent editors from complaining about space-tab. | 
 | 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 65 | # splitting by setting IFS to empty value.) | 
 | 66 | as_nl=' | 
 | 67 | ' | 
 | 68 | IFS=" ""	$as_nl" | 
 | 69 |  | 
 | 70 | # Find who we are.  Look in the path if we contain no directory separator. | 
 | 71 | case $0 in | 
 | 72 |   *[\\/]* ) as_myself=$0 ;; | 
 | 73 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH | 
 | 75 | do | 
 | 76 |   IFS=$as_save_IFS | 
 | 77 |   test -z "$as_dir" && as_dir=. | 
 | 78 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 79 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 |      ;; | 
 | 83 | esac | 
 | 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 85 | # in which case we are not to be found in the path. | 
 | 86 | if test "x$as_myself" = x; then | 
 | 87 |   as_myself=$0 | 
 | 88 | fi | 
 | 89 | if test ! -f "$as_myself"; then | 
 | 90 |   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 91 |   { (exit 1); exit 1; } | 
 | 92 | fi | 
 | 93 |  | 
 | 94 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 95 | for as_var in ENV MAIL MAILPATH | 
 | 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
 | 97 | done | 
 | 98 | PS1='$ ' | 
 | 99 | PS2='> ' | 
 | 100 | PS4='+ ' | 
 | 101 |  | 
 | 102 | # NLS nuisances. | 
 | 103 | for as_var in \ | 
 | 104 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 105 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 106 |   LC_TELEPHONE LC_TIME | 
 | 107 | do | 
 | 108 |   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
 | 109 |     eval $as_var=C; export $as_var | 
 | 110 |   else | 
 | 111 |     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 112 |   fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 113 | done | 
 | 114 |  | 
 | 115 | # Required to use basename. | 
 | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 117 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 118 |   as_expr=expr | 
 | 119 | else | 
 | 120 |   as_expr=false | 
 | 121 | fi | 
 | 122 |  | 
 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 124 |   as_basename=basename | 
 | 125 | else | 
 | 126 |   as_basename=false | 
 | 127 | fi | 
 | 128 |  | 
 | 129 |  | 
 | 130 | # Name of the executable. | 
 | 131 | as_me=`$as_basename -- "$0" || | 
 | 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 133 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 134 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
 | 135 | echo X/"$0" | | 
 | 136 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 137 | 	    s//\1/ | 
 | 138 | 	    q | 
 | 139 | 	  } | 
 | 140 | 	  /^X\/\(\/\/\)$/{ | 
 | 141 | 	    s//\1/ | 
 | 142 | 	    q | 
 | 143 | 	  } | 
 | 144 | 	  /^X\/\(\/\).*/{ | 
 | 145 | 	    s//\1/ | 
 | 146 | 	    q | 
 | 147 | 	  } | 
 | 148 | 	  s/.*/./; q'` | 
 | 149 |  | 
 | 150 | # CDPATH. | 
 | 151 | $as_unset CDPATH | 
 | 152 |  | 
 | 153 |  | 
 | 154 | if test "x$CONFIG_SHELL" = x; then | 
 | 155 |   if (eval ":") 2>/dev/null; then | 
 | 156 |   as_have_required=yes | 
 | 157 | else | 
 | 158 |   as_have_required=no | 
 | 159 | fi | 
 | 160 |  | 
 | 161 |   if test $as_have_required = yes && 	 (eval ": | 
 | 162 | (as_func_return () { | 
 | 163 |   (exit \$1) | 
 | 164 | } | 
 | 165 | as_func_success () { | 
 | 166 |   as_func_return 0 | 
 | 167 | } | 
 | 168 | as_func_failure () { | 
 | 169 |   as_func_return 1 | 
 | 170 | } | 
 | 171 | as_func_ret_success () { | 
 | 172 |   return 0 | 
 | 173 | } | 
 | 174 | as_func_ret_failure () { | 
 | 175 |   return 1 | 
 | 176 | } | 
 | 177 |  | 
 | 178 | exitcode=0 | 
 | 179 | if as_func_success; then | 
 | 180 |   : | 
 | 181 | else | 
 | 182 |   exitcode=1 | 
 | 183 |   echo as_func_success failed. | 
 | 184 | fi | 
 | 185 |  | 
 | 186 | if as_func_failure; then | 
 | 187 |   exitcode=1 | 
 | 188 |   echo as_func_failure succeeded. | 
 | 189 | fi | 
 | 190 |  | 
 | 191 | if as_func_ret_success; then | 
 | 192 |   : | 
 | 193 | else | 
 | 194 |   exitcode=1 | 
 | 195 |   echo as_func_ret_success failed. | 
 | 196 | fi | 
 | 197 |  | 
 | 198 | if as_func_ret_failure; then | 
 | 199 |   exitcode=1 | 
 | 200 |   echo as_func_ret_failure succeeded. | 
 | 201 | fi | 
 | 202 |  | 
 | 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | 
 | 204 |   : | 
 | 205 | else | 
 | 206 |   exitcode=1 | 
 | 207 |   echo positional parameters were not saved. | 
 | 208 | fi | 
 | 209 |  | 
 | 210 | test \$exitcode = 0) || { (exit 1); exit 1; } | 
 | 211 |  | 
 | 212 | ( | 
 | 213 |   as_lineno_1=\$LINENO | 
 | 214 |   as_lineno_2=\$LINENO | 
 | 215 |   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | 
 | 216 |   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | 
 | 217 | ") 2> /dev/null; then | 
 | 218 |   : | 
 | 219 | else | 
 | 220 |   as_candidate_shells= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 221 |     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 223 | do | 
 | 224 |   IFS=$as_save_IFS | 
 | 225 |   test -z "$as_dir" && as_dir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 226 |   case $as_dir in | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | 	 /*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 228 | 	   for as_base in sh bash ksh sh5; do | 
 | 229 | 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | 
 | 230 | 	   done;; | 
 | 231 |        esac | 
 | 232 | done | 
 | 233 | IFS=$as_save_IFS | 
 | 234 |  | 
 | 235 |  | 
 | 236 |       for as_shell in $as_candidate_shells $SHELL; do | 
 | 237 | 	 # Try only shells that exist, to save several forks. | 
 | 238 | 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 239 | 		{ ("$as_shell") 2> /dev/null <<\_ASEOF | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 240 | # Be Bourne compatible | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 242 |   emulate sh | 
 | 243 |   NULLCMD=: | 
 | 244 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 245 |   # is contrary to our usage.  Disable this feature. | 
 | 246 |   alias -g '${1+"$@"}'='"$@"' | 
 | 247 |   setopt NO_GLOB_SUBST | 
 | 248 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 249 |   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 250 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
 | 252 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 253 |  | 
 | 254 | : | 
 | 255 | _ASEOF | 
 | 256 | }; then | 
 | 257 |   CONFIG_SHELL=$as_shell | 
 | 258 | 	       as_have_required=yes | 
 | 259 | 	       if { "$as_shell" 2> /dev/null <<\_ASEOF | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 260 | # Be Bourne compatible | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 262 |   emulate sh | 
 | 263 |   NULLCMD=: | 
 | 264 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 265 |   # is contrary to our usage.  Disable this feature. | 
 | 266 |   alias -g '${1+"$@"}'='"$@"' | 
 | 267 |   setopt NO_GLOB_SUBST | 
 | 268 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 269 |   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 270 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
 | 272 | DUALCASE=1; export DUALCASE # for MKS sh | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 273 |  | 
 | 274 | : | 
 | 275 | (as_func_return () { | 
 | 276 |   (exit $1) | 
 | 277 | } | 
 | 278 | as_func_success () { | 
 | 279 |   as_func_return 0 | 
 | 280 | } | 
 | 281 | as_func_failure () { | 
 | 282 |   as_func_return 1 | 
 | 283 | } | 
 | 284 | as_func_ret_success () { | 
 | 285 |   return 0 | 
 | 286 | } | 
 | 287 | as_func_ret_failure () { | 
 | 288 |   return 1 | 
 | 289 | } | 
 | 290 |  | 
 | 291 | exitcode=0 | 
 | 292 | if as_func_success; then | 
 | 293 |   : | 
 | 294 | else | 
 | 295 |   exitcode=1 | 
 | 296 |   echo as_func_success failed. | 
 | 297 | fi | 
 | 298 |  | 
 | 299 | if as_func_failure; then | 
 | 300 |   exitcode=1 | 
 | 301 |   echo as_func_failure succeeded. | 
 | 302 | fi | 
 | 303 |  | 
 | 304 | if as_func_ret_success; then | 
 | 305 |   : | 
 | 306 | else | 
 | 307 |   exitcode=1 | 
 | 308 |   echo as_func_ret_success failed. | 
 | 309 | fi | 
 | 310 |  | 
 | 311 | if as_func_ret_failure; then | 
 | 312 |   exitcode=1 | 
 | 313 |   echo as_func_ret_failure succeeded. | 
 | 314 | fi | 
 | 315 |  | 
 | 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then | 
 | 317 |   : | 
 | 318 | else | 
 | 319 |   exitcode=1 | 
 | 320 |   echo positional parameters were not saved. | 
 | 321 | fi | 
 | 322 |  | 
 | 323 | test $exitcode = 0) || { (exit 1); exit 1; } | 
 | 324 |  | 
 | 325 | ( | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 326 |   as_lineno_1=$LINENO | 
 | 327 |   as_lineno_2=$LINENO | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 328 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 329 |   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | 
 | 330 |  | 
 | 331 | _ASEOF | 
 | 332 | }; then | 
 | 333 |   break | 
 | 334 | fi | 
 | 335 |  | 
 | 336 | fi | 
 | 337 |  | 
 | 338 |       done | 
 | 339 |  | 
 | 340 |       if test "x$CONFIG_SHELL" != x; then | 
 | 341 |   for as_var in BASH_ENV ENV | 
 | 342 |         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
 | 343 |         done | 
 | 344 |         export CONFIG_SHELL | 
 | 345 |         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
 | 346 | fi | 
 | 347 |  | 
 | 348 |  | 
 | 349 |     if test $as_have_required = no; then | 
 | 350 |   echo This script requires a shell more modern than all the | 
 | 351 |       echo shells that I found on your system.  Please install a | 
 | 352 |       echo modern shell, or manually run the script under such a | 
 | 353 |       echo shell if you do have one. | 
 | 354 |       { (exit 1); exit 1; } | 
 | 355 | fi | 
 | 356 |  | 
 | 357 |  | 
 | 358 | fi | 
 | 359 |  | 
 | 360 | fi | 
 | 361 |  | 
 | 362 |  | 
 | 363 |  | 
 | 364 | (eval "as_func_return () { | 
 | 365 |   (exit \$1) | 
 | 366 | } | 
 | 367 | as_func_success () { | 
 | 368 |   as_func_return 0 | 
 | 369 | } | 
 | 370 | as_func_failure () { | 
 | 371 |   as_func_return 1 | 
 | 372 | } | 
 | 373 | as_func_ret_success () { | 
 | 374 |   return 0 | 
 | 375 | } | 
 | 376 | as_func_ret_failure () { | 
 | 377 |   return 1 | 
 | 378 | } | 
 | 379 |  | 
 | 380 | exitcode=0 | 
 | 381 | if as_func_success; then | 
 | 382 |   : | 
 | 383 | else | 
 | 384 |   exitcode=1 | 
 | 385 |   echo as_func_success failed. | 
 | 386 | fi | 
 | 387 |  | 
 | 388 | if as_func_failure; then | 
 | 389 |   exitcode=1 | 
 | 390 |   echo as_func_failure succeeded. | 
 | 391 | fi | 
 | 392 |  | 
 | 393 | if as_func_ret_success; then | 
 | 394 |   : | 
 | 395 | else | 
 | 396 |   exitcode=1 | 
 | 397 |   echo as_func_ret_success failed. | 
 | 398 | fi | 
 | 399 |  | 
 | 400 | if as_func_ret_failure; then | 
 | 401 |   exitcode=1 | 
 | 402 |   echo as_func_ret_failure succeeded. | 
 | 403 | fi | 
 | 404 |  | 
 | 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | 
 | 406 |   : | 
 | 407 | else | 
 | 408 |   exitcode=1 | 
 | 409 |   echo positional parameters were not saved. | 
 | 410 | fi | 
 | 411 |  | 
 | 412 | test \$exitcode = 0") || { | 
 | 413 |   echo No shell found that supports shell functions. | 
 | 414 |   echo Please tell autoconf@gnu.org about your system, | 
 | 415 |   echo including any error possibly output before this | 
 | 416 |   echo message | 
 | 417 | } | 
 | 418 |  | 
 | 419 |  | 
 | 420 |  | 
 | 421 |   as_lineno_1=$LINENO | 
 | 422 |   as_lineno_2=$LINENO | 
 | 423 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
 | 424 |   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 425 |  | 
 | 426 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 427 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 428 |   # line-number line after each line using $LINENO; the second 'sed' | 
 | 429 |   # does the real work.  The second script uses 'N' to pair each | 
 | 430 |   # line-number line with the line containing $LINENO, and appends | 
 | 431 |   # trailing '-' during substitution so that $LINENO is not a special | 
 | 432 |   # case at line end. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 433 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 |   # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
 | 435 |   # E. McMahon (1931-1989) for sed's syntax.  :-) | 
 | 436 |   sed -n ' | 
 | 437 |     p | 
 | 438 |     /[$]LINENO/= | 
 | 439 |   ' <$as_myself | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 |     sed ' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 |       s/[$]LINENO.*/&-/ | 
 | 442 |       t lineno | 
 | 443 |       b | 
 | 444 |       :lineno | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 |       N | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 |       :loop | 
 | 447 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 |       t loop | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 |       s/-\n.*// | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 |     ' >$as_me.lineno && | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 |   chmod +x "$as_me.lineno" || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 452 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
 | 453 |    { (exit 1); exit 1; }; } | 
 | 454 |  | 
 | 455 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 456 |   # (the dirname of $[0] is not the place where we might find the | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 458 |   . "./$as_me.lineno" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 |   # Exit status is that of the last command. | 
 | 460 |   exit | 
 | 461 | } | 
 | 462 |  | 
 | 463 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 465 |   as_dirname=dirname | 
 | 466 | else | 
 | 467 |   as_dirname=false | 
 | 468 | fi | 
 | 469 |  | 
 | 470 | ECHO_C= ECHO_N= ECHO_T= | 
 | 471 | case `echo -n x` in | 
 | 472 | -n*) | 
 | 473 |   case `echo 'x\c'` in | 
 | 474 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
 | 475 |   *)   ECHO_C='\c';; | 
 | 476 |   esac;; | 
 | 477 | *) | 
 | 478 |   ECHO_N='-n';; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac | 
 | 480 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 482 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 483 |   as_expr=expr | 
 | 484 | else | 
 | 485 |   as_expr=false | 
 | 486 | fi | 
 | 487 |  | 
 | 488 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then | 
 | 490 |   rm -f conf$$.dir/conf$$.file | 
 | 491 | else | 
 | 492 |   rm -f conf$$.dir | 
 | 493 |   mkdir conf$$.dir | 
 | 494 | fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 495 | echo >conf$$.file | 
 | 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 497 |   as_ln_s='ln -s' | 
 | 498 |   # ... but there are two gotchas: | 
 | 499 |   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 500 |   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 501 |   # In both cases, we have to default to `cp -p'. | 
 | 502 |   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 |     as_ln_s='cp -p' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 505 |   as_ln_s=ln | 
 | 506 | else | 
 | 507 |   as_ln_s='cp -p' | 
 | 508 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 510 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 |  | 
 | 512 | if mkdir -p . 2>/dev/null; then | 
 | 513 |   as_mkdir_p=: | 
 | 514 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 |   as_mkdir_p=false | 
 | 517 | fi | 
 | 518 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
 | 520 | # systems may use methods other than mode bits to determine executability. | 
 | 521 | cat >conf$$.file <<_ASEOF | 
 | 522 | #! /bin/sh | 
 | 523 | exit 0 | 
 | 524 | _ASEOF | 
 | 525 | chmod +x conf$$.file | 
 | 526 | if test -x conf$$.file >/dev/null 2>&1; then | 
 | 527 |   as_executable_p="test -x" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 529 |   as_executable_p=: | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 531 | rm -f conf$$.file | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 |  | 
 | 533 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 |  | 
 | 536 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 |  | 
 | 539 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 540 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 541 |  | 
 | 542 | # Check that we are running under the correct shell. | 
 | 543 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 544 |  | 
 | 545 | case X$ECHO in | 
 | 546 | X*--fallback-echo) | 
 | 547 |   # Remove one level of quotation (which was required for Make). | 
 | 548 |   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 
 | 549 |   ;; | 
 | 550 | esac | 
 | 551 |  | 
 | 552 | echo=${ECHO-echo} | 
 | 553 | if test "X$1" = X--no-reexec; then | 
 | 554 |   # Discard the --no-reexec flag, and continue. | 
 | 555 |   shift | 
 | 556 | elif test "X$1" = X--fallback-echo; then | 
 | 557 |   # Avoid inline document here, it may be left over | 
 | 558 |   : | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 559 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 |   # Yippee, $echo works! | 
 | 561 |   : | 
 | 562 | else | 
 | 563 |   # Restart under the correct shell. | 
 | 564 |   exec $SHELL "$0" --no-reexec ${1+"$@"} | 
 | 565 | fi | 
 | 566 |  | 
 | 567 | if test "X$1" = X--fallback-echo; then | 
 | 568 |   # used as fallback echo | 
 | 569 |   shift | 
 | 570 |   cat <<EOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 571 | $* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 572 | EOF | 
 | 573 |   exit 0 | 
 | 574 | fi | 
 | 575 |  | 
 | 576 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 577 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 |  | 
 | 580 | if test -z "$ECHO"; then | 
 | 581 | if test "X${echo_test_string+set}" != Xset; then | 
 | 582 | # find a string as large as possible, as long as the shell can cope with it | 
 | 583 |   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 
 | 584 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 585 |     if (echo_test_string=`eval $cmd`) 2>/dev/null && | 
 | 586 |        echo_test_string=`eval $cmd` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 
 | 588 |     then | 
 | 589 |       break | 
 | 590 |     fi | 
 | 591 |   done | 
 | 592 | fi | 
 | 593 |  | 
 | 594 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 595 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 596 |    test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 597 |   : | 
 | 598 | else | 
 | 599 |   # The Solaris, AIX, and Digital Unix default echo programs unquote | 
 | 600 |   # backslashes.  This makes it impossible to quote backslashes using | 
 | 601 |   #   echo "$something" | sed 's/\\/\\\\/g' | 
 | 602 |   # | 
 | 603 |   # So, first we look for a working echo in the user's PATH. | 
 | 604 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 605 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 606 |   for dir in $PATH /usr/ucb; do | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 607 |     IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 608 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 
 | 609 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 610 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 
 | 611 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 612 |       echo="$dir/echo" | 
 | 613 |       break | 
 | 614 |     fi | 
 | 615 |   done | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 616 |   IFS="$lt_save_ifs" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 617 |  | 
 | 618 |   if test "X$echo" = Xecho; then | 
 | 619 |     # We didn't find a better echo, so look for alternatives. | 
 | 620 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 
 | 621 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 
 | 622 |        test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 623 |       # This shell has a builtin print -r that does the trick. | 
 | 624 |       echo='print -r' | 
 | 625 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 
 | 626 | 	 test "X$CONFIG_SHELL" != X/bin/ksh; then | 
 | 627 |       # If we have ksh, try running configure again with it. | 
 | 628 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 629 |       export ORIGINAL_CONFIG_SHELL | 
 | 630 |       CONFIG_SHELL=/bin/ksh | 
 | 631 |       export CONFIG_SHELL | 
 | 632 |       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | 
 | 633 |     else | 
 | 634 |       # Try using printf. | 
 | 635 |       echo='printf %s\n' | 
 | 636 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 
 | 637 | 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 
 | 638 | 	 test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 639 | 	# Cool, printf works | 
 | 640 | 	: | 
 | 641 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 642 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 643 | 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 644 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 645 | 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 
 | 646 | 	export CONFIG_SHELL | 
 | 647 | 	SHELL="$CONFIG_SHELL" | 
 | 648 | 	export SHELL | 
 | 649 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 650 |       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 
 | 651 | 	   test "X$echo_testing_string" = 'X\t' && | 
 | 652 | 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 
 | 653 | 	   test "X$echo_testing_string" = "X$echo_test_string"; then | 
 | 654 | 	echo="$CONFIG_SHELL $0 --fallback-echo" | 
 | 655 |       else | 
 | 656 | 	# maybe with a smaller string... | 
 | 657 | 	prev=: | 
 | 658 |  | 
 | 659 | 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 
 | 660 | 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 
 | 661 | 	  then | 
 | 662 | 	    break | 
 | 663 | 	  fi | 
 | 664 | 	  prev="$cmd" | 
 | 665 | 	done | 
 | 666 |  | 
 | 667 | 	if test "$prev" != 'sed 50q "$0"'; then | 
 | 668 | 	  echo_test_string=`eval $prev` | 
 | 669 | 	  export echo_test_string | 
 | 670 | 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | 
 | 671 | 	else | 
 | 672 | 	  # Oops.  We lost completely, so just stick with echo. | 
 | 673 | 	  echo=echo | 
 | 674 | 	fi | 
 | 675 |       fi | 
 | 676 |     fi | 
 | 677 |   fi | 
 | 678 | fi | 
 | 679 | fi | 
 | 680 |  | 
 | 681 | # Copy echo and quote the copy suitably for passing to libtool from | 
 | 682 | # the Makefile, instead of quoting the original, which is used later. | 
 | 683 | ECHO=$echo | 
 | 684 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 
 | 685 |    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 
 | 686 | fi | 
 | 687 |  | 
 | 688 |  | 
 | 689 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 690 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 691 | tagnames=${tagnames+${tagnames},}CXX | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 692 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 693 | tagnames=${tagnames+${tagnames},}F77 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 694 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 695 | exec 7<&0 </dev/null 6>&1 | 
 | 696 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 697 | # Name of the host. | 
 | 698 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
 | 699 | # so uname gets run too. | 
 | 700 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 701 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 702 | # | 
 | 703 | # Initializations. | 
 | 704 | # | 
 | 705 | ac_default_prefix=/usr/local | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 706 | ac_clean_files= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 707 | ac_config_libobj_dir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 708 | LIBOBJS= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 709 | cross_compiling=no | 
 | 710 | subdirs= | 
 | 711 | MFLAGS= | 
 | 712 | MAKEFLAGS= | 
 | 713 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 714 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 715 | # Identity of this package. | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 716 | PACKAGE_NAME='llvm' | 
| Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 717 | PACKAGE_TARNAME='-llvm-' | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.7svn' | 
 | 719 | PACKAGE_STRING='llvm 2.7svn' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' | 
 | 721 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. | 
 | 724 | ac_includes_default="\ | 
 | 725 | #include <stdio.h> | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 726 | #if HAVE_SYS_TYPES_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 727 | # include <sys/types.h> | 
 | 728 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 729 | #if HAVE_SYS_STAT_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 730 | # include <sys/stat.h> | 
 | 731 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 732 | #if STDC_HEADERS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 733 | # include <stdlib.h> | 
 | 734 | # include <stddef.h> | 
 | 735 | #else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 736 | # if HAVE_STDLIB_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 737 | #  include <stdlib.h> | 
 | 738 | # endif | 
 | 739 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 740 | #if HAVE_STRING_H | 
 | 741 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 742 | #  include <memory.h> | 
 | 743 | # endif | 
 | 744 | # include <string.h> | 
 | 745 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 746 | #if HAVE_STRINGS_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 747 | # include <strings.h> | 
 | 748 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 749 | #if HAVE_INTTYPES_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 750 | # include <inttypes.h> | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 752 | #if HAVE_STDINT_H | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 753 | # include <stdint.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 755 | #if HAVE_UNISTD_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 756 | # include <unistd.h> | 
 | 757 | #endif" | 
 | 758 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 759 | ac_subst_vars='SHELL | 
 | 760 | PATH_SEPARATOR | 
 | 761 | PACKAGE_NAME | 
 | 762 | PACKAGE_TARNAME | 
 | 763 | PACKAGE_VERSION | 
 | 764 | PACKAGE_STRING | 
 | 765 | PACKAGE_BUGREPORT | 
 | 766 | exec_prefix | 
 | 767 | prefix | 
 | 768 | program_transform_name | 
 | 769 | bindir | 
 | 770 | sbindir | 
 | 771 | libexecdir | 
 | 772 | datarootdir | 
 | 773 | datadir | 
 | 774 | sysconfdir | 
 | 775 | sharedstatedir | 
 | 776 | localstatedir | 
 | 777 | includedir | 
 | 778 | oldincludedir | 
 | 779 | docdir | 
 | 780 | infodir | 
 | 781 | htmldir | 
 | 782 | dvidir | 
 | 783 | pdfdir | 
 | 784 | psdir | 
 | 785 | libdir | 
 | 786 | localedir | 
 | 787 | mandir | 
 | 788 | DEFS | 
 | 789 | ECHO_C | 
 | 790 | ECHO_N | 
 | 791 | ECHO_T | 
 | 792 | LIBS | 
 | 793 | build_alias | 
 | 794 | host_alias | 
 | 795 | target_alias | 
 | 796 | LLVM_COPYRIGHT | 
 | 797 | subdirs | 
 | 798 | build | 
 | 799 | build_cpu | 
 | 800 | build_vendor | 
 | 801 | build_os | 
 | 802 | host | 
 | 803 | host_cpu | 
 | 804 | host_vendor | 
 | 805 | host_os | 
 | 806 | target | 
 | 807 | target_cpu | 
 | 808 | target_vendor | 
 | 809 | target_os | 
 | 810 | OS | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 811 | HOST_OS | 
 | 812 | TARGET_OS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | LINKALL | 
 | 814 | NOLINKALL | 
 | 815 | LLVM_ON_UNIX | 
 | 816 | LLVM_ON_WIN32 | 
| Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 817 | ARCH | 
 | 818 | ENDIAN | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | CC | 
 | 820 | CFLAGS | 
 | 821 | LDFLAGS | 
 | 822 | CPPFLAGS | 
 | 823 | ac_ct_CC | 
 | 824 | EXEEXT | 
 | 825 | OBJEXT | 
 | 826 | CPP | 
 | 827 | GREP | 
 | 828 | EGREP | 
 | 829 | LLVM_CROSS_COMPILING | 
 | 830 | BUILD_CC | 
 | 831 | BUILD_EXEEXT | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 832 | BUILD_CXX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 833 | CVSBUILD | 
 | 834 | ENABLE_OPTIMIZED | 
| David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 835 | ENABLE_PROFILING | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 836 | DISABLE_ASSERTIONS | 
| David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 837 | ENABLE_EXPENSIVE_CHECKS | 
 | 838 | EXPENSIVE_CHECKS | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 839 | DEBUG_RUNTIME | 
| Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 840 | DEBUG_SYMBOLS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | JIT | 
 | 842 | TARGET_HAS_JIT | 
 | 843 | ENABLE_DOXYGEN | 
 | 844 | ENABLE_THREADS | 
| Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 845 | ENABLE_PIC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | TARGETS_TO_BUILD | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 847 | LLVM_ENUM_TARGETS | 
 | 848 | LLVM_ENUM_ASM_PRINTERS | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 849 | LLVM_ENUM_ASM_PARSERS | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 850 | LLVM_ENUM_DISASSEMBLERS | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 851 | ENABLE_CBE_PRINTF_A | 
| Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 852 | OPTIMIZE_OPTION | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 853 | EXTRA_OPTIONS | 
| Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 854 | BINUTILS_INCDIR | 
| Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 855 | ENABLE_LLVMC_DYNAMIC | 
 | 856 | ENABLE_LLVMC_DYNAMIC_PLUGINS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | CXX | 
 | 858 | CXXFLAGS | 
 | 859 | ac_ct_CXX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 860 | NM | 
 | 861 | ifGNUmake | 
 | 862 | LN_S | 
 | 863 | CMP | 
 | 864 | CP | 
 | 865 | DATE | 
 | 866 | FIND | 
 | 867 | MKDIR | 
 | 868 | MV | 
 | 869 | RANLIB | 
 | 870 | RM | 
 | 871 | SED | 
 | 872 | TAR | 
 | 873 | BINPWD | 
 | 874 | GRAPHVIZ | 
 | 875 | DOT | 
| David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 876 | FDP | 
 | 877 | NEATO | 
 | 878 | TWOPI | 
 | 879 | CIRCO | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 880 | GV | 
 | 881 | DOTTY | 
 | 882 | PERL | 
 | 883 | HAVE_PERL | 
 | 884 | INSTALL_PROGRAM | 
 | 885 | INSTALL_SCRIPT | 
 | 886 | INSTALL_DATA | 
 | 887 | BZIP2 | 
 | 888 | DOXYGEN | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 889 | GROFF | 
 | 890 | GZIP | 
 | 891 | POD2HTML | 
 | 892 | POD2MAN | 
 | 893 | RUNTEST | 
 | 894 | TCLSH | 
 | 895 | ZIP | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 896 | OCAMLC | 
 | 897 | OCAMLOPT | 
| Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 898 | OCAMLDEP | 
| Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 899 | OCAMLDOC | 
| Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 900 | GAS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 901 | INSTALL_LTDL_TRUE | 
 | 902 | INSTALL_LTDL_FALSE | 
 | 903 | CONVENIENCE_LTDL_TRUE | 
 | 904 | CONVENIENCE_LTDL_FALSE | 
 | 905 | LIBADD_DL | 
 | 906 | ECHO | 
 | 907 | AR | 
 | 908 | STRIP | 
 | 909 | CXXCPP | 
 | 910 | F77 | 
 | 911 | FFLAGS | 
 | 912 | ac_ct_F77 | 
 | 913 | LIBTOOL | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 914 | LLVMGCCCOMMAND | 
 | 915 | LLVMGXXCOMMAND | 
| Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 916 | LLVMGCC | 
 | 917 | LLVMGXX | 
| Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 918 | NO_VARIADIC_MACROS | 
 | 919 | NO_MISSING_FIELD_INITIALIZERS | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 920 | USE_UDIS86 | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 921 | USE_OPROFILE | 
| Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 922 | HAVE_PTHREAD | 
| Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 923 | HUGE_VAL_SANITY | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 924 | ALLOCA | 
 | 925 | MMAP_FILE | 
 | 926 | LLVMCC1 | 
 | 927 | LLVMCC1PLUS | 
 | 928 | LLVMGCCDIR | 
| Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 929 | LLVMGCCLIBEXEC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 930 | LLVMGCC_VERSION | 
 | 931 | LLVMGCC_MAJVERS | 
| Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 932 | LLVMGCC_LANGS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 933 | SHLIBEXT | 
 | 934 | LLVM_PREFIX | 
 | 935 | LLVM_BINDIR | 
 | 936 | LLVM_LIBDIR | 
 | 937 | LLVM_DATADIR | 
 | 938 | LLVM_DOCSDIR | 
 | 939 | LLVM_ETCDIR | 
 | 940 | LLVM_INCLUDEDIR | 
 | 941 | LLVM_INFODIR | 
 | 942 | LLVM_MANDIR | 
 | 943 | LLVM_CONFIGTIME | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 944 | BINDINGS_TO_BUILD | 
 | 945 | ALL_BINDINGS | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 946 | OCAML_LIBDIR | 
| Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 947 | ENABLE_VISIBILITY_INLINES_HIDDEN | 
| Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 948 | RPATH | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 949 | RDYNAMIC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 950 | LIBOBJS | 
 | 951 | LTLIBOBJS' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 952 | ac_subst_files='' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 953 |       ac_precious_vars='build_alias | 
 | 954 | host_alias | 
 | 955 | target_alias | 
 | 956 | CC | 
 | 957 | CFLAGS | 
 | 958 | LDFLAGS | 
 | 959 | CPPFLAGS | 
 | 960 | CPP | 
 | 961 | CXX | 
 | 962 | CXXFLAGS | 
 | 963 | CCC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 964 | CXXCPP | 
 | 965 | F77 | 
 | 966 | FFLAGS' | 
 | 967 | ac_subdirs_all='projects/sample | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 968 | projects/privbracket | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 969 | projects/llvm-stacker | 
| Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 970 | projects/llvm-test | 
| Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 971 | projects/test-suite | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 972 | projects/llvm-reopt | 
 | 973 | projects/llvm-gcc | 
 | 974 | projects/llvm-java | 
 | 975 | projects/llvm-tv | 
 | 976 | projects/llvm-poolalloc | 
| Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 977 | projects/poolalloc | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 978 | projects/llvm-kernel' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 979 |  | 
 | 980 | # Initialize some variables set by options. | 
 | 981 | ac_init_help= | 
 | 982 | ac_init_version=false | 
 | 983 | # The variables have the same names as the options, with | 
 | 984 | # dashes changed to underlines. | 
 | 985 | cache_file=/dev/null | 
 | 986 | exec_prefix=NONE | 
 | 987 | no_create= | 
 | 988 | no_recursion= | 
 | 989 | prefix=NONE | 
 | 990 | program_prefix=NONE | 
 | 991 | program_suffix=NONE | 
 | 992 | program_transform_name=s,x,x, | 
 | 993 | silent= | 
 | 994 | site= | 
 | 995 | srcdir= | 
 | 996 | verbose= | 
 | 997 | x_includes=NONE | 
 | 998 | x_libraries=NONE | 
 | 999 |  | 
 | 1000 | # Installation directory options. | 
 | 1001 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 1002 | # and all the variables that are supposed to be based on exec_prefix | 
 | 1003 | # by default will actually change. | 
 | 1004 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1005 | # (The list follows the same order as the GNU Coding Standards.) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1006 | bindir='${exec_prefix}/bin' | 
 | 1007 | sbindir='${exec_prefix}/sbin' | 
 | 1008 | libexecdir='${exec_prefix}/libexec' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | datarootdir='${prefix}/share' | 
 | 1010 | datadir='${datarootdir}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | sysconfdir='${prefix}/etc' | 
 | 1012 | sharedstatedir='${prefix}/com' | 
 | 1013 | localstatedir='${prefix}/var' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | includedir='${prefix}/include' | 
 | 1015 | oldincludedir='/usr/include' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1016 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 1017 | infodir='${datarootdir}/info' | 
 | 1018 | htmldir='${docdir}' | 
 | 1019 | dvidir='${docdir}' | 
 | 1020 | pdfdir='${docdir}' | 
 | 1021 | psdir='${docdir}' | 
 | 1022 | libdir='${exec_prefix}/lib' | 
 | 1023 | localedir='${datarootdir}/locale' | 
 | 1024 | mandir='${datarootdir}/man' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1025 |  | 
 | 1026 | ac_prev= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1027 | ac_dashdash= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1028 | for ac_option | 
 | 1029 | do | 
 | 1030 |   # If the previous option needs an argument, assign it. | 
 | 1031 |   if test -n "$ac_prev"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1032 |     eval $ac_prev=\$ac_option | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1033 |     ac_prev= | 
 | 1034 |     continue | 
 | 1035 |   fi | 
 | 1036 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1037 |   case $ac_option in | 
 | 1038 |   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 1039 |   *)	ac_optarg=yes ;; | 
 | 1040 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 |  | 
 | 1042 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 1043 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1044 |   case $ac_dashdash$ac_option in | 
 | 1045 |   --) | 
 | 1046 |     ac_dashdash=yes ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1047 |  | 
 | 1048 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 1049 |     ac_prev=bindir ;; | 
 | 1050 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 1051 |     bindir=$ac_optarg ;; | 
 | 1052 |  | 
 | 1053 |   -build | --build | --buil | --bui | --bu) | 
 | 1054 |     ac_prev=build_alias ;; | 
 | 1055 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 1056 |     build_alias=$ac_optarg ;; | 
 | 1057 |  | 
 | 1058 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 1059 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 1060 |     ac_prev=cache_file ;; | 
 | 1061 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 1062 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 1063 |     cache_file=$ac_optarg ;; | 
 | 1064 |  | 
 | 1065 |   --config-cache | -C) | 
 | 1066 |     cache_file=config.cache ;; | 
 | 1067 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1068 |   -datadir | --datadir | --datadi | --datad) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1069 |     ac_prev=datadir ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1070 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1071 |     datadir=$ac_optarg ;; | 
 | 1072 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1073 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 1074 |   | --dataroo | --dataro | --datar) | 
 | 1075 |     ac_prev=datarootdir ;; | 
 | 1076 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 1077 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 1078 |     datarootdir=$ac_optarg ;; | 
 | 1079 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1080 |   -disable-* | --disable-*) | 
 | 1081 |     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 1082 |     # Reject names that are not valid shell variable names. | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1083 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1084 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 1085 |    { (exit 1); exit 1; }; } | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1086 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1087 |     eval enable_$ac_feature=no ;; | 
 | 1088 |  | 
 | 1089 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 1090 |     ac_prev=docdir ;; | 
 | 1091 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 1092 |     docdir=$ac_optarg ;; | 
 | 1093 |  | 
 | 1094 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 1095 |     ac_prev=dvidir ;; | 
 | 1096 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 1097 |     dvidir=$ac_optarg ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1098 |  | 
 | 1099 |   -enable-* | --enable-*) | 
 | 1100 |     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 1101 |     # Reject names that are not valid shell variable names. | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1102 |     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1103 |       { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
 | 1104 |    { (exit 1); exit 1; }; } | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1105 |     ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1106 |     eval enable_$ac_feature=\$ac_optarg ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1107 |  | 
 | 1108 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 1109 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 1110 |   | --exec | --exe | --ex) | 
 | 1111 |     ac_prev=exec_prefix ;; | 
 | 1112 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1113 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1114 |   | --exec=* | --exe=* | --ex=*) | 
 | 1115 |     exec_prefix=$ac_optarg ;; | 
 | 1116 |  | 
 | 1117 |   -gas | --gas | --ga | --g) | 
 | 1118 |     # Obsolete; use --with-gas. | 
 | 1119 |     with_gas=yes ;; | 
 | 1120 |  | 
 | 1121 |   -help | --help | --hel | --he | -h) | 
 | 1122 |     ac_init_help=long ;; | 
 | 1123 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1124 |     ac_init_help=recursive ;; | 
 | 1125 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1126 |     ac_init_help=short ;; | 
 | 1127 |  | 
 | 1128 |   -host | --host | --hos | --ho) | 
 | 1129 |     ac_prev=host_alias ;; | 
 | 1130 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 1131 |     host_alias=$ac_optarg ;; | 
 | 1132 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1133 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1134 |     ac_prev=htmldir ;; | 
 | 1135 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1136 |   | --ht=*) | 
 | 1137 |     htmldir=$ac_optarg ;; | 
 | 1138 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1140 |   | --includ | --inclu | --incl | --inc) | 
 | 1141 |     ac_prev=includedir ;; | 
 | 1142 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1143 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 1144 |     includedir=$ac_optarg ;; | 
 | 1145 |  | 
 | 1146 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1147 |     ac_prev=infodir ;; | 
 | 1148 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 1149 |     infodir=$ac_optarg ;; | 
 | 1150 |  | 
 | 1151 |   -libdir | --libdir | --libdi | --libd) | 
 | 1152 |     ac_prev=libdir ;; | 
 | 1153 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 1154 |     libdir=$ac_optarg ;; | 
 | 1155 |  | 
 | 1156 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1157 |   | --libexe | --libex | --libe) | 
 | 1158 |     ac_prev=libexecdir ;; | 
 | 1159 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1160 |   | --libexe=* | --libex=* | --libe=*) | 
 | 1161 |     libexecdir=$ac_optarg ;; | 
 | 1162 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1163 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1164 |     ac_prev=localedir ;; | 
 | 1165 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1166 |     localedir=$ac_optarg ;; | 
 | 1167 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1168 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1169 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1170 |     ac_prev=localstatedir ;; | 
 | 1171 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1172 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1173 |     localstatedir=$ac_optarg ;; | 
 | 1174 |  | 
 | 1175 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1176 |     ac_prev=mandir ;; | 
 | 1177 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 1178 |     mandir=$ac_optarg ;; | 
 | 1179 |  | 
 | 1180 |   -nfp | --nfp | --nf) | 
 | 1181 |     # Obsolete; use --without-fp. | 
 | 1182 |     with_fp=no ;; | 
 | 1183 |  | 
 | 1184 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 1185 |   | --no-cr | --no-c | -n) | 
 | 1186 |     no_create=yes ;; | 
 | 1187 |  | 
 | 1188 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1189 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1190 |     no_recursion=yes ;; | 
 | 1191 |  | 
 | 1192 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1193 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1194 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1195 |     ac_prev=oldincludedir ;; | 
 | 1196 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1197 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1198 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 1199 |     oldincludedir=$ac_optarg ;; | 
 | 1200 |  | 
 | 1201 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1202 |     ac_prev=prefix ;; | 
 | 1203 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 1204 |     prefix=$ac_optarg ;; | 
 | 1205 |  | 
 | 1206 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1207 |   | --program-pre | --program-pr | --program-p) | 
 | 1208 |     ac_prev=program_prefix ;; | 
 | 1209 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1210 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 1211 |     program_prefix=$ac_optarg ;; | 
 | 1212 |  | 
 | 1213 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1214 |   | --program-suf | --program-su | --program-s) | 
 | 1215 |     ac_prev=program_suffix ;; | 
 | 1216 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1217 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 1218 |     program_suffix=$ac_optarg ;; | 
 | 1219 |  | 
 | 1220 |   -program-transform-name | --program-transform-name \ | 
 | 1221 |   | --program-transform-nam | --program-transform-na \ | 
 | 1222 |   | --program-transform-n | --program-transform- \ | 
 | 1223 |   | --program-transform | --program-transfor \ | 
 | 1224 |   | --program-transfo | --program-transf \ | 
 | 1225 |   | --program-trans | --program-tran \ | 
 | 1226 |   | --progr-tra | --program-tr | --program-t) | 
 | 1227 |     ac_prev=program_transform_name ;; | 
 | 1228 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1229 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1230 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1231 |   | --program-transform=* | --program-transfor=* \ | 
 | 1232 |   | --program-transfo=* | --program-transf=* \ | 
 | 1233 |   | --program-trans=* | --program-tran=* \ | 
 | 1234 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 1235 |     program_transform_name=$ac_optarg ;; | 
 | 1236 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1237 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1238 |     ac_prev=pdfdir ;; | 
 | 1239 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1240 |     pdfdir=$ac_optarg ;; | 
 | 1241 |  | 
 | 1242 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1243 |     ac_prev=psdir ;; | 
 | 1244 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1245 |     psdir=$ac_optarg ;; | 
 | 1246 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1247 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1248 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1249 |     silent=yes ;; | 
 | 1250 |  | 
 | 1251 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1252 |     ac_prev=sbindir ;; | 
 | 1253 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1254 |   | --sbi=* | --sb=*) | 
 | 1255 |     sbindir=$ac_optarg ;; | 
 | 1256 |  | 
 | 1257 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1258 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1259 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1260 |   | --sha | --sh) | 
 | 1261 |     ac_prev=sharedstatedir ;; | 
 | 1262 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1263 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1264 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1265 |   | --sha=* | --sh=*) | 
 | 1266 |     sharedstatedir=$ac_optarg ;; | 
 | 1267 |  | 
 | 1268 |   -site | --site | --sit) | 
 | 1269 |     ac_prev=site ;; | 
 | 1270 |   -site=* | --site=* | --sit=*) | 
 | 1271 |     site=$ac_optarg ;; | 
 | 1272 |  | 
 | 1273 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1274 |     ac_prev=srcdir ;; | 
 | 1275 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 1276 |     srcdir=$ac_optarg ;; | 
 | 1277 |  | 
 | 1278 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1279 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1280 |     ac_prev=sysconfdir ;; | 
 | 1281 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1282 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 1283 |     sysconfdir=$ac_optarg ;; | 
 | 1284 |  | 
 | 1285 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 1286 |     ac_prev=target_alias ;; | 
 | 1287 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 1288 |     target_alias=$ac_optarg ;; | 
 | 1289 |  | 
 | 1290 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1291 |     verbose=yes ;; | 
 | 1292 |  | 
 | 1293 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1294 |     ac_init_version=: ;; | 
 | 1295 |  | 
 | 1296 |   -with-* | --with-*) | 
 | 1297 |     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 1298 |     # Reject names that are not valid shell variable names. | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1299 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1300 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 1301 |    { (exit 1); exit 1; }; } | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1302 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1303 |     eval with_$ac_package=\$ac_optarg ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1304 |  | 
 | 1305 |   -without-* | --without-*) | 
 | 1306 |     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 1307 |     # Reject names that are not valid shell variable names. | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1308 |     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1309 |       { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
 | 1310 |    { (exit 1); exit 1; }; } | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1311 |     ac_package=`echo $ac_package | sed 's/-/_/g'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1312 |     eval with_$ac_package=no ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1313 |  | 
 | 1314 |   --x) | 
 | 1315 |     # Obsolete; use --with-x. | 
 | 1316 |     with_x=yes ;; | 
 | 1317 |  | 
 | 1318 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1319 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1320 |     ac_prev=x_includes ;; | 
 | 1321 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1322 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 1323 |     x_includes=$ac_optarg ;; | 
 | 1324 |  | 
 | 1325 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1326 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1327 |     ac_prev=x_libraries ;; | 
 | 1328 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1329 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 1330 |     x_libraries=$ac_optarg ;; | 
 | 1331 |  | 
 | 1332 |   -*) { echo "$as_me: error: unrecognized option: $ac_option | 
 | 1333 | Try \`$0 --help' for more information." >&2 | 
 | 1334 |    { (exit 1); exit 1; }; } | 
 | 1335 |     ;; | 
 | 1336 |  | 
 | 1337 |   *=*) | 
 | 1338 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1339 |     # Reject names that are not valid shell variable names. | 
 | 1340 |     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
 | 1341 |       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
 | 1342 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1343 |     eval $ac_envvar=\$ac_optarg | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 |     export $ac_envvar ;; | 
 | 1345 |  | 
 | 1346 |   *) | 
 | 1347 |     # FIXME: should be removed in autoconf 3.0. | 
 | 1348 |     echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 1349 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 1350 |       echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
 | 1351 |     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
 | 1352 |     ;; | 
 | 1353 |  | 
 | 1354 |   esac | 
 | 1355 | done | 
 | 1356 |  | 
 | 1357 | if test -n "$ac_prev"; then | 
 | 1358 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
 | 1359 |   { echo "$as_me: error: missing argument to $ac_option" >&2 | 
 | 1360 |    { (exit 1); exit 1; }; } | 
 | 1361 | fi | 
 | 1362 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1363 | # Be sure to have absolute directory names. | 
 | 1364 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1365 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1366 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1367 | 		libdir localedir mandir | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1368 | do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1369 |   eval ac_val=\$$ac_var | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1370 |   case $ac_val in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1371 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1372 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1373 |   esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1374 |   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
 | 1375 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1376 | done | 
 | 1377 |  | 
 | 1378 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1379 | # used to hold the argument of --host etc. | 
 | 1380 | # FIXME: To remove some day. | 
 | 1381 | build=$build_alias | 
 | 1382 | host=$host_alias | 
 | 1383 | target=$target_alias | 
 | 1384 |  | 
 | 1385 | # FIXME: To remove some day. | 
 | 1386 | if test "x$host_alias" != x; then | 
 | 1387 |   if test "x$build_alias" = x; then | 
 | 1388 |     cross_compiling=maybe | 
 | 1389 |     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
 | 1390 |     If a cross compiler is detected then cross compile mode will be used." >&2 | 
 | 1391 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1392 |     cross_compiling=yes | 
 | 1393 |   fi | 
 | 1394 | fi | 
 | 1395 |  | 
 | 1396 | ac_tool_prefix= | 
 | 1397 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1398 |  | 
 | 1399 | test "$silent" = yes && exec 6>/dev/null | 
 | 1400 |  | 
 | 1401 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1402 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1403 | ac_ls_di=`ls -di .` && | 
 | 1404 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
 | 1405 |   { echo "$as_me: error: Working directory cannot be determined" >&2 | 
 | 1406 |    { (exit 1); exit 1; }; } | 
 | 1407 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
 | 1408 |   { echo "$as_me: error: pwd does not report name of working directory" >&2 | 
 | 1409 |    { (exit 1); exit 1; }; } | 
 | 1410 |  | 
 | 1411 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1412 | # Find the source files, if location was not specified. | 
 | 1413 | if test -z "$srcdir"; then | 
 | 1414 |   ac_srcdir_defaulted=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1415 |   # Try the directory containing this script, then the parent directory. | 
 | 1416 |   ac_confdir=`$as_dirname -- "$0" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1417 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1418 | 	 X"$0" : 'X\(//\)[^/]' \| \ | 
 | 1419 | 	 X"$0" : 'X\(//\)$' \| \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1420 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1421 | echo X"$0" | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1422 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1423 | 	    s//\1/ | 
 | 1424 | 	    q | 
 | 1425 | 	  } | 
 | 1426 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1427 | 	    s//\1/ | 
 | 1428 | 	    q | 
 | 1429 | 	  } | 
 | 1430 | 	  /^X\(\/\/\)$/{ | 
 | 1431 | 	    s//\1/ | 
 | 1432 | 	    q | 
 | 1433 | 	  } | 
 | 1434 | 	  /^X\(\/\).*/{ | 
 | 1435 | 	    s//\1/ | 
 | 1436 | 	    q | 
 | 1437 | 	  } | 
 | 1438 | 	  s/.*/./; q'` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1439 |   srcdir=$ac_confdir | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1440 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1441 |     srcdir=.. | 
 | 1442 |   fi | 
 | 1443 | else | 
 | 1444 |   ac_srcdir_defaulted=no | 
 | 1445 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1446 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1447 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
 | 1448 |   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1449 |    { (exit 1); exit 1; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1450 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1451 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1452 | ac_abs_confdir=`( | 
 | 1453 | 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1454 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1455 | 	pwd)` | 
 | 1456 | # When building in place, set srcdir=. | 
 | 1457 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1458 |   srcdir=. | 
 | 1459 | fi | 
 | 1460 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1461 | # Double slashes in file names in object file debugging info | 
 | 1462 | # mess up M-x gdb in Emacs. | 
 | 1463 | case $srcdir in | 
 | 1464 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1465 | esac | 
 | 1466 | for ac_var in $ac_precious_vars; do | 
 | 1467 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1468 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1469 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1470 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1471 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 |  | 
 | 1473 | # | 
 | 1474 | # Report the --help message. | 
 | 1475 | # | 
 | 1476 | if test "$ac_init_help" = "long"; then | 
 | 1477 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1478 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1479 |   cat <<_ACEOF | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1480 | \`configure' configures llvm 2.7svn to adapt to many kinds of systems. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 |  | 
 | 1482 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1483 |  | 
 | 1484 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1485 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1486 |  | 
 | 1487 | Defaults for the options are specified in brackets. | 
 | 1488 |  | 
 | 1489 | Configuration: | 
 | 1490 |   -h, --help              display this help and exit | 
 | 1491 |       --help=short        display options specific to this package | 
 | 1492 |       --help=recursive    display the short help of all the included packages | 
 | 1493 |   -V, --version           display version information and exit | 
 | 1494 |   -q, --quiet, --silent   do not print \`checking...' messages | 
 | 1495 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1496 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1497 |   -n, --no-create         do not create output files | 
 | 1498 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1499 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | Installation directories: | 
 | 1501 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1502 | 			  [$ac_default_prefix] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1503 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1504 | 			  [PREFIX] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1505 |  | 
 | 1506 | By default, \`make install' will install all the files in | 
 | 1507 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1508 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1509 | for instance \`--prefix=\$HOME'. | 
 | 1510 |  | 
 | 1511 | For better control, use the options below. | 
 | 1512 |  | 
 | 1513 | Fine tuning of the installation directories: | 
 | 1514 |   --bindir=DIR           user executables [EPREFIX/bin] | 
 | 1515 |   --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
 | 1516 |   --libexecdir=DIR       program executables [EPREFIX/libexec] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1517 |   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
 | 1518 |   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
 | 1519 |   --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
 | 1520 |   --libdir=DIR           object code libraries [EPREFIX/lib] | 
 | 1521 |   --includedir=DIR       C header files [PREFIX/include] | 
 | 1522 |   --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1523 |   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share] | 
 | 1524 |   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR] | 
 | 1525 |   --infodir=DIR          info documentation [DATAROOTDIR/info] | 
 | 1526 |   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale] | 
 | 1527 |   --mandir=DIR           man documentation [DATAROOTDIR/man] | 
 | 1528 |   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-] | 
 | 1529 |   --htmldir=DIR          html documentation [DOCDIR] | 
 | 1530 |   --dvidir=DIR           dvi documentation [DOCDIR] | 
 | 1531 |   --pdfdir=DIR           pdf documentation [DOCDIR] | 
 | 1532 |   --psdir=DIR            ps documentation [DOCDIR] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | _ACEOF | 
 | 1534 |  | 
 | 1535 |   cat <<\_ACEOF | 
 | 1536 |  | 
 | 1537 | System types: | 
 | 1538 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1539 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1540 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1541 | _ACEOF | 
 | 1542 | fi | 
 | 1543 |  | 
 | 1544 | if test -n "$ac_init_help"; then | 
 | 1545 |   case $ac_init_help in | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1546 |      short | recursive ) echo "Configuration of llvm 2.7svn:";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 |    esac | 
 | 1548 |   cat <<\_ACEOF | 
 | 1549 |  | 
 | 1550 | Optional Features: | 
 | 1551 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1552 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1553 |   --enable-optimized      Compile with optimizations enabled (default is NO) | 
 | 1554 |   --enable-profiling      Compile with profiling enabled (default is NO) | 
 | 1555 |   --enable-assertions     Compile with assertion checks enabled (default is | 
 | 1556 |                           YES) | 
| David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1557 |   --enable-expensive-checks | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1558 |                           Compile with expensive debug checks enabled (default | 
 | 1559 |                           is NO) | 
 | 1560 |   --enable-debug-runtime  Build runtime libs with debug symbols (default is | 
 | 1561 |                           NO) | 
| Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1562 |   --enable-debug-symbols  Build compiler with debug symbols (default is NO if | 
 | 1563 |                           optimization is on and YES if it's off) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1564 |   --enable-jit            Enable Just In Time Compiling (default is YES) | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1565 |   --enable-doxygen        Build doxygen documentation (default is NO) | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1566 |   --enable-threads        Use threads if available (default is YES) | 
| Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1567 |   --enable-pic            Build LLVM with Position Independent Code (default | 
| Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1568 |                           is YES) | 
| Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1569 |   --enable-targets        Build specific host targets: all or | 
 | 1570 |                           target1,target2,... Valid targets are: host, x86, | 
 | 1571 |                           x86_64, sparc, powerpc, alpha, arm, mips, spu, | 
 | 1572 |                           pic16, xcore, msp430, systemz, blackfin, cbe, msil, | 
 | 1573 |                           and cpp (default=all) | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1574 |   --enable-cbe-printf-a   Enable C Backend output with hex floating point via | 
 | 1575 |                           %a (default is YES) | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1576 |   --enable-bindings       Build specific language bindings: | 
 | 1577 |                           all,auto,none,{binding-name} (default=auto) | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1578 |   --enable-libffi         Check for the presence of libffi (default is YES) | 
| Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1579 |   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on | 
 | 1580 |                           Win32) | 
 | 1581 |   --enable-llvmc-dynamic-plugins | 
 | 1582 |                           Enable dynamic LLVMC plugins (default is YES) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1583 |   --enable-ltdl-install   install libltdl | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1584 |   --enable-shared[=PKGS]  build shared libraries | 
| Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1585 |                           [default=yes] | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1586 |   --enable-static[=PKGS]  build static libraries | 
| Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1587 |                           [default=yes] | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1588 |   --enable-fast-install[=PKGS] | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1589 |                           optimize for fast installation | 
| Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1590 |                           [default=yes] | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1592 |  | 
 | 1593 | Optional Packages: | 
 | 1594 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1595 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1596 |   --with-llvmgccdir       Specify location of llvm-gcc install dir (default | 
 | 1597 |                           searches PATH) | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1598 |   --with-llvmgcc          Specify location of llvm-gcc driver (default | 
 | 1599 |                           searches PATH) | 
 | 1600 |   --with-llvmgxx          Specify location of llvm-g++ driver (default | 
 | 1601 |                           searches PATH) | 
| Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1602 |   --with-optimize-option  Select the compiler options to use for optimized | 
 | 1603 |                           builds | 
| Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1604 |   --with-extra-options    Specify additional options to compile LLVM with | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1605 |   --with-ocaml-libdir     Specify install location for ocaml bindings (default | 
 | 1606 |                           is stdlib) | 
| Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1607 |   --with-c-include-dirs   Colon separated list of directories clang will | 
 | 1608 |                           search for headers | 
| Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1609 |   --with-cxx-include-root Directory with the libstdc++ headers. | 
 | 1610 |   --with-cxx-include-arch Architecture of the libstdc++ headers. | 
 | 1611 |   --with-cxx-include-32bit-dir | 
 | 1612 |                           32 bit multilib dir. | 
 | 1613 |   --with-cxx-include-64bit-dir | 
 | 1614 |                           64 bit multilib directory. | 
| Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1615 |   --with-binutils-include Specify path to binutils/include/ containing | 
 | 1616 |                           plugin-api.h file for gold plugin. | 
| Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1617 |   --with-tclinclude       directory where tcl headers are | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1618 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
 | 1619 |   --with-pic              try to use only PIC/non-PIC objects [default=use | 
 | 1620 |                           both] | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1621 |   --with-tags[=TAGS]      include additional configurations [automatic] | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1622 |   --with-udis86=<path>    Use udis86 external x86 disassembler library | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1623 |   --with-oprofile=<prefix> | 
 | 1624 |                           Tell OProfile >= 0.9.4 how to symbolize JIT output | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1625 |  | 
 | 1626 | Some influential environment variables: | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1627 |   CC          C compiler command | 
 | 1628 |   CFLAGS      C compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1629 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1630 |               nonstandard directory <lib dir> | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1631 |   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 
 | 1632 |               you have headers in a nonstandard directory <include dir> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1633 |   CPP         C preprocessor | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1634 |   CXX         C++ compiler command | 
 | 1635 |   CXXFLAGS    C++ compiler flags | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1636 |   CXXCPP      C++ preprocessor | 
 | 1637 |   F77         Fortran 77 compiler command | 
 | 1638 |   FFLAGS      Fortran 77 compiler flags | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1639 |  | 
 | 1640 | Use these variables to override the choices made by `configure' or to help | 
 | 1641 | it to find libraries and programs with nonstandard names/locations. | 
 | 1642 |  | 
 | 1643 | Report bugs to <llvmbugs@cs.uiuc.edu>. | 
 | 1644 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1645 | ac_status=$? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1646 | fi | 
 | 1647 |  | 
 | 1648 | if test "$ac_init_help" = "recursive"; then | 
 | 1649 |   # If there are subdirs, report their specific --help. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1650 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1651 |     test -d "$ac_dir" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 |     ac_builddir=. | 
 | 1653 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1654 | case "$ac_dir" in | 
 | 1655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1656 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1658 |   # A ".." for each directory in $ac_dir_suffix. | 
 | 1659 |   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
 | 1660 |   case $ac_top_builddir_sub in | 
 | 1661 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1662 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1663 |   esac ;; | 
 | 1664 | esac | 
 | 1665 | ac_abs_top_builddir=$ac_pwd | 
 | 1666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1667 | # for backward compatibility: | 
 | 1668 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 |  | 
 | 1670 | case $srcdir in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1671 |   .)  # We are building in place. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1672 |     ac_srcdir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 1674 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 1675 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1676 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1677 |     ac_top_srcdir=$srcdir | 
 | 1678 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 1679 |   *) # Relative name. | 
 | 1680 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 1681 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 1682 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1683 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1685 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 1687 |     # Check for guested configure. | 
 | 1688 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 1689 |       echo && | 
 | 1690 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 1691 |     elif test -f "$ac_srcdir/configure"; then | 
 | 1692 |       echo && | 
 | 1693 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 |     else | 
 | 1695 |       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1696 |     fi || ac_status=$? | 
 | 1697 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 |   done | 
 | 1699 | fi | 
 | 1700 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1701 | test -n "$ac_init_help" && exit $ac_status | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1702 | if $ac_init_version; then | 
 | 1703 |   cat <<\_ACEOF | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1704 | llvm configure 2.7svn | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1705 | generated by GNU Autoconf 2.60 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1706 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1707 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
 | 1708 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1709 | This configure script is free software; the Free Software Foundation | 
 | 1710 | gives unlimited permission to copy, distribute and modify it. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1711 |  | 
| Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 1712 | Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1713 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1714 |   exit | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1715 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1716 | cat >config.log <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1717 | This file contains any messages produced by compilers while | 
 | 1718 | running configure, to aid debugging if configure makes a mistake. | 
 | 1719 |  | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 1720 | It was created by llvm $as_me 2.7svn, which was | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 1721 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1722 |  | 
 | 1723 |   $ $0 $@ | 
 | 1724 |  | 
 | 1725 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1726 | exec 5>>config.log | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1727 | { | 
 | 1728 | cat <<_ASUNAME | 
 | 1729 | ## --------- ## | 
 | 1730 | ## Platform. ## | 
 | 1731 | ## --------- ## | 
 | 1732 |  | 
 | 1733 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 1734 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 1735 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 1736 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 1737 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 1738 |  | 
 | 1739 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 1740 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 1741 |  | 
 | 1742 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 1743 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 1744 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1745 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 1747 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 1748 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 1749 |  | 
 | 1750 | _ASUNAME | 
 | 1751 |  | 
 | 1752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 1753 | for as_dir in $PATH | 
 | 1754 | do | 
 | 1755 |   IFS=$as_save_IFS | 
 | 1756 |   test -z "$as_dir" && as_dir=. | 
 | 1757 |   echo "PATH: $as_dir" | 
 | 1758 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1759 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 |  | 
 | 1761 | } >&5 | 
 | 1762 |  | 
 | 1763 | cat >&5 <<_ACEOF | 
 | 1764 |  | 
 | 1765 |  | 
 | 1766 | ## ----------- ## | 
 | 1767 | ## Core tests. ## | 
 | 1768 | ## ----------- ## | 
 | 1769 |  | 
 | 1770 | _ACEOF | 
 | 1771 |  | 
 | 1772 |  | 
 | 1773 | # Keep a trace of the command line. | 
 | 1774 | # 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] | 1775 | # 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] | 1776 | # Also quote any args containing shell meta-characters. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1777 | # Make two passes to allow for proper duplicate-argument suppression. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1778 | ac_configure_args= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1779 | ac_configure_args0= | 
 | 1780 | ac_configure_args1= | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1781 | ac_must_keep_next=false | 
 | 1782 | for ac_pass in 1 2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1783 | do | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1784 |   for ac_arg | 
 | 1785 |   do | 
 | 1786 |     case $ac_arg in | 
 | 1787 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 1788 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1789 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 1790 |       continue ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 |     *\'*) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1792 |       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 1793 |     esac | 
 | 1794 |     case $ac_pass in | 
 | 1795 |     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
 | 1796 |     2) | 
 | 1797 |       ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
 | 1798 |       if test $ac_must_keep_next = true; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1799 | 	ac_must_keep_next=false # Got value, back to normal. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1800 |       else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1801 | 	case $ac_arg in | 
 | 1802 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 1803 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 1804 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 1805 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 1806 | 	    case "$ac_configure_args0 " in | 
 | 1807 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 1808 | 	    esac | 
 | 1809 | 	    ;; | 
 | 1810 | 	  -* ) ac_must_keep_next=true ;; | 
 | 1811 | 	esac | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1812 |       fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1813 |       ac_configure_args="$ac_configure_args '$ac_arg'" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1814 |       ;; | 
 | 1815 |     esac | 
 | 1816 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | done | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1818 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
 | 1819 | $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] | 1820 |  | 
 | 1821 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 1822 | # config.log.  We remove comments because anyway the quotes in there | 
 | 1823 | # would cause problems or look ugly. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1824 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 1825 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1826 | trap 'exit_status=$? | 
 | 1827 |   # Save into config.log some information that might help in debugging. | 
 | 1828 |   { | 
 | 1829 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1830 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 |     cat <<\_ASBOX | 
 | 1832 | ## ---------------- ## | 
 | 1833 | ## Cache variables. ## | 
 | 1834 | ## ---------------- ## | 
 | 1835 | _ASBOX | 
 | 1836 |     echo | 
 | 1837 |     # The following way of writing the cache mishandles newlines in values, | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1838 | ( | 
 | 1839 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 1840 |     eval ac_val=\$$ac_var | 
 | 1841 |     case $ac_val in #( | 
 | 1842 |     *${as_nl}*) | 
 | 1843 |       case $ac_var in #( | 
 | 1844 |       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
 | 1845 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
 | 1846 |       esac | 
 | 1847 |       case $ac_var in #( | 
 | 1848 |       _ | IFS | as_nl) ;; #( | 
 | 1849 |       *) $as_unset $ac_var ;; | 
 | 1850 |       esac ;; | 
 | 1851 |     esac | 
 | 1852 |   done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1853 |   (set) 2>&1 | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1854 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 1855 |     *${as_nl}ac_space=\ *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 |       sed -n \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1857 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 1858 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 1859 |       ;; #( | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1860 |     *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1861 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1862 |       ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1863 |     esac | | 
 | 1864 |     sort | 
 | 1865 | ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1866 |     echo | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1867 |  | 
 | 1868 |     cat <<\_ASBOX | 
 | 1869 | ## ----------------- ## | 
 | 1870 | ## Output variables. ## | 
 | 1871 | ## ----------------- ## | 
 | 1872 | _ASBOX | 
 | 1873 |     echo | 
 | 1874 |     for ac_var in $ac_subst_vars | 
 | 1875 |     do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1876 |       eval ac_val=\$$ac_var | 
 | 1877 |       case $ac_val in | 
 | 1878 |       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
 | 1879 |       esac | 
 | 1880 |       echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1881 |     done | sort | 
 | 1882 |     echo | 
 | 1883 |  | 
 | 1884 |     if test -n "$ac_subst_files"; then | 
 | 1885 |       cat <<\_ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1886 | ## ------------------- ## | 
 | 1887 | ## File substitutions. ## | 
 | 1888 | ## ------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1889 | _ASBOX | 
 | 1890 |       echo | 
 | 1891 |       for ac_var in $ac_subst_files | 
 | 1892 |       do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1893 | 	eval ac_val=\$$ac_var | 
 | 1894 | 	case $ac_val in | 
 | 1895 | 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
 | 1896 | 	esac | 
 | 1897 | 	echo "$ac_var='\''$ac_val'\''" | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1898 |       done | sort | 
 | 1899 |       echo | 
 | 1900 |     fi | 
 | 1901 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1902 |     if test -s confdefs.h; then | 
 | 1903 |       cat <<\_ASBOX | 
 | 1904 | ## ----------- ## | 
 | 1905 | ## confdefs.h. ## | 
 | 1906 | ## ----------- ## | 
 | 1907 | _ASBOX | 
 | 1908 |       echo | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1909 |       cat confdefs.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1910 |       echo | 
 | 1911 |     fi | 
 | 1912 |     test "$ac_signal" != 0 && | 
 | 1913 |       echo "$as_me: caught signal $ac_signal" | 
 | 1914 |     echo "$as_me: exit $exit_status" | 
 | 1915 |   } >&5 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1916 |   rm -f core *.core core.conftest.* && | 
 | 1917 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1918 |     exit $exit_status | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1919 | ' 0 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1920 | for ac_signal in 1 2 13 15; do | 
 | 1921 |   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
 | 1922 | done | 
 | 1923 | ac_signal=0 | 
 | 1924 |  | 
 | 1925 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1926 | rm -f -r conftest* confdefs.h | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1927 |  | 
 | 1928 | # Predefined preprocessor variables. | 
 | 1929 |  | 
 | 1930 | cat >>confdefs.h <<_ACEOF | 
 | 1931 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 1932 | _ACEOF | 
 | 1933 |  | 
 | 1934 |  | 
 | 1935 | cat >>confdefs.h <<_ACEOF | 
 | 1936 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 1937 | _ACEOF | 
 | 1938 |  | 
 | 1939 |  | 
 | 1940 | cat >>confdefs.h <<_ACEOF | 
 | 1941 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 1942 | _ACEOF | 
 | 1943 |  | 
 | 1944 |  | 
 | 1945 | cat >>confdefs.h <<_ACEOF | 
 | 1946 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 1947 | _ACEOF | 
 | 1948 |  | 
 | 1949 |  | 
 | 1950 | cat >>confdefs.h <<_ACEOF | 
 | 1951 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 1952 | _ACEOF | 
 | 1953 |  | 
 | 1954 |  | 
 | 1955 | # Let the site file select an alternate cache file if it wants to. | 
 | 1956 | # Prefer explicitly selected file to automatically selected ones. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1957 | if test -n "$CONFIG_SITE"; then | 
 | 1958 |   set x "$CONFIG_SITE" | 
 | 1959 | elif test "x$prefix" != xNONE; then | 
 | 1960 |   set x "$prefix/share/config.site" "$prefix/etc/config.site" | 
 | 1961 | else | 
 | 1962 |   set x "$ac_default_prefix/share/config.site" \ | 
 | 1963 | 	"$ac_default_prefix/etc/config.site" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1964 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1965 | shift | 
 | 1966 | for ac_site_file | 
 | 1967 | do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1968 |   if test -r "$ac_site_file"; then | 
 | 1969 |     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
 | 1970 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 1971 |     sed 's/^/| /' "$ac_site_file" >&5 | 
 | 1972 |     . "$ac_site_file" | 
 | 1973 |   fi | 
 | 1974 | done | 
 | 1975 |  | 
 | 1976 | if test -r "$cache_file"; then | 
 | 1977 |   # Some versions of bash will fail to source /dev/null (special | 
 | 1978 |   # files actually), so we avoid doing that. | 
 | 1979 |   if test -f "$cache_file"; then | 
 | 1980 |     { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
 | 1981 | echo "$as_me: loading cache $cache_file" >&6;} | 
 | 1982 |     case $cache_file in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1983 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 1984 |       *)                      . "./$cache_file";; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1985 |     esac | 
 | 1986 |   fi | 
 | 1987 | else | 
 | 1988 |   { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
 | 1989 | echo "$as_me: creating cache $cache_file" >&6;} | 
 | 1990 |   >$cache_file | 
 | 1991 | fi | 
 | 1992 |  | 
 | 1993 | # Check that the precious variables saved in the cache have kept the same | 
 | 1994 | # value. | 
 | 1995 | ac_cache_corrupted=false | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1996 | for ac_var in $ac_precious_vars; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1997 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 1998 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1999 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 2000 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 |   case $ac_old_set,$ac_new_set in | 
 | 2002 |     set,) | 
 | 2003 |       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
 | 2004 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 2005 |       ac_cache_corrupted=: ;; | 
 | 2006 |     ,set) | 
 | 2007 |       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
 | 2008 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 2009 |       ac_cache_corrupted=: ;; | 
 | 2010 |     ,);; | 
 | 2011 |     *) | 
 | 2012 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2013 | 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2015 | 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2016 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2017 | 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2019 | 	ac_cache_corrupted=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 |       fi;; | 
 | 2021 |   esac | 
 | 2022 |   # Pass precious variables to config.status. | 
 | 2023 |   if test "$ac_new_set" = set; then | 
 | 2024 |     case $ac_new_val in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2025 |     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2026 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 2027 |     esac | 
 | 2028 |     case " $ac_configure_args " in | 
 | 2029 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
 | 2030 |       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 2031 |     esac | 
 | 2032 |   fi | 
 | 2033 | done | 
 | 2034 | if $ac_cache_corrupted; then | 
 | 2035 |   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
 | 2036 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
 | 2037 |   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
 | 2038 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
 | 2039 |    { (exit 1); exit 1; }; } | 
 | 2040 | fi | 
 | 2041 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 |  | 
 | 2043 |  | 
 | 2044 |  | 
 | 2045 |  | 
 | 2046 |  | 
 | 2047 |  | 
 | 2048 |  | 
 | 2049 |  | 
 | 2050 |  | 
 | 2051 |  | 
 | 2052 |  | 
 | 2053 |  | 
 | 2054 |  | 
 | 2055 |  | 
 | 2056 |  | 
 | 2057 |  | 
 | 2058 |  | 
 | 2059 |  | 
 | 2060 |  | 
 | 2061 |  | 
 | 2062 |  | 
 | 2063 |  | 
 | 2064 |  | 
 | 2065 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2066 | ac_ext=c | 
 | 2067 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 2071 |  | 
 | 2072 |  | 
 | 2073 |  | 
| Tanya Lattner | c226459 | 2009-08-22 21:01:26 +0000 | [diff] [blame] | 2074 | LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2075 |  | 
 | 2076 |  | 
 | 2077 |  | 
 | 2078 |  | 
 | 2079 |  | 
 | 2080 |  | 
 | 2081 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2082 | ac_aux_dir= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2083 | for ac_dir in autoconf "$srcdir"/autoconf; do | 
 | 2084 |   if test -f "$ac_dir/install-sh"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2085 |     ac_aux_dir=$ac_dir | 
 | 2086 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 2087 |     break | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2088 |   elif test -f "$ac_dir/install.sh"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2089 |     ac_aux_dir=$ac_dir | 
 | 2090 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 2091 |     break | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2092 |   elif test -f "$ac_dir/shtool"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2093 |     ac_aux_dir=$ac_dir | 
 | 2094 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 2095 |     break | 
 | 2096 |   fi | 
 | 2097 | done | 
 | 2098 | if test -z "$ac_aux_dir"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2099 |   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 | 
 | 2100 | 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] | 2101 |    { (exit 1); exit 1; }; } | 
 | 2102 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 |  | 
 | 2104 | # These three variables are undocumented and unsupported, | 
 | 2105 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 2106 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 2107 | # whose full name contains unusual characters. | 
 | 2108 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 2109 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 2110 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 2111 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2112 |  | 
| John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2113 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2114 | if test ${srcdir} != "." ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2115 |   if test -f ${srcdir}/include/llvm/Config/config.h ; then | 
 | 2116 |     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2117 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} | 
 | 2118 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2119 |   fi | 
| John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2120 | fi | 
 | 2121 |  | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2122 | for i in `ls ${srcdir}/projects` | 
 | 2123 | do | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2124 |   if test -d ${srcdir}/projects/${i} ; then | 
 | 2125 |     case ${i} in | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2126 |       CVS) ;; | 
 | 2127 |       sample)       subdirs="$subdirs projects/sample" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2128 |     ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2129 |       privbracket)  subdirs="$subdirs projects/privbracket" | 
| John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2130 |  ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2131 |       llvm-stacker) subdirs="$subdirs projects/llvm-stacker" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2132 |  ;; | 
| Tanya Lattner | b70e452 | 2008-06-24 17:49:13 +0000 | [diff] [blame] | 2133 |       # llvm-test is the old name of the test-suite, kept here for backwards | 
 | 2134 |       # compatibility | 
| Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2135 |       llvm-test)    subdirs="$subdirs projects/llvm-test" | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2136 |  ;; | 
| Matthijs Kooijman | 5b80c66 | 2008-06-24 13:01:57 +0000 | [diff] [blame] | 2137 |       test-suite)   subdirs="$subdirs projects/test-suite" | 
 | 2138 |  ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2139 |       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2140 | ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2141 |       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2142 |   ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2143 |       llvm-java)    subdirs="$subdirs projects/llvm-java" | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2144 |  ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2145 |       llvm-tv)      subdirs="$subdirs projects/llvm-tv" | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2146 |    ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2147 |       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" | 
| John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2148 |  ;; | 
| Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2149 |       poolalloc)    subdirs="$subdirs projects/poolalloc" | 
| Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2150 |  ;; | 
| Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2151 |       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel" | 
| John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2152 |  ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2153 |       *) | 
| Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2154 |         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 | 
 | 2155 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 2156 |         ;; | 
| Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2157 |     esac | 
| John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2158 |   fi | 
 | 2159 | done | 
| John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2160 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2161 |  | 
 | 2162 | # Make sure we can run config.sub. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
 | 2164 |   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 
 | 2165 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2166 |    { (exit 1); exit 1; }; } | 
 | 2167 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking build system type" >&5 | 
 | 2169 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_build+set}" = set; then | 
 | 2171 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2172 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 |   ac_build_alias=$build_alias | 
 | 2174 | test "x$ac_build_alias" = x && | 
 | 2175 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 2176 | test "x$ac_build_alias" = x && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2177 |   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
 | 2178 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
 | 2179 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
 | 2181 |   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 
 | 2182 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2183 |    { (exit 1); exit 1; }; } | 
 | 2184 |  | 
 | 2185 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
 | 2187 | echo "${ECHO_T}$ac_cv_build" >&6; } | 
 | 2188 | case $ac_cv_build in | 
 | 2189 | *-*-*) ;; | 
 | 2190 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 
 | 2191 | echo "$as_me: error: invalid value of canonical build" >&2;} | 
 | 2192 |    { (exit 1); exit 1; }; };; | 
 | 2193 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2194 | build=$ac_cv_build | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2195 | ac_save_IFS=$IFS; IFS='-' | 
 | 2196 | set x $ac_cv_build | 
 | 2197 | shift | 
 | 2198 | build_cpu=$1 | 
 | 2199 | build_vendor=$2 | 
 | 2200 | shift; shift | 
 | 2201 | # Remember, the first character of IFS is used to create $*, | 
 | 2202 | # except with old shells: | 
 | 2203 | build_os=$* | 
 | 2204 | IFS=$ac_save_IFS | 
 | 2205 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2206 |  | 
 | 2207 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2208 | { echo "$as_me:$LINENO: checking host system type" >&5 | 
 | 2209 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2210 | if test "${ac_cv_host+set}" = set; then | 
 | 2211 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2212 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2213 |   if test "x$host_alias" = x; then | 
 | 2214 |   ac_cv_host=$ac_cv_build | 
 | 2215 | else | 
 | 2216 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
 | 2217 |     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 
 | 2218 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2219 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2220 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2221 |  | 
 | 2222 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2223 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
 | 2224 | echo "${ECHO_T}$ac_cv_host" >&6; } | 
 | 2225 | case $ac_cv_host in | 
 | 2226 | *-*-*) ;; | 
 | 2227 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 
 | 2228 | echo "$as_me: error: invalid value of canonical host" >&2;} | 
 | 2229 |    { (exit 1); exit 1; }; };; | 
 | 2230 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2231 | host=$ac_cv_host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2232 | ac_save_IFS=$IFS; IFS='-' | 
 | 2233 | set x $ac_cv_host | 
 | 2234 | shift | 
 | 2235 | host_cpu=$1 | 
 | 2236 | host_vendor=$2 | 
 | 2237 | shift; shift | 
 | 2238 | # Remember, the first character of IFS is used to create $*, | 
 | 2239 | # except with old shells: | 
 | 2240 | host_os=$* | 
 | 2241 | IFS=$ac_save_IFS | 
 | 2242 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2243 |  | 
 | 2244 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2245 | { echo "$as_me:$LINENO: checking target system type" >&5 | 
 | 2246 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2247 | if test "${ac_cv_target+set}" = set; then | 
 | 2248 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2249 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2250 |   if test "x$target_alias" = x; then | 
 | 2251 |   ac_cv_target=$ac_cv_host | 
 | 2252 | else | 
 | 2253 |   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
 | 2254 |     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | 
 | 2255 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2256 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2257 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2258 |  | 
 | 2259 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2260 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | 
 | 2261 | echo "${ECHO_T}$ac_cv_target" >&6; } | 
 | 2262 | case $ac_cv_target in | 
 | 2263 | *-*-*) ;; | 
 | 2264 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | 
 | 2265 | echo "$as_me: error: invalid value of canonical target" >&2;} | 
 | 2266 |    { (exit 1); exit 1; }; };; | 
 | 2267 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2268 | target=$ac_cv_target | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | ac_save_IFS=$IFS; IFS='-' | 
 | 2270 | set x $ac_cv_target | 
 | 2271 | shift | 
 | 2272 | target_cpu=$1 | 
 | 2273 | target_vendor=$2 | 
 | 2274 | shift; shift | 
 | 2275 | # Remember, the first character of IFS is used to create $*, | 
 | 2276 | # except with old shells: | 
 | 2277 | target_os=$* | 
 | 2278 | IFS=$ac_save_IFS | 
 | 2279 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2280 |  | 
 | 2281 |  | 
 | 2282 | # The aliases save the names the user supplied, while $host etc. | 
 | 2283 | # will get canonicalized. | 
 | 2284 | test -n "$target_alias" && | 
 | 2285 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 2286 |     NONENONEs,x,x, && | 
 | 2287 |   program_prefix=${target_alias}- | 
 | 2288 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 | 
 | 2290 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | if test "${llvm_cv_os_type+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2292 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2293 | else | 
| Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2294 |   case $host in | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2295 |   *-*-aix*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2296 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2297 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 |     llvm_cv_os_type="AIX" | 
 | 2299 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2300 |   *-*-irix*) | 
 | 2301 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2302 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2303 |     llvm_cv_os_type="IRIX" | 
 | 2304 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2305 |   *-*-cygwin*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2306 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2307 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 |     llvm_cv_os_type="Cygwin" | 
 | 2309 |     llvm_cv_platform_type="Unix" ;; | 
 | 2310 |   *-*-darwin*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2311 |     llvm_cv_link_all_option="-Wl,-all_load" | 
| Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2312 |     llvm_cv_no_link_all_option="-Wl,-noall_load" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2313 |     llvm_cv_os_type="Darwin" | 
 | 2314 |     llvm_cv_platform_type="Unix" ;; | 
 | 2315 |   *-*-freebsd*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2316 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2317 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2318 |     llvm_cv_os_type="FreeBSD" | 
 | 2319 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2320 |   *-*-openbsd*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2321 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2322 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2323 |     llvm_cv_os_type="OpenBSD" | 
 | 2324 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2325 |   *-*-netbsd*) | 
 | 2326 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2327 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2328 |     llvm_cv_os_type="NetBSD" | 
 | 2329 |     llvm_cv_platform_type="Unix" ;; | 
| Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2330 |   *-*-dragonfly*) | 
 | 2331 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2332 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2333 |     llvm_cv_os_type="DragonFly" | 
 | 2334 |     llvm_cv_platform_type="Unix" ;; | 
| Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2335 |   *-*-hpux*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2336 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2337 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2338 |     llvm_cv_os_type="HP-UX" | 
 | 2339 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2340 |   *-*-interix*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2341 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2342 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2343 |     llvm_cv_os_type="Interix" | 
 | 2344 |     llvm_cv_platform_type="Unix" ;; | 
 | 2345 |   *-*-linux*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2346 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2347 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2348 |     llvm_cv_os_type="Linux" | 
 | 2349 |     llvm_cv_platform_type="Unix" ;; | 
 | 2350 |   *-*-solaris*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2351 |     llvm_cv_link_all_option="-Wl,-z,allextract" | 
 | 2352 |     llvm_cv_no_link_all_option="-Wl,-z,defaultextract" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2353 |     llvm_cv_os_type="SunOS" | 
 | 2354 |     llvm_cv_platform_type="Unix" ;; | 
| Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2355 |   *-*-auroraux*) | 
 | 2356 |     llvm_cv_link_all_option="-Wl,-z,allextract" | 
 | 2357 |     llvm_cv_link_all_option="-Wl,-z,defaultextract" | 
 | 2358 |     llvm_cv_os_type="AuroraUX" | 
 | 2359 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2360 |   *-*-win32*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2361 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2362 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2363 |     llvm_cv_os_type="Win32" | 
 | 2364 |     llvm_cv_platform_type="Win32" ;; | 
 | 2365 |   *-*-mingw*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2366 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2367 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2368 |     llvm_cv_os_type="MingW" | 
 | 2369 |     llvm_cv_platform_type="Win32" ;; | 
| Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2370 |   *-*-haiku*) | 
 | 2371 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2372 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2373 |     llvm_cv_os_type="Haiku" | 
 | 2374 |     llvm_cv_platform_type="Unix" ;; | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2375 |   *-unknown-eabi*) | 
 | 2376 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2377 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2378 |     llvm_cv_os_type="Freestanding" | 
 | 2379 |     llvm_cv_platform_type="Unix" ;; | 
 | 2380 |   *-unknown-elf*) | 
 | 2381 |     llvm_cv_link_all_option="-Wl,--whole-archive" | 
 | 2382 |     llvm_cv_no_link_all_option="-Wl,--no-whole-archive" | 
 | 2383 |     llvm_cv_os_type="Freestanding" | 
 | 2384 |     llvm_cv_platform_type="Unix" ;; | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2385 |   *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2386 |     llvm_cv_link_all_option="" | 
 | 2387 |     llvm_cv_no_link_all_option="" | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2388 |     llvm_cv_os_type="Unknown" | 
 | 2389 |     llvm_cv_platform_type="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2392 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 | 
 | 2393 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2394 |  | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2395 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 | 
 | 2396 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } | 
 | 2397 | if test "${llvm_cv_target_os_type+set}" = set; then | 
 | 2398 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2399 | else | 
 | 2400 |   case $target in | 
 | 2401 |   *-*-aix*) | 
 | 2402 |     llvm_cv_target_os_type="AIX" ;; | 
 | 2403 |   *-*-irix*) | 
 | 2404 |     llvm_cv_target_os_type="IRIX" ;; | 
 | 2405 |   *-*-cygwin*) | 
 | 2406 |     llvm_cv_target_os_type="Cygwin" ;; | 
 | 2407 |   *-*-darwin*) | 
 | 2408 |     llvm_cv_target_os_type="Darwin" ;; | 
 | 2409 |   *-*-freebsd*) | 
 | 2410 |     llvm_cv_target_os_type="FreeBSD" ;; | 
 | 2411 |   *-*-openbsd*) | 
 | 2412 |     llvm_cv_target_os_type="OpenBSD" ;; | 
 | 2413 |   *-*-netbsd*) | 
 | 2414 |     llvm_cv_target_os_type="NetBSD" ;; | 
 | 2415 |   *-*-dragonfly*) | 
 | 2416 |     llvm_cv_target_os_type="DragonFly" ;; | 
 | 2417 |   *-*-hpux*) | 
 | 2418 |     llvm_cv_target_os_type="HP-UX" ;; | 
 | 2419 |   *-*-interix*) | 
 | 2420 |     llvm_cv_target_os_type="Interix" ;; | 
 | 2421 |   *-*-linux*) | 
 | 2422 |     llvm_cv_target_os_type="Linux" ;; | 
 | 2423 |   *-*-solaris*) | 
 | 2424 |     llvm_cv_target_os_type="SunOS" ;; | 
| Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2425 |   *-*-auroraux*) | 
 | 2426 |     llvm_cv_target_os_type="AuroraUX" ;; | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2427 |   *-*-win32*) | 
 | 2428 |     llvm_cv_target_os_type="Win32" ;; | 
 | 2429 |   *-*-mingw*) | 
 | 2430 |     llvm_cv_target_os_type="MingW" ;; | 
| Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2431 |   *-*-haiku*) | 
 | 2432 |     llvm_cv_target_os_type="Haiku" ;; | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2433 |   *-unknown-eabi*) | 
 | 2434 |     llvm_cv_target_os_type="Freestanding" ;; | 
 | 2435 |   *) | 
 | 2436 |     llvm_cv_target_os_type="Unknown" ;; | 
 | 2437 | esac | 
 | 2438 | fi | 
 | 2439 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 | 
 | 2440 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } | 
 | 2441 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2442 | if test "$llvm_cv_os_type" = "Unknown" ; then | 
 | 2443 |   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 | 
 | 2444 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} | 
| Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2445 |    { (exit 1); exit 1; }; } | 
 | 2446 | fi | 
 | 2447 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2448 | OS=$llvm_cv_os_type | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 |  | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2450 | HOST_OS=$llvm_cv_os_type | 
 | 2451 |  | 
 | 2452 | TARGET_OS=$llvm_cv_target_os_type | 
 | 2453 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2454 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2455 | LINKALL=$llvm_cv_link_all_option | 
 | 2456 |  | 
 | 2457 | NOLINKALL=$llvm_cv_no_link_all_option | 
 | 2458 |  | 
 | 2459 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2460 | case $llvm_cv_platform_type in | 
 | 2461 |   Unix) | 
 | 2462 |  | 
 | 2463 | cat >>confdefs.h <<\_ACEOF | 
 | 2464 | #define LLVM_ON_UNIX 1 | 
 | 2465 | _ACEOF | 
 | 2466 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2467 |     LLVM_ON_UNIX=1 | 
 | 2468 |  | 
 | 2469 |     LLVM_ON_WIN32=0 | 
 | 2470 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2471 |     ;; | 
 | 2472 |   Win32) | 
 | 2473 |  | 
 | 2474 | cat >>confdefs.h <<\_ACEOF | 
 | 2475 | #define LLVM_ON_WIN32 1 | 
 | 2476 | _ACEOF | 
 | 2477 |  | 
| Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2478 |     LLVM_ON_UNIX=0 | 
 | 2479 |  | 
 | 2480 |     LLVM_ON_WIN32=1 | 
 | 2481 |  | 
| Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2482 |     ;; | 
 | 2483 | esac | 
 | 2484 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2485 | { echo "$as_me:$LINENO: checking target architecture" >&5 | 
 | 2486 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2487 | if test "${llvm_cv_target_arch+set}" = set; then | 
 | 2488 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2489 | else | 
 | 2490 |   case $target in | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2491 |   i?86-*)                 llvm_cv_target_arch="x86" ;; | 
| Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2492 |   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2493 |   sparc*-*)               llvm_cv_target_arch="Sparc" ;; | 
 | 2494 |   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;; | 
| Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2495 |   alpha*-*)               llvm_cv_target_arch="Alpha" ;; | 
| Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2496 |   arm*-*)                 llvm_cv_target_arch="ARM" ;; | 
| Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2497 |   mips-*)                 llvm_cv_target_arch="Mips" ;; | 
| Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2498 |   pic16-*)                llvm_cv_target_arch="PIC16" ;; | 
| Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2499 |   xcore-*)                llvm_cv_target_arch="XCore" ;; | 
| Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2500 |   msp430-*)               llvm_cv_target_arch="MSP430" ;; | 
| Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2501 |   s390x-*)                llvm_cv_target_arch="SystemZ" ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2502 |   bfin-*)                 llvm_cv_target_arch="Blackfin" ;; | 
| Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2503 |   *)                      llvm_cv_target_arch="Unknown" ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2504 | esac | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2505 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 | 
 | 2507 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2508 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2509 | if test "$llvm_cv_target_arch" = "Unknown" ; then | 
 | 2510 |   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 | 
 | 2511 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} | 
 | 2512 | fi | 
| John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2513 |  | 
| Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2514 | # Determine the LLVM native architecture for the target | 
 | 2515 | case "$llvm_cv_target_arch" in | 
 | 2516 |     x86)     LLVM_NATIVE_ARCH="X86" ;; | 
 | 2517 |     x86_64)  LLVM_NATIVE_ARCH="X86" ;; | 
 | 2518 |     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; | 
 | 2519 | esac | 
 | 2520 |  | 
 | 2521 | ARCH=$llvm_cv_target_arch | 
 | 2522 |  | 
 | 2523 |  | 
 | 2524 | ac_ext=c | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2525 | ac_cpp='$CPP $CPPFLAGS' | 
 | 2526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 2527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 2528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2529 | if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 2531 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2532 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2535 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2536 | else | 
 | 2537 |   if test -n "$CC"; then | 
 | 2538 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2539 | else | 
 | 2540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2541 | for as_dir in $PATH | 
 | 2542 | do | 
 | 2543 |   IFS=$as_save_IFS | 
 | 2544 |   test -z "$as_dir" && as_dir=. | 
 | 2545 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2546 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2547 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
 | 2548 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2549 |     break 2 | 
 | 2550 |   fi | 
 | 2551 | done | 
 | 2552 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2553 | IFS=$as_save_IFS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2554 |  | 
 | 2555 | fi | 
 | 2556 | fi | 
 | 2557 | CC=$ac_cv_prog_CC | 
 | 2558 | if test -n "$CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2559 |   { echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2560 | echo "${ECHO_T}$CC" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2561 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2563 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2564 | fi | 
 | 2565 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2566 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2567 | fi | 
 | 2568 | if test -z "$ac_cv_prog_CC"; then | 
 | 2569 |   ac_ct_CC=$CC | 
 | 2570 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 2571 | set dummy gcc; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2574 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 2575 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2576 | else | 
 | 2577 |   if test -n "$ac_ct_CC"; then | 
 | 2578 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 2579 | else | 
 | 2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2581 | for as_dir in $PATH | 
 | 2582 | do | 
 | 2583 |   IFS=$as_save_IFS | 
 | 2584 |   test -z "$as_dir" && as_dir=. | 
 | 2585 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2586 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2587 |     ac_cv_prog_ac_ct_CC="gcc" | 
 | 2588 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2589 |     break 2 | 
 | 2590 |   fi | 
 | 2591 | done | 
 | 2592 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2593 | IFS=$as_save_IFS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 |  | 
 | 2595 | fi | 
 | 2596 | fi | 
 | 2597 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2598 | if test -n "$ac_ct_CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2599 |   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2600 | echo "${ECHO_T}$ac_ct_CC" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2601 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2602 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2603 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2604 | fi | 
 | 2605 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2606 |   if test "x$ac_ct_CC" = x; then | 
 | 2607 |     CC="" | 
 | 2608 |   else | 
 | 2609 |     case $cross_compiling:$ac_tool_warned in | 
 | 2610 | yes:) | 
 | 2611 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 2612 | whose name does not start with the host triplet.  If you think this | 
 | 2613 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 2614 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 2615 | whose name does not start with the host triplet.  If you think this | 
 | 2616 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 2617 | ac_tool_warned=yes ;; | 
 | 2618 | esac | 
 | 2619 |     CC=$ac_ct_CC | 
 | 2620 |   fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | else | 
 | 2622 |   CC="$ac_cv_prog_CC" | 
 | 2623 | fi | 
 | 2624 |  | 
 | 2625 | if test -z "$CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2626 |           if test -n "$ac_tool_prefix"; then | 
 | 2627 |     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2628 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2632 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2633 | else | 
 | 2634 |   if test -n "$CC"; then | 
 | 2635 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2636 | else | 
 | 2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2638 | for as_dir in $PATH | 
 | 2639 | do | 
 | 2640 |   IFS=$as_save_IFS | 
 | 2641 |   test -z "$as_dir" && as_dir=. | 
 | 2642 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2643 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2644 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
 | 2645 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2646 |     break 2 | 
 | 2647 |   fi | 
 | 2648 | done | 
 | 2649 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2650 | IFS=$as_save_IFS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2651 |  | 
 | 2652 | fi | 
 | 2653 | fi | 
 | 2654 | CC=$ac_cv_prog_CC | 
 | 2655 | if test -n "$CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2656 |   { echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2657 | echo "${ECHO_T}$CC" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2659 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2660 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2661 | fi | 
 | 2662 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2663 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2664 |   fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | fi | 
 | 2666 | if test -z "$CC"; then | 
 | 2667 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 2668 | set dummy cc; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2671 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 2672 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2673 | else | 
 | 2674 |   if test -n "$CC"; then | 
 | 2675 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 2676 | else | 
 | 2677 |   ac_prog_rejected=no | 
 | 2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2679 | for as_dir in $PATH | 
 | 2680 | do | 
 | 2681 |   IFS=$as_save_IFS | 
 | 2682 |   test -z "$as_dir" && as_dir=. | 
 | 2683 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2684 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2685 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 2686 |        ac_prog_rejected=yes | 
 | 2687 |        continue | 
 | 2688 |      fi | 
 | 2689 |     ac_cv_prog_CC="cc" | 
 | 2690 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2691 |     break 2 | 
 | 2692 |   fi | 
 | 2693 | done | 
 | 2694 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2695 | IFS=$as_save_IFS | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2696 |  | 
 | 2697 | if test $ac_prog_rejected = yes; then | 
 | 2698 |   # We found a bogon in the path, so make sure we never use it. | 
 | 2699 |   set dummy $ac_cv_prog_CC | 
 | 2700 |   shift | 
 | 2701 |   if test $# != 0; then | 
 | 2702 |     # We chose a different compiler from the bogus one. | 
 | 2703 |     # However, it has the same basename, so the bogon will be chosen | 
 | 2704 |     # first if we set CC to just the basename; use the full file name. | 
 | 2705 |     shift | 
 | 2706 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 2707 |   fi | 
 | 2708 | fi | 
 | 2709 | fi | 
 | 2710 | fi | 
 | 2711 | CC=$ac_cv_prog_CC | 
 | 2712 | if test -n "$CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2713 |   { echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2714 | echo "${ECHO_T}$CC" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2715 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2717 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2718 | fi | 
 | 2719 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2720 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2721 | fi | 
 | 2722 | if test -z "$CC"; then | 
 | 2723 |   if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2724 |   for ac_prog in cl.exe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2725 |   do | 
 | 2726 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 2727 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2730 | if test "${ac_cv_prog_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2731 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2732 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2733 |   if test -n "$CC"; then | 
 | 2734 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2735 | else | 
 | 2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2737 | for as_dir in $PATH | 
 | 2738 | do | 
 | 2739 |   IFS=$as_save_IFS | 
 | 2740 |   test -z "$as_dir" && as_dir=. | 
 | 2741 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2742 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2743 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2745 |     break 2 | 
 | 2746 |   fi | 
 | 2747 | done | 
 | 2748 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2749 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2750 |  | 
 | 2751 | fi | 
 | 2752 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2753 | CC=$ac_cv_prog_CC | 
 | 2754 | if test -n "$CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2755 |   { echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 2756 | echo "${ECHO_T}$CC" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2757 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2758 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2759 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2760 | fi | 
 | 2761 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2763 |     test -n "$CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2764 |   done | 
 | 2765 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2766 | if test -z "$CC"; then | 
 | 2767 |   ac_ct_CC=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 |   for ac_prog in cl.exe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2769 | do | 
 | 2770 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 2771 | set dummy $ac_prog; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2772 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 2773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2774 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2775 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 2776 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2777 |   if test -n "$ac_ct_CC"; then | 
 | 2778 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2779 | else | 
 | 2780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 2781 | for as_dir in $PATH | 
 | 2782 | do | 
 | 2783 |   IFS=$as_save_IFS | 
 | 2784 |   test -z "$as_dir" && as_dir=. | 
 | 2785 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2786 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2787 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2788 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 2789 |     break 2 | 
 | 2790 |   fi | 
 | 2791 | done | 
 | 2792 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2793 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2794 |  | 
 | 2795 | fi | 
 | 2796 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2797 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 2798 | if test -n "$ac_ct_CC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2799 |   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 2800 | echo "${ECHO_T}$ac_ct_CC" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2801 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2802 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 2803 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2804 | fi | 
 | 2805 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2806 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2807 |   test -n "$ac_ct_CC" && break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2808 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2809 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2810 |   if test "x$ac_ct_CC" = x; then | 
 | 2811 |     CC="" | 
 | 2812 |   else | 
 | 2813 |     case $cross_compiling:$ac_tool_warned in | 
 | 2814 | yes:) | 
 | 2815 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 2816 | whose name does not start with the host triplet.  If you think this | 
 | 2817 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 2818 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 2819 | whose name does not start with the host triplet.  If you think this | 
 | 2820 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 2821 | ac_tool_warned=yes ;; | 
 | 2822 | esac | 
 | 2823 |     CC=$ac_ct_CC | 
 | 2824 |   fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2825 | fi | 
 | 2826 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2827 | fi | 
 | 2828 |  | 
 | 2829 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2830 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 2831 | See \`config.log' for more details." >&5 | 
 | 2832 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 2833 | See \`config.log' for more details." >&2;} | 
 | 2834 |    { (exit 1); exit 1; }; } | 
 | 2835 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | # Provide some information about the compiler. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2837 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2838 | ac_compiler=`set X $ac_compile; echo $2` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2839 | { (ac_try="$ac_compiler --version >&5" | 
 | 2840 | case "(($ac_try" in | 
 | 2841 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2842 |   *) ac_try_echo=$ac_try;; | 
 | 2843 | esac | 
 | 2844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 2845 |   (eval "$ac_compiler --version >&5") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 |   ac_status=$? | 
 | 2847 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2848 |   (exit $ac_status); } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2849 | { (ac_try="$ac_compiler -v >&5" | 
 | 2850 | case "(($ac_try" in | 
 | 2851 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2852 |   *) ac_try_echo=$ac_try;; | 
 | 2853 | esac | 
 | 2854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 2855 |   (eval "$ac_compiler -v >&5") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 |   ac_status=$? | 
 | 2857 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2858 |   (exit $ac_status); } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2859 | { (ac_try="$ac_compiler -V >&5" | 
 | 2860 | case "(($ac_try" in | 
 | 2861 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2862 |   *) ac_try_echo=$ac_try;; | 
 | 2863 | esac | 
 | 2864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 2865 |   (eval "$ac_compiler -V >&5") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2866 |   ac_status=$? | 
 | 2867 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2868 |   (exit $ac_status); } | 
 | 2869 |  | 
 | 2870 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2871 | /* confdefs.h.  */ | 
 | 2872 | _ACEOF | 
 | 2873 | cat confdefs.h >>conftest.$ac_ext | 
 | 2874 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 2875 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2877 | int | 
 | 2878 | main () | 
 | 2879 | { | 
 | 2880 |  | 
 | 2881 |   ; | 
 | 2882 |   return 0; | 
 | 2883 | } | 
 | 2884 | _ACEOF | 
 | 2885 | ac_clean_files_save=$ac_clean_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2886 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 | # Try to create an executable without -o first, disregard a.out. | 
 | 2888 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 2889 | # of exeext. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2890 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 
 | 2891 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2893 | # | 
 | 2894 | # List of possible output files, starting from the most likely. | 
 | 2895 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | 
 | 2896 | # only as a last resort.  b.out is created by i960 compilers. | 
 | 2897 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | 
 | 2898 | # | 
 | 2899 | # The IRIX 6 linker writes into existing files which may not be | 
 | 2900 | # executable, retaining their permissions.  Remove them first so a | 
 | 2901 | # subsequent execution test works. | 
 | 2902 | ac_rmfiles= | 
 | 2903 | for ac_file in $ac_files | 
 | 2904 | do | 
 | 2905 |   case $ac_file in | 
 | 2906 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | 
 | 2907 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 2908 |   esac | 
 | 2909 | done | 
 | 2910 | rm -f $ac_rmfiles | 
 | 2911 |  | 
 | 2912 | if { (ac_try="$ac_link_default" | 
 | 2913 | case "(($ac_try" in | 
 | 2914 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2915 |   *) ac_try_echo=$ac_try;; | 
 | 2916 | esac | 
 | 2917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 2918 |   (eval "$ac_link_default") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2919 |   ac_status=$? | 
 | 2920 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2921 |   (exit $ac_status); }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2922 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 2923 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 2924 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 2925 | # so that the user can short-circuit this test for compilers unknown to | 
 | 2926 | # Autoconf. | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2927 | for ac_file in $ac_files | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | do | 
 | 2929 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 |   case $ac_file in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2931 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2932 | 	;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2933 |     [ab].out ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2934 | 	# We found the default executable, but exeext='' is most | 
 | 2935 | 	# certainly right. | 
 | 2936 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2937 |     *.* ) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2938 |         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
 | 2939 | 	then :; else | 
 | 2940 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 2941 | 	fi | 
 | 2942 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 2943 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 2944 | 	# argument, so we may need to know it at that point already. | 
 | 2945 | 	# Even if this section looks crufty: it has the advantage of | 
 | 2946 | 	# actually working. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2947 | 	break;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2948 |     * ) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2949 | 	break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2950 |   esac | 
 | 2951 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2952 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 2953 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2954 | else | 
 | 2955 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2956 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2957 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2958 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2959 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2960 | echo "$as_me: error: C compiler cannot create executables | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2961 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2962 |    { (exit 77); exit 77; }; } | 
 | 2963 | fi | 
 | 2964 |  | 
 | 2965 | ac_exeext=$ac_cv_exeext | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2966 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | 
 | 2967 | echo "${ECHO_T}$ac_file" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2969 | # Check that the compiler produces executables we can run.  If not, either | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2970 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2971 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
 | 2972 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2973 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
 | 2974 | # If not cross compiling, check that we can run a simple program. | 
 | 2975 | if test "$cross_compiling" != yes; then | 
 | 2976 |   if { ac_try='./$ac_file' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2977 |   { (case "(($ac_try" in | 
 | 2978 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2979 |   *) ac_try_echo=$ac_try;; | 
 | 2980 | esac | 
 | 2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 2982 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2983 |   ac_status=$? | 
 | 2984 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 2985 |   (exit $ac_status); }; }; then | 
 | 2986 |     cross_compiling=no | 
 | 2987 |   else | 
 | 2988 |     if test "$cross_compiling" = maybe; then | 
 | 2989 | 	cross_compiling=yes | 
 | 2990 |     else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2991 | 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2992 | If you meant to cross compile, use \`--host'. | 
 | 2993 | See \`config.log' for more details." >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2994 | echo "$as_me: error: cannot run C compiled programs. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2995 | If you meant to cross compile, use \`--host'. | 
 | 2996 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2997 |    { (exit 1); exit 1; }; } | 
 | 2998 |     fi | 
 | 2999 |   fi | 
 | 3000 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3001 | { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 3002 | echo "${ECHO_T}yes" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3003 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3004 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3005 | ac_clean_files=$ac_clean_files_save | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3006 | # Check that the compiler produces executables we can run.  If not, either | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3007 | # the compiler is broken, or we cross compile. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3008 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
 | 3009 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | 
 | 3010 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
 | 3011 | echo "${ECHO_T}$cross_compiling" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3012 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3013 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
 | 3014 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | 
 | 3015 | if { (ac_try="$ac_link" | 
 | 3016 | case "(($ac_try" in | 
 | 3017 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3018 |   *) ac_try_echo=$ac_try;; | 
 | 3019 | esac | 
 | 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3021 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3022 |   ac_status=$? | 
 | 3023 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3024 |   (exit $ac_status); }; then | 
 | 3025 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 3026 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 3027 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 3028 | # `rm'. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3029 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 3030 |   test -f "$ac_file" || continue | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3031 |   case $ac_file in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3032 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3034 | 	  break;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3035 |     * ) break;; | 
 | 3036 |   esac | 
 | 3037 | done | 
 | 3038 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3039 |   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
 | 3040 | See \`config.log' for more details." >&5 | 
 | 3041 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
 | 3042 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 |    { (exit 1); exit 1; }; } | 
 | 3044 | fi | 
 | 3045 |  | 
 | 3046 | rm -f conftest$ac_cv_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3047 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
 | 3048 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3049 |  | 
 | 3050 | rm -f conftest.$ac_ext | 
 | 3051 | EXEEXT=$ac_cv_exeext | 
 | 3052 | ac_exeext=$EXEEXT | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
 | 3054 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | if test "${ac_cv_objext+set}" = set; then | 
 | 3056 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3057 | else | 
 | 3058 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3059 | /* confdefs.h.  */ | 
 | 3060 | _ACEOF | 
 | 3061 | cat confdefs.h >>conftest.$ac_ext | 
 | 3062 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3063 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3064 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3065 | int | 
 | 3066 | main () | 
 | 3067 | { | 
 | 3068 |  | 
 | 3069 |   ; | 
 | 3070 |   return 0; | 
 | 3071 | } | 
 | 3072 | _ACEOF | 
 | 3073 | rm -f conftest.o conftest.obj | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3074 | if { (ac_try="$ac_compile" | 
 | 3075 | case "(($ac_try" in | 
 | 3076 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3077 |   *) ac_try_echo=$ac_try;; | 
 | 3078 | esac | 
 | 3079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3080 |   (eval "$ac_compile") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3081 |   ac_status=$? | 
 | 3082 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3083 |   (exit $ac_status); }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3084 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 3085 |   test -f "$ac_file" || continue; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 |   case $ac_file in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3087 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3088 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 3089 |        break;; | 
 | 3090 |   esac | 
 | 3091 | done | 
 | 3092 | else | 
 | 3093 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3094 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3095 |  | 
 | 3096 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
 | 3097 | See \`config.log' for more details." >&5 | 
 | 3098 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
 | 3099 | See \`config.log' for more details." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3100 |    { (exit 1); exit 1; }; } | 
 | 3101 | fi | 
 | 3102 |  | 
 | 3103 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 3104 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3105 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
 | 3106 | echo "${ECHO_T}$ac_cv_objext" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3107 | OBJEXT=$ac_cv_objext | 
 | 3108 | ac_objext=$OBJEXT | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3109 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 3110 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3111 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3112 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3113 | else | 
 | 3114 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3115 | /* confdefs.h.  */ | 
 | 3116 | _ACEOF | 
 | 3117 | cat confdefs.h >>conftest.$ac_ext | 
 | 3118 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3119 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3120 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3121 | int | 
 | 3122 | main () | 
 | 3123 | { | 
 | 3124 | #ifndef __GNUC__ | 
 | 3125 |        choke me | 
 | 3126 | #endif | 
 | 3127 |  | 
 | 3128 |   ; | 
 | 3129 |   return 0; | 
 | 3130 | } | 
 | 3131 | _ACEOF | 
 | 3132 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3133 | if { (ac_try="$ac_compile" | 
 | 3134 | case "(($ac_try" in | 
 | 3135 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3136 |   *) ac_try_echo=$ac_try;; | 
 | 3137 | esac | 
 | 3138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3139 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3140 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3141 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3142 |   rm -f conftest.er1 | 
 | 3143 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3144 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3145 |   (exit $ac_status); } && | 
 | 3146 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3147 |   { (case "(($ac_try" in | 
 | 3148 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3149 |   *) ac_try_echo=$ac_try;; | 
 | 3150 | esac | 
 | 3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3152 |   (eval "$ac_try") 2>&5 | 
 | 3153 |   ac_status=$? | 
 | 3154 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3155 |   (exit $ac_status); }; } && | 
 | 3156 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3157 |   { (case "(($ac_try" in | 
 | 3158 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3159 |   *) ac_try_echo=$ac_try;; | 
 | 3160 | esac | 
 | 3161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3162 |   (eval "$ac_try") 2>&5 | 
 | 3163 |   ac_status=$? | 
 | 3164 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3165 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3166 |   ac_compiler_gnu=yes | 
 | 3167 | else | 
 | 3168 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3169 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3170 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3171 | 	ac_compiler_gnu=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3172 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3173 |  | 
 | 3174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3175 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3176 |  | 
 | 3177 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3178 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 3179 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3180 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 3181 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 3182 | ac_save_CFLAGS=$CFLAGS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3183 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 3184 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3185 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3186 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3187 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3188 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 3189 |    ac_c_werror_flag=yes | 
 | 3190 |    ac_cv_prog_cc_g=no | 
 | 3191 |    CFLAGS="-g" | 
 | 3192 |    cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3193 | /* confdefs.h.  */ | 
 | 3194 | _ACEOF | 
 | 3195 | cat confdefs.h >>conftest.$ac_ext | 
 | 3196 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3197 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3198 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3199 | int | 
 | 3200 | main () | 
 | 3201 | { | 
 | 3202 |  | 
 | 3203 |   ; | 
 | 3204 |   return 0; | 
 | 3205 | } | 
 | 3206 | _ACEOF | 
 | 3207 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3208 | if { (ac_try="$ac_compile" | 
 | 3209 | case "(($ac_try" in | 
 | 3210 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3211 |   *) ac_try_echo=$ac_try;; | 
 | 3212 | esac | 
 | 3213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3214 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3215 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3216 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3217 |   rm -f conftest.er1 | 
 | 3218 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3219 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3220 |   (exit $ac_status); } && | 
 | 3221 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3222 |   { (case "(($ac_try" in | 
 | 3223 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3224 |   *) ac_try_echo=$ac_try;; | 
 | 3225 | esac | 
 | 3226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3227 |   (eval "$ac_try") 2>&5 | 
 | 3228 |   ac_status=$? | 
 | 3229 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3230 |   (exit $ac_status); }; } && | 
 | 3231 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3232 |   { (case "(($ac_try" in | 
 | 3233 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3234 |   *) ac_try_echo=$ac_try;; | 
 | 3235 | esac | 
 | 3236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3237 |   (eval "$ac_try") 2>&5 | 
 | 3238 |   ac_status=$? | 
 | 3239 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3240 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3241 |   ac_cv_prog_cc_g=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3242 | else | 
 | 3243 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3244 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3245 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3246 | 	CFLAGS="" | 
 | 3247 |       cat >conftest.$ac_ext <<_ACEOF | 
 | 3248 | /* confdefs.h.  */ | 
 | 3249 | _ACEOF | 
 | 3250 | cat confdefs.h >>conftest.$ac_ext | 
 | 3251 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3252 | /* end confdefs.h.  */ | 
 | 3253 |  | 
 | 3254 | int | 
 | 3255 | main () | 
 | 3256 | { | 
 | 3257 |  | 
 | 3258 |   ; | 
 | 3259 |   return 0; | 
 | 3260 | } | 
 | 3261 | _ACEOF | 
 | 3262 | rm -f conftest.$ac_objext | 
 | 3263 | if { (ac_try="$ac_compile" | 
 | 3264 | case "(($ac_try" in | 
 | 3265 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3266 |   *) ac_try_echo=$ac_try;; | 
 | 3267 | esac | 
 | 3268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3269 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 3270 |   ac_status=$? | 
 | 3271 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3272 |   rm -f conftest.er1 | 
 | 3273 |   cat conftest.err >&5 | 
 | 3274 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3275 |   (exit $ac_status); } && | 
 | 3276 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3277 |   { (case "(($ac_try" in | 
 | 3278 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3279 |   *) ac_try_echo=$ac_try;; | 
 | 3280 | esac | 
 | 3281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3282 |   (eval "$ac_try") 2>&5 | 
 | 3283 |   ac_status=$? | 
 | 3284 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3285 |   (exit $ac_status); }; } && | 
 | 3286 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3287 |   { (case "(($ac_try" in | 
 | 3288 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3289 |   *) ac_try_echo=$ac_try;; | 
 | 3290 | esac | 
 | 3291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3292 |   (eval "$ac_try") 2>&5 | 
 | 3293 |   ac_status=$? | 
 | 3294 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3295 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3296 |   : | 
 | 3297 | else | 
 | 3298 |   echo "$as_me: failed program was:" >&5 | 
 | 3299 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3300 |  | 
 | 3301 | 	ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 3302 | 	 CFLAGS="-g" | 
 | 3303 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 3304 | /* confdefs.h.  */ | 
 | 3305 | _ACEOF | 
 | 3306 | cat confdefs.h >>conftest.$ac_ext | 
 | 3307 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3308 | /* end confdefs.h.  */ | 
 | 3309 |  | 
 | 3310 | int | 
 | 3311 | main () | 
 | 3312 | { | 
 | 3313 |  | 
 | 3314 |   ; | 
 | 3315 |   return 0; | 
 | 3316 | } | 
 | 3317 | _ACEOF | 
 | 3318 | rm -f conftest.$ac_objext | 
 | 3319 | if { (ac_try="$ac_compile" | 
 | 3320 | case "(($ac_try" in | 
 | 3321 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3322 |   *) ac_try_echo=$ac_try;; | 
 | 3323 | esac | 
 | 3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3325 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 3326 |   ac_status=$? | 
 | 3327 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3328 |   rm -f conftest.er1 | 
 | 3329 |   cat conftest.err >&5 | 
 | 3330 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3331 |   (exit $ac_status); } && | 
 | 3332 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3333 |   { (case "(($ac_try" in | 
 | 3334 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3335 |   *) ac_try_echo=$ac_try;; | 
 | 3336 | esac | 
 | 3337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3338 |   (eval "$ac_try") 2>&5 | 
 | 3339 |   ac_status=$? | 
 | 3340 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3341 |   (exit $ac_status); }; } && | 
 | 3342 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3343 |   { (case "(($ac_try" in | 
 | 3344 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3345 |   *) ac_try_echo=$ac_try;; | 
 | 3346 | esac | 
 | 3347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3348 |   (eval "$ac_try") 2>&5 | 
 | 3349 |   ac_status=$? | 
 | 3350 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3351 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3352 |   ac_cv_prog_cc_g=yes | 
 | 3353 | else | 
 | 3354 |   echo "$as_me: failed program was:" >&5 | 
 | 3355 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3356 |  | 
 | 3357 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3358 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3359 |  | 
 | 3360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3361 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3362 |  | 
 | 3363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3364 | fi | 
 | 3365 |  | 
 | 3366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3367 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 3368 | fi | 
 | 3369 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 3370 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3371 | if test "$ac_test_CFLAGS" = set; then | 
 | 3372 |   CFLAGS=$ac_save_CFLAGS | 
 | 3373 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 3374 |   if test "$GCC" = yes; then | 
 | 3375 |     CFLAGS="-g -O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3376 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3377 |     CFLAGS="-g" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3378 |   fi | 
 | 3379 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3380 |   if test "$GCC" = yes; then | 
 | 3381 |     CFLAGS="-O2" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3382 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3383 |     CFLAGS= | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3384 |   fi | 
 | 3385 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3386 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 
 | 3387 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | 
 | 3388 | if test "${ac_cv_prog_cc_c89+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3389 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3390 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3391 |   ac_cv_prog_cc_c89=no | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3392 | ac_save_CC=$CC | 
 | 3393 | cat >conftest.$ac_ext <<_ACEOF | 
 | 3394 | /* confdefs.h.  */ | 
 | 3395 | _ACEOF | 
 | 3396 | cat confdefs.h >>conftest.$ac_ext | 
 | 3397 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3398 | /* end confdefs.h.  */ | 
 | 3399 | #include <stdarg.h> | 
 | 3400 | #include <stdio.h> | 
 | 3401 | #include <sys/types.h> | 
 | 3402 | #include <sys/stat.h> | 
 | 3403 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 3404 | struct buf { int x; }; | 
 | 3405 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 3406 | static char *e (p, i) | 
 | 3407 |      char **p; | 
 | 3408 |      int i; | 
 | 3409 | { | 
 | 3410 |   return p[i]; | 
 | 3411 | } | 
 | 3412 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 3413 | { | 
 | 3414 |   char *s; | 
 | 3415 |   va_list v; | 
 | 3416 |   va_start (v,p); | 
 | 3417 |   s = g (p, va_arg (v,int)); | 
 | 3418 |   va_end (v); | 
 | 3419 |   return s; | 
 | 3420 | } | 
 | 3421 |  | 
 | 3422 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 3423 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 3424 |    These don't provoke an error unfortunately, instead are silently treated | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3425 |    as 'x'.  The following induces an error, until -std is added to get | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3426 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 3427 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3428 |    that's true only with -std.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3429 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 3430 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3431 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 3432 |    inside strings and character constants.  */ | 
 | 3433 | #define FOO(x) 'x' | 
 | 3434 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 3435 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3436 | int test (int i, double x); | 
 | 3437 | struct s1 {int (*f) (int a);}; | 
 | 3438 | struct s2 {int (*f) (double a);}; | 
 | 3439 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 3440 | int argc; | 
 | 3441 | char **argv; | 
 | 3442 | int | 
 | 3443 | main () | 
 | 3444 | { | 
 | 3445 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 3446 |   ; | 
 | 3447 |   return 0; | 
 | 3448 | } | 
 | 3449 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3450 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 3451 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3452 | do | 
 | 3453 |   CC="$ac_save_CC $ac_arg" | 
 | 3454 |   rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3455 | if { (ac_try="$ac_compile" | 
 | 3456 | case "(($ac_try" in | 
 | 3457 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3458 |   *) ac_try_echo=$ac_try;; | 
 | 3459 | esac | 
 | 3460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3461 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3462 |   ac_status=$? | 
 | 3463 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3464 |   rm -f conftest.er1 | 
 | 3465 |   cat conftest.err >&5 | 
 | 3466 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3467 |   (exit $ac_status); } && | 
 | 3468 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3469 |   { (case "(($ac_try" in | 
 | 3470 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3471 |   *) ac_try_echo=$ac_try;; | 
 | 3472 | esac | 
 | 3473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3474 |   (eval "$ac_try") 2>&5 | 
 | 3475 |   ac_status=$? | 
 | 3476 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3477 |   (exit $ac_status); }; } && | 
 | 3478 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3479 |   { (case "(($ac_try" in | 
 | 3480 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3481 |   *) ac_try_echo=$ac_try;; | 
 | 3482 | esac | 
 | 3483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3484 |   (eval "$ac_try") 2>&5 | 
 | 3485 |   ac_status=$? | 
 | 3486 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3487 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3488 |   ac_cv_prog_cc_c89=$ac_arg | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3489 | else | 
 | 3490 |   echo "$as_me: failed program was:" >&5 | 
 | 3491 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3492 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3493 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3494 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3495 |  | 
 | 3496 | rm -f core conftest.err conftest.$ac_objext | 
 | 3497 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3498 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3499 | rm -f conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3500 | CC=$ac_save_CC | 
 | 3501 |  | 
 | 3502 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3503 | # AC_CACHE_VAL | 
 | 3504 | case "x$ac_cv_prog_cc_c89" in | 
 | 3505 |   x) | 
 | 3506 |     { echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 3507 | echo "${ECHO_T}none needed" >&6; } ;; | 
 | 3508 |   xno) | 
 | 3509 |     { echo "$as_me:$LINENO: result: unsupported" >&5 | 
 | 3510 | echo "${ECHO_T}unsupported" >&6; } ;; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3511 |   *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3512 |     CC="$CC $ac_cv_prog_cc_c89" | 
 | 3513 |     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 
 | 3514 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3515 | esac | 
 | 3516 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3517 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3518 | ac_ext=c | 
 | 3519 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3523 |  | 
 | 3524 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3525 | ac_ext=c | 
 | 3526 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3530 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 3531 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3532 | # On Suns, sometimes $CPP names a directory. | 
 | 3533 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 3534 |   CPP= | 
 | 3535 | fi | 
 | 3536 | if test -z "$CPP"; then | 
 | 3537 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 3538 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3539 | else | 
 | 3540 |       # Double quotes because CPP needs to be expanded | 
 | 3541 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 3542 |     do | 
 | 3543 |       ac_preproc_ok=false | 
 | 3544 | for ac_c_preproc_warn_flag in '' yes | 
 | 3545 | do | 
 | 3546 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3547 |   # with a fresh cross-compiler works. | 
 | 3548 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3549 |   # <limits.h> exists even on freestanding compilers. | 
 | 3550 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3551 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3552 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3553 | /* confdefs.h.  */ | 
 | 3554 | _ACEOF | 
 | 3555 | cat confdefs.h >>conftest.$ac_ext | 
 | 3556 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3557 | /* end confdefs.h.  */ | 
 | 3558 | #ifdef __STDC__ | 
 | 3559 | # include <limits.h> | 
 | 3560 | #else | 
 | 3561 | # include <assert.h> | 
 | 3562 | #endif | 
 | 3563 | 		     Syntax error | 
 | 3564 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3565 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 3566 | case "(($ac_try" in | 
 | 3567 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3568 |   *) ac_try_echo=$ac_try;; | 
 | 3569 | esac | 
 | 3570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3571 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3572 |   ac_status=$? | 
 | 3573 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3574 |   rm -f conftest.er1 | 
 | 3575 |   cat conftest.err >&5 | 
 | 3576 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3577 |   (exit $ac_status); } >/dev/null; then | 
 | 3578 |   if test -s conftest.err; then | 
 | 3579 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3580 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3581 |   else | 
 | 3582 |     ac_cpp_err= | 
 | 3583 |   fi | 
 | 3584 | else | 
 | 3585 |   ac_cpp_err=yes | 
 | 3586 | fi | 
 | 3587 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3588 |   : | 
 | 3589 | else | 
 | 3590 |   echo "$as_me: failed program was:" >&5 | 
 | 3591 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3592 |  | 
 | 3593 |   # Broken: fails on valid input. | 
 | 3594 | continue | 
 | 3595 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3596 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3597 | rm -f conftest.err conftest.$ac_ext | 
 | 3598 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3599 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3600 |   # can be detected and how. | 
 | 3601 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3602 | /* confdefs.h.  */ | 
 | 3603 | _ACEOF | 
 | 3604 | cat confdefs.h >>conftest.$ac_ext | 
 | 3605 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3606 | /* end confdefs.h.  */ | 
 | 3607 | #include <ac_nonexistent.h> | 
 | 3608 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3609 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 3610 | case "(($ac_try" in | 
 | 3611 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3612 |   *) ac_try_echo=$ac_try;; | 
 | 3613 | esac | 
 | 3614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3615 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3616 |   ac_status=$? | 
 | 3617 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3618 |   rm -f conftest.er1 | 
 | 3619 |   cat conftest.err >&5 | 
 | 3620 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3621 |   (exit $ac_status); } >/dev/null; then | 
 | 3622 |   if test -s conftest.err; then | 
 | 3623 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3624 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3625 |   else | 
 | 3626 |     ac_cpp_err= | 
 | 3627 |   fi | 
 | 3628 | else | 
 | 3629 |   ac_cpp_err=yes | 
 | 3630 | fi | 
 | 3631 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3632 |   # Broken: success on invalid input. | 
 | 3633 | continue | 
 | 3634 | else | 
 | 3635 |   echo "$as_me: failed program was:" >&5 | 
 | 3636 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3637 |  | 
 | 3638 |   # Passes both tests. | 
 | 3639 | ac_preproc_ok=: | 
 | 3640 | break | 
 | 3641 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3642 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3643 | rm -f conftest.err conftest.$ac_ext | 
 | 3644 |  | 
 | 3645 | done | 
 | 3646 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3647 | rm -f conftest.err conftest.$ac_ext | 
 | 3648 | if $ac_preproc_ok; then | 
 | 3649 |   break | 
 | 3650 | fi | 
 | 3651 |  | 
 | 3652 |     done | 
 | 3653 |     ac_cv_prog_CPP=$CPP | 
 | 3654 |  | 
 | 3655 | fi | 
 | 3656 |   CPP=$ac_cv_prog_CPP | 
 | 3657 | else | 
 | 3658 |   ac_cv_prog_CPP=$CPP | 
 | 3659 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3660 | { echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 3661 | echo "${ECHO_T}$CPP" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3662 | ac_preproc_ok=false | 
 | 3663 | for ac_c_preproc_warn_flag in '' yes | 
 | 3664 | do | 
 | 3665 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 3666 |   # with a fresh cross-compiler works. | 
 | 3667 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 3668 |   # <limits.h> exists even on freestanding compilers. | 
 | 3669 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 3670 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 3671 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3672 | /* confdefs.h.  */ | 
 | 3673 | _ACEOF | 
 | 3674 | cat confdefs.h >>conftest.$ac_ext | 
 | 3675 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3676 | /* end confdefs.h.  */ | 
 | 3677 | #ifdef __STDC__ | 
 | 3678 | # include <limits.h> | 
 | 3679 | #else | 
 | 3680 | # include <assert.h> | 
 | 3681 | #endif | 
 | 3682 | 		     Syntax error | 
 | 3683 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 3685 | case "(($ac_try" in | 
 | 3686 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3687 |   *) ac_try_echo=$ac_try;; | 
 | 3688 | esac | 
 | 3689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3690 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3691 |   ac_status=$? | 
 | 3692 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3693 |   rm -f conftest.er1 | 
 | 3694 |   cat conftest.err >&5 | 
 | 3695 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3696 |   (exit $ac_status); } >/dev/null; then | 
 | 3697 |   if test -s conftest.err; then | 
 | 3698 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3699 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3700 |   else | 
 | 3701 |     ac_cpp_err= | 
 | 3702 |   fi | 
 | 3703 | else | 
 | 3704 |   ac_cpp_err=yes | 
 | 3705 | fi | 
 | 3706 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3707 |   : | 
 | 3708 | else | 
 | 3709 |   echo "$as_me: failed program was:" >&5 | 
 | 3710 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3711 |  | 
 | 3712 |   # Broken: fails on valid input. | 
 | 3713 | continue | 
 | 3714 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3715 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3716 | rm -f conftest.err conftest.$ac_ext | 
 | 3717 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3718 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3719 |   # can be detected and how. | 
 | 3720 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 3721 | /* confdefs.h.  */ | 
 | 3722 | _ACEOF | 
 | 3723 | cat confdefs.h >>conftest.$ac_ext | 
 | 3724 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3725 | /* end confdefs.h.  */ | 
 | 3726 | #include <ac_nonexistent.h> | 
 | 3727 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 3729 | case "(($ac_try" in | 
 | 3730 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3731 |   *) ac_try_echo=$ac_try;; | 
 | 3732 | esac | 
 | 3733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3734 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3735 |   ac_status=$? | 
 | 3736 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3737 |   rm -f conftest.er1 | 
 | 3738 |   cat conftest.err >&5 | 
 | 3739 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3740 |   (exit $ac_status); } >/dev/null; then | 
 | 3741 |   if test -s conftest.err; then | 
 | 3742 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 3743 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 3744 |   else | 
 | 3745 |     ac_cpp_err= | 
 | 3746 |   fi | 
 | 3747 | else | 
 | 3748 |   ac_cpp_err=yes | 
 | 3749 | fi | 
 | 3750 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3751 |   # Broken: success on invalid input. | 
 | 3752 | continue | 
 | 3753 | else | 
 | 3754 |   echo "$as_me: failed program was:" >&5 | 
 | 3755 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 3756 |  | 
 | 3757 |   # Passes both tests. | 
 | 3758 | ac_preproc_ok=: | 
 | 3759 | break | 
 | 3760 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3761 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3762 | rm -f conftest.err conftest.$ac_ext | 
 | 3763 |  | 
 | 3764 | done | 
 | 3765 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 3766 | rm -f conftest.err conftest.$ac_ext | 
 | 3767 | if $ac_preproc_ok; then | 
 | 3768 |   : | 
 | 3769 | else | 
 | 3770 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3771 | See \`config.log' for more details." >&5 | 
 | 3772 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 3773 | See \`config.log' for more details." >&2;} | 
 | 3774 |    { (exit 1); exit 1; }; } | 
 | 3775 | fi | 
 | 3776 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3777 | ac_ext=c | 
 | 3778 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3782 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3783 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3784 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 
 | 3785 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3786 | if test "${ac_cv_path_GREP+set}" = set; then | 
 | 3787 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3788 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3789 |   # Extract the first word of "grep ggrep" to use in msg output | 
 | 3790 | if test -z "$GREP"; then | 
 | 3791 | set dummy grep ggrep; ac_prog_name=$2 | 
 | 3792 | if test "${ac_cv_path_GREP+set}" = set; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3793 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3794 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3795 |   ac_path_GREP_found=false | 
 | 3796 | # Loop through the user's path and test for each of PROGNAME-LIST | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3798 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3799 | do | 
 | 3800 |   IFS=$as_save_IFS | 
 | 3801 |   test -z "$as_dir" && as_dir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3802 |   for ac_prog in grep ggrep; do | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3803 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3804 |     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3805 |     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3806 |     # Check for GNU ac_path_GREP and select it if it is found. | 
 | 3807 |   # Check for GNU $ac_path_GREP | 
 | 3808 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 3809 | *GNU*) | 
 | 3810 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 3811 | *) | 
 | 3812 |   ac_count=0 | 
 | 3813 |   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
 | 3814 |   while : | 
 | 3815 |   do | 
 | 3816 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 3817 |     mv "conftest.tmp" "conftest.in" | 
 | 3818 |     cp "conftest.in" "conftest.nl" | 
 | 3819 |     echo 'GREP' >> "conftest.nl" | 
 | 3820 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 3821 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 3822 |     ac_count=`expr $ac_count + 1` | 
 | 3823 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 3824 |       # Best one so far, save it but keep looking for a better one | 
 | 3825 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 3826 |       ac_path_GREP_max=$ac_count | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3827 |     fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3828 |     # 10*(2^10) chars as input seems more than enough | 
 | 3829 |     test $ac_count -gt 10 && break | 
 | 3830 |   done | 
 | 3831 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 3832 | esac | 
 | 3833 |  | 
 | 3834 |  | 
 | 3835 |     $ac_path_GREP_found && break 3 | 
 | 3836 |   done | 
 | 3837 | done | 
 | 3838 |  | 
 | 3839 | done | 
 | 3840 | IFS=$as_save_IFS | 
 | 3841 |  | 
 | 3842 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3843 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3844 |  | 
 | 3845 | GREP="$ac_cv_path_GREP" | 
 | 3846 | if test -z "$GREP"; then | 
 | 3847 |   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
 | 3848 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
 | 3849 |    { (exit 1); exit 1; }; } | 
 | 3850 | fi | 
 | 3851 |  | 
 | 3852 | else | 
 | 3853 |   ac_cv_path_GREP=$GREP | 
 | 3854 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3855 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3856 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3857 | fi | 
 | 3858 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 
 | 3859 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | 
 | 3860 |  GREP="$ac_cv_path_GREP" | 
 | 3861 |  | 
 | 3862 |  | 
 | 3863 | { echo "$as_me:$LINENO: checking for egrep" >&5 | 
 | 3864 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | 
 | 3865 | if test "${ac_cv_path_EGREP+set}" = set; then | 
 | 3866 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3867 | else | 
 | 3868 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 3869 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 3870 |    else | 
 | 3871 |      # Extract the first word of "egrep" to use in msg output | 
 | 3872 | if test -z "$EGREP"; then | 
 | 3873 | set dummy egrep; ac_prog_name=$2 | 
 | 3874 | if test "${ac_cv_path_EGREP+set}" = set; then | 
 | 3875 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3876 | else | 
 | 3877 |   ac_path_EGREP_found=false | 
 | 3878 | # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3880 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 3881 | do | 
 | 3882 |   IFS=$as_save_IFS | 
 | 3883 |   test -z "$as_dir" && as_dir=. | 
 | 3884 |   for ac_prog in egrep; do | 
 | 3885 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3886 |     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3887 |     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3888 |     # Check for GNU ac_path_EGREP and select it if it is found. | 
 | 3889 |   # Check for GNU $ac_path_EGREP | 
 | 3890 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 3891 | *GNU*) | 
 | 3892 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 3893 | *) | 
 | 3894 |   ac_count=0 | 
 | 3895 |   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | 
 | 3896 |   while : | 
 | 3897 |   do | 
 | 3898 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 3899 |     mv "conftest.tmp" "conftest.in" | 
 | 3900 |     cp "conftest.in" "conftest.nl" | 
 | 3901 |     echo 'EGREP' >> "conftest.nl" | 
 | 3902 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 3903 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 3904 |     ac_count=`expr $ac_count + 1` | 
 | 3905 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 3906 |       # Best one so far, save it but keep looking for a better one | 
 | 3907 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 3908 |       ac_path_EGREP_max=$ac_count | 
 | 3909 |     fi | 
 | 3910 |     # 10*(2^10) chars as input seems more than enough | 
 | 3911 |     test $ac_count -gt 10 && break | 
 | 3912 |   done | 
 | 3913 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 3914 | esac | 
 | 3915 |  | 
 | 3916 |  | 
 | 3917 |     $ac_path_EGREP_found && break 3 | 
 | 3918 |   done | 
 | 3919 | done | 
 | 3920 |  | 
 | 3921 | done | 
 | 3922 | IFS=$as_save_IFS | 
 | 3923 |  | 
 | 3924 |  | 
 | 3925 | fi | 
 | 3926 |  | 
 | 3927 | EGREP="$ac_cv_path_EGREP" | 
 | 3928 | if test -z "$EGREP"; then | 
 | 3929 |   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 
 | 3930 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | 
 | 3931 |    { (exit 1); exit 1; }; } | 
 | 3932 | fi | 
 | 3933 |  | 
 | 3934 | else | 
 | 3935 |   ac_cv_path_EGREP=$EGREP | 
 | 3936 | fi | 
 | 3937 |  | 
 | 3938 |  | 
 | 3939 |    fi | 
 | 3940 | fi | 
 | 3941 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 
 | 3942 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | 
 | 3943 |  EGREP="$ac_cv_path_EGREP" | 
 | 3944 |  | 
 | 3945 |  | 
 | 3946 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 3947 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 3949 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 3950 | else | 
 | 3951 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3952 | /* confdefs.h.  */ | 
 | 3953 | _ACEOF | 
 | 3954 | cat confdefs.h >>conftest.$ac_ext | 
 | 3955 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 3956 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | #include <stdlib.h> | 
 | 3958 | #include <stdarg.h> | 
 | 3959 | #include <string.h> | 
 | 3960 | #include <float.h> | 
 | 3961 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3962 | int | 
 | 3963 | main () | 
 | 3964 | { | 
 | 3965 |  | 
 | 3966 |   ; | 
 | 3967 |   return 0; | 
 | 3968 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3969 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3970 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3971 | if { (ac_try="$ac_compile" | 
 | 3972 | case "(($ac_try" in | 
 | 3973 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3974 |   *) ac_try_echo=$ac_try;; | 
 | 3975 | esac | 
 | 3976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3977 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3978 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3979 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 3980 |   rm -f conftest.er1 | 
 | 3981 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3982 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3983 |   (exit $ac_status); } && | 
 | 3984 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 3985 |   { (case "(($ac_try" in | 
 | 3986 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3987 |   *) ac_try_echo=$ac_try;; | 
 | 3988 | esac | 
 | 3989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 3990 |   (eval "$ac_try") 2>&5 | 
 | 3991 |   ac_status=$? | 
 | 3992 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 3993 |   (exit $ac_status); }; } && | 
 | 3994 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 3995 |   { (case "(($ac_try" in | 
 | 3996 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 3997 |   *) ac_try_echo=$ac_try;; | 
 | 3998 | esac | 
 | 3999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4000 |   (eval "$ac_try") 2>&5 | 
 | 4001 |   ac_status=$? | 
 | 4002 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4003 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4004 |   ac_cv_header_stdc=yes | 
 | 4005 | else | 
 | 4006 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4007 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4008 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4009 | 	ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4010 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4011 |  | 
 | 4012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4013 |  | 
 | 4014 | if test $ac_cv_header_stdc = yes; then | 
 | 4015 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 4016 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4017 | /* confdefs.h.  */ | 
 | 4018 | _ACEOF | 
 | 4019 | cat confdefs.h >>conftest.$ac_ext | 
 | 4020 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4021 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4022 | #include <string.h> | 
 | 4023 |  | 
 | 4024 | _ACEOF | 
 | 4025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4026 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4027 |   : | 
 | 4028 | else | 
 | 4029 |   ac_cv_header_stdc=no | 
 | 4030 | fi | 
 | 4031 | rm -f conftest* | 
 | 4032 |  | 
 | 4033 | fi | 
 | 4034 |  | 
 | 4035 | if test $ac_cv_header_stdc = yes; then | 
 | 4036 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 4037 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4038 | /* confdefs.h.  */ | 
 | 4039 | _ACEOF | 
 | 4040 | cat confdefs.h >>conftest.$ac_ext | 
 | 4041 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4042 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4043 | #include <stdlib.h> | 
 | 4044 |  | 
 | 4045 | _ACEOF | 
 | 4046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4047 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4048 |   : | 
 | 4049 | else | 
 | 4050 |   ac_cv_header_stdc=no | 
 | 4051 | fi | 
 | 4052 | rm -f conftest* | 
 | 4053 |  | 
 | 4054 | fi | 
 | 4055 |  | 
 | 4056 | if test $ac_cv_header_stdc = yes; then | 
 | 4057 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 4058 |   if test "$cross_compiling" = yes; then | 
 | 4059 |   : | 
 | 4060 | else | 
 | 4061 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4062 | /* confdefs.h.  */ | 
 | 4063 | _ACEOF | 
 | 4064 | cat confdefs.h >>conftest.$ac_ext | 
 | 4065 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4066 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4067 | #include <ctype.h> | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4068 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4069 | #if ((' ' & 0x0FF) == 0x020) | 
 | 4070 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 4071 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 4072 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4073 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4074 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 4075 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 4076 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4077 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 4078 | #endif | 
 | 4079 |  | 
 | 4080 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 4081 | int | 
 | 4082 | main () | 
 | 4083 | { | 
 | 4084 |   int i; | 
 | 4085 |   for (i = 0; i < 256; i++) | 
 | 4086 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4087 | 	|| toupper (i) != TOUPPER (i)) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4088 |       return 2; | 
 | 4089 |   return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4090 | } | 
 | 4091 | _ACEOF | 
 | 4092 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4093 | if { (ac_try="$ac_link" | 
 | 4094 | case "(($ac_try" in | 
 | 4095 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4096 |   *) ac_try_echo=$ac_try;; | 
 | 4097 | esac | 
 | 4098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4099 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4100 |   ac_status=$? | 
 | 4101 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4102 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4103 |   { (case "(($ac_try" in | 
 | 4104 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4105 |   *) ac_try_echo=$ac_try;; | 
 | 4106 | esac | 
 | 4107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4108 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4109 |   ac_status=$? | 
 | 4110 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4111 |   (exit $ac_status); }; }; then | 
 | 4112 |   : | 
 | 4113 | else | 
 | 4114 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 4115 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4116 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4117 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4118 | ( exit $ac_status ) | 
 | 4119 | ac_cv_header_stdc=no | 
 | 4120 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 4122 | fi | 
 | 4123 |  | 
 | 4124 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4125 | fi | 
 | 4126 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4127 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 4128 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4129 | if test $ac_cv_header_stdc = yes; then | 
 | 4130 |  | 
 | 4131 | cat >>confdefs.h <<\_ACEOF | 
 | 4132 | #define STDC_HEADERS 1 | 
 | 4133 | _ACEOF | 
 | 4134 |  | 
 | 4135 | fi | 
 | 4136 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4137 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 4138 |  | 
 | 4139 |  | 
 | 4140 |  | 
 | 4141 |  | 
 | 4142 |  | 
 | 4143 |  | 
 | 4144 |  | 
 | 4145 |  | 
 | 4146 |  | 
 | 4147 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 4148 | 		  inttypes.h stdint.h unistd.h | 
 | 4149 | do | 
 | 4150 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 4151 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 4152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 4153 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 4154 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4155 | else | 
 | 4156 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4157 | /* confdefs.h.  */ | 
 | 4158 | _ACEOF | 
 | 4159 | cat confdefs.h >>conftest.$ac_ext | 
 | 4160 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4161 | /* end confdefs.h.  */ | 
 | 4162 | $ac_includes_default | 
 | 4163 |  | 
 | 4164 | #include <$ac_header> | 
 | 4165 | _ACEOF | 
 | 4166 | rm -f conftest.$ac_objext | 
 | 4167 | if { (ac_try="$ac_compile" | 
 | 4168 | case "(($ac_try" in | 
 | 4169 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4170 |   *) ac_try_echo=$ac_try;; | 
 | 4171 | esac | 
 | 4172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4173 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 4174 |   ac_status=$? | 
 | 4175 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4176 |   rm -f conftest.er1 | 
 | 4177 |   cat conftest.err >&5 | 
 | 4178 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4179 |   (exit $ac_status); } && | 
 | 4180 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 4181 |   { (case "(($ac_try" in | 
 | 4182 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4183 |   *) ac_try_echo=$ac_try;; | 
 | 4184 | esac | 
 | 4185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4186 |   (eval "$ac_try") 2>&5 | 
 | 4187 |   ac_status=$? | 
 | 4188 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4189 |   (exit $ac_status); }; } && | 
 | 4190 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4191 |   { (case "(($ac_try" in | 
 | 4192 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4193 |   *) ac_try_echo=$ac_try;; | 
 | 4194 | esac | 
 | 4195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4196 |   (eval "$ac_try") 2>&5 | 
 | 4197 |   ac_status=$? | 
 | 4198 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4199 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4200 |   eval "$as_ac_Header=yes" | 
 | 4201 | else | 
 | 4202 |   echo "$as_me: failed program was:" >&5 | 
 | 4203 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4204 |  | 
 | 4205 | 	eval "$as_ac_Header=no" | 
 | 4206 | fi | 
 | 4207 |  | 
 | 4208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4209 | fi | 
 | 4210 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 4211 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 4212 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 4213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 4214 |   cat >>confdefs.h <<_ACEOF | 
 | 4215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 4216 | _ACEOF | 
 | 4217 |  | 
 | 4218 | fi | 
 | 4219 |  | 
 | 4220 | done | 
 | 4221 |  | 
 | 4222 |  | 
 | 4223 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | 
 | 4224 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | 
 | 4225 | if test "${ac_cv_c_bigendian+set}" = set; then | 
 | 4226 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4227 | else | 
 | 4228 |   # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 4229 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4230 | /* confdefs.h.  */ | 
 | 4231 | _ACEOF | 
 | 4232 | cat confdefs.h >>conftest.$ac_ext | 
 | 4233 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4234 | /* end confdefs.h.  */ | 
 | 4235 | #include <sys/types.h> | 
 | 4236 | #include <sys/param.h> | 
 | 4237 |  | 
 | 4238 | int | 
 | 4239 | main () | 
 | 4240 | { | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4241 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4242 |  bogus endian macros | 
 | 4243 | #endif | 
 | 4244 |  | 
 | 4245 |   ; | 
 | 4246 |   return 0; | 
 | 4247 | } | 
 | 4248 | _ACEOF | 
 | 4249 | rm -f conftest.$ac_objext | 
 | 4250 | if { (ac_try="$ac_compile" | 
 | 4251 | case "(($ac_try" in | 
 | 4252 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4253 |   *) ac_try_echo=$ac_try;; | 
 | 4254 | esac | 
 | 4255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4256 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 4257 |   ac_status=$? | 
 | 4258 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4259 |   rm -f conftest.er1 | 
 | 4260 |   cat conftest.err >&5 | 
 | 4261 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4262 |   (exit $ac_status); } && | 
 | 4263 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 4264 |   { (case "(($ac_try" in | 
 | 4265 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4266 |   *) ac_try_echo=$ac_try;; | 
 | 4267 | esac | 
 | 4268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4269 |   (eval "$ac_try") 2>&5 | 
 | 4270 |   ac_status=$? | 
 | 4271 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4272 |   (exit $ac_status); }; } && | 
 | 4273 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4274 |   { (case "(($ac_try" in | 
 | 4275 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4276 |   *) ac_try_echo=$ac_try;; | 
 | 4277 | esac | 
 | 4278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4279 |   (eval "$ac_try") 2>&5 | 
 | 4280 |   ac_status=$? | 
 | 4281 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4282 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4283 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 4284 | cat >conftest.$ac_ext <<_ACEOF | 
 | 4285 | /* confdefs.h.  */ | 
 | 4286 | _ACEOF | 
 | 4287 | cat confdefs.h >>conftest.$ac_ext | 
 | 4288 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4289 | /* end confdefs.h.  */ | 
 | 4290 | #include <sys/types.h> | 
 | 4291 | #include <sys/param.h> | 
 | 4292 |  | 
 | 4293 | int | 
 | 4294 | main () | 
 | 4295 | { | 
 | 4296 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 4297 |  not big endian | 
 | 4298 | #endif | 
 | 4299 |  | 
 | 4300 |   ; | 
 | 4301 |   return 0; | 
 | 4302 | } | 
 | 4303 | _ACEOF | 
 | 4304 | rm -f conftest.$ac_objext | 
 | 4305 | if { (ac_try="$ac_compile" | 
 | 4306 | case "(($ac_try" in | 
 | 4307 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4308 |   *) ac_try_echo=$ac_try;; | 
 | 4309 | esac | 
 | 4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4311 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 4312 |   ac_status=$? | 
 | 4313 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4314 |   rm -f conftest.er1 | 
 | 4315 |   cat conftest.err >&5 | 
 | 4316 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4317 |   (exit $ac_status); } && | 
 | 4318 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 4319 |   { (case "(($ac_try" in | 
 | 4320 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4321 |   *) ac_try_echo=$ac_try;; | 
 | 4322 | esac | 
 | 4323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4324 |   (eval "$ac_try") 2>&5 | 
 | 4325 |   ac_status=$? | 
 | 4326 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4327 |   (exit $ac_status); }; } && | 
 | 4328 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4329 |   { (case "(($ac_try" in | 
 | 4330 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4331 |   *) ac_try_echo=$ac_try;; | 
 | 4332 | esac | 
 | 4333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4334 |   (eval "$ac_try") 2>&5 | 
 | 4335 |   ac_status=$? | 
 | 4336 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4337 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4338 |   ac_cv_c_bigendian=yes | 
 | 4339 | else | 
 | 4340 |   echo "$as_me: failed program was:" >&5 | 
 | 4341 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4342 |  | 
 | 4343 | 	ac_cv_c_bigendian=no | 
 | 4344 | fi | 
 | 4345 |  | 
 | 4346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4347 | else | 
 | 4348 |   echo "$as_me: failed program was:" >&5 | 
 | 4349 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4350 |  | 
 | 4351 | 	# It does not; compile a test program. | 
 | 4352 | if test "$cross_compiling" = yes; then | 
 | 4353 |   # try to guess the endianness by grepping values into an object file | 
 | 4354 |   ac_cv_c_bigendian=unknown | 
 | 4355 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4356 | /* confdefs.h.  */ | 
 | 4357 | _ACEOF | 
 | 4358 | cat confdefs.h >>conftest.$ac_ext | 
 | 4359 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4360 | /* end confdefs.h.  */ | 
 | 4361 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 4362 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 4363 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | 
 | 4364 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 4365 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 4366 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | 
 | 4367 | int | 
 | 4368 | main () | 
 | 4369 | { | 
 | 4370 |  _ascii (); _ebcdic (); | 
 | 4371 |   ; | 
 | 4372 |   return 0; | 
 | 4373 | } | 
 | 4374 | _ACEOF | 
 | 4375 | rm -f conftest.$ac_objext | 
 | 4376 | if { (ac_try="$ac_compile" | 
 | 4377 | case "(($ac_try" in | 
 | 4378 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4379 |   *) ac_try_echo=$ac_try;; | 
 | 4380 | esac | 
 | 4381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4382 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 4383 |   ac_status=$? | 
 | 4384 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 4385 |   rm -f conftest.er1 | 
 | 4386 |   cat conftest.err >&5 | 
 | 4387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4388 |   (exit $ac_status); } && | 
 | 4389 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 4390 |   { (case "(($ac_try" in | 
 | 4391 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4392 |   *) ac_try_echo=$ac_try;; | 
 | 4393 | esac | 
 | 4394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4395 |   (eval "$ac_try") 2>&5 | 
 | 4396 |   ac_status=$? | 
 | 4397 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4398 |   (exit $ac_status); }; } && | 
 | 4399 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 4400 |   { (case "(($ac_try" in | 
 | 4401 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4402 |   *) ac_try_echo=$ac_try;; | 
 | 4403 | esac | 
 | 4404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4405 |   (eval "$ac_try") 2>&5 | 
 | 4406 |   ac_status=$? | 
 | 4407 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4408 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4409 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | 
 | 4410 |   ac_cv_c_bigendian=yes | 
 | 4411 | fi | 
 | 4412 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 4413 |   if test "$ac_cv_c_bigendian" = unknown; then | 
 | 4414 |     ac_cv_c_bigendian=no | 
 | 4415 |   else | 
 | 4416 |     # finding both strings is unlikely to happen, but who knows? | 
 | 4417 |     ac_cv_c_bigendian=unknown | 
 | 4418 |   fi | 
 | 4419 | fi | 
 | 4420 | else | 
 | 4421 |   echo "$as_me: failed program was:" >&5 | 
 | 4422 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4423 |  | 
 | 4424 |  | 
 | 4425 | fi | 
 | 4426 |  | 
 | 4427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4428 | else | 
 | 4429 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 4430 | /* confdefs.h.  */ | 
 | 4431 | _ACEOF | 
 | 4432 | cat confdefs.h >>conftest.$ac_ext | 
 | 4433 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 4434 | /* end confdefs.h.  */ | 
 | 4435 | $ac_includes_default | 
 | 4436 | int | 
 | 4437 | main () | 
 | 4438 | { | 
 | 4439 |  | 
 | 4440 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 4441 |   union | 
 | 4442 |   { | 
 | 4443 |     long int l; | 
 | 4444 |     char c[sizeof (long int)]; | 
 | 4445 |   } u; | 
 | 4446 |   u.l = 1; | 
 | 4447 |   return u.c[sizeof (long int) - 1] == 1; | 
 | 4448 |  | 
 | 4449 |   ; | 
 | 4450 |   return 0; | 
 | 4451 | } | 
 | 4452 | _ACEOF | 
 | 4453 | rm -f conftest$ac_exeext | 
 | 4454 | if { (ac_try="$ac_link" | 
 | 4455 | case "(($ac_try" in | 
 | 4456 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4457 |   *) ac_try_echo=$ac_try;; | 
 | 4458 | esac | 
 | 4459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4460 |   (eval "$ac_link") 2>&5 | 
 | 4461 |   ac_status=$? | 
 | 4462 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4463 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 4464 |   { (case "(($ac_try" in | 
 | 4465 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4466 |   *) ac_try_echo=$ac_try;; | 
 | 4467 | esac | 
 | 4468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 4469 |   (eval "$ac_try") 2>&5 | 
 | 4470 |   ac_status=$? | 
 | 4471 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4472 |   (exit $ac_status); }; }; then | 
 | 4473 |   ac_cv_c_bigendian=no | 
 | 4474 | else | 
 | 4475 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 4476 | echo "$as_me: failed program was:" >&5 | 
 | 4477 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4478 |  | 
 | 4479 | ( exit $ac_status ) | 
 | 4480 | ac_cv_c_bigendian=yes | 
 | 4481 | fi | 
 | 4482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 4483 | fi | 
 | 4484 |  | 
 | 4485 |  | 
 | 4486 | fi | 
 | 4487 |  | 
 | 4488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4489 | fi | 
 | 4490 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | 
 | 4491 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | 
 | 4492 | case $ac_cv_c_bigendian in | 
 | 4493 |   yes) | 
 | 4494 |     ENDIAN=big | 
 | 4495 |  ;; | 
 | 4496 |   no) | 
 | 4497 |     ENDIAN=little | 
 | 4498 |  ;; | 
 | 4499 |   *) | 
 | 4500 |     { { echo "$as_me:$LINENO: error: unknown endianness | 
 | 4501 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | 
 | 4502 | echo "$as_me: error: unknown endianness | 
 | 4503 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | 
 | 4504 |    { (exit 1); exit 1; }; } ;; | 
 | 4505 | esac | 
 | 4506 |  | 
 | 4507 |  | 
 | 4508 | if test "$cross_compiling" = yes; then | 
 | 4509 |   LLVM_CROSS_COMPILING=1 | 
 | 4510 |  | 
 | 4511 |  | 
 | 4512 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 | 
 | 4513 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } | 
 | 4514 | if test "${ac_cv_build_exeext+set}" = set; then | 
 | 4515 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4516 | else | 
 | 4517 |   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
 | 4518 |   ac_cv_build_exeext=.exe | 
 | 4519 | else | 
 | 4520 |   ac_build_prefix=${build_alias}- | 
 | 4521 |  | 
 | 4522 |   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. | 
 | 4523 | set dummy ${ac_build_prefix}gcc; ac_word=$2 | 
 | 4524 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4526 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
 | 4527 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4528 | else | 
 | 4529 |   if test -n "$BUILD_CC"; then | 
 | 4530 |   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
 | 4531 | else | 
 | 4532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4533 | for as_dir in $PATH | 
 | 4534 | do | 
 | 4535 |   IFS=$as_save_IFS | 
 | 4536 |   test -z "$as_dir" && as_dir=. | 
 | 4537 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4538 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4539 |     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" | 
 | 4540 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4541 |     break 2 | 
 | 4542 |   fi | 
 | 4543 | done | 
 | 4544 | done | 
 | 4545 | IFS=$as_save_IFS | 
 | 4546 |  | 
 | 4547 | fi | 
 | 4548 | fi | 
 | 4549 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
 | 4550 | if test -n "$BUILD_CC"; then | 
 | 4551 |   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
 | 4552 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
 | 4553 | else | 
 | 4554 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4555 | echo "${ECHO_T}no" >&6; } | 
 | 4556 | fi | 
 | 4557 |  | 
 | 4558 |  | 
 | 4559 |   if test -z "$BUILD_CC"; then | 
 | 4560 |      # Extract the first word of "gcc", so it can be a program name with args. | 
 | 4561 | set dummy gcc; ac_word=$2 | 
 | 4562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4564 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
 | 4565 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4566 | else | 
 | 4567 |   if test -n "$BUILD_CC"; then | 
 | 4568 |   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
 | 4569 | else | 
 | 4570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4571 | for as_dir in $PATH | 
 | 4572 | do | 
 | 4573 |   IFS=$as_save_IFS | 
 | 4574 |   test -z "$as_dir" && as_dir=. | 
 | 4575 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4576 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4577 |     ac_cv_prog_BUILD_CC="gcc" | 
 | 4578 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4579 |     break 2 | 
 | 4580 |   fi | 
 | 4581 | done | 
 | 4582 | done | 
 | 4583 | IFS=$as_save_IFS | 
 | 4584 |  | 
 | 4585 | fi | 
 | 4586 | fi | 
 | 4587 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
 | 4588 | if test -n "$BUILD_CC"; then | 
 | 4589 |   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
 | 4590 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
 | 4591 | else | 
 | 4592 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4593 | echo "${ECHO_T}no" >&6; } | 
 | 4594 | fi | 
 | 4595 |  | 
 | 4596 |  | 
 | 4597 |      if test -z "$BUILD_CC"; then | 
 | 4598 |        # Extract the first word of "cc", so it can be a program name with args. | 
 | 4599 | set dummy cc; ac_word=$2 | 
 | 4600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4602 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | 
 | 4603 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4604 | else | 
 | 4605 |   if test -n "$BUILD_CC"; then | 
 | 4606 |   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
 | 4607 | else | 
 | 4608 |   ac_prog_rejected=no | 
 | 4609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4610 | for as_dir in $PATH | 
 | 4611 | do | 
 | 4612 |   IFS=$as_save_IFS | 
 | 4613 |   test -z "$as_dir" && as_dir=. | 
 | 4614 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4615 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4616 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 4617 |        ac_prog_rejected=yes | 
 | 4618 |        continue | 
 | 4619 |      fi | 
 | 4620 |     ac_cv_prog_BUILD_CC="cc" | 
 | 4621 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4622 |     break 2 | 
 | 4623 |   fi | 
 | 4624 | done | 
 | 4625 | done | 
 | 4626 | IFS=$as_save_IFS | 
 | 4627 |  | 
 | 4628 | if test $ac_prog_rejected = yes; then | 
 | 4629 |   # We found a bogon in the path, so make sure we never use it. | 
 | 4630 |   set dummy $ac_cv_prog_BUILD_CC | 
 | 4631 |   shift | 
 | 4632 |   if test $# != 0; then | 
 | 4633 |     # We chose a different compiler from the bogus one. | 
 | 4634 |     # However, it has the same basename, so the bogon will be chosen | 
 | 4635 |     # first if we set BUILD_CC to just the basename; use the full file name. | 
 | 4636 |     shift | 
 | 4637 |     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 4638 |   fi | 
 | 4639 | fi | 
 | 4640 | fi | 
 | 4641 | fi | 
 | 4642 | BUILD_CC=$ac_cv_prog_BUILD_CC | 
 | 4643 | if test -n "$BUILD_CC"; then | 
 | 4644 |   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | 
 | 4645 | echo "${ECHO_T}$BUILD_CC" >&6; } | 
 | 4646 | else | 
 | 4647 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4648 | echo "${ECHO_T}no" >&6; } | 
 | 4649 | fi | 
 | 4650 |  | 
 | 4651 |  | 
 | 4652 |      fi | 
 | 4653 |   fi | 
 | 4654 |   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 | 
 | 4655 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | 
 | 4656 |    { (exit 1); exit 1; }; } | 
 | 4657 |   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 4658 |   rm -f conftest* | 
 | 4659 |   echo 'int main () { return 0; }' > conftest.$ac_ext | 
 | 4660 |   ac_cv_build_exeext= | 
 | 4661 |   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 | 
 | 4662 |   (eval $ac_build_link) 2>&5 | 
 | 4663 |   ac_status=$? | 
 | 4664 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 4665 |   (exit $ac_status); }; then | 
 | 4666 |     for file in conftest.*; do | 
 | 4667 |       case $file in | 
| Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4668 |       *.c | *.o | *.obj | *.dSYM) ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4669 |       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | 
 | 4670 |       esac | 
 | 4671 |     done | 
 | 4672 |   else | 
 | 4673 |     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 | 
 | 4674 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} | 
 | 4675 |    { (exit 1); exit 1; }; } | 
 | 4676 |   fi | 
 | 4677 |   rm -f conftest* | 
 | 4678 |   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank | 
 | 4679 | fi | 
 | 4680 | fi | 
 | 4681 |  | 
 | 4682 | BUILD_EXEEXT="" | 
 | 4683 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} | 
 | 4684 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 | 
 | 4685 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } | 
 | 4686 | ac_build_exeext=$BUILD_EXEEXT | 
 | 4687 |  | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4688 |   ac_build_prefix=${build_alias}- | 
 | 4689 |   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. | 
 | 4690 | set dummy ${ac_build_prefix}g++; ac_word=$2 | 
 | 4691 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4693 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
 | 4694 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4695 | else | 
 | 4696 |   if test -n "$BUILD_CXX"; then | 
 | 4697 |   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
 | 4698 | else | 
 | 4699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4700 | for as_dir in $PATH | 
 | 4701 | do | 
 | 4702 |   IFS=$as_save_IFS | 
 | 4703 |   test -z "$as_dir" && as_dir=. | 
 | 4704 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4705 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4706 |     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" | 
 | 4707 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4708 |     break 2 | 
 | 4709 |   fi | 
 | 4710 | done | 
 | 4711 | done | 
 | 4712 | IFS=$as_save_IFS | 
 | 4713 |  | 
 | 4714 | fi | 
 | 4715 | fi | 
 | 4716 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
 | 4717 | if test -n "$BUILD_CXX"; then | 
 | 4718 |   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
 | 4719 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
 | 4720 | else | 
 | 4721 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4722 | echo "${ECHO_T}no" >&6; } | 
 | 4723 | fi | 
 | 4724 |  | 
 | 4725 |  | 
 | 4726 |   if test -z "$BUILD_CXX"; then | 
 | 4727 |      # Extract the first word of "g++", so it can be a program name with args. | 
 | 4728 | set dummy g++; ac_word=$2 | 
 | 4729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4731 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
 | 4732 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4733 | else | 
 | 4734 |   if test -n "$BUILD_CXX"; then | 
 | 4735 |   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
 | 4736 | else | 
 | 4737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4738 | for as_dir in $PATH | 
 | 4739 | do | 
 | 4740 |   IFS=$as_save_IFS | 
 | 4741 |   test -z "$as_dir" && as_dir=. | 
 | 4742 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4743 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4744 |     ac_cv_prog_BUILD_CXX="g++" | 
 | 4745 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4746 |     break 2 | 
 | 4747 |   fi | 
 | 4748 | done | 
 | 4749 | done | 
 | 4750 | IFS=$as_save_IFS | 
 | 4751 |  | 
 | 4752 | fi | 
 | 4753 | fi | 
 | 4754 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
 | 4755 | if test -n "$BUILD_CXX"; then | 
 | 4756 |   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
 | 4757 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
 | 4758 | else | 
 | 4759 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4760 | echo "${ECHO_T}no" >&6; } | 
 | 4761 | fi | 
 | 4762 |  | 
 | 4763 |  | 
 | 4764 |      if test -z "$BUILD_CXX"; then | 
 | 4765 |        # Extract the first word of "c++", so it can be a program name with args. | 
 | 4766 | set dummy c++; ac_word=$2 | 
 | 4767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 4768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 4769 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then | 
 | 4770 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 4771 | else | 
 | 4772 |   if test -n "$BUILD_CXX"; then | 
 | 4773 |   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. | 
 | 4774 | else | 
 | 4775 |   ac_prog_rejected=no | 
 | 4776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4777 | for as_dir in $PATH | 
 | 4778 | do | 
 | 4779 |   IFS=$as_save_IFS | 
 | 4780 |   test -z "$as_dir" && as_dir=. | 
 | 4781 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4782 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4783 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then | 
 | 4784 |        ac_prog_rejected=yes | 
 | 4785 |        continue | 
 | 4786 |      fi | 
 | 4787 |     ac_cv_prog_BUILD_CXX="c++" | 
 | 4788 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 4789 |     break 2 | 
 | 4790 |   fi | 
 | 4791 | done | 
 | 4792 | done | 
 | 4793 | IFS=$as_save_IFS | 
 | 4794 |  | 
 | 4795 | if test $ac_prog_rejected = yes; then | 
 | 4796 |   # We found a bogon in the path, so make sure we never use it. | 
 | 4797 |   set dummy $ac_cv_prog_BUILD_CXX | 
 | 4798 |   shift | 
 | 4799 |   if test $# != 0; then | 
 | 4800 |     # We chose a different compiler from the bogus one. | 
 | 4801 |     # However, it has the same basename, so the bogon will be chosen | 
 | 4802 |     # first if we set BUILD_CXX to just the basename; use the full file name. | 
 | 4803 |     shift | 
 | 4804 |     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" | 
 | 4805 |   fi | 
 | 4806 | fi | 
 | 4807 | fi | 
 | 4808 | fi | 
 | 4809 | BUILD_CXX=$ac_cv_prog_BUILD_CXX | 
 | 4810 | if test -n "$BUILD_CXX"; then | 
 | 4811 |   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 | 
 | 4812 | echo "${ECHO_T}$BUILD_CXX" >&6; } | 
 | 4813 | else | 
 | 4814 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 4815 | echo "${ECHO_T}no" >&6; } | 
 | 4816 | fi | 
 | 4817 |  | 
 | 4818 |  | 
 | 4819 |      fi | 
 | 4820 |   fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4821 | else | 
 | 4822 |   LLVM_CROSS_COMPILING=0 | 
 | 4823 |  | 
 | 4824 | fi | 
 | 4825 |  | 
| Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4826 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4827 |   cvsbuild="yes" | 
 | 4828 |   optimize="no" | 
 | 4829 |   CVSBUILD=CVSBUILD=1 | 
 | 4830 |  | 
 | 4831 | else | 
 | 4832 |   cvsbuild="no" | 
 | 4833 |   optimize="yes" | 
 | 4834 | fi | 
 | 4835 |  | 
 | 4836 |  | 
 | 4837 | # Check whether --enable-optimized was given. | 
 | 4838 | if test "${enable_optimized+set}" = set; then | 
 | 4839 |   enableval=$enable_optimized; | 
 | 4840 | else | 
 | 4841 |   enableval=$optimize | 
 | 4842 | fi | 
 | 4843 |  | 
 | 4844 | if test ${enableval} = "no" ; then | 
 | 4845 |   ENABLE_OPTIMIZED= | 
 | 4846 |  | 
 | 4847 | else | 
 | 4848 |   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 | 
 | 4849 |  | 
 | 4850 | fi | 
 | 4851 |  | 
| David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4852 | # Check whether --enable-profiling was given. | 
 | 4853 | if test "${enable_profiling+set}" = set; then | 
 | 4854 |   enableval=$enable_profiling; | 
 | 4855 | else | 
 | 4856 |   enableval="no" | 
 | 4857 | fi | 
 | 4858 |  | 
 | 4859 | if test ${enableval} = "no" ; then | 
 | 4860 |   ENABLE_PROFILING= | 
 | 4861 |  | 
 | 4862 | else | 
 | 4863 |   ENABLE_PROFILING=ENABLE_PROFILING=1 | 
 | 4864 |  | 
 | 4865 | fi | 
 | 4866 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4867 | # Check whether --enable-assertions was given. | 
 | 4868 | if test "${enable_assertions+set}" = set; then | 
 | 4869 |   enableval=$enable_assertions; | 
 | 4870 | else | 
 | 4871 |   enableval="yes" | 
 | 4872 | fi | 
 | 4873 |  | 
 | 4874 | if test ${enableval} = "yes" ; then | 
 | 4875 |   DISABLE_ASSERTIONS= | 
 | 4876 |  | 
 | 4877 | else | 
 | 4878 |   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 | 
 | 4879 |  | 
 | 4880 | fi | 
 | 4881 |  | 
| David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4882 | # Check whether --enable-expensive-checks was given. | 
 | 4883 | if test "${enable_expensive_checks+set}" = set; then | 
 | 4884 |   enableval=$enable_expensive_checks; | 
 | 4885 | else | 
 | 4886 |   enableval="no" | 
 | 4887 | fi | 
 | 4888 |  | 
 | 4889 | if test ${enableval} = "yes" ; then | 
 | 4890 |   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 | 
 | 4891 |  | 
 | 4892 |   EXPENSIVE_CHECKS=yes | 
 | 4893 |  | 
 | 4894 | else | 
 | 4895 |   ENABLE_EXPENSIVE_CHECKS= | 
 | 4896 |  | 
 | 4897 |   EXPENSIVE_CHECKS=no | 
 | 4898 |  | 
 | 4899 | fi | 
 | 4900 |  | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4901 | # Check whether --enable-debug-runtime was given. | 
 | 4902 | if test "${enable_debug_runtime+set}" = set; then | 
 | 4903 |   enableval=$enable_debug_runtime; | 
 | 4904 | else | 
 | 4905 |   enableval=no | 
 | 4906 | fi | 
 | 4907 |  | 
 | 4908 | if test ${enableval} = "no" ; then | 
 | 4909 |   DEBUG_RUNTIME= | 
 | 4910 |  | 
 | 4911 | else | 
 | 4912 |   DEBUG_RUNTIME=DEBUG_RUNTIME=1 | 
 | 4913 |  | 
 | 4914 | fi | 
 | 4915 |  | 
| Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4916 | # Check whether --enable-debug-symbols was given. | 
 | 4917 | if test "${enable_debug_symbols+set}" = set; then | 
 | 4918 |   enableval=$enable_debug_symbols; | 
 | 4919 | else | 
 | 4920 |   enableval=no | 
 | 4921 | fi | 
 | 4922 |  | 
 | 4923 | if test ${enableval} = "no" ; then | 
 | 4924 |   DEBUG_SYMBOLS= | 
 | 4925 |  | 
 | 4926 | else | 
 | 4927 |   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 | 
 | 4928 |  | 
 | 4929 | fi | 
 | 4930 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4931 | # Check whether --enable-jit was given. | 
 | 4932 | if test "${enable_jit+set}" = set; then | 
 | 4933 |   enableval=$enable_jit; | 
 | 4934 | else | 
 | 4935 |   enableval=default | 
 | 4936 | fi | 
 | 4937 |  | 
 | 4938 | if test ${enableval} = "no" | 
 | 4939 | then | 
 | 4940 |   JIT= | 
 | 4941 |  | 
 | 4942 | else | 
 | 4943 |   case "$llvm_cv_target_arch" in | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4944 |     x86)         TARGET_HAS_JIT=1 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4945 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4946 |     Sparc)       TARGET_HAS_JIT=0 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4947 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4948 |     PowerPC)     TARGET_HAS_JIT=1 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4949 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4950 |     x86_64)      TARGET_HAS_JIT=1 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4951 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4952 |     Alpha)       TARGET_HAS_JIT=1 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4953 |  ;; | 
| Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4954 |     ARM)         TARGET_HAS_JIT=1 | 
| Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4955 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4956 |     Mips)        TARGET_HAS_JIT=0 | 
| Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4957 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4958 |     PIC16)       TARGET_HAS_JIT=0 | 
| Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4959 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4960 |     XCore)       TARGET_HAS_JIT=0 | 
| Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4961 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4962 |     MSP430)      TARGET_HAS_JIT=0 | 
| Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4963 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4964 |     SystemZ)     TARGET_HAS_JIT=0 | 
| Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4965 |  ;; | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4966 |     Blackfin)    TARGET_HAS_JIT=0 | 
 | 4967 |  ;; | 
 | 4968 |     *)           TARGET_HAS_JIT=0 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4969 |  ;; | 
 | 4970 |   esac | 
 | 4971 | fi | 
 | 4972 |  | 
 | 4973 | # Check whether --enable-doxygen was given. | 
 | 4974 | if test "${enable_doxygen+set}" = set; then | 
 | 4975 |   enableval=$enable_doxygen; | 
 | 4976 | else | 
 | 4977 |   enableval=default | 
 | 4978 | fi | 
 | 4979 |  | 
 | 4980 | case "$enableval" in | 
 | 4981 |   yes) ENABLE_DOXYGEN=1 | 
 | 4982 |  ;; | 
 | 4983 |   no)  ENABLE_DOXYGEN=0 | 
 | 4984 |  ;; | 
 | 4985 |   default) ENABLE_DOXYGEN=0 | 
 | 4986 |  ;; | 
 | 4987 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 | 
 | 4988 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} | 
 | 4989 |    { (exit 1); exit 1; }; } ;; | 
 | 4990 | esac | 
 | 4991 |  | 
 | 4992 | # Check whether --enable-threads was given. | 
 | 4993 | if test "${enable_threads+set}" = set; then | 
 | 4994 |   enableval=$enable_threads; | 
 | 4995 | else | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4996 |   enableval=default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4997 | fi | 
 | 4998 |  | 
 | 4999 | case "$enableval" in | 
 | 5000 |   yes) ENABLE_THREADS=1 | 
 | 5001 |  ;; | 
 | 5002 |   no)  ENABLE_THREADS=0 | 
 | 5003 |  ;; | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5004 |   default) ENABLE_THREADS=1 | 
 | 5005 |  ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5006 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 | 
 | 5007 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} | 
 | 5008 |    { (exit 1); exit 1; }; } ;; | 
 | 5009 | esac | 
 | 5010 |  | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5011 | cat >>confdefs.h <<_ACEOF | 
 | 5012 | #define ENABLE_THREADS $ENABLE_THREADS | 
 | 5013 | _ACEOF | 
 | 5014 |  | 
 | 5015 |  | 
| Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5016 | # Check whether --enable-pic was given. | 
 | 5017 | if test "${enable_pic+set}" = set; then | 
 | 5018 |   enableval=$enable_pic; | 
 | 5019 | else | 
 | 5020 |   enableval=default | 
 | 5021 | fi | 
 | 5022 |  | 
 | 5023 | case "$enableval" in | 
 | 5024 |   yes) ENABLE_PIC=1 | 
 | 5025 |  ;; | 
 | 5026 |   no)  ENABLE_PIC=0 | 
 | 5027 |  ;; | 
| Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5028 |   default) ENABLE_PIC=1 | 
| Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5029 |  ;; | 
 | 5030 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 | 
 | 5031 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} | 
 | 5032 |    { (exit 1); exit 1; }; } ;; | 
 | 5033 | esac | 
 | 5034 |  | 
 | 5035 | cat >>confdefs.h <<_ACEOF | 
 | 5036 | #define ENABLE_PIC $ENABLE_PIC | 
 | 5037 | _ACEOF | 
 | 5038 |  | 
 | 5039 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5040 | TARGETS_TO_BUILD="" | 
 | 5041 | # Check whether --enable-targets was given. | 
 | 5042 | if test "${enable_targets+set}" = set; then | 
 | 5043 |   enableval=$enable_targets; | 
 | 5044 | else | 
 | 5045 |   enableval=all | 
 | 5046 | fi | 
 | 5047 |  | 
| Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5048 | if test "$enableval" = host-only ; then | 
 | 5049 |   enableval=host | 
 | 5050 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5051 | case "$enableval" in | 
| Jakob Stoklund Olesen | 73b7bb7 | 2009-08-02 17:32:37 +0000 | [diff] [blame] | 5052 |   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5053 |   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
 | 5054 |       case "$a_target" in | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5055 |         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
 | 5056 |         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
 | 5057 |         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
 | 5058 |         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
 | 5059 |         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; | 
 | 5060 |         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
 | 5061 |         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
 | 5062 |         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
 | 5063 |         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; | 
 | 5064 |         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
 | 5065 |         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
 | 5066 |         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; | 
 | 5067 |         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; | 
 | 5068 |         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; | 
 | 5069 |         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; | 
 | 5070 |         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; | 
| Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5071 |         host) case "$llvm_cv_target_arch" in | 
 | 5072 |             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
 | 5073 |             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; | 
 | 5074 |             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; | 
 | 5075 |             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; | 
 | 5076 |             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; | 
 | 5077 |             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; | 
 | 5078 |             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; | 
 | 5079 |             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; | 
 | 5080 |             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; | 
 | 5081 |             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; | 
 | 5082 |             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; | 
 | 5083 |             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; | 
 | 5084 |             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; | 
 | 5085 |             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 | 
 | 5086 | echo "$as_me: error: Can not set target to build" >&2;} | 
 | 5087 |    { (exit 1); exit 1; }; } ;; | 
 | 5088 |           esac ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5089 |         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 | 
 | 5090 | echo "$as_me: error: Unrecognized target $a_target" >&2;} | 
 | 5091 |    { (exit 1); exit 1; }; } ;; | 
 | 5092 |       esac | 
 | 5093 |   done | 
 | 5094 |   ;; | 
 | 5095 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5096 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD | 
 | 5097 |  | 
 | 5098 |  | 
| Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5099 | # Determine whether we are building LLVM support for the native architecture. | 
 | 5100 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. | 
 | 5101 | for a_target in $TARGETS_TO_BUILD; do | 
 | 5102 |   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then | 
| Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5103 |     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" | 
| Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5104 |  | 
 | 5105 | cat >>confdefs.h <<_ACEOF | 
| Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5106 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET | 
| Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5107 | _ACEOF | 
 | 5108 |  | 
 | 5109 |   fi | 
 | 5110 | done | 
 | 5111 |  | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5112 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual | 
 | 5113 | # target feature def files. | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5114 | LLVM_ENUM_TARGETS="" | 
 | 5115 | LLVM_ENUM_ASM_PRINTERS="" | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5116 | LLVM_ENUM_ASM_PARSERS="" | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5117 | LLVM_ENUM_DISASSEMBLERS="" | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5118 | for target_to_build in $TARGETS_TO_BUILD; do | 
 | 5119 |   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" | 
 | 5120 |   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then | 
 | 5121 |     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; | 
 | 5122 |   fi | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5123 |   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then | 
 | 5124 |     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; | 
 | 5125 |   fi | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5126 |   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then | 
 | 5127 |     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; | 
 | 5128 |   fi | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5129 | done | 
 | 5130 |  | 
 | 5131 |  | 
 | 5132 |  | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5133 |  | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5134 |  | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5135 | # Check whether --enable-cbe-printf-a was given. | 
 | 5136 | if test "${enable_cbe_printf_a+set}" = set; then | 
 | 5137 |   enableval=$enable_cbe_printf_a; | 
 | 5138 | else | 
 | 5139 |   enableval=default | 
 | 5140 | fi | 
 | 5141 |  | 
 | 5142 | case "$enableval" in | 
 | 5143 |   yes) ENABLE_CBE_PRINTF_A=1 | 
 | 5144 |  ;; | 
 | 5145 |   no)  ENABLE_CBE_PRINTF_A=0 | 
 | 5146 |  ;; | 
 | 5147 |   default)  ENABLE_CBE_PRINTF_A=1 | 
 | 5148 |  ;; | 
 | 5149 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 | 
 | 5150 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} | 
 | 5151 |    { (exit 1); exit 1; }; } ;; | 
 | 5152 | esac | 
 | 5153 |  | 
 | 5154 | cat >>confdefs.h <<_ACEOF | 
 | 5155 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A | 
 | 5156 | _ACEOF | 
 | 5157 |  | 
 | 5158 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5159 |  | 
 | 5160 | # Check whether --with-llvmgccdir was given. | 
 | 5161 | if test "${with_llvmgccdir+set}" = set; then | 
 | 5162 |   withval=$with_llvmgccdir; | 
 | 5163 | else | 
 | 5164 |   withval=default | 
 | 5165 | fi | 
 | 5166 |  | 
 | 5167 | case "$withval" in | 
 | 5168 |   default) WITH_LLVMGCCDIR=default ;; | 
 | 5169 |   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;; | 
 | 5170 |   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 | 
 | 5171 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} | 
 | 5172 |    { (exit 1); exit 1; }; } ;; | 
 | 5173 | esac | 
 | 5174 |  | 
 | 5175 |  | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5176 | # Check whether --with-llvmgcc was given. | 
 | 5177 | if test "${with_llvmgcc+set}" = set; then | 
 | 5178 |   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc | 
 | 5179 |       WITH_LLVMGCCDIR="" | 
 | 5180 | fi | 
 | 5181 |  | 
 | 5182 |  | 
 | 5183 |  | 
 | 5184 | # Check whether --with-llvmgxx was given. | 
 | 5185 | if test "${with_llvmgxx+set}" = set; then | 
 | 5186 |   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx | 
 | 5187 |     WITH_LLVMGCCDIR="" | 
 | 5188 | fi | 
 | 5189 |  | 
| Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5190 |  | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5191 | if test -n "$LLVMGCC"; then | 
 | 5192 |    LLVMGCCCOMMAND="$LLVMGCC" | 
 | 5193 | fi | 
 | 5194 |  | 
 | 5195 | if test -n "$LLVMGXX"; then | 
 | 5196 |    LLVMGXXCOMMAND="$LLVMGXX" | 
 | 5197 | fi | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5198 |  | 
 | 5199 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then | 
 | 5200 |    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 | 
 | 5201 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} | 
 | 5202 |    { (exit 1); exit 1; }; }; | 
 | 5203 | fi | 
 | 5204 |  | 
 | 5205 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then | 
 | 5206 |    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 | 
 | 5207 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} | 
 | 5208 |    { (exit 1); exit 1; }; }; | 
 | 5209 | fi | 
 | 5210 |  | 
 | 5211 |  | 
| Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5212 | # Check whether --with-optimize-option was given. | 
 | 5213 | if test "${with_optimize_option+set}" = set; then | 
 | 5214 |   withval=$with_optimize_option; | 
 | 5215 | else | 
 | 5216 |   withval=default | 
 | 5217 | fi | 
 | 5218 |  | 
 | 5219 | { echo "$as_me:$LINENO: checking optimization flags" >&5 | 
 | 5220 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } | 
 | 5221 | case "$withval" in | 
 | 5222 |   default) | 
 | 5223 |     case "$llvm_cv_os_type" in | 
 | 5224 |     MingW) optimize_option=-O3 ;; | 
 | 5225 |     *)     optimize_option=-O2 ;; | 
 | 5226 |     esac ;; | 
 | 5227 |   *) optimize_option="$withval" ;; | 
 | 5228 | esac | 
 | 5229 | OPTIMIZE_OPTION=$optimize_option | 
 | 5230 |  | 
 | 5231 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 | 
 | 5232 | echo "${ECHO_T}$optimize_option" >&6; } | 
 | 5233 |  | 
 | 5234 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5235 | # Check whether --with-extra-options was given. | 
 | 5236 | if test "${with_extra_options+set}" = set; then | 
 | 5237 |   withval=$with_extra_options; | 
 | 5238 | else | 
 | 5239 |   withval=default | 
 | 5240 | fi | 
 | 5241 |  | 
 | 5242 | case "$withval" in | 
 | 5243 |   default) EXTRA_OPTIONS= ;; | 
 | 5244 |   *) EXTRA_OPTIONS=$withval ;; | 
 | 5245 | esac | 
 | 5246 | EXTRA_OPTIONS=$EXTRA_OPTIONS | 
 | 5247 |  | 
 | 5248 |  | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5249 | # Check whether --enable-bindings was given. | 
 | 5250 | if test "${enable_bindings+set}" = set; then | 
 | 5251 |   enableval=$enable_bindings; | 
 | 5252 | else | 
 | 5253 |   enableval=default | 
 | 5254 | fi | 
 | 5255 |  | 
 | 5256 | BINDINGS_TO_BUILD="" | 
 | 5257 | case "$enableval" in | 
| Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5258 |   yes | default | auto) BINDINGS_TO_BUILD="auto" ;; | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5259 |   all ) BINDINGS_TO_BUILD="ocaml" ;; | 
 | 5260 |   none | no) BINDINGS_TO_BUILD="" ;; | 
 | 5261 |   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do | 
 | 5262 |       case "$a_binding" in | 
 | 5263 |         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; | 
 | 5264 |         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 | 
 | 5265 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} | 
 | 5266 |    { (exit 1); exit 1; }; } ;; | 
 | 5267 |       esac | 
 | 5268 |   done | 
 | 5269 |   ;; | 
 | 5270 | esac | 
 | 5271 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5272 |  | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5273 | # Check whether --with-ocaml-libdir was given. | 
 | 5274 | if test "${with_ocaml_libdir+set}" = set; then | 
 | 5275 |   withval=$with_ocaml_libdir; | 
 | 5276 | else | 
 | 5277 |   withval=auto | 
 | 5278 | fi | 
 | 5279 |  | 
 | 5280 | case "$withval" in | 
 | 5281 |   auto) with_ocaml_libdir="$withval" ;; | 
 | 5282 |   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; | 
 | 5283 |   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 | 
 | 5284 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} | 
 | 5285 |    { (exit 1); exit 1; }; } ;; | 
 | 5286 | esac | 
 | 5287 |  | 
 | 5288 |  | 
| Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5289 | # Check whether --with-c-include-dirs was given. | 
 | 5290 | if test "${with_c_include_dirs+set}" = set; then | 
 | 5291 |   withval=$with_c_include_dirs; | 
| Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5292 | else | 
 | 5293 |   withval="" | 
 | 5294 | fi | 
 | 5295 |  | 
 | 5296 |  | 
 | 5297 | cat >>confdefs.h <<_ACEOF | 
 | 5298 | #define C_INCLUDE_DIRS "$withval" | 
 | 5299 | _ACEOF | 
 | 5300 |  | 
 | 5301 |  | 
 | 5302 |  | 
| Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5303 | # Check whether --with-cxx-include-root was given. | 
 | 5304 | if test "${with_cxx_include_root+set}" = set; then | 
 | 5305 |   withval=$with_cxx_include_root; | 
 | 5306 | else | 
 | 5307 |   withval="" | 
 | 5308 | fi | 
 | 5309 |  | 
 | 5310 |  | 
 | 5311 | cat >>confdefs.h <<_ACEOF | 
 | 5312 | #define CXX_INCLUDE_ROOT "$withval" | 
 | 5313 | _ACEOF | 
 | 5314 |  | 
 | 5315 |  | 
 | 5316 |  | 
 | 5317 | # Check whether --with-cxx-include-arch was given. | 
 | 5318 | if test "${with_cxx_include_arch+set}" = set; then | 
 | 5319 |   withval=$with_cxx_include_arch; | 
 | 5320 | else | 
 | 5321 |   withval="" | 
 | 5322 | fi | 
 | 5323 |  | 
 | 5324 |  | 
 | 5325 | cat >>confdefs.h <<_ACEOF | 
 | 5326 | #define CXX_INCLUDE_ARCH "$withval" | 
 | 5327 | _ACEOF | 
 | 5328 |  | 
 | 5329 |  | 
 | 5330 |  | 
 | 5331 | # Check whether --with-cxx-include-32bit-dir was given. | 
 | 5332 | if test "${with_cxx_include_32bit_dir+set}" = set; then | 
 | 5333 |   withval=$with_cxx_include_32bit_dir; | 
 | 5334 | else | 
 | 5335 |   withval="" | 
 | 5336 | fi | 
 | 5337 |  | 
 | 5338 |  | 
 | 5339 | cat >>confdefs.h <<_ACEOF | 
 | 5340 | #define CXX_INCLUDE_32BIT_DIR "$withval" | 
 | 5341 | _ACEOF | 
 | 5342 |  | 
 | 5343 |  | 
 | 5344 |  | 
 | 5345 | # Check whether --with-cxx-include-64bit-dir was given. | 
 | 5346 | if test "${with_cxx_include_64bit_dir+set}" = set; then | 
 | 5347 |   withval=$with_cxx_include_64bit_dir; | 
 | 5348 | else | 
 | 5349 |   withval="" | 
 | 5350 | fi | 
 | 5351 |  | 
 | 5352 |  | 
 | 5353 | cat >>confdefs.h <<_ACEOF | 
 | 5354 | #define CXX_INCLUDE_64BIT_DIR "$withval" | 
 | 5355 | _ACEOF | 
 | 5356 |  | 
 | 5357 |  | 
 | 5358 |  | 
| Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5359 | # Check whether --with-binutils-include was given. | 
 | 5360 | if test "${with_binutils_include+set}" = set; then | 
 | 5361 |   withval=$with_binutils_include; | 
 | 5362 | else | 
 | 5363 |   withval=default | 
 | 5364 | fi | 
 | 5365 |  | 
 | 5366 | case "$withval" in | 
 | 5367 |   default) WITH_BINUTILS_INCDIR=default ;; | 
 | 5368 |   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;; | 
 | 5369 |   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 | 
 | 5370 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} | 
 | 5371 |    { (exit 1); exit 1; }; } ;; | 
 | 5372 | esac | 
 | 5373 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then | 
 | 5374 |   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR | 
 | 5375 |  | 
 | 5376 |   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then | 
 | 5377 |      echo "$WITH_BINUTILS_INCDIR/plugin-api.h" | 
 | 5378 |      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 | 
 | 5379 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} | 
 | 5380 |    { (exit 1); exit 1; }; }; | 
 | 5381 |   fi | 
 | 5382 | fi | 
 | 5383 |  | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5384 | # Check whether --enable-libffi was given. | 
 | 5385 | if test "${enable_libffi+set}" = set; then | 
 | 5386 |   enableval=$enable_libffi; | 
 | 5387 | else | 
 | 5388 |   enableval=yes | 
 | 5389 | fi | 
 | 5390 |  | 
 | 5391 | case "$enableval" in | 
 | 5392 |   yes) llvm_cv_enable_libffi="yes" ;; | 
 | 5393 |   no)  llvm_cv_enable_libffi="no"  ;; | 
 | 5394 |   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 | 
 | 5395 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} | 
 | 5396 |    { (exit 1); exit 1; }; } ;; | 
 | 5397 | esac | 
 | 5398 |  | 
| Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5399 | if test "$llvm_cv_os_type" = "Win32" ; then | 
 | 5400 |    llvmc_dynamic="yes" | 
 | 5401 | else | 
 | 5402 |    llvmc_dynamic="no" | 
 | 5403 | fi | 
 | 5404 |  | 
 | 5405 | # Check whether --enable-llvmc-dynamic was given. | 
 | 5406 | if test "${enable_llvmc_dynamic+set}" = set; then | 
 | 5407 |   enableval=$enable_llvmc_dynamic; | 
 | 5408 | else | 
 | 5409 |   enableval=$llvmc_dynamic | 
 | 5410 | fi | 
 | 5411 |  | 
 | 5412 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then | 
 | 5413 |    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 | 
 | 5414 |  | 
 | 5415 | else | 
 | 5416 |    ENABLE_LLVMC_DYNAMIC= | 
 | 5417 |  | 
 | 5418 | fi | 
 | 5419 |  | 
 | 5420 | # Check whether --enable-llvmc-dynamic-plugins was given. | 
 | 5421 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then | 
 | 5422 |   enableval=$enable_llvmc_dynamic_plugins; | 
 | 5423 | else | 
 | 5424 |   enableval=yes | 
 | 5425 | fi | 
 | 5426 |  | 
 | 5427 | if test ${enableval} = "yes" ; then | 
 | 5428 |    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 | 
 | 5429 |  | 
 | 5430 | else | 
 | 5431 |    ENABLE_LLVMC_DYNAMIC_PLUGINS= | 
 | 5432 |  | 
 | 5433 | fi | 
 | 5434 |  | 
| Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5435 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5436 | ac_ext=c | 
 | 5437 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5441 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
 | 5442 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | 
 | 5443 | # On Suns, sometimes $CPP names a directory. | 
 | 5444 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 5445 |   CPP= | 
 | 5446 | fi | 
 | 5447 | if test -z "$CPP"; then | 
 | 5448 |   if test "${ac_cv_prog_CPP+set}" = set; then | 
 | 5449 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5450 | else | 
 | 5451 |       # Double quotes because CPP needs to be expanded | 
 | 5452 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 5453 |     do | 
 | 5454 |       ac_preproc_ok=false | 
 | 5455 | for ac_c_preproc_warn_flag in '' yes | 
 | 5456 | do | 
 | 5457 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 5458 |   # with a fresh cross-compiler works. | 
 | 5459 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 5460 |   # <limits.h> exists even on freestanding compilers. | 
 | 5461 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 5462 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 5463 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5464 | /* confdefs.h.  */ | 
 | 5465 | _ACEOF | 
 | 5466 | cat confdefs.h >>conftest.$ac_ext | 
 | 5467 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5468 | /* end confdefs.h.  */ | 
 | 5469 | #ifdef __STDC__ | 
 | 5470 | # include <limits.h> | 
 | 5471 | #else | 
 | 5472 | # include <assert.h> | 
 | 5473 | #endif | 
 | 5474 | 		     Syntax error | 
 | 5475 | _ACEOF | 
 | 5476 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 5477 | case "(($ac_try" in | 
 | 5478 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5479 |   *) ac_try_echo=$ac_try;; | 
 | 5480 | esac | 
 | 5481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5482 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 5483 |   ac_status=$? | 
 | 5484 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5485 |   rm -f conftest.er1 | 
 | 5486 |   cat conftest.err >&5 | 
 | 5487 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5488 |   (exit $ac_status); } >/dev/null; then | 
 | 5489 |   if test -s conftest.err; then | 
 | 5490 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 5491 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 5492 |   else | 
 | 5493 |     ac_cpp_err= | 
 | 5494 |   fi | 
 | 5495 | else | 
 | 5496 |   ac_cpp_err=yes | 
 | 5497 | fi | 
 | 5498 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5499 |   : | 
 | 5500 | else | 
 | 5501 |   echo "$as_me: failed program was:" >&5 | 
 | 5502 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5503 |  | 
 | 5504 |   # Broken: fails on valid input. | 
 | 5505 | continue | 
 | 5506 | fi | 
 | 5507 |  | 
 | 5508 | rm -f conftest.err conftest.$ac_ext | 
 | 5509 |  | 
 | 5510 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 5511 |   # can be detected and how. | 
 | 5512 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5513 | /* confdefs.h.  */ | 
 | 5514 | _ACEOF | 
 | 5515 | cat confdefs.h >>conftest.$ac_ext | 
 | 5516 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5517 | /* end confdefs.h.  */ | 
 | 5518 | #include <ac_nonexistent.h> | 
 | 5519 | _ACEOF | 
 | 5520 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 5521 | case "(($ac_try" in | 
 | 5522 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5523 |   *) ac_try_echo=$ac_try;; | 
 | 5524 | esac | 
 | 5525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5526 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 5527 |   ac_status=$? | 
 | 5528 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5529 |   rm -f conftest.er1 | 
 | 5530 |   cat conftest.err >&5 | 
 | 5531 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5532 |   (exit $ac_status); } >/dev/null; then | 
 | 5533 |   if test -s conftest.err; then | 
 | 5534 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 5535 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 5536 |   else | 
 | 5537 |     ac_cpp_err= | 
 | 5538 |   fi | 
 | 5539 | else | 
 | 5540 |   ac_cpp_err=yes | 
 | 5541 | fi | 
 | 5542 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5543 |   # Broken: success on invalid input. | 
 | 5544 | continue | 
 | 5545 | else | 
 | 5546 |   echo "$as_me: failed program was:" >&5 | 
 | 5547 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5548 |  | 
 | 5549 |   # Passes both tests. | 
 | 5550 | ac_preproc_ok=: | 
 | 5551 | break | 
 | 5552 | fi | 
 | 5553 |  | 
 | 5554 | rm -f conftest.err conftest.$ac_ext | 
 | 5555 |  | 
 | 5556 | done | 
 | 5557 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 5558 | rm -f conftest.err conftest.$ac_ext | 
 | 5559 | if $ac_preproc_ok; then | 
 | 5560 |   break | 
 | 5561 | fi | 
 | 5562 |  | 
 | 5563 |     done | 
 | 5564 |     ac_cv_prog_CPP=$CPP | 
 | 5565 |  | 
 | 5566 | fi | 
 | 5567 |   CPP=$ac_cv_prog_CPP | 
 | 5568 | else | 
 | 5569 |   ac_cv_prog_CPP=$CPP | 
 | 5570 | fi | 
 | 5571 | { echo "$as_me:$LINENO: result: $CPP" >&5 | 
 | 5572 | echo "${ECHO_T}$CPP" >&6; } | 
 | 5573 | ac_preproc_ok=false | 
 | 5574 | for ac_c_preproc_warn_flag in '' yes | 
 | 5575 | do | 
 | 5576 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 5577 |   # with a fresh cross-compiler works. | 
 | 5578 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 5579 |   # <limits.h> exists even on freestanding compilers. | 
 | 5580 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 5581 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 5582 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5583 | /* confdefs.h.  */ | 
 | 5584 | _ACEOF | 
 | 5585 | cat confdefs.h >>conftest.$ac_ext | 
 | 5586 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5587 | /* end confdefs.h.  */ | 
 | 5588 | #ifdef __STDC__ | 
 | 5589 | # include <limits.h> | 
 | 5590 | #else | 
 | 5591 | # include <assert.h> | 
 | 5592 | #endif | 
 | 5593 | 		     Syntax error | 
 | 5594 | _ACEOF | 
 | 5595 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 5596 | case "(($ac_try" in | 
 | 5597 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5598 |   *) ac_try_echo=$ac_try;; | 
 | 5599 | esac | 
 | 5600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5601 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 5602 |   ac_status=$? | 
 | 5603 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5604 |   rm -f conftest.er1 | 
 | 5605 |   cat conftest.err >&5 | 
 | 5606 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5607 |   (exit $ac_status); } >/dev/null; then | 
 | 5608 |   if test -s conftest.err; then | 
 | 5609 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 5610 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 5611 |   else | 
 | 5612 |     ac_cpp_err= | 
 | 5613 |   fi | 
 | 5614 | else | 
 | 5615 |   ac_cpp_err=yes | 
 | 5616 | fi | 
 | 5617 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5618 |   : | 
 | 5619 | else | 
 | 5620 |   echo "$as_me: failed program was:" >&5 | 
 | 5621 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5622 |  | 
 | 5623 |   # Broken: fails on valid input. | 
 | 5624 | continue | 
 | 5625 | fi | 
 | 5626 |  | 
 | 5627 | rm -f conftest.err conftest.$ac_ext | 
 | 5628 |  | 
 | 5629 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 5630 |   # can be detected and how. | 
 | 5631 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5632 | /* confdefs.h.  */ | 
 | 5633 | _ACEOF | 
 | 5634 | cat confdefs.h >>conftest.$ac_ext | 
 | 5635 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5636 | /* end confdefs.h.  */ | 
 | 5637 | #include <ac_nonexistent.h> | 
 | 5638 | _ACEOF | 
 | 5639 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 5640 | case "(($ac_try" in | 
 | 5641 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5642 |   *) ac_try_echo=$ac_try;; | 
 | 5643 | esac | 
 | 5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5645 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 5646 |   ac_status=$? | 
 | 5647 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5648 |   rm -f conftest.er1 | 
 | 5649 |   cat conftest.err >&5 | 
 | 5650 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5651 |   (exit $ac_status); } >/dev/null; then | 
 | 5652 |   if test -s conftest.err; then | 
 | 5653 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 5654 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 5655 |   else | 
 | 5656 |     ac_cpp_err= | 
 | 5657 |   fi | 
 | 5658 | else | 
 | 5659 |   ac_cpp_err=yes | 
 | 5660 | fi | 
 | 5661 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5662 |   # Broken: success on invalid input. | 
 | 5663 | continue | 
 | 5664 | else | 
 | 5665 |   echo "$as_me: failed program was:" >&5 | 
 | 5666 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5667 |  | 
 | 5668 |   # Passes both tests. | 
 | 5669 | ac_preproc_ok=: | 
 | 5670 | break | 
 | 5671 | fi | 
 | 5672 |  | 
 | 5673 | rm -f conftest.err conftest.$ac_ext | 
 | 5674 |  | 
 | 5675 | done | 
 | 5676 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 5677 | rm -f conftest.err conftest.$ac_ext | 
 | 5678 | if $ac_preproc_ok; then | 
 | 5679 |   : | 
 | 5680 | else | 
 | 5681 |   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
 | 5682 | See \`config.log' for more details." >&5 | 
 | 5683 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
 | 5684 | See \`config.log' for more details." >&2;} | 
 | 5685 |    { (exit 1); exit 1; }; } | 
 | 5686 | fi | 
 | 5687 |  | 
 | 5688 | ac_ext=c | 
 | 5689 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5693 |  | 
 | 5694 | ac_ext=c | 
 | 5695 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5699 | if test -n "$ac_tool_prefix"; then | 
 | 5700 |   for ac_prog in gcc | 
 | 5701 |   do | 
 | 5702 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5703 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 5704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 5706 | if test "${ac_cv_prog_CC+set}" = set; then | 
 | 5707 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5708 | else | 
 | 5709 |   if test -n "$CC"; then | 
 | 5710 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 5711 | else | 
 | 5712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5713 | for as_dir in $PATH | 
 | 5714 | do | 
 | 5715 |   IFS=$as_save_IFS | 
 | 5716 |   test -z "$as_dir" && as_dir=. | 
 | 5717 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5718 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5719 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 5720 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5721 |     break 2 | 
 | 5722 |   fi | 
 | 5723 | done | 
 | 5724 | done | 
 | 5725 | IFS=$as_save_IFS | 
 | 5726 |  | 
 | 5727 | fi | 
 | 5728 | fi | 
 | 5729 | CC=$ac_cv_prog_CC | 
 | 5730 | if test -n "$CC"; then | 
 | 5731 |   { echo "$as_me:$LINENO: result: $CC" >&5 | 
 | 5732 | echo "${ECHO_T}$CC" >&6; } | 
 | 5733 | else | 
 | 5734 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 5735 | echo "${ECHO_T}no" >&6; } | 
 | 5736 | fi | 
 | 5737 |  | 
 | 5738 |  | 
 | 5739 |     test -n "$CC" && break | 
 | 5740 |   done | 
 | 5741 | fi | 
 | 5742 | if test -z "$CC"; then | 
 | 5743 |   ac_ct_CC=$CC | 
 | 5744 |   for ac_prog in gcc | 
 | 5745 | do | 
 | 5746 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5747 | set dummy $ac_prog; ac_word=$2 | 
 | 5748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 5749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 5750 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
 | 5751 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5752 | else | 
 | 5753 |   if test -n "$ac_ct_CC"; then | 
 | 5754 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 5755 | else | 
 | 5756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5757 | for as_dir in $PATH | 
 | 5758 | do | 
 | 5759 |   IFS=$as_save_IFS | 
 | 5760 |   test -z "$as_dir" && as_dir=. | 
 | 5761 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5762 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5763 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 5764 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5765 |     break 2 | 
 | 5766 |   fi | 
 | 5767 | done | 
 | 5768 | done | 
 | 5769 | IFS=$as_save_IFS | 
 | 5770 |  | 
 | 5771 | fi | 
 | 5772 | fi | 
 | 5773 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 5774 | if test -n "$ac_ct_CC"; then | 
 | 5775 |   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
 | 5776 | echo "${ECHO_T}$ac_ct_CC" >&6; } | 
 | 5777 | else | 
 | 5778 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 5779 | echo "${ECHO_T}no" >&6; } | 
 | 5780 | fi | 
 | 5781 |  | 
 | 5782 |  | 
 | 5783 |   test -n "$ac_ct_CC" && break | 
 | 5784 | done | 
 | 5785 |  | 
 | 5786 |   if test "x$ac_ct_CC" = x; then | 
 | 5787 |     CC="" | 
 | 5788 |   else | 
 | 5789 |     case $cross_compiling:$ac_tool_warned in | 
 | 5790 | yes:) | 
 | 5791 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 5792 | whose name does not start with the host triplet.  If you think this | 
 | 5793 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 5794 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 5795 | whose name does not start with the host triplet.  If you think this | 
 | 5796 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 5797 | ac_tool_warned=yes ;; | 
 | 5798 | esac | 
 | 5799 |     CC=$ac_ct_CC | 
 | 5800 |   fi | 
 | 5801 | fi | 
 | 5802 |  | 
 | 5803 |  | 
 | 5804 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
 | 5805 | See \`config.log' for more details." >&5 | 
 | 5806 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
 | 5807 | See \`config.log' for more details." >&2;} | 
 | 5808 |    { (exit 1); exit 1; }; } | 
 | 5809 |  | 
 | 5810 | # Provide some information about the compiler. | 
 | 5811 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | 
 | 5812 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 5813 | { (ac_try="$ac_compiler --version >&5" | 
 | 5814 | case "(($ac_try" in | 
 | 5815 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5816 |   *) ac_try_echo=$ac_try;; | 
 | 5817 | esac | 
 | 5818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5819 |   (eval "$ac_compiler --version >&5") 2>&5 | 
 | 5820 |   ac_status=$? | 
 | 5821 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5822 |   (exit $ac_status); } | 
 | 5823 | { (ac_try="$ac_compiler -v >&5" | 
 | 5824 | case "(($ac_try" in | 
 | 5825 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5826 |   *) ac_try_echo=$ac_try;; | 
 | 5827 | esac | 
 | 5828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5829 |   (eval "$ac_compiler -v >&5") 2>&5 | 
 | 5830 |   ac_status=$? | 
 | 5831 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5832 |   (exit $ac_status); } | 
 | 5833 | { (ac_try="$ac_compiler -V >&5" | 
 | 5834 | case "(($ac_try" in | 
 | 5835 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5836 |   *) ac_try_echo=$ac_try;; | 
 | 5837 | esac | 
 | 5838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5839 |   (eval "$ac_compiler -V >&5") 2>&5 | 
 | 5840 |   ac_status=$? | 
 | 5841 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5842 |   (exit $ac_status); } | 
 | 5843 |  | 
 | 5844 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
 | 5845 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | 
 | 5846 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
 | 5847 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5848 | else | 
 | 5849 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 5850 | /* confdefs.h.  */ | 
 | 5851 | _ACEOF | 
 | 5852 | cat confdefs.h >>conftest.$ac_ext | 
 | 5853 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5854 | /* end confdefs.h.  */ | 
 | 5855 |  | 
 | 5856 | int | 
 | 5857 | main () | 
 | 5858 | { | 
 | 5859 | #ifndef __GNUC__ | 
 | 5860 |        choke me | 
 | 5861 | #endif | 
 | 5862 |  | 
 | 5863 |   ; | 
 | 5864 |   return 0; | 
 | 5865 | } | 
 | 5866 | _ACEOF | 
 | 5867 | rm -f conftest.$ac_objext | 
 | 5868 | if { (ac_try="$ac_compile" | 
 | 5869 | case "(($ac_try" in | 
 | 5870 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5871 |   *) ac_try_echo=$ac_try;; | 
 | 5872 | esac | 
 | 5873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5874 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 5875 |   ac_status=$? | 
 | 5876 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5877 |   rm -f conftest.er1 | 
 | 5878 |   cat conftest.err >&5 | 
 | 5879 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5880 |   (exit $ac_status); } && | 
 | 5881 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 5882 |   { (case "(($ac_try" in | 
 | 5883 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5884 |   *) ac_try_echo=$ac_try;; | 
 | 5885 | esac | 
 | 5886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5887 |   (eval "$ac_try") 2>&5 | 
 | 5888 |   ac_status=$? | 
 | 5889 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5890 |   (exit $ac_status); }; } && | 
 | 5891 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 5892 |   { (case "(($ac_try" in | 
 | 5893 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5894 |   *) ac_try_echo=$ac_try;; | 
 | 5895 | esac | 
 | 5896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5897 |   (eval "$ac_try") 2>&5 | 
 | 5898 |   ac_status=$? | 
 | 5899 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5900 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5901 |   ac_compiler_gnu=yes | 
 | 5902 | else | 
 | 5903 |   echo "$as_me: failed program was:" >&5 | 
 | 5904 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5905 |  | 
 | 5906 | 	ac_compiler_gnu=no | 
 | 5907 | fi | 
 | 5908 |  | 
 | 5909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5910 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 5911 |  | 
 | 5912 | fi | 
 | 5913 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 5914 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | 
 | 5915 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
 | 5916 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 5917 | ac_save_CFLAGS=$CFLAGS | 
 | 5918 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
 | 5919 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | 
 | 5920 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
 | 5921 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 5922 | else | 
 | 5923 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 5924 |    ac_c_werror_flag=yes | 
 | 5925 |    ac_cv_prog_cc_g=no | 
 | 5926 |    CFLAGS="-g" | 
 | 5927 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 5928 | /* confdefs.h.  */ | 
 | 5929 | _ACEOF | 
 | 5930 | cat confdefs.h >>conftest.$ac_ext | 
 | 5931 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5932 | /* end confdefs.h.  */ | 
 | 5933 |  | 
 | 5934 | int | 
 | 5935 | main () | 
 | 5936 | { | 
 | 5937 |  | 
 | 5938 |   ; | 
 | 5939 |   return 0; | 
 | 5940 | } | 
 | 5941 | _ACEOF | 
 | 5942 | rm -f conftest.$ac_objext | 
 | 5943 | if { (ac_try="$ac_compile" | 
 | 5944 | case "(($ac_try" in | 
 | 5945 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5946 |   *) ac_try_echo=$ac_try;; | 
 | 5947 | esac | 
 | 5948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5949 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 5950 |   ac_status=$? | 
 | 5951 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 5952 |   rm -f conftest.er1 | 
 | 5953 |   cat conftest.err >&5 | 
 | 5954 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5955 |   (exit $ac_status); } && | 
 | 5956 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 5957 |   { (case "(($ac_try" in | 
 | 5958 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5959 |   *) ac_try_echo=$ac_try;; | 
 | 5960 | esac | 
 | 5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5962 |   (eval "$ac_try") 2>&5 | 
 | 5963 |   ac_status=$? | 
 | 5964 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5965 |   (exit $ac_status); }; } && | 
 | 5966 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 5967 |   { (case "(($ac_try" in | 
 | 5968 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5969 |   *) ac_try_echo=$ac_try;; | 
 | 5970 | esac | 
 | 5971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 5972 |   (eval "$ac_try") 2>&5 | 
 | 5973 |   ac_status=$? | 
 | 5974 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 5975 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5976 |   ac_cv_prog_cc_g=yes | 
 | 5977 | else | 
 | 5978 |   echo "$as_me: failed program was:" >&5 | 
 | 5979 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 5980 |  | 
 | 5981 | 	CFLAGS="" | 
 | 5982 |       cat >conftest.$ac_ext <<_ACEOF | 
 | 5983 | /* confdefs.h.  */ | 
 | 5984 | _ACEOF | 
 | 5985 | cat confdefs.h >>conftest.$ac_ext | 
 | 5986 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 5987 | /* end confdefs.h.  */ | 
 | 5988 |  | 
 | 5989 | int | 
 | 5990 | main () | 
 | 5991 | { | 
 | 5992 |  | 
 | 5993 |   ; | 
 | 5994 |   return 0; | 
 | 5995 | } | 
 | 5996 | _ACEOF | 
 | 5997 | rm -f conftest.$ac_objext | 
 | 5998 | if { (ac_try="$ac_compile" | 
 | 5999 | case "(($ac_try" in | 
 | 6000 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6001 |   *) ac_try_echo=$ac_try;; | 
 | 6002 | esac | 
 | 6003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6004 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6005 |   ac_status=$? | 
 | 6006 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6007 |   rm -f conftest.er1 | 
 | 6008 |   cat conftest.err >&5 | 
 | 6009 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6010 |   (exit $ac_status); } && | 
 | 6011 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 6012 |   { (case "(($ac_try" in | 
 | 6013 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6014 |   *) ac_try_echo=$ac_try;; | 
 | 6015 | esac | 
 | 6016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6017 |   (eval "$ac_try") 2>&5 | 
 | 6018 |   ac_status=$? | 
 | 6019 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6020 |   (exit $ac_status); }; } && | 
 | 6021 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6022 |   { (case "(($ac_try" in | 
 | 6023 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6024 |   *) ac_try_echo=$ac_try;; | 
 | 6025 | esac | 
 | 6026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6027 |   (eval "$ac_try") 2>&5 | 
 | 6028 |   ac_status=$? | 
 | 6029 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6030 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6031 |   : | 
 | 6032 | else | 
 | 6033 |   echo "$as_me: failed program was:" >&5 | 
 | 6034 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6035 |  | 
 | 6036 | 	ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 6037 | 	 CFLAGS="-g" | 
 | 6038 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 6039 | /* confdefs.h.  */ | 
 | 6040 | _ACEOF | 
 | 6041 | cat confdefs.h >>conftest.$ac_ext | 
 | 6042 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6043 | /* end confdefs.h.  */ | 
 | 6044 |  | 
 | 6045 | int | 
 | 6046 | main () | 
 | 6047 | { | 
 | 6048 |  | 
 | 6049 |   ; | 
 | 6050 |   return 0; | 
 | 6051 | } | 
 | 6052 | _ACEOF | 
 | 6053 | rm -f conftest.$ac_objext | 
 | 6054 | if { (ac_try="$ac_compile" | 
 | 6055 | case "(($ac_try" in | 
 | 6056 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6057 |   *) ac_try_echo=$ac_try;; | 
 | 6058 | esac | 
 | 6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6060 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6061 |   ac_status=$? | 
 | 6062 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6063 |   rm -f conftest.er1 | 
 | 6064 |   cat conftest.err >&5 | 
 | 6065 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6066 |   (exit $ac_status); } && | 
 | 6067 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 6068 |   { (case "(($ac_try" in | 
 | 6069 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6070 |   *) ac_try_echo=$ac_try;; | 
 | 6071 | esac | 
 | 6072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6073 |   (eval "$ac_try") 2>&5 | 
 | 6074 |   ac_status=$? | 
 | 6075 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6076 |   (exit $ac_status); }; } && | 
 | 6077 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6078 |   { (case "(($ac_try" in | 
 | 6079 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6080 |   *) ac_try_echo=$ac_try;; | 
 | 6081 | esac | 
 | 6082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6083 |   (eval "$ac_try") 2>&5 | 
 | 6084 |   ac_status=$? | 
 | 6085 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6086 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6087 |   ac_cv_prog_cc_g=yes | 
 | 6088 | else | 
 | 6089 |   echo "$as_me: failed program was:" >&5 | 
 | 6090 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6091 |  | 
 | 6092 |  | 
 | 6093 | fi | 
 | 6094 |  | 
 | 6095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6096 | fi | 
 | 6097 |  | 
 | 6098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6099 | fi | 
 | 6100 |  | 
 | 6101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6102 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 6103 | fi | 
 | 6104 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
 | 6105 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | 
 | 6106 | if test "$ac_test_CFLAGS" = set; then | 
 | 6107 |   CFLAGS=$ac_save_CFLAGS | 
 | 6108 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 6109 |   if test "$GCC" = yes; then | 
 | 6110 |     CFLAGS="-g -O2" | 
 | 6111 |   else | 
 | 6112 |     CFLAGS="-g" | 
 | 6113 |   fi | 
 | 6114 | else | 
 | 6115 |   if test "$GCC" = yes; then | 
 | 6116 |     CFLAGS="-O2" | 
 | 6117 |   else | 
 | 6118 |     CFLAGS= | 
 | 6119 |   fi | 
 | 6120 | fi | 
 | 6121 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 
 | 6122 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | 
 | 6123 | if test "${ac_cv_prog_cc_c89+set}" = set; then | 
 | 6124 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6125 | else | 
 | 6126 |   ac_cv_prog_cc_c89=no | 
 | 6127 | ac_save_CC=$CC | 
 | 6128 | cat >conftest.$ac_ext <<_ACEOF | 
 | 6129 | /* confdefs.h.  */ | 
 | 6130 | _ACEOF | 
 | 6131 | cat confdefs.h >>conftest.$ac_ext | 
 | 6132 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6133 | /* end confdefs.h.  */ | 
 | 6134 | #include <stdarg.h> | 
 | 6135 | #include <stdio.h> | 
 | 6136 | #include <sys/types.h> | 
 | 6137 | #include <sys/stat.h> | 
 | 6138 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 6139 | struct buf { int x; }; | 
 | 6140 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 6141 | static char *e (p, i) | 
 | 6142 |      char **p; | 
 | 6143 |      int i; | 
 | 6144 | { | 
 | 6145 |   return p[i]; | 
 | 6146 | } | 
 | 6147 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 6148 | { | 
 | 6149 |   char *s; | 
 | 6150 |   va_list v; | 
 | 6151 |   va_start (v,p); | 
 | 6152 |   s = g (p, va_arg (v,int)); | 
 | 6153 |   va_end (v); | 
 | 6154 |   return s; | 
 | 6155 | } | 
 | 6156 |  | 
 | 6157 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 6158 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 6159 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 6160 |    as 'x'.  The following induces an error, until -std is added to get | 
 | 6161 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 6162 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 6163 |    that's true only with -std.  */ | 
 | 6164 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 6165 |  | 
 | 6166 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 6167 |    inside strings and character constants.  */ | 
 | 6168 | #define FOO(x) 'x' | 
 | 6169 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 6170 |  | 
 | 6171 | int test (int i, double x); | 
 | 6172 | struct s1 {int (*f) (int a);}; | 
 | 6173 | struct s2 {int (*f) (double a);}; | 
 | 6174 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 6175 | int argc; | 
 | 6176 | char **argv; | 
 | 6177 | int | 
 | 6178 | main () | 
 | 6179 | { | 
 | 6180 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 6181 |   ; | 
 | 6182 |   return 0; | 
 | 6183 | } | 
 | 6184 | _ACEOF | 
 | 6185 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 6186 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 6187 | do | 
 | 6188 |   CC="$ac_save_CC $ac_arg" | 
 | 6189 |   rm -f conftest.$ac_objext | 
 | 6190 | if { (ac_try="$ac_compile" | 
 | 6191 | case "(($ac_try" in | 
 | 6192 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6193 |   *) ac_try_echo=$ac_try;; | 
 | 6194 | esac | 
 | 6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6196 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6197 |   ac_status=$? | 
 | 6198 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6199 |   rm -f conftest.er1 | 
 | 6200 |   cat conftest.err >&5 | 
 | 6201 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6202 |   (exit $ac_status); } && | 
 | 6203 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 6204 |   { (case "(($ac_try" in | 
 | 6205 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6206 |   *) ac_try_echo=$ac_try;; | 
 | 6207 | esac | 
 | 6208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6209 |   (eval "$ac_try") 2>&5 | 
 | 6210 |   ac_status=$? | 
 | 6211 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6212 |   (exit $ac_status); }; } && | 
 | 6213 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6214 |   { (case "(($ac_try" in | 
 | 6215 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6216 |   *) ac_try_echo=$ac_try;; | 
 | 6217 | esac | 
 | 6218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6219 |   (eval "$ac_try") 2>&5 | 
 | 6220 |   ac_status=$? | 
 | 6221 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6222 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6223 |   ac_cv_prog_cc_c89=$ac_arg | 
 | 6224 | else | 
 | 6225 |   echo "$as_me: failed program was:" >&5 | 
 | 6226 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6227 |  | 
 | 6228 |  | 
 | 6229 | fi | 
 | 6230 |  | 
 | 6231 | rm -f core conftest.err conftest.$ac_objext | 
 | 6232 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
 | 6233 | done | 
 | 6234 | rm -f conftest.$ac_ext | 
 | 6235 | CC=$ac_save_CC | 
 | 6236 |  | 
 | 6237 | fi | 
 | 6238 | # AC_CACHE_VAL | 
 | 6239 | case "x$ac_cv_prog_cc_c89" in | 
 | 6240 |   x) | 
 | 6241 |     { echo "$as_me:$LINENO: result: none needed" >&5 | 
 | 6242 | echo "${ECHO_T}none needed" >&6; } ;; | 
 | 6243 |   xno) | 
 | 6244 |     { echo "$as_me:$LINENO: result: unsupported" >&5 | 
 | 6245 | echo "${ECHO_T}unsupported" >&6; } ;; | 
 | 6246 |   *) | 
 | 6247 |     CC="$CC $ac_cv_prog_cc_c89" | 
 | 6248 |     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 
 | 6249 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | 
 | 6250 | esac | 
 | 6251 |  | 
 | 6252 |  | 
 | 6253 | ac_ext=c | 
 | 6254 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6258 |  | 
 | 6259 | ac_ext=cpp | 
 | 6260 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 6261 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6262 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6263 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 6264 | if test -z "$CXX"; then | 
 | 6265 |   if test -n "$CCC"; then | 
 | 6266 |     CXX=$CCC | 
 | 6267 |   else | 
 | 6268 |     if test -n "$ac_tool_prefix"; then | 
 | 6269 |   for ac_prog in g++ | 
 | 6270 |   do | 
 | 6271 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6272 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6275 | if test "${ac_cv_prog_CXX+set}" = set; then | 
 | 6276 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6277 | else | 
 | 6278 |   if test -n "$CXX"; then | 
 | 6279 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 6280 | else | 
 | 6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6282 | for as_dir in $PATH | 
 | 6283 | do | 
 | 6284 |   IFS=$as_save_IFS | 
 | 6285 |   test -z "$as_dir" && as_dir=. | 
 | 6286 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6287 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6288 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 6289 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6290 |     break 2 | 
 | 6291 |   fi | 
 | 6292 | done | 
 | 6293 | done | 
 | 6294 | IFS=$as_save_IFS | 
 | 6295 |  | 
 | 6296 | fi | 
 | 6297 | fi | 
 | 6298 | CXX=$ac_cv_prog_CXX | 
 | 6299 | if test -n "$CXX"; then | 
 | 6300 |   { echo "$as_me:$LINENO: result: $CXX" >&5 | 
 | 6301 | echo "${ECHO_T}$CXX" >&6; } | 
 | 6302 | else | 
 | 6303 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6304 | echo "${ECHO_T}no" >&6; } | 
 | 6305 | fi | 
 | 6306 |  | 
 | 6307 |  | 
 | 6308 |     test -n "$CXX" && break | 
 | 6309 |   done | 
 | 6310 | fi | 
 | 6311 | if test -z "$CXX"; then | 
 | 6312 |   ac_ct_CXX=$CXX | 
 | 6313 |   for ac_prog in g++ | 
 | 6314 | do | 
 | 6315 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6316 | set dummy $ac_prog; ac_word=$2 | 
 | 6317 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6318 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6319 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
 | 6320 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6321 | else | 
 | 6322 |   if test -n "$ac_ct_CXX"; then | 
 | 6323 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 6324 | else | 
 | 6325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6326 | for as_dir in $PATH | 
 | 6327 | do | 
 | 6328 |   IFS=$as_save_IFS | 
 | 6329 |   test -z "$as_dir" && as_dir=. | 
 | 6330 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6331 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6332 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 6333 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6334 |     break 2 | 
 | 6335 |   fi | 
 | 6336 | done | 
 | 6337 | done | 
 | 6338 | IFS=$as_save_IFS | 
 | 6339 |  | 
 | 6340 | fi | 
 | 6341 | fi | 
 | 6342 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 6343 | if test -n "$ac_ct_CXX"; then | 
 | 6344 |   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
 | 6345 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | 
 | 6346 | else | 
 | 6347 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6348 | echo "${ECHO_T}no" >&6; } | 
 | 6349 | fi | 
 | 6350 |  | 
 | 6351 |  | 
 | 6352 |   test -n "$ac_ct_CXX" && break | 
 | 6353 | done | 
 | 6354 |  | 
 | 6355 |   if test "x$ac_ct_CXX" = x; then | 
 | 6356 |     CXX="g++" | 
 | 6357 |   else | 
 | 6358 |     case $cross_compiling:$ac_tool_warned in | 
 | 6359 | yes:) | 
 | 6360 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 6361 | whose name does not start with the host triplet.  If you think this | 
 | 6362 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 6363 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 6364 | whose name does not start with the host triplet.  If you think this | 
 | 6365 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 6366 | ac_tool_warned=yes ;; | 
 | 6367 | esac | 
 | 6368 |     CXX=$ac_ct_CXX | 
 | 6369 |   fi | 
 | 6370 | fi | 
 | 6371 |  | 
 | 6372 |   fi | 
 | 6373 | fi | 
 | 6374 | # Provide some information about the compiler. | 
 | 6375 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | 
 | 6376 | ac_compiler=`set X $ac_compile; echo $2` | 
 | 6377 | { (ac_try="$ac_compiler --version >&5" | 
 | 6378 | case "(($ac_try" in | 
 | 6379 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6380 |   *) ac_try_echo=$ac_try;; | 
 | 6381 | esac | 
 | 6382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6383 |   (eval "$ac_compiler --version >&5") 2>&5 | 
 | 6384 |   ac_status=$? | 
 | 6385 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6386 |   (exit $ac_status); } | 
 | 6387 | { (ac_try="$ac_compiler -v >&5" | 
 | 6388 | case "(($ac_try" in | 
 | 6389 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6390 |   *) ac_try_echo=$ac_try;; | 
 | 6391 | esac | 
 | 6392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6393 |   (eval "$ac_compiler -v >&5") 2>&5 | 
 | 6394 |   ac_status=$? | 
 | 6395 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6396 |   (exit $ac_status); } | 
 | 6397 | { (ac_try="$ac_compiler -V >&5" | 
 | 6398 | case "(($ac_try" in | 
 | 6399 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6400 |   *) ac_try_echo=$ac_try;; | 
 | 6401 | esac | 
 | 6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6403 |   (eval "$ac_compiler -V >&5") 2>&5 | 
 | 6404 |   ac_status=$? | 
 | 6405 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6406 |   (exit $ac_status); } | 
 | 6407 |  | 
 | 6408 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
 | 6409 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | 
 | 6410 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
 | 6411 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6412 | else | 
 | 6413 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 6414 | /* confdefs.h.  */ | 
 | 6415 | _ACEOF | 
 | 6416 | cat confdefs.h >>conftest.$ac_ext | 
 | 6417 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6418 | /* end confdefs.h.  */ | 
 | 6419 |  | 
 | 6420 | int | 
 | 6421 | main () | 
 | 6422 | { | 
 | 6423 | #ifndef __GNUC__ | 
 | 6424 |        choke me | 
 | 6425 | #endif | 
 | 6426 |  | 
 | 6427 |   ; | 
 | 6428 |   return 0; | 
 | 6429 | } | 
 | 6430 | _ACEOF | 
 | 6431 | rm -f conftest.$ac_objext | 
 | 6432 | if { (ac_try="$ac_compile" | 
 | 6433 | case "(($ac_try" in | 
 | 6434 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6435 |   *) ac_try_echo=$ac_try;; | 
 | 6436 | esac | 
 | 6437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6438 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6439 |   ac_status=$? | 
 | 6440 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6441 |   rm -f conftest.er1 | 
 | 6442 |   cat conftest.err >&5 | 
 | 6443 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6444 |   (exit $ac_status); } && | 
 | 6445 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 6446 |   { (case "(($ac_try" in | 
 | 6447 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6448 |   *) ac_try_echo=$ac_try;; | 
 | 6449 | esac | 
 | 6450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6451 |   (eval "$ac_try") 2>&5 | 
 | 6452 |   ac_status=$? | 
 | 6453 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6454 |   (exit $ac_status); }; } && | 
 | 6455 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6456 |   { (case "(($ac_try" in | 
 | 6457 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6458 |   *) ac_try_echo=$ac_try;; | 
 | 6459 | esac | 
 | 6460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6461 |   (eval "$ac_try") 2>&5 | 
 | 6462 |   ac_status=$? | 
 | 6463 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6464 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6465 |   ac_compiler_gnu=yes | 
 | 6466 | else | 
 | 6467 |   echo "$as_me: failed program was:" >&5 | 
 | 6468 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6469 |  | 
 | 6470 | 	ac_compiler_gnu=no | 
 | 6471 | fi | 
 | 6472 |  | 
 | 6473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6474 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 6475 |  | 
 | 6476 | fi | 
 | 6477 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 6478 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | 
 | 6479 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
 | 6480 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 6481 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 6482 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
 | 6483 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | 
 | 6484 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
 | 6485 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6486 | else | 
 | 6487 |   ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
 | 6488 |    ac_cxx_werror_flag=yes | 
 | 6489 |    ac_cv_prog_cxx_g=no | 
 | 6490 |    CXXFLAGS="-g" | 
 | 6491 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 6492 | /* confdefs.h.  */ | 
 | 6493 | _ACEOF | 
 | 6494 | cat confdefs.h >>conftest.$ac_ext | 
 | 6495 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6496 | /* end confdefs.h.  */ | 
 | 6497 |  | 
 | 6498 | int | 
 | 6499 | main () | 
 | 6500 | { | 
 | 6501 |  | 
 | 6502 |   ; | 
 | 6503 |   return 0; | 
 | 6504 | } | 
 | 6505 | _ACEOF | 
 | 6506 | rm -f conftest.$ac_objext | 
 | 6507 | if { (ac_try="$ac_compile" | 
 | 6508 | case "(($ac_try" in | 
 | 6509 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6510 |   *) ac_try_echo=$ac_try;; | 
 | 6511 | esac | 
 | 6512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6513 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6514 |   ac_status=$? | 
 | 6515 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6516 |   rm -f conftest.er1 | 
 | 6517 |   cat conftest.err >&5 | 
 | 6518 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6519 |   (exit $ac_status); } && | 
 | 6520 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 6521 |   { (case "(($ac_try" in | 
 | 6522 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6523 |   *) ac_try_echo=$ac_try;; | 
 | 6524 | esac | 
 | 6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6526 |   (eval "$ac_try") 2>&5 | 
 | 6527 |   ac_status=$? | 
 | 6528 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6529 |   (exit $ac_status); }; } && | 
 | 6530 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6531 |   { (case "(($ac_try" in | 
 | 6532 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6533 |   *) ac_try_echo=$ac_try;; | 
 | 6534 | esac | 
 | 6535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6536 |   (eval "$ac_try") 2>&5 | 
 | 6537 |   ac_status=$? | 
 | 6538 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6539 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6540 |   ac_cv_prog_cxx_g=yes | 
 | 6541 | else | 
 | 6542 |   echo "$as_me: failed program was:" >&5 | 
 | 6543 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6544 |  | 
 | 6545 | 	CXXFLAGS="" | 
 | 6546 |       cat >conftest.$ac_ext <<_ACEOF | 
 | 6547 | /* confdefs.h.  */ | 
 | 6548 | _ACEOF | 
 | 6549 | cat confdefs.h >>conftest.$ac_ext | 
 | 6550 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6551 | /* end confdefs.h.  */ | 
 | 6552 |  | 
 | 6553 | int | 
 | 6554 | main () | 
 | 6555 | { | 
 | 6556 |  | 
 | 6557 |   ; | 
 | 6558 |   return 0; | 
 | 6559 | } | 
 | 6560 | _ACEOF | 
 | 6561 | rm -f conftest.$ac_objext | 
 | 6562 | if { (ac_try="$ac_compile" | 
 | 6563 | case "(($ac_try" in | 
 | 6564 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6565 |   *) ac_try_echo=$ac_try;; | 
 | 6566 | esac | 
 | 6567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6568 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6569 |   ac_status=$? | 
 | 6570 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6571 |   rm -f conftest.er1 | 
 | 6572 |   cat conftest.err >&5 | 
 | 6573 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6574 |   (exit $ac_status); } && | 
 | 6575 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 6576 |   { (case "(($ac_try" in | 
 | 6577 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6578 |   *) ac_try_echo=$ac_try;; | 
 | 6579 | esac | 
 | 6580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6581 |   (eval "$ac_try") 2>&5 | 
 | 6582 |   ac_status=$? | 
 | 6583 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6584 |   (exit $ac_status); }; } && | 
 | 6585 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6586 |   { (case "(($ac_try" in | 
 | 6587 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6588 |   *) ac_try_echo=$ac_try;; | 
 | 6589 | esac | 
 | 6590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6591 |   (eval "$ac_try") 2>&5 | 
 | 6592 |   ac_status=$? | 
 | 6593 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6594 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6595 |   : | 
 | 6596 | else | 
 | 6597 |   echo "$as_me: failed program was:" >&5 | 
 | 6598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6599 |  | 
 | 6600 | 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
 | 6601 | 	 CXXFLAGS="-g" | 
 | 6602 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 6603 | /* confdefs.h.  */ | 
 | 6604 | _ACEOF | 
 | 6605 | cat confdefs.h >>conftest.$ac_ext | 
 | 6606 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 6607 | /* end confdefs.h.  */ | 
 | 6608 |  | 
 | 6609 | int | 
 | 6610 | main () | 
 | 6611 | { | 
 | 6612 |  | 
 | 6613 |   ; | 
 | 6614 |   return 0; | 
 | 6615 | } | 
 | 6616 | _ACEOF | 
 | 6617 | rm -f conftest.$ac_objext | 
 | 6618 | if { (ac_try="$ac_compile" | 
 | 6619 | case "(($ac_try" in | 
 | 6620 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6621 |   *) ac_try_echo=$ac_try;; | 
 | 6622 | esac | 
 | 6623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6624 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 6625 |   ac_status=$? | 
 | 6626 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 6627 |   rm -f conftest.er1 | 
 | 6628 |   cat conftest.err >&5 | 
 | 6629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6630 |   (exit $ac_status); } && | 
 | 6631 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 6632 |   { (case "(($ac_try" in | 
 | 6633 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6634 |   *) ac_try_echo=$ac_try;; | 
 | 6635 | esac | 
 | 6636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6637 |   (eval "$ac_try") 2>&5 | 
 | 6638 |   ac_status=$? | 
 | 6639 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6640 |   (exit $ac_status); }; } && | 
 | 6641 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 6642 |   { (case "(($ac_try" in | 
 | 6643 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6644 |   *) ac_try_echo=$ac_try;; | 
 | 6645 | esac | 
 | 6646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 6647 |   (eval "$ac_try") 2>&5 | 
 | 6648 |   ac_status=$? | 
 | 6649 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 6650 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6651 |   ac_cv_prog_cxx_g=yes | 
 | 6652 | else | 
 | 6653 |   echo "$as_me: failed program was:" >&5 | 
 | 6654 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 6655 |  | 
 | 6656 |  | 
 | 6657 | fi | 
 | 6658 |  | 
 | 6659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6660 | fi | 
 | 6661 |  | 
 | 6662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6663 | fi | 
 | 6664 |  | 
 | 6665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6666 |    ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
 | 6667 | fi | 
 | 6668 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
 | 6669 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | 
 | 6670 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 6671 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 6672 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 6673 |   if test "$GXX" = yes; then | 
 | 6674 |     CXXFLAGS="-g -O2" | 
 | 6675 |   else | 
 | 6676 |     CXXFLAGS="-g" | 
 | 6677 |   fi | 
 | 6678 | else | 
 | 6679 |   if test "$GXX" = yes; then | 
 | 6680 |     CXXFLAGS="-O2" | 
 | 6681 |   else | 
 | 6682 |     CXXFLAGS= | 
 | 6683 |   fi | 
 | 6684 | fi | 
 | 6685 | ac_ext=c | 
 | 6686 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6690 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6691 |  | 
 | 6692 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | 
 | 6693 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | 
 | 6694 | if test "${lt_cv_path_NM+set}" = set; then | 
 | 6695 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6696 | else | 
 | 6697 |   if test -n "$NM"; then | 
 | 6698 |   # Let the user override the test. | 
 | 6699 |   lt_cv_path_NM="$NM" | 
 | 6700 | else | 
 | 6701 |   lt_nm_to_check="${ac_tool_prefix}nm" | 
 | 6702 |   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
 | 6703 |     lt_nm_to_check="$lt_nm_to_check nm" | 
 | 6704 |   fi | 
 | 6705 |   for lt_tmp_nm in $lt_nm_to_check; do | 
 | 6706 |     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 6707 |     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
 | 6708 |       IFS="$lt_save_ifs" | 
 | 6709 |       test -z "$ac_dir" && ac_dir=. | 
 | 6710 |       tmp_nm="$ac_dir/$lt_tmp_nm" | 
 | 6711 |       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
 | 6712 | 	# Check to see if the nm accepts a BSD-compat flag. | 
 | 6713 | 	# Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 6714 | 	#   nm: unknown option "B" ignored | 
 | 6715 | 	# Tru64's nm complains that /dev/null is an invalid object file | 
 | 6716 | 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 6717 | 	*/dev/null* | *'Invalid file or object type'*) | 
 | 6718 | 	  lt_cv_path_NM="$tmp_nm -B" | 
 | 6719 | 	  break | 
 | 6720 | 	  ;; | 
 | 6721 | 	*) | 
 | 6722 | 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 6723 | 	  */dev/null*) | 
 | 6724 | 	    lt_cv_path_NM="$tmp_nm -p" | 
 | 6725 | 	    break | 
 | 6726 | 	    ;; | 
 | 6727 | 	  *) | 
 | 6728 | 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 6729 | 	    continue # so that we can try to find one that supports BSD flags | 
 | 6730 | 	    ;; | 
 | 6731 | 	  esac | 
 | 6732 | 	  ;; | 
 | 6733 | 	esac | 
 | 6734 |       fi | 
 | 6735 |     done | 
 | 6736 |     IFS="$lt_save_ifs" | 
 | 6737 |   done | 
 | 6738 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
 | 6739 | fi | 
 | 6740 | fi | 
 | 6741 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 
 | 6742 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | 
 | 6743 | NM="$lt_cv_path_NM" | 
 | 6744 |  | 
 | 6745 |  | 
 | 6746 |  | 
 | 6747 | { echo "$as_me:$LINENO: checking for GNU make" >&5 | 
 | 6748 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } | 
 | 6749 | if test "${llvm_cv_gnu_make_command+set}" = set; then | 
 | 6750 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6751 | else | 
 | 6752 |   llvm_cv_gnu_make_command='' | 
 | 6753 |  for a in "$MAKE" make gmake gnumake ; do | 
 | 6754 |   if test -z "$a" ; then continue ; fi ; | 
 | 6755 |   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) | 
 | 6756 |   then | 
 | 6757 |    llvm_cv_gnu_make_command=$a ; | 
 | 6758 |    break; | 
 | 6759 |   fi | 
 | 6760 |  done | 
 | 6761 | fi | 
 | 6762 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 | 
 | 6763 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } | 
 | 6764 |  if test "x$llvm_cv_gnu_make_command" != "x"  ; then | 
 | 6765 |    ifGNUmake='' ; | 
 | 6766 |  else | 
 | 6767 |    ifGNUmake='#' ; | 
 | 6768 |    { echo "$as_me:$LINENO: result: \"Not found\"" >&5 | 
 | 6769 | echo "${ECHO_T}\"Not found\"" >&6; }; | 
 | 6770 |  fi | 
 | 6771 |  | 
 | 6772 |  | 
 | 6773 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
 | 6774 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | 
 | 6775 | LN_S=$as_ln_s | 
 | 6776 | if test "$LN_S" = "ln -s"; then | 
 | 6777 |   { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 6778 | echo "${ECHO_T}yes" >&6; } | 
 | 6779 | else | 
 | 6780 |   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
 | 6781 | echo "${ECHO_T}no, using $LN_S" >&6; } | 
 | 6782 | fi | 
 | 6783 |  | 
 | 6784 | # Extract the first word of "cmp", so it can be a program name with args. | 
 | 6785 | set dummy cmp; ac_word=$2 | 
 | 6786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6788 | if test "${ac_cv_path_CMP+set}" = set; then | 
 | 6789 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6790 | else | 
 | 6791 |   case $CMP in | 
 | 6792 |   [\\/]* | ?:[\\/]*) | 
 | 6793 |   ac_cv_path_CMP="$CMP" # Let the user override the test with a path. | 
 | 6794 |   ;; | 
 | 6795 |   *) | 
 | 6796 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6797 | for as_dir in $PATH | 
 | 6798 | do | 
 | 6799 |   IFS=$as_save_IFS | 
 | 6800 |   test -z "$as_dir" && as_dir=. | 
 | 6801 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6802 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6803 |     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" | 
 | 6804 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6805 |     break 2 | 
 | 6806 |   fi | 
 | 6807 | done | 
 | 6808 | done | 
 | 6809 | IFS=$as_save_IFS | 
 | 6810 |  | 
 | 6811 |   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" | 
 | 6812 |   ;; | 
 | 6813 | esac | 
 | 6814 | fi | 
 | 6815 | CMP=$ac_cv_path_CMP | 
 | 6816 | if test -n "$CMP"; then | 
 | 6817 |   { echo "$as_me:$LINENO: result: $CMP" >&5 | 
 | 6818 | echo "${ECHO_T}$CMP" >&6; } | 
 | 6819 | else | 
 | 6820 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6821 | echo "${ECHO_T}no" >&6; } | 
 | 6822 | fi | 
 | 6823 |  | 
 | 6824 |  | 
 | 6825 | # Extract the first word of "cp", so it can be a program name with args. | 
 | 6826 | set dummy cp; ac_word=$2 | 
 | 6827 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6829 | if test "${ac_cv_path_CP+set}" = set; then | 
 | 6830 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6831 | else | 
 | 6832 |   case $CP in | 
 | 6833 |   [\\/]* | ?:[\\/]*) | 
 | 6834 |   ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
 | 6835 |   ;; | 
 | 6836 |   *) | 
 | 6837 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6838 | for as_dir in $PATH | 
 | 6839 | do | 
 | 6840 |   IFS=$as_save_IFS | 
 | 6841 |   test -z "$as_dir" && as_dir=. | 
 | 6842 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6843 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6844 |     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | 
 | 6845 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6846 |     break 2 | 
 | 6847 |   fi | 
 | 6848 | done | 
 | 6849 | done | 
 | 6850 | IFS=$as_save_IFS | 
 | 6851 |  | 
 | 6852 |   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
 | 6853 |   ;; | 
 | 6854 | esac | 
 | 6855 | fi | 
 | 6856 | CP=$ac_cv_path_CP | 
 | 6857 | if test -n "$CP"; then | 
 | 6858 |   { echo "$as_me:$LINENO: result: $CP" >&5 | 
 | 6859 | echo "${ECHO_T}$CP" >&6; } | 
 | 6860 | else | 
 | 6861 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6862 | echo "${ECHO_T}no" >&6; } | 
 | 6863 | fi | 
 | 6864 |  | 
 | 6865 |  | 
 | 6866 | # Extract the first word of "date", so it can be a program name with args. | 
 | 6867 | set dummy date; ac_word=$2 | 
 | 6868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6870 | if test "${ac_cv_path_DATE+set}" = set; then | 
 | 6871 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6872 | else | 
 | 6873 |   case $DATE in | 
 | 6874 |   [\\/]* | ?:[\\/]*) | 
 | 6875 |   ac_cv_path_DATE="$DATE" # Let the user override the test with a path. | 
 | 6876 |   ;; | 
 | 6877 |   *) | 
 | 6878 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6879 | for as_dir in $PATH | 
 | 6880 | do | 
 | 6881 |   IFS=$as_save_IFS | 
 | 6882 |   test -z "$as_dir" && as_dir=. | 
 | 6883 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6884 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6885 |     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" | 
 | 6886 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6887 |     break 2 | 
 | 6888 |   fi | 
 | 6889 | done | 
 | 6890 | done | 
 | 6891 | IFS=$as_save_IFS | 
 | 6892 |  | 
 | 6893 |   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" | 
 | 6894 |   ;; | 
 | 6895 | esac | 
 | 6896 | fi | 
 | 6897 | DATE=$ac_cv_path_DATE | 
 | 6898 | if test -n "$DATE"; then | 
 | 6899 |   { echo "$as_me:$LINENO: result: $DATE" >&5 | 
 | 6900 | echo "${ECHO_T}$DATE" >&6; } | 
 | 6901 | else | 
 | 6902 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6903 | echo "${ECHO_T}no" >&6; } | 
 | 6904 | fi | 
 | 6905 |  | 
 | 6906 |  | 
 | 6907 | # Extract the first word of "find", so it can be a program name with args. | 
 | 6908 | set dummy find; ac_word=$2 | 
 | 6909 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6911 | if test "${ac_cv_path_FIND+set}" = set; then | 
 | 6912 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6913 | else | 
 | 6914 |   case $FIND in | 
 | 6915 |   [\\/]* | ?:[\\/]*) | 
 | 6916 |   ac_cv_path_FIND="$FIND" # Let the user override the test with a path. | 
 | 6917 |   ;; | 
 | 6918 |   *) | 
 | 6919 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6920 | for as_dir in $PATH | 
 | 6921 | do | 
 | 6922 |   IFS=$as_save_IFS | 
 | 6923 |   test -z "$as_dir" && as_dir=. | 
 | 6924 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6925 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6926 |     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" | 
 | 6927 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6928 |     break 2 | 
 | 6929 |   fi | 
 | 6930 | done | 
 | 6931 | done | 
 | 6932 | IFS=$as_save_IFS | 
 | 6933 |  | 
 | 6934 |   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" | 
 | 6935 |   ;; | 
 | 6936 | esac | 
 | 6937 | fi | 
 | 6938 | FIND=$ac_cv_path_FIND | 
 | 6939 | if test -n "$FIND"; then | 
 | 6940 |   { echo "$as_me:$LINENO: result: $FIND" >&5 | 
 | 6941 | echo "${ECHO_T}$FIND" >&6; } | 
 | 6942 | else | 
 | 6943 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6944 | echo "${ECHO_T}no" >&6; } | 
 | 6945 | fi | 
 | 6946 |  | 
 | 6947 |  | 
 | 6948 | # Extract the first word of "grep", so it can be a program name with args. | 
 | 6949 | set dummy grep; ac_word=$2 | 
 | 6950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6952 | if test "${ac_cv_path_GREP+set}" = set; then | 
 | 6953 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6954 | else | 
 | 6955 |   case $GREP in | 
 | 6956 |   [\\/]* | ?:[\\/]*) | 
 | 6957 |   ac_cv_path_GREP="$GREP" # Let the user override the test with a path. | 
 | 6958 |   ;; | 
 | 6959 |   *) | 
 | 6960 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6961 | for as_dir in $PATH | 
 | 6962 | do | 
 | 6963 |   IFS=$as_save_IFS | 
 | 6964 |   test -z "$as_dir" && as_dir=. | 
 | 6965 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6966 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6967 |     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" | 
 | 6968 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6969 |     break 2 | 
 | 6970 |   fi | 
 | 6971 | done | 
 | 6972 | done | 
 | 6973 | IFS=$as_save_IFS | 
 | 6974 |  | 
 | 6975 |   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" | 
 | 6976 |   ;; | 
 | 6977 | esac | 
 | 6978 | fi | 
 | 6979 | GREP=$ac_cv_path_GREP | 
 | 6980 | if test -n "$GREP"; then | 
 | 6981 |   { echo "$as_me:$LINENO: result: $GREP" >&5 | 
 | 6982 | echo "${ECHO_T}$GREP" >&6; } | 
 | 6983 | else | 
 | 6984 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 6985 | echo "${ECHO_T}no" >&6; } | 
 | 6986 | fi | 
 | 6987 |  | 
 | 6988 |  | 
 | 6989 | # Extract the first word of "mkdir", so it can be a program name with args. | 
 | 6990 | set dummy mkdir; ac_word=$2 | 
 | 6991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 6992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 6993 | if test "${ac_cv_path_MKDIR+set}" = set; then | 
 | 6994 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 6995 | else | 
 | 6996 |   case $MKDIR in | 
 | 6997 |   [\\/]* | ?:[\\/]*) | 
 | 6998 |   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | 
 | 6999 |   ;; | 
 | 7000 |   *) | 
 | 7001 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7002 | for as_dir in $PATH | 
 | 7003 | do | 
 | 7004 |   IFS=$as_save_IFS | 
 | 7005 |   test -z "$as_dir" && as_dir=. | 
 | 7006 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7007 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7008 |     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | 
 | 7009 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7010 |     break 2 | 
 | 7011 |   fi | 
 | 7012 | done | 
 | 7013 | done | 
 | 7014 | IFS=$as_save_IFS | 
 | 7015 |  | 
 | 7016 |   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" | 
 | 7017 |   ;; | 
 | 7018 | esac | 
 | 7019 | fi | 
 | 7020 | MKDIR=$ac_cv_path_MKDIR | 
 | 7021 | if test -n "$MKDIR"; then | 
 | 7022 |   { echo "$as_me:$LINENO: result: $MKDIR" >&5 | 
 | 7023 | echo "${ECHO_T}$MKDIR" >&6; } | 
 | 7024 | else | 
 | 7025 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7026 | echo "${ECHO_T}no" >&6; } | 
 | 7027 | fi | 
 | 7028 |  | 
 | 7029 |  | 
 | 7030 | # Extract the first word of "mv", so it can be a program name with args. | 
 | 7031 | set dummy mv; ac_word=$2 | 
 | 7032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7034 | if test "${ac_cv_path_MV+set}" = set; then | 
 | 7035 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7036 | else | 
 | 7037 |   case $MV in | 
 | 7038 |   [\\/]* | ?:[\\/]*) | 
 | 7039 |   ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
 | 7040 |   ;; | 
 | 7041 |   *) | 
 | 7042 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7043 | for as_dir in $PATH | 
 | 7044 | do | 
 | 7045 |   IFS=$as_save_IFS | 
 | 7046 |   test -z "$as_dir" && as_dir=. | 
 | 7047 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7048 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7049 |     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | 
 | 7050 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7051 |     break 2 | 
 | 7052 |   fi | 
 | 7053 | done | 
 | 7054 | done | 
 | 7055 | IFS=$as_save_IFS | 
 | 7056 |  | 
 | 7057 |   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
 | 7058 |   ;; | 
 | 7059 | esac | 
 | 7060 | fi | 
 | 7061 | MV=$ac_cv_path_MV | 
 | 7062 | if test -n "$MV"; then | 
 | 7063 |   { echo "$as_me:$LINENO: result: $MV" >&5 | 
 | 7064 | echo "${ECHO_T}$MV" >&6; } | 
 | 7065 | else | 
 | 7066 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7067 | echo "${ECHO_T}no" >&6; } | 
 | 7068 | fi | 
 | 7069 |  | 
 | 7070 |  | 
 | 7071 | if test -n "$ac_tool_prefix"; then | 
 | 7072 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 7073 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 7074 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7075 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7076 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 7077 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7078 | else | 
 | 7079 |   if test -n "$RANLIB"; then | 
 | 7080 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 7081 | else | 
 | 7082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7083 | for as_dir in $PATH | 
 | 7084 | do | 
 | 7085 |   IFS=$as_save_IFS | 
 | 7086 |   test -z "$as_dir" && as_dir=. | 
 | 7087 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7088 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7089 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 7090 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7091 |     break 2 | 
 | 7092 |   fi | 
 | 7093 | done | 
 | 7094 | done | 
 | 7095 | IFS=$as_save_IFS | 
 | 7096 |  | 
 | 7097 | fi | 
 | 7098 | fi | 
 | 7099 | RANLIB=$ac_cv_prog_RANLIB | 
 | 7100 | if test -n "$RANLIB"; then | 
 | 7101 |   { echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 7102 | echo "${ECHO_T}$RANLIB" >&6; } | 
 | 7103 | else | 
 | 7104 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7105 | echo "${ECHO_T}no" >&6; } | 
 | 7106 | fi | 
 | 7107 |  | 
 | 7108 |  | 
 | 7109 | fi | 
 | 7110 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 7111 |   ac_ct_RANLIB=$RANLIB | 
 | 7112 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 7113 | set dummy ranlib; ac_word=$2 | 
 | 7114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7116 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 7117 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7118 | else | 
 | 7119 |   if test -n "$ac_ct_RANLIB"; then | 
 | 7120 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 7121 | else | 
 | 7122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7123 | for as_dir in $PATH | 
 | 7124 | do | 
 | 7125 |   IFS=$as_save_IFS | 
 | 7126 |   test -z "$as_dir" && as_dir=. | 
 | 7127 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7128 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7129 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 7130 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7131 |     break 2 | 
 | 7132 |   fi | 
 | 7133 | done | 
 | 7134 | done | 
 | 7135 | IFS=$as_save_IFS | 
 | 7136 |  | 
 | 7137 | fi | 
 | 7138 | fi | 
 | 7139 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 7140 | if test -n "$ac_ct_RANLIB"; then | 
 | 7141 |   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 7142 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | 
 | 7143 | else | 
 | 7144 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7145 | echo "${ECHO_T}no" >&6; } | 
 | 7146 | fi | 
 | 7147 |  | 
 | 7148 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 7149 |     RANLIB=":" | 
 | 7150 |   else | 
 | 7151 |     case $cross_compiling:$ac_tool_warned in | 
 | 7152 | yes:) | 
 | 7153 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 7154 | whose name does not start with the host triplet.  If you think this | 
 | 7155 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 7156 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 7157 | whose name does not start with the host triplet.  If you think this | 
 | 7158 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 7159 | ac_tool_warned=yes ;; | 
 | 7160 | esac | 
 | 7161 |     RANLIB=$ac_ct_RANLIB | 
 | 7162 |   fi | 
 | 7163 | else | 
 | 7164 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 7165 | fi | 
 | 7166 |  | 
 | 7167 | # Extract the first word of "rm", so it can be a program name with args. | 
 | 7168 | set dummy rm; ac_word=$2 | 
 | 7169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7171 | if test "${ac_cv_path_RM+set}" = set; then | 
 | 7172 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7173 | else | 
 | 7174 |   case $RM in | 
 | 7175 |   [\\/]* | ?:[\\/]*) | 
 | 7176 |   ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
 | 7177 |   ;; | 
 | 7178 |   *) | 
 | 7179 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7180 | for as_dir in $PATH | 
 | 7181 | do | 
 | 7182 |   IFS=$as_save_IFS | 
 | 7183 |   test -z "$as_dir" && as_dir=. | 
 | 7184 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7185 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7186 |     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | 
 | 7187 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7188 |     break 2 | 
 | 7189 |   fi | 
 | 7190 | done | 
 | 7191 | done | 
 | 7192 | IFS=$as_save_IFS | 
 | 7193 |  | 
 | 7194 |   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
 | 7195 |   ;; | 
 | 7196 | esac | 
 | 7197 | fi | 
 | 7198 | RM=$ac_cv_path_RM | 
 | 7199 | if test -n "$RM"; then | 
 | 7200 |   { echo "$as_me:$LINENO: result: $RM" >&5 | 
 | 7201 | echo "${ECHO_T}$RM" >&6; } | 
 | 7202 | else | 
 | 7203 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7204 | echo "${ECHO_T}no" >&6; } | 
 | 7205 | fi | 
 | 7206 |  | 
 | 7207 |  | 
 | 7208 | # Extract the first word of "sed", so it can be a program name with args. | 
 | 7209 | set dummy sed; ac_word=$2 | 
 | 7210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7212 | if test "${ac_cv_path_SED+set}" = set; then | 
 | 7213 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7214 | else | 
 | 7215 |   case $SED in | 
 | 7216 |   [\\/]* | ?:[\\/]*) | 
 | 7217 |   ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
 | 7218 |   ;; | 
 | 7219 |   *) | 
 | 7220 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7221 | for as_dir in $PATH | 
 | 7222 | do | 
 | 7223 |   IFS=$as_save_IFS | 
 | 7224 |   test -z "$as_dir" && as_dir=. | 
 | 7225 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7226 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7227 |     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | 
 | 7228 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7229 |     break 2 | 
 | 7230 |   fi | 
 | 7231 | done | 
 | 7232 | done | 
 | 7233 | IFS=$as_save_IFS | 
 | 7234 |  | 
 | 7235 |   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
 | 7236 |   ;; | 
 | 7237 | esac | 
 | 7238 | fi | 
 | 7239 | SED=$ac_cv_path_SED | 
 | 7240 | if test -n "$SED"; then | 
 | 7241 |   { echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 7242 | echo "${ECHO_T}$SED" >&6; } | 
 | 7243 | else | 
 | 7244 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7245 | echo "${ECHO_T}no" >&6; } | 
 | 7246 | fi | 
 | 7247 |  | 
 | 7248 |  | 
 | 7249 | # Extract the first word of "tar", so it can be a program name with args. | 
 | 7250 | set dummy tar; ac_word=$2 | 
 | 7251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7253 | if test "${ac_cv_path_TAR+set}" = set; then | 
 | 7254 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7255 | else | 
 | 7256 |   case $TAR in | 
 | 7257 |   [\\/]* | ?:[\\/]*) | 
 | 7258 |   ac_cv_path_TAR="$TAR" # Let the user override the test with a path. | 
 | 7259 |   ;; | 
 | 7260 |   *) | 
 | 7261 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7262 | for as_dir in $PATH | 
 | 7263 | do | 
 | 7264 |   IFS=$as_save_IFS | 
 | 7265 |   test -z "$as_dir" && as_dir=. | 
 | 7266 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7267 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7268 |     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" | 
 | 7269 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7270 |     break 2 | 
 | 7271 |   fi | 
 | 7272 | done | 
 | 7273 | done | 
 | 7274 | IFS=$as_save_IFS | 
 | 7275 |  | 
 | 7276 |   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" | 
 | 7277 |   ;; | 
 | 7278 | esac | 
 | 7279 | fi | 
 | 7280 | TAR=$ac_cv_path_TAR | 
 | 7281 | if test -n "$TAR"; then | 
 | 7282 |   { echo "$as_me:$LINENO: result: $TAR" >&5 | 
 | 7283 | echo "${ECHO_T}$TAR" >&6; } | 
 | 7284 | else | 
 | 7285 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7286 | echo "${ECHO_T}no" >&6; } | 
 | 7287 | fi | 
 | 7288 |  | 
 | 7289 |  | 
 | 7290 | # Extract the first word of "pwd", so it can be a program name with args. | 
 | 7291 | set dummy pwd; ac_word=$2 | 
 | 7292 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7294 | if test "${ac_cv_path_BINPWD+set}" = set; then | 
 | 7295 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7296 | else | 
 | 7297 |   case $BINPWD in | 
 | 7298 |   [\\/]* | ?:[\\/]*) | 
 | 7299 |   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. | 
 | 7300 |   ;; | 
 | 7301 |   *) | 
 | 7302 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7303 | for as_dir in $PATH | 
 | 7304 | do | 
 | 7305 |   IFS=$as_save_IFS | 
 | 7306 |   test -z "$as_dir" && as_dir=. | 
 | 7307 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7308 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7309 |     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" | 
 | 7310 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7311 |     break 2 | 
 | 7312 |   fi | 
 | 7313 | done | 
 | 7314 | done | 
 | 7315 | IFS=$as_save_IFS | 
 | 7316 |  | 
 | 7317 |   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" | 
 | 7318 |   ;; | 
 | 7319 | esac | 
 | 7320 | fi | 
 | 7321 | BINPWD=$ac_cv_path_BINPWD | 
 | 7322 | if test -n "$BINPWD"; then | 
 | 7323 |   { echo "$as_me:$LINENO: result: $BINPWD" >&5 | 
 | 7324 | echo "${ECHO_T}$BINPWD" >&6; } | 
 | 7325 | else | 
 | 7326 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7327 | echo "${ECHO_T}no" >&6; } | 
 | 7328 | fi | 
 | 7329 |  | 
 | 7330 |  | 
 | 7331 |  | 
 | 7332 | # Extract the first word of "Graphviz", so it can be a program name with args. | 
 | 7333 | set dummy Graphviz; ac_word=$2 | 
 | 7334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7336 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then | 
 | 7337 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7338 | else | 
 | 7339 |   case $GRAPHVIZ in | 
 | 7340 |   [\\/]* | ?:[\\/]*) | 
 | 7341 |   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. | 
 | 7342 |   ;; | 
 | 7343 |   *) | 
 | 7344 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7345 | for as_dir in $PATH | 
 | 7346 | do | 
 | 7347 |   IFS=$as_save_IFS | 
 | 7348 |   test -z "$as_dir" && as_dir=. | 
 | 7349 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7350 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7351 |     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" | 
 | 7352 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7353 |     break 2 | 
 | 7354 |   fi | 
 | 7355 | done | 
 | 7356 | done | 
 | 7357 | IFS=$as_save_IFS | 
 | 7358 |  | 
 | 7359 |   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" | 
 | 7360 |   ;; | 
 | 7361 | esac | 
 | 7362 | fi | 
 | 7363 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ | 
 | 7364 | if test -n "$GRAPHVIZ"; then | 
 | 7365 |   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 | 
 | 7366 | echo "${ECHO_T}$GRAPHVIZ" >&6; } | 
 | 7367 | else | 
 | 7368 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7369 | echo "${ECHO_T}no" >&6; } | 
 | 7370 | fi | 
 | 7371 |  | 
 | 7372 |  | 
 | 7373 | if test "$GRAPHVIZ" != "echo Graphviz" ; then | 
 | 7374 |  | 
 | 7375 | cat >>confdefs.h <<\_ACEOF | 
 | 7376 | #define HAVE_GRAPHVIZ 1 | 
 | 7377 | _ACEOF | 
 | 7378 |  | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7379 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7380 |     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7381 |   fi | 
 | 7382 |  | 
 | 7383 | cat >>confdefs.h <<_ACEOF | 
 | 7384 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" | 
 | 7385 | _ACEOF | 
 | 7386 |  | 
 | 7387 | fi | 
 | 7388 | # Extract the first word of "dot", so it can be a program name with args. | 
 | 7389 | set dummy dot; ac_word=$2 | 
 | 7390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7392 | if test "${ac_cv_path_DOT+set}" = set; then | 
 | 7393 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7394 | else | 
 | 7395 |   case $DOT in | 
 | 7396 |   [\\/]* | ?:[\\/]*) | 
 | 7397 |   ac_cv_path_DOT="$DOT" # Let the user override the test with a path. | 
 | 7398 |   ;; | 
 | 7399 |   *) | 
 | 7400 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7401 | for as_dir in $PATH | 
 | 7402 | do | 
 | 7403 |   IFS=$as_save_IFS | 
 | 7404 |   test -z "$as_dir" && as_dir=. | 
 | 7405 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7406 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7407 |     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" | 
 | 7408 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7409 |     break 2 | 
 | 7410 |   fi | 
 | 7411 | done | 
 | 7412 | done | 
 | 7413 | IFS=$as_save_IFS | 
 | 7414 |  | 
 | 7415 |   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" | 
 | 7416 |   ;; | 
 | 7417 | esac | 
 | 7418 | fi | 
 | 7419 | DOT=$ac_cv_path_DOT | 
 | 7420 | if test -n "$DOT"; then | 
 | 7421 |   { echo "$as_me:$LINENO: result: $DOT" >&5 | 
 | 7422 | echo "${ECHO_T}$DOT" >&6; } | 
 | 7423 | else | 
 | 7424 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7425 | echo "${ECHO_T}no" >&6; } | 
 | 7426 | fi | 
 | 7427 |  | 
 | 7428 |  | 
 | 7429 | if test "$DOT" != "echo dot" ; then | 
 | 7430 |  | 
 | 7431 | cat >>confdefs.h <<\_ACEOF | 
 | 7432 | #define HAVE_DOT 1 | 
 | 7433 | _ACEOF | 
 | 7434 |  | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7435 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7436 |     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7437 |   fi | 
 | 7438 |  | 
 | 7439 | cat >>confdefs.h <<_ACEOF | 
 | 7440 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" | 
 | 7441 | _ACEOF | 
 | 7442 |  | 
 | 7443 | fi | 
| David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7444 | # Extract the first word of "fdp", so it can be a program name with args. | 
 | 7445 | set dummy fdp; ac_word=$2 | 
 | 7446 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7448 | if test "${ac_cv_path_FDP+set}" = set; then | 
 | 7449 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7450 | else | 
 | 7451 |   case $FDP in | 
 | 7452 |   [\\/]* | ?:[\\/]*) | 
 | 7453 |   ac_cv_path_FDP="$FDP" # Let the user override the test with a path. | 
 | 7454 |   ;; | 
 | 7455 |   *) | 
 | 7456 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7457 | for as_dir in $PATH | 
 | 7458 | do | 
 | 7459 |   IFS=$as_save_IFS | 
 | 7460 |   test -z "$as_dir" && as_dir=. | 
 | 7461 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7462 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 7463 |     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" | 
 | 7464 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7465 |     break 2 | 
 | 7466 |   fi | 
 | 7467 | done | 
 | 7468 | done | 
 | 7469 | IFS=$as_save_IFS | 
 | 7470 |  | 
 | 7471 |   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" | 
 | 7472 |   ;; | 
 | 7473 | esac | 
 | 7474 | fi | 
 | 7475 | FDP=$ac_cv_path_FDP | 
 | 7476 | if test -n "$FDP"; then | 
 | 7477 |   { echo "$as_me:$LINENO: result: $FDP" >&5 | 
 | 7478 | echo "${ECHO_T}$FDP" >&6; } | 
 | 7479 | else | 
 | 7480 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7481 | echo "${ECHO_T}no" >&6; } | 
 | 7482 | fi | 
 | 7483 |  | 
 | 7484 |  | 
 | 7485 | if test "$FDP" != "echo fdp" ; then | 
 | 7486 |  | 
 | 7487 | cat >>confdefs.h <<\_ACEOF | 
 | 7488 | #define HAVE_FDP 1 | 
 | 7489 | _ACEOF | 
 | 7490 |  | 
 | 7491 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
 | 7492 |     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7493 |   fi | 
 | 7494 |  | 
 | 7495 | cat >>confdefs.h <<_ACEOF | 
 | 7496 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" | 
 | 7497 | _ACEOF | 
 | 7498 |  | 
 | 7499 | fi | 
 | 7500 | # Extract the first word of "neato", so it can be a program name with args. | 
 | 7501 | set dummy neato; ac_word=$2 | 
 | 7502 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7504 | if test "${ac_cv_path_NEATO+set}" = set; then | 
 | 7505 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7506 | else | 
 | 7507 |   case $NEATO in | 
 | 7508 |   [\\/]* | ?:[\\/]*) | 
 | 7509 |   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. | 
 | 7510 |   ;; | 
 | 7511 |   *) | 
 | 7512 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7513 | for as_dir in $PATH | 
 | 7514 | do | 
 | 7515 |   IFS=$as_save_IFS | 
 | 7516 |   test -z "$as_dir" && as_dir=. | 
 | 7517 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7518 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 7519 |     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" | 
 | 7520 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7521 |     break 2 | 
 | 7522 |   fi | 
 | 7523 | done | 
 | 7524 | done | 
 | 7525 | IFS=$as_save_IFS | 
 | 7526 |  | 
 | 7527 |   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" | 
 | 7528 |   ;; | 
 | 7529 | esac | 
 | 7530 | fi | 
 | 7531 | NEATO=$ac_cv_path_NEATO | 
 | 7532 | if test -n "$NEATO"; then | 
 | 7533 |   { echo "$as_me:$LINENO: result: $NEATO" >&5 | 
 | 7534 | echo "${ECHO_T}$NEATO" >&6; } | 
 | 7535 | else | 
 | 7536 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7537 | echo "${ECHO_T}no" >&6; } | 
 | 7538 | fi | 
 | 7539 |  | 
 | 7540 |  | 
 | 7541 | if test "$NEATO" != "echo neato" ; then | 
 | 7542 |  | 
 | 7543 | cat >>confdefs.h <<\_ACEOF | 
 | 7544 | #define HAVE_NEATO 1 | 
 | 7545 | _ACEOF | 
 | 7546 |  | 
 | 7547 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
 | 7548 |     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7549 |   fi | 
 | 7550 |  | 
 | 7551 | cat >>confdefs.h <<_ACEOF | 
 | 7552 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" | 
 | 7553 | _ACEOF | 
 | 7554 |  | 
 | 7555 | fi | 
 | 7556 | # Extract the first word of "twopi", so it can be a program name with args. | 
 | 7557 | set dummy twopi; ac_word=$2 | 
 | 7558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7560 | if test "${ac_cv_path_TWOPI+set}" = set; then | 
 | 7561 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7562 | else | 
 | 7563 |   case $TWOPI in | 
 | 7564 |   [\\/]* | ?:[\\/]*) | 
 | 7565 |   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. | 
 | 7566 |   ;; | 
 | 7567 |   *) | 
 | 7568 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7569 | for as_dir in $PATH | 
 | 7570 | do | 
 | 7571 |   IFS=$as_save_IFS | 
 | 7572 |   test -z "$as_dir" && as_dir=. | 
 | 7573 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7574 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 7575 |     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" | 
 | 7576 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7577 |     break 2 | 
 | 7578 |   fi | 
 | 7579 | done | 
 | 7580 | done | 
 | 7581 | IFS=$as_save_IFS | 
 | 7582 |  | 
 | 7583 |   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" | 
 | 7584 |   ;; | 
 | 7585 | esac | 
 | 7586 | fi | 
 | 7587 | TWOPI=$ac_cv_path_TWOPI | 
 | 7588 | if test -n "$TWOPI"; then | 
 | 7589 |   { echo "$as_me:$LINENO: result: $TWOPI" >&5 | 
 | 7590 | echo "${ECHO_T}$TWOPI" >&6; } | 
 | 7591 | else | 
 | 7592 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7593 | echo "${ECHO_T}no" >&6; } | 
 | 7594 | fi | 
 | 7595 |  | 
 | 7596 |  | 
 | 7597 | if test "$TWOPI" != "echo twopi" ; then | 
 | 7598 |  | 
 | 7599 | cat >>confdefs.h <<\_ACEOF | 
 | 7600 | #define HAVE_TWOPI 1 | 
 | 7601 | _ACEOF | 
 | 7602 |  | 
 | 7603 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
 | 7604 |     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7605 |   fi | 
 | 7606 |  | 
 | 7607 | cat >>confdefs.h <<_ACEOF | 
 | 7608 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" | 
 | 7609 | _ACEOF | 
 | 7610 |  | 
 | 7611 | fi | 
 | 7612 | # Extract the first word of "circo", so it can be a program name with args. | 
 | 7613 | set dummy circo; ac_word=$2 | 
 | 7614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7616 | if test "${ac_cv_path_CIRCO+set}" = set; then | 
 | 7617 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7618 | else | 
 | 7619 |   case $CIRCO in | 
 | 7620 |   [\\/]* | ?:[\\/]*) | 
 | 7621 |   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. | 
 | 7622 |   ;; | 
 | 7623 |   *) | 
 | 7624 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7625 | for as_dir in $PATH | 
 | 7626 | do | 
 | 7627 |   IFS=$as_save_IFS | 
 | 7628 |   test -z "$as_dir" && as_dir=. | 
 | 7629 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7630 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 7631 |     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" | 
 | 7632 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7633 |     break 2 | 
 | 7634 |   fi | 
 | 7635 | done | 
 | 7636 | done | 
 | 7637 | IFS=$as_save_IFS | 
 | 7638 |  | 
 | 7639 |   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" | 
 | 7640 |   ;; | 
 | 7641 | esac | 
 | 7642 | fi | 
 | 7643 | CIRCO=$ac_cv_path_CIRCO | 
 | 7644 | if test -n "$CIRCO"; then | 
 | 7645 |   { echo "$as_me:$LINENO: result: $CIRCO" >&5 | 
 | 7646 | echo "${ECHO_T}$CIRCO" >&6; } | 
 | 7647 | else | 
 | 7648 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7649 | echo "${ECHO_T}no" >&6; } | 
 | 7650 | fi | 
 | 7651 |  | 
 | 7652 |  | 
 | 7653 | if test "$CIRCO" != "echo circo" ; then | 
 | 7654 |  | 
 | 7655 | cat >>confdefs.h <<\_ACEOF | 
 | 7656 | #define HAVE_CIRCO 1 | 
 | 7657 | _ACEOF | 
 | 7658 |  | 
 | 7659 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
 | 7660 |     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7661 |   fi | 
 | 7662 |  | 
 | 7663 | cat >>confdefs.h <<_ACEOF | 
 | 7664 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" | 
 | 7665 | _ACEOF | 
 | 7666 |  | 
 | 7667 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7668 | for ac_prog in gv gsview32 | 
 | 7669 | do | 
 | 7670 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 7671 | set dummy $ac_prog; ac_word=$2 | 
 | 7672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7674 | if test "${ac_cv_path_GV+set}" = set; then | 
 | 7675 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7676 | else | 
 | 7677 |   case $GV in | 
 | 7678 |   [\\/]* | ?:[\\/]*) | 
 | 7679 |   ac_cv_path_GV="$GV" # Let the user override the test with a path. | 
 | 7680 |   ;; | 
 | 7681 |   *) | 
 | 7682 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7683 | for as_dir in $PATH | 
 | 7684 | do | 
 | 7685 |   IFS=$as_save_IFS | 
 | 7686 |   test -z "$as_dir" && as_dir=. | 
 | 7687 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7688 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7689 |     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" | 
 | 7690 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7691 |     break 2 | 
 | 7692 |   fi | 
 | 7693 | done | 
 | 7694 | done | 
 | 7695 | IFS=$as_save_IFS | 
 | 7696 |  | 
 | 7697 |   ;; | 
 | 7698 | esac | 
 | 7699 | fi | 
 | 7700 | GV=$ac_cv_path_GV | 
 | 7701 | if test -n "$GV"; then | 
 | 7702 |   { echo "$as_me:$LINENO: result: $GV" >&5 | 
 | 7703 | echo "${ECHO_T}$GV" >&6; } | 
 | 7704 | else | 
 | 7705 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7706 | echo "${ECHO_T}no" >&6; } | 
 | 7707 | fi | 
 | 7708 |  | 
 | 7709 |  | 
 | 7710 |   test -n "$GV" && break | 
 | 7711 | done | 
 | 7712 | test -n "$GV" || GV="echo gv" | 
 | 7713 |  | 
 | 7714 | if test "$GV" != "echo gv" ; then | 
 | 7715 |  | 
 | 7716 | cat >>confdefs.h <<\_ACEOF | 
 | 7717 | #define HAVE_GV 1 | 
 | 7718 | _ACEOF | 
 | 7719 |  | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7720 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7721 |     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7722 |   fi | 
 | 7723 |  | 
 | 7724 | cat >>confdefs.h <<_ACEOF | 
 | 7725 | #define LLVM_PATH_GV "$GV${EXEEXT}" | 
 | 7726 | _ACEOF | 
 | 7727 |  | 
 | 7728 | fi | 
 | 7729 | # Extract the first word of "dotty", so it can be a program name with args. | 
 | 7730 | set dummy dotty; ac_word=$2 | 
 | 7731 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7733 | if test "${ac_cv_path_DOTTY+set}" = set; then | 
 | 7734 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7735 | else | 
 | 7736 |   case $DOTTY in | 
 | 7737 |   [\\/]* | ?:[\\/]*) | 
 | 7738 |   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. | 
 | 7739 |   ;; | 
 | 7740 |   *) | 
 | 7741 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7742 | for as_dir in $PATH | 
 | 7743 | do | 
 | 7744 |   IFS=$as_save_IFS | 
 | 7745 |   test -z "$as_dir" && as_dir=. | 
 | 7746 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7747 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7748 |     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" | 
 | 7749 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7750 |     break 2 | 
 | 7751 |   fi | 
 | 7752 | done | 
 | 7753 | done | 
 | 7754 | IFS=$as_save_IFS | 
 | 7755 |  | 
 | 7756 |   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" | 
 | 7757 |   ;; | 
 | 7758 | esac | 
 | 7759 | fi | 
 | 7760 | DOTTY=$ac_cv_path_DOTTY | 
 | 7761 | if test -n "$DOTTY"; then | 
 | 7762 |   { echo "$as_me:$LINENO: result: $DOTTY" >&5 | 
 | 7763 | echo "${ECHO_T}$DOTTY" >&6; } | 
 | 7764 | else | 
 | 7765 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7766 | echo "${ECHO_T}no" >&6; } | 
 | 7767 | fi | 
 | 7768 |  | 
 | 7769 |  | 
 | 7770 | if test "$DOTTY" != "echo dotty" ; then | 
 | 7771 |  | 
 | 7772 | cat >>confdefs.h <<\_ACEOF | 
 | 7773 | #define HAVE_DOTTY 1 | 
 | 7774 | _ACEOF | 
 | 7775 |  | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7776 |     if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7777 |     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` | 
 | 7778 |   fi | 
 | 7779 |  | 
 | 7780 | cat >>confdefs.h <<_ACEOF | 
 | 7781 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" | 
 | 7782 | _ACEOF | 
 | 7783 |  | 
 | 7784 | fi | 
 | 7785 |  | 
 | 7786 |  | 
 | 7787 | # Extract the first word of "perl", so it can be a program name with args. | 
 | 7788 | set dummy perl; ac_word=$2 | 
 | 7789 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7791 | if test "${ac_cv_path_PERL+set}" = set; then | 
 | 7792 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7793 | else | 
 | 7794 |   case $PERL in | 
 | 7795 |   [\\/]* | ?:[\\/]*) | 
 | 7796 |   ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
 | 7797 |   ;; | 
 | 7798 |   *) | 
 | 7799 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7800 | for as_dir in $PATH | 
 | 7801 | do | 
 | 7802 |   IFS=$as_save_IFS | 
 | 7803 |   test -z "$as_dir" && as_dir=. | 
 | 7804 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7805 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7806 |     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
 | 7807 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7808 |     break 2 | 
 | 7809 |   fi | 
 | 7810 | done | 
 | 7811 | done | 
 | 7812 | IFS=$as_save_IFS | 
 | 7813 |  | 
 | 7814 |   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" | 
 | 7815 |   ;; | 
 | 7816 | esac | 
 | 7817 | fi | 
 | 7818 | PERL=$ac_cv_path_PERL | 
 | 7819 | if test -n "$PERL"; then | 
 | 7820 |   { echo "$as_me:$LINENO: result: $PERL" >&5 | 
 | 7821 | echo "${ECHO_T}$PERL" >&6; } | 
 | 7822 | else | 
 | 7823 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7824 | echo "${ECHO_T}no" >&6; } | 
 | 7825 | fi | 
 | 7826 |  | 
 | 7827 |  | 
 | 7828 | if test "$PERL" != "none"; then | 
 | 7829 |   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 | 
 | 7830 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } | 
 | 7831 |   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then | 
 | 7832 |     { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 7833 | echo "${ECHO_T}yes" >&6; } | 
 | 7834 |   else | 
 | 7835 |     PERL=none | 
 | 7836 |     { echo "$as_me:$LINENO: result: not found" >&5 | 
 | 7837 | echo "${ECHO_T}not found" >&6; } | 
 | 7838 |   fi | 
 | 7839 | fi | 
 | 7840 |  | 
 | 7841 |  | 
 | 7842 | if test x"$PERL" = xnone; then | 
 | 7843 |    HAVE_PERL=0 | 
 | 7844 |  | 
| Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7845 |    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 | 
 | 7846 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} | 
 | 7847 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7848 | else | 
 | 7849 |    HAVE_PERL=1 | 
 | 7850 |  | 
 | 7851 | fi | 
 | 7852 |  | 
 | 7853 | # Find a good install program.  We prefer a C program (faster), | 
 | 7854 | # so one script is as good as another.  But avoid the broken or | 
 | 7855 | # incompatible versions: | 
 | 7856 | # SysV /etc/install, /usr/sbin/install | 
 | 7857 | # SunOS /usr/etc/install | 
 | 7858 | # IRIX /sbin/install | 
 | 7859 | # AIX /bin/install | 
 | 7860 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 7861 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 7862 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 7863 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 7864 | # OS/2's system install, which has a completely different semantic | 
 | 7865 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 7866 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
 | 7867 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | 
 | 7868 | if test -z "$INSTALL"; then | 
 | 7869 | if test "${ac_cv_path_install+set}" = set; then | 
 | 7870 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7871 | else | 
 | 7872 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7873 | for as_dir in $PATH | 
 | 7874 | do | 
 | 7875 |   IFS=$as_save_IFS | 
 | 7876 |   test -z "$as_dir" && as_dir=. | 
 | 7877 |   # Account for people who put trailing slashes in PATH elements. | 
 | 7878 | case $as_dir/ in | 
 | 7879 |   ./ | .// | /cC/* | \ | 
 | 7880 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
 | 7881 |   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 
 | 7882 |   /usr/ucb/* ) ;; | 
 | 7883 |   *) | 
 | 7884 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 7885 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 7886 |     # by default. | 
 | 7887 |     for ac_prog in ginstall scoinst install; do | 
 | 7888 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7889 | 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7890 | 	  if test $ac_prog = install && | 
 | 7891 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 7892 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 7893 | 	    : | 
 | 7894 | 	  elif test $ac_prog = install && | 
 | 7895 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 7896 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 7897 | 	    : | 
 | 7898 | 	  else | 
 | 7899 | 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 7900 | 	    break 3 | 
 | 7901 | 	  fi | 
 | 7902 | 	fi | 
 | 7903 |       done | 
 | 7904 |     done | 
 | 7905 |     ;; | 
 | 7906 | esac | 
 | 7907 | done | 
 | 7908 | IFS=$as_save_IFS | 
 | 7909 |  | 
 | 7910 |  | 
 | 7911 | fi | 
 | 7912 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 7913 |     INSTALL=$ac_cv_path_install | 
 | 7914 |   else | 
 | 7915 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 7916 |     # value for INSTALL within a source directory, because that will | 
 | 7917 |     # break other packages using the cache if that directory is | 
 | 7918 |     # removed, or if the value is a relative name. | 
 | 7919 |     INSTALL=$ac_install_sh | 
 | 7920 |   fi | 
 | 7921 | fi | 
 | 7922 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
 | 7923 | echo "${ECHO_T}$INSTALL" >&6; } | 
 | 7924 |  | 
 | 7925 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 7926 | # It thinks the first close brace ends the variable substitution. | 
 | 7927 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 7928 |  | 
 | 7929 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 7930 |  | 
 | 7931 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 7932 |  | 
 | 7933 |  | 
 | 7934 | # Extract the first word of "bzip2", so it can be a program name with args. | 
 | 7935 | set dummy bzip2; ac_word=$2 | 
 | 7936 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7938 | if test "${ac_cv_path_BZIP2+set}" = set; then | 
 | 7939 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7940 | else | 
 | 7941 |   case $BZIP2 in | 
 | 7942 |   [\\/]* | ?:[\\/]*) | 
 | 7943 |   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. | 
 | 7944 |   ;; | 
 | 7945 |   *) | 
 | 7946 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7947 | for as_dir in $PATH | 
 | 7948 | do | 
 | 7949 |   IFS=$as_save_IFS | 
 | 7950 |   test -z "$as_dir" && as_dir=. | 
 | 7951 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7952 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7953 |     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" | 
 | 7954 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7955 |     break 2 | 
 | 7956 |   fi | 
 | 7957 | done | 
 | 7958 | done | 
 | 7959 | IFS=$as_save_IFS | 
 | 7960 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7961 |   ;; | 
 | 7962 | esac | 
 | 7963 | fi | 
 | 7964 | BZIP2=$ac_cv_path_BZIP2 | 
 | 7965 | if test -n "$BZIP2"; then | 
 | 7966 |   { echo "$as_me:$LINENO: result: $BZIP2" >&5 | 
 | 7967 | echo "${ECHO_T}$BZIP2" >&6; } | 
 | 7968 | else | 
 | 7969 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 7970 | echo "${ECHO_T}no" >&6; } | 
 | 7971 | fi | 
 | 7972 |  | 
 | 7973 |  | 
 | 7974 | # Extract the first word of "doxygen", so it can be a program name with args. | 
 | 7975 | set dummy doxygen; ac_word=$2 | 
 | 7976 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 7977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 7978 | if test "${ac_cv_path_DOXYGEN+set}" = set; then | 
 | 7979 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 7980 | else | 
 | 7981 |   case $DOXYGEN in | 
 | 7982 |   [\\/]* | ?:[\\/]*) | 
 | 7983 |   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. | 
 | 7984 |   ;; | 
 | 7985 |   *) | 
 | 7986 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7987 | for as_dir in $PATH | 
 | 7988 | do | 
 | 7989 |   IFS=$as_save_IFS | 
 | 7990 |   test -z "$as_dir" && as_dir=. | 
 | 7991 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7992 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7993 |     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" | 
 | 7994 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7995 |     break 2 | 
 | 7996 |   fi | 
 | 7997 | done | 
 | 7998 | done | 
 | 7999 | IFS=$as_save_IFS | 
 | 8000 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8001 |   ;; | 
 | 8002 | esac | 
 | 8003 | fi | 
 | 8004 | DOXYGEN=$ac_cv_path_DOXYGEN | 
 | 8005 | if test -n "$DOXYGEN"; then | 
 | 8006 |   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | 
 | 8007 | echo "${ECHO_T}$DOXYGEN" >&6; } | 
 | 8008 | else | 
 | 8009 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8010 | echo "${ECHO_T}no" >&6; } | 
 | 8011 | fi | 
 | 8012 |  | 
 | 8013 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8014 | # Extract the first word of "groff", so it can be a program name with args. | 
 | 8015 | set dummy groff; ac_word=$2 | 
 | 8016 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8018 | if test "${ac_cv_path_GROFF+set}" = set; then | 
 | 8019 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8020 | else | 
 | 8021 |   case $GROFF in | 
 | 8022 |   [\\/]* | ?:[\\/]*) | 
 | 8023 |   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | 
 | 8024 |   ;; | 
 | 8025 |   *) | 
 | 8026 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8027 | for as_dir in $PATH | 
 | 8028 | do | 
 | 8029 |   IFS=$as_save_IFS | 
 | 8030 |   test -z "$as_dir" && as_dir=. | 
 | 8031 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8032 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8033 |     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | 
 | 8034 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8035 |     break 2 | 
 | 8036 |   fi | 
 | 8037 | done | 
 | 8038 | done | 
 | 8039 | IFS=$as_save_IFS | 
 | 8040 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8041 |   ;; | 
 | 8042 | esac | 
 | 8043 | fi | 
 | 8044 | GROFF=$ac_cv_path_GROFF | 
 | 8045 | if test -n "$GROFF"; then | 
 | 8046 |   { echo "$as_me:$LINENO: result: $GROFF" >&5 | 
 | 8047 | echo "${ECHO_T}$GROFF" >&6; } | 
 | 8048 | else | 
 | 8049 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8050 | echo "${ECHO_T}no" >&6; } | 
 | 8051 | fi | 
 | 8052 |  | 
 | 8053 |  | 
 | 8054 | # Extract the first word of "gzip", so it can be a program name with args. | 
 | 8055 | set dummy gzip; ac_word=$2 | 
 | 8056 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8058 | if test "${ac_cv_path_GZIP+set}" = set; then | 
 | 8059 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8060 | else | 
 | 8061 |   case $GZIP in | 
 | 8062 |   [\\/]* | ?:[\\/]*) | 
 | 8063 |   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | 
 | 8064 |   ;; | 
 | 8065 |   *) | 
 | 8066 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8067 | for as_dir in $PATH | 
 | 8068 | do | 
 | 8069 |   IFS=$as_save_IFS | 
 | 8070 |   test -z "$as_dir" && as_dir=. | 
 | 8071 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8072 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8073 |     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 8074 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8075 |     break 2 | 
 | 8076 |   fi | 
 | 8077 | done | 
 | 8078 | done | 
 | 8079 | IFS=$as_save_IFS | 
 | 8080 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8081 |   ;; | 
 | 8082 | esac | 
 | 8083 | fi | 
 | 8084 | GZIP=$ac_cv_path_GZIP | 
 | 8085 | if test -n "$GZIP"; then | 
 | 8086 |   { echo "$as_me:$LINENO: result: $GZIP" >&5 | 
 | 8087 | echo "${ECHO_T}$GZIP" >&6; } | 
 | 8088 | else | 
 | 8089 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8090 | echo "${ECHO_T}no" >&6; } | 
 | 8091 | fi | 
 | 8092 |  | 
 | 8093 |  | 
 | 8094 | # Extract the first word of "pod2html", so it can be a program name with args. | 
 | 8095 | set dummy pod2html; ac_word=$2 | 
 | 8096 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8098 | if test "${ac_cv_path_POD2HTML+set}" = set; then | 
 | 8099 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8100 | else | 
 | 8101 |   case $POD2HTML in | 
 | 8102 |   [\\/]* | ?:[\\/]*) | 
 | 8103 |   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. | 
 | 8104 |   ;; | 
 | 8105 |   *) | 
 | 8106 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8107 | for as_dir in $PATH | 
 | 8108 | do | 
 | 8109 |   IFS=$as_save_IFS | 
 | 8110 |   test -z "$as_dir" && as_dir=. | 
 | 8111 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8112 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8113 |     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" | 
 | 8114 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8115 |     break 2 | 
 | 8116 |   fi | 
 | 8117 | done | 
 | 8118 | done | 
 | 8119 | IFS=$as_save_IFS | 
 | 8120 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8121 |   ;; | 
 | 8122 | esac | 
 | 8123 | fi | 
 | 8124 | POD2HTML=$ac_cv_path_POD2HTML | 
 | 8125 | if test -n "$POD2HTML"; then | 
 | 8126 |   { echo "$as_me:$LINENO: result: $POD2HTML" >&5 | 
 | 8127 | echo "${ECHO_T}$POD2HTML" >&6; } | 
 | 8128 | else | 
 | 8129 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8130 | echo "${ECHO_T}no" >&6; } | 
 | 8131 | fi | 
 | 8132 |  | 
 | 8133 |  | 
 | 8134 | # Extract the first word of "pod2man", so it can be a program name with args. | 
 | 8135 | set dummy pod2man; ac_word=$2 | 
 | 8136 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8138 | if test "${ac_cv_path_POD2MAN+set}" = set; then | 
 | 8139 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8140 | else | 
 | 8141 |   case $POD2MAN in | 
 | 8142 |   [\\/]* | ?:[\\/]*) | 
 | 8143 |   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. | 
 | 8144 |   ;; | 
 | 8145 |   *) | 
 | 8146 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8147 | for as_dir in $PATH | 
 | 8148 | do | 
 | 8149 |   IFS=$as_save_IFS | 
 | 8150 |   test -z "$as_dir" && as_dir=. | 
 | 8151 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8152 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 |     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" | 
 | 8154 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8155 |     break 2 | 
 | 8156 |   fi | 
 | 8157 | done | 
 | 8158 | done | 
 | 8159 | IFS=$as_save_IFS | 
 | 8160 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8161 |   ;; | 
 | 8162 | esac | 
 | 8163 | fi | 
 | 8164 | POD2MAN=$ac_cv_path_POD2MAN | 
 | 8165 | if test -n "$POD2MAN"; then | 
 | 8166 |   { echo "$as_me:$LINENO: result: $POD2MAN" >&5 | 
 | 8167 | echo "${ECHO_T}$POD2MAN" >&6; } | 
 | 8168 | else | 
 | 8169 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8170 | echo "${ECHO_T}no" >&6; } | 
 | 8171 | fi | 
 | 8172 |  | 
 | 8173 |  | 
 | 8174 | # Extract the first word of "runtest", so it can be a program name with args. | 
 | 8175 | set dummy runtest; ac_word=$2 | 
 | 8176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8178 | if test "${ac_cv_path_RUNTEST+set}" = set; then | 
 | 8179 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8180 | else | 
 | 8181 |   case $RUNTEST in | 
 | 8182 |   [\\/]* | ?:[\\/]*) | 
 | 8183 |   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. | 
 | 8184 |   ;; | 
 | 8185 |   *) | 
 | 8186 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8187 | for as_dir in $PATH | 
 | 8188 | do | 
 | 8189 |   IFS=$as_save_IFS | 
 | 8190 |   test -z "$as_dir" && as_dir=. | 
 | 8191 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8192 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8193 |     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" | 
 | 8194 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8195 |     break 2 | 
 | 8196 |   fi | 
 | 8197 | done | 
 | 8198 | done | 
 | 8199 | IFS=$as_save_IFS | 
 | 8200 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8201 |   ;; | 
 | 8202 | esac | 
 | 8203 | fi | 
 | 8204 | RUNTEST=$ac_cv_path_RUNTEST | 
 | 8205 | if test -n "$RUNTEST"; then | 
 | 8206 |   { echo "$as_me:$LINENO: result: $RUNTEST" >&5 | 
 | 8207 | echo "${ECHO_T}$RUNTEST" >&6; } | 
 | 8208 | else | 
 | 8209 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8210 | echo "${ECHO_T}no" >&6; } | 
 | 8211 | fi | 
 | 8212 |  | 
 | 8213 |  | 
 | 8214 |  | 
 | 8215 | no_itcl=true | 
 | 8216 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 | 
 | 8217 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } | 
 | 8218 |  | 
 | 8219 | # Check whether --with-tclinclude was given. | 
 | 8220 | if test "${with_tclinclude+set}" = set; then | 
 | 8221 |   withval=$with_tclinclude; with_tclinclude=${withval} | 
 | 8222 | else | 
 | 8223 |   with_tclinclude='' | 
 | 8224 | fi | 
 | 8225 |  | 
 | 8226 | if test "${ac_cv_path_tclsh+set}" = set; then | 
 | 8227 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8228 | else | 
 | 8229 |  | 
 | 8230 | if test x"${with_tclinclude}" != x ; then | 
 | 8231 |   if test -f ${with_tclinclude}/tclsh ; then | 
 | 8232 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` | 
 | 8233 |   elif test -f ${with_tclinclude}/src/tclsh ; then | 
 | 8234 |     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` | 
 | 8235 |   else | 
 | 8236 |     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 | 
 | 8237 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} | 
 | 8238 |    { (exit 1); exit 1; }; } | 
 | 8239 |   fi | 
 | 8240 | fi | 
 | 8241 |  | 
 | 8242 | if test x"${ac_cv_path_tclsh}" = x ; then | 
 | 8243 |   { echo "$as_me:$LINENO: result: none" >&5 | 
 | 8244 | echo "${ECHO_T}none" >&6; } | 
 | 8245 |   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh | 
 | 8246 | do | 
 | 8247 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8248 | set dummy $ac_prog; ac_word=$2 | 
 | 8249 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8251 | if test "${ac_cv_path_TCLSH+set}" = set; then | 
 | 8252 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8253 | else | 
 | 8254 |   case $TCLSH in | 
 | 8255 |   [\\/]* | ?:[\\/]*) | 
 | 8256 |   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. | 
 | 8257 |   ;; | 
 | 8258 |   *) | 
 | 8259 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8260 | for as_dir in $PATH | 
 | 8261 | do | 
 | 8262 |   IFS=$as_save_IFS | 
 | 8263 |   test -z "$as_dir" && as_dir=. | 
 | 8264 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8265 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8266 |     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" | 
 | 8267 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8268 |     break 2 | 
 | 8269 |   fi | 
 | 8270 | done | 
 | 8271 | done | 
 | 8272 | IFS=$as_save_IFS | 
 | 8273 |  | 
 | 8274 |   ;; | 
 | 8275 | esac | 
 | 8276 | fi | 
 | 8277 | TCLSH=$ac_cv_path_TCLSH | 
 | 8278 | if test -n "$TCLSH"; then | 
 | 8279 |   { echo "$as_me:$LINENO: result: $TCLSH" >&5 | 
 | 8280 | echo "${ECHO_T}$TCLSH" >&6; } | 
 | 8281 | else | 
 | 8282 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8283 | echo "${ECHO_T}no" >&6; } | 
 | 8284 | fi | 
 | 8285 |  | 
 | 8286 |  | 
 | 8287 |   test -n "$TCLSH" && break | 
 | 8288 | done | 
 | 8289 |  | 
 | 8290 |   if test x"${TCLSH}" = x ; then | 
 | 8291 |     ac_cv_path_tclsh=''; | 
 | 8292 |   else | 
 | 8293 |     ac_cv_path_tclsh="${TCLSH}"; | 
 | 8294 |   fi | 
 | 8295 | else | 
 | 8296 |   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 | 
 | 8297 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } | 
 | 8298 |   TCLSH="${ac_cv_path_tclsh}" | 
 | 8299 |  | 
 | 8300 | fi | 
 | 8301 |  | 
 | 8302 | fi | 
 | 8303 |  | 
 | 8304 | # Extract the first word of "zip", so it can be a program name with args. | 
 | 8305 | set dummy zip; ac_word=$2 | 
 | 8306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8308 | if test "${ac_cv_path_ZIP+set}" = set; then | 
 | 8309 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8310 | else | 
 | 8311 |   case $ZIP in | 
 | 8312 |   [\\/]* | ?:[\\/]*) | 
 | 8313 |   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | 
 | 8314 |   ;; | 
 | 8315 |   *) | 
 | 8316 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8317 | for as_dir in $PATH | 
 | 8318 | do | 
 | 8319 |   IFS=$as_save_IFS | 
 | 8320 |   test -z "$as_dir" && as_dir=. | 
 | 8321 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8322 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8323 |     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" | 
 | 8324 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8325 |     break 2 | 
 | 8326 |   fi | 
 | 8327 | done | 
 | 8328 | done | 
 | 8329 | IFS=$as_save_IFS | 
 | 8330 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8331 |   ;; | 
 | 8332 | esac | 
 | 8333 | fi | 
 | 8334 | ZIP=$ac_cv_path_ZIP | 
 | 8335 | if test -n "$ZIP"; then | 
 | 8336 |   { echo "$as_me:$LINENO: result: $ZIP" >&5 | 
 | 8337 | echo "${ECHO_T}$ZIP" >&6; } | 
 | 8338 | else | 
 | 8339 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8340 | echo "${ECHO_T}no" >&6; } | 
 | 8341 | fi | 
 | 8342 |  | 
 | 8343 |  | 
| Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8344 | for ac_prog in ocamlc | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8345 | do | 
 | 8346 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8347 | set dummy $ac_prog; ac_word=$2 | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8348 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8350 | if test "${ac_cv_path_OCAMLC+set}" = set; then | 
 | 8351 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8352 | else | 
 | 8353 |   case $OCAMLC in | 
 | 8354 |   [\\/]* | ?:[\\/]*) | 
 | 8355 |   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. | 
 | 8356 |   ;; | 
 | 8357 |   *) | 
 | 8358 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8359 | for as_dir in $PATH | 
 | 8360 | do | 
 | 8361 |   IFS=$as_save_IFS | 
 | 8362 |   test -z "$as_dir" && as_dir=. | 
 | 8363 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8364 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8365 |     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" | 
 | 8366 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8367 |     break 2 | 
 | 8368 |   fi | 
 | 8369 | done | 
 | 8370 | done | 
 | 8371 | IFS=$as_save_IFS | 
 | 8372 |  | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8373 |   ;; | 
 | 8374 | esac | 
 | 8375 | fi | 
 | 8376 | OCAMLC=$ac_cv_path_OCAMLC | 
 | 8377 | if test -n "$OCAMLC"; then | 
 | 8378 |   { echo "$as_me:$LINENO: result: $OCAMLC" >&5 | 
 | 8379 | echo "${ECHO_T}$OCAMLC" >&6; } | 
 | 8380 | else | 
 | 8381 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8382 | echo "${ECHO_T}no" >&6; } | 
 | 8383 | fi | 
 | 8384 |  | 
 | 8385 |  | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8386 |   test -n "$OCAMLC" && break | 
 | 8387 | done | 
 | 8388 |  | 
| Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8389 | for ac_prog in ocamlopt | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8390 | do | 
 | 8391 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8392 | set dummy $ac_prog; ac_word=$2 | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8395 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then | 
 | 8396 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8397 | else | 
 | 8398 |   case $OCAMLOPT in | 
 | 8399 |   [\\/]* | ?:[\\/]*) | 
 | 8400 |   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. | 
 | 8401 |   ;; | 
 | 8402 |   *) | 
 | 8403 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8404 | for as_dir in $PATH | 
 | 8405 | do | 
 | 8406 |   IFS=$as_save_IFS | 
 | 8407 |   test -z "$as_dir" && as_dir=. | 
 | 8408 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8409 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8410 |     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" | 
 | 8411 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8412 |     break 2 | 
 | 8413 |   fi | 
 | 8414 | done | 
 | 8415 | done | 
 | 8416 | IFS=$as_save_IFS | 
 | 8417 |  | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8418 |   ;; | 
 | 8419 | esac | 
 | 8420 | fi | 
 | 8421 | OCAMLOPT=$ac_cv_path_OCAMLOPT | 
 | 8422 | if test -n "$OCAMLOPT"; then | 
 | 8423 |   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 | 
 | 8424 | echo "${ECHO_T}$OCAMLOPT" >&6; } | 
 | 8425 | else | 
 | 8426 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8427 | echo "${ECHO_T}no" >&6; } | 
 | 8428 | fi | 
 | 8429 |  | 
 | 8430 |  | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8431 |   test -n "$OCAMLOPT" && break | 
 | 8432 | done | 
 | 8433 |  | 
| Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8434 | for ac_prog in ocamldep | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8435 | do | 
 | 8436 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8437 | set dummy $ac_prog; ac_word=$2 | 
| Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8440 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then | 
 | 8441 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8442 | else | 
 | 8443 |   case $OCAMLDEP in | 
 | 8444 |   [\\/]* | ?:[\\/]*) | 
 | 8445 |   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. | 
 | 8446 |   ;; | 
 | 8447 |   *) | 
 | 8448 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8449 | for as_dir in $PATH | 
 | 8450 | do | 
 | 8451 |   IFS=$as_save_IFS | 
 | 8452 |   test -z "$as_dir" && as_dir=. | 
 | 8453 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8454 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8455 |     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" | 
 | 8456 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8457 |     break 2 | 
 | 8458 |   fi | 
 | 8459 | done | 
 | 8460 | done | 
 | 8461 | IFS=$as_save_IFS | 
 | 8462 |  | 
| Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8463 |   ;; | 
 | 8464 | esac | 
 | 8465 | fi | 
 | 8466 | OCAMLDEP=$ac_cv_path_OCAMLDEP | 
 | 8467 | if test -n "$OCAMLDEP"; then | 
 | 8468 |   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 | 
 | 8469 | echo "${ECHO_T}$OCAMLDEP" >&6; } | 
 | 8470 | else | 
 | 8471 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8472 | echo "${ECHO_T}no" >&6; } | 
 | 8473 | fi | 
 | 8474 |  | 
 | 8475 |  | 
| Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8476 |   test -n "$OCAMLDEP" && break | 
 | 8477 | done | 
 | 8478 |  | 
| Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8479 | for ac_prog in ocamldoc | 
| Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8480 | do | 
 | 8481 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8482 | set dummy $ac_prog; ac_word=$2 | 
 | 8483 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8485 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then | 
 | 8486 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8487 | else | 
 | 8488 |   case $OCAMLDOC in | 
 | 8489 |   [\\/]* | ?:[\\/]*) | 
 | 8490 |   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. | 
 | 8491 |   ;; | 
 | 8492 |   *) | 
 | 8493 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8494 | for as_dir in $PATH | 
 | 8495 | do | 
 | 8496 |   IFS=$as_save_IFS | 
 | 8497 |   test -z "$as_dir" && as_dir=. | 
 | 8498 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8499 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8500 |     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" | 
 | 8501 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8502 |     break 2 | 
 | 8503 |   fi | 
 | 8504 | done | 
 | 8505 | done | 
 | 8506 | IFS=$as_save_IFS | 
 | 8507 |  | 
 | 8508 |   ;; | 
 | 8509 | esac | 
 | 8510 | fi | 
 | 8511 | OCAMLDOC=$ac_cv_path_OCAMLDOC | 
 | 8512 | if test -n "$OCAMLDOC"; then | 
 | 8513 |   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 | 
 | 8514 | echo "${ECHO_T}$OCAMLDOC" >&6; } | 
 | 8515 | else | 
 | 8516 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8517 | echo "${ECHO_T}no" >&6; } | 
 | 8518 | fi | 
 | 8519 |  | 
 | 8520 |  | 
 | 8521 |   test -n "$OCAMLDOC" && break | 
 | 8522 | done | 
 | 8523 |  | 
| Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8524 | for ac_prog in gas as | 
 | 8525 | do | 
 | 8526 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8527 | set dummy $ac_prog; ac_word=$2 | 
 | 8528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 8529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
 | 8530 | if test "${ac_cv_path_GAS+set}" = set; then | 
 | 8531 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8532 | else | 
 | 8533 |   case $GAS in | 
 | 8534 |   [\\/]* | ?:[\\/]*) | 
 | 8535 |   ac_cv_path_GAS="$GAS" # Let the user override the test with a path. | 
 | 8536 |   ;; | 
 | 8537 |   *) | 
 | 8538 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8539 | for as_dir in $PATH | 
 | 8540 | do | 
 | 8541 |   IFS=$as_save_IFS | 
 | 8542 |   test -z "$as_dir" && as_dir=. | 
 | 8543 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8544 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8545 |     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" | 
 | 8546 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8547 |     break 2 | 
 | 8548 |   fi | 
 | 8549 | done | 
 | 8550 | done | 
 | 8551 | IFS=$as_save_IFS | 
 | 8552 |  | 
 | 8553 |   ;; | 
 | 8554 | esac | 
 | 8555 | fi | 
 | 8556 | GAS=$ac_cv_path_GAS | 
 | 8557 | if test -n "$GAS"; then | 
 | 8558 |   { echo "$as_me:$LINENO: result: $GAS" >&5 | 
 | 8559 | echo "${ECHO_T}$GAS" >&6; } | 
 | 8560 | else | 
 | 8561 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 8562 | echo "${ECHO_T}no" >&6; } | 
 | 8563 | fi | 
 | 8564 |  | 
 | 8565 |  | 
 | 8566 |   test -n "$GAS" && break | 
 | 8567 | done | 
 | 8568 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8569 |  | 
 | 8570 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 | 
 | 8571 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } | 
 | 8572 | if test "${llvm_cv_link_use_r+set}" = set; then | 
 | 8573 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8574 | else | 
 | 8575 |    ac_ext=c | 
 | 8576 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8580 |  | 
 | 8581 |   oldcflags="$CFLAGS" | 
 | 8582 |   CFLAGS="$CFLAGS -Wl,-R." | 
 | 8583 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8584 | /* confdefs.h.  */ | 
 | 8585 | _ACEOF | 
 | 8586 | cat confdefs.h >>conftest.$ac_ext | 
 | 8587 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8588 | /* end confdefs.h.  */ | 
 | 8589 |  | 
 | 8590 | int | 
 | 8591 | main () | 
 | 8592 | { | 
 | 8593 | int main() { return 0; } | 
 | 8594 |   ; | 
 | 8595 |   return 0; | 
 | 8596 | } | 
 | 8597 | _ACEOF | 
 | 8598 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8599 | if { (ac_try="$ac_link" | 
 | 8600 | case "(($ac_try" in | 
 | 8601 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8602 |   *) ac_try_echo=$ac_try;; | 
 | 8603 | esac | 
 | 8604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8605 |   (eval "$ac_link") 2>conftest.er1 | 
 | 8606 |   ac_status=$? | 
 | 8607 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8608 |   rm -f conftest.er1 | 
 | 8609 |   cat conftest.err >&5 | 
 | 8610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8611 |   (exit $ac_status); } && | 
 | 8612 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 8613 |   { (case "(($ac_try" in | 
 | 8614 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8615 |   *) ac_try_echo=$ac_try;; | 
 | 8616 | esac | 
 | 8617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8618 |   (eval "$ac_try") 2>&5 | 
 | 8619 |   ac_status=$? | 
 | 8620 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8621 |   (exit $ac_status); }; } && | 
 | 8622 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8623 |   { (case "(($ac_try" in | 
 | 8624 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8625 |   *) ac_try_echo=$ac_try;; | 
 | 8626 | esac | 
 | 8627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8628 |   (eval "$ac_try") 2>&5 | 
 | 8629 |   ac_status=$? | 
 | 8630 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8631 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8632 |   llvm_cv_link_use_r=yes | 
 | 8633 | else | 
 | 8634 |   echo "$as_me: failed program was:" >&5 | 
 | 8635 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8636 |  | 
 | 8637 | 	llvm_cv_link_use_r=no | 
 | 8638 | fi | 
 | 8639 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8640 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8641 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8642 |   CFLAGS="$oldcflags" | 
 | 8643 |   ac_ext=c | 
 | 8644 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8648 |  | 
 | 8649 |  | 
 | 8650 | fi | 
 | 8651 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 | 
 | 8652 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } | 
 | 8653 | if test "$llvm_cv_link_use_r" = yes ; then | 
 | 8654 |  | 
 | 8655 | cat >>confdefs.h <<\_ACEOF | 
 | 8656 | #define HAVE_LINK_R 1 | 
 | 8657 | _ACEOF | 
 | 8658 |  | 
 | 8659 |   fi | 
 | 8660 |  | 
 | 8661 |  | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8662 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 | 
 | 8663 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } | 
 | 8664 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then | 
 | 8665 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8666 | else | 
 | 8667 |    ac_ext=c | 
 | 8668 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8672 |  | 
 | 8673 |   oldcflags="$CFLAGS" | 
 | 8674 |   CFLAGS="$CFLAGS -Wl,-export-dynamic" | 
 | 8675 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8676 | /* confdefs.h.  */ | 
 | 8677 | _ACEOF | 
 | 8678 | cat confdefs.h >>conftest.$ac_ext | 
 | 8679 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8680 | /* end confdefs.h.  */ | 
 | 8681 |  | 
 | 8682 | int | 
 | 8683 | main () | 
 | 8684 | { | 
 | 8685 | int main() { return 0; } | 
 | 8686 |   ; | 
 | 8687 |   return 0; | 
 | 8688 | } | 
 | 8689 | _ACEOF | 
 | 8690 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 8691 | if { (ac_try="$ac_link" | 
 | 8692 | case "(($ac_try" in | 
 | 8693 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8694 |   *) ac_try_echo=$ac_try;; | 
 | 8695 | esac | 
 | 8696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8697 |   (eval "$ac_link") 2>conftest.er1 | 
 | 8698 |   ac_status=$? | 
 | 8699 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8700 |   rm -f conftest.er1 | 
 | 8701 |   cat conftest.err >&5 | 
 | 8702 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8703 |   (exit $ac_status); } && | 
 | 8704 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 8705 |   { (case "(($ac_try" in | 
 | 8706 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8707 |   *) ac_try_echo=$ac_try;; | 
 | 8708 | esac | 
 | 8709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8710 |   (eval "$ac_try") 2>&5 | 
 | 8711 |   ac_status=$? | 
 | 8712 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8713 |   (exit $ac_status); }; } && | 
 | 8714 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 8715 |   { (case "(($ac_try" in | 
 | 8716 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8717 |   *) ac_try_echo=$ac_try;; | 
 | 8718 | esac | 
 | 8719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8720 |   (eval "$ac_try") 2>&5 | 
 | 8721 |   ac_status=$? | 
 | 8722 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8723 |   (exit $ac_status); }; }; then | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8724 |   llvm_cv_link_use_export_dynamic=yes | 
 | 8725 | else | 
 | 8726 |   echo "$as_me: failed program was:" >&5 | 
 | 8727 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8728 |  | 
 | 8729 | 	llvm_cv_link_use_export_dynamic=no | 
 | 8730 | fi | 
 | 8731 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8732 | rm -f core conftest.err conftest.$ac_objext \ | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8733 |       conftest$ac_exeext conftest.$ac_ext | 
 | 8734 |   CFLAGS="$oldcflags" | 
 | 8735 |   ac_ext=c | 
 | 8736 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8740 |  | 
 | 8741 |  | 
 | 8742 | fi | 
 | 8743 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 | 
 | 8744 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } | 
 | 8745 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then | 
 | 8746 |  | 
 | 8747 | cat >>confdefs.h <<\_ACEOF | 
 | 8748 | #define HAVE_LINK_EXPORT_DYNAMIC 1 | 
 | 8749 | _ACEOF | 
 | 8750 |  | 
 | 8751 |   fi | 
 | 8752 |  | 
 | 8753 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8754 |  | 
 | 8755 |  | 
 | 8756 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | 
 | 8757 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | 
 | 8758 | if test "${ac_cv_c_const+set}" = set; then | 
 | 8759 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8760 | else | 
 | 8761 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8762 | /* confdefs.h.  */ | 
 | 8763 | _ACEOF | 
 | 8764 | cat confdefs.h >>conftest.$ac_ext | 
 | 8765 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8766 | /* end confdefs.h.  */ | 
 | 8767 |  | 
 | 8768 | int | 
 | 8769 | main () | 
 | 8770 | { | 
 | 8771 | /* FIXME: Include the comments suggested by Paul. */ | 
 | 8772 | #ifndef __cplusplus | 
 | 8773 |   /* Ultrix mips cc rejects this.  */ | 
 | 8774 |   typedef int charset[2]; | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8775 |   const charset x; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8776 |   /* SunOS 4.1.1 cc rejects this.  */ | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8777 |   char const *const *ccp; | 
 | 8778 |   char **p; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8779 |   /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 8780 |   struct point {int x, y;}; | 
 | 8781 |   static struct point const zero = {0,0}; | 
 | 8782 |   /* AIX XL C 1.02.0.0 rejects this. | 
 | 8783 |      It does not let you subtract one const X* pointer from another in | 
 | 8784 |      an arm of an if-expression whose if-part is not a constant | 
 | 8785 |      expression */ | 
 | 8786 |   const char *g = "string"; | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8787 |   ccp = &g + (g ? g-g : 0); | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8788 |   /* HPUX 7.0 cc rejects these. */ | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8789 |   ++ccp; | 
 | 8790 |   p = (char**) ccp; | 
 | 8791 |   ccp = (char const *const *) p; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8792 |   { /* SCO 3.2v4 cc rejects this.  */ | 
 | 8793 |     char *t; | 
 | 8794 |     char const *s = 0 ? (char *) 0 : (char const *) 0; | 
 | 8795 |  | 
 | 8796 |     *t++ = 0; | 
 | 8797 |     if (s) return 0; | 
 | 8798 |   } | 
 | 8799 |   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 8800 |     int x[] = {25, 17}; | 
 | 8801 |     const int *foo = &x[0]; | 
 | 8802 |     ++foo; | 
 | 8803 |   } | 
 | 8804 |   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 8805 |     typedef const int *iptr; | 
 | 8806 |     iptr p = 0; | 
 | 8807 |     ++p; | 
 | 8808 |   } | 
 | 8809 |   { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 8810 |        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 8811 |     struct s { int j; const int *ap[3]; }; | 
 | 8812 |     struct s *b; b->j = 5; | 
 | 8813 |   } | 
 | 8814 |   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 8815 |     const int foo = 10; | 
 | 8816 |     if (!foo) return 0; | 
 | 8817 |   } | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8818 |   return !x[0] && !zero.x; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8819 | #endif | 
 | 8820 |  | 
 | 8821 |   ; | 
 | 8822 |   return 0; | 
 | 8823 | } | 
 | 8824 | _ACEOF | 
 | 8825 | rm -f conftest.$ac_objext | 
 | 8826 | if { (ac_try="$ac_compile" | 
 | 8827 | case "(($ac_try" in | 
 | 8828 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8829 |   *) ac_try_echo=$ac_try;; | 
 | 8830 | esac | 
 | 8831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8832 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 8833 |   ac_status=$? | 
 | 8834 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8835 |   rm -f conftest.er1 | 
 | 8836 |   cat conftest.err >&5 | 
 | 8837 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8838 |   (exit $ac_status); } && | 
 | 8839 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 8840 |   { (case "(($ac_try" in | 
 | 8841 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8842 |   *) ac_try_echo=$ac_try;; | 
 | 8843 | esac | 
 | 8844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8845 |   (eval "$ac_try") 2>&5 | 
 | 8846 |   ac_status=$? | 
 | 8847 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8848 |   (exit $ac_status); }; } && | 
 | 8849 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8850 |   { (case "(($ac_try" in | 
 | 8851 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8852 |   *) ac_try_echo=$ac_try;; | 
 | 8853 | esac | 
 | 8854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8855 |   (eval "$ac_try") 2>&5 | 
 | 8856 |   ac_status=$? | 
 | 8857 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8858 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8859 |   ac_cv_c_const=yes | 
 | 8860 | else | 
 | 8861 |   echo "$as_me: failed program was:" >&5 | 
 | 8862 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8863 |  | 
 | 8864 | 	ac_cv_c_const=no | 
 | 8865 | fi | 
 | 8866 |  | 
 | 8867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8868 | fi | 
 | 8869 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 
 | 8870 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | 
 | 8871 | if test $ac_cv_c_const = no; then | 
 | 8872 |  | 
 | 8873 | cat >>confdefs.h <<\_ACEOF | 
 | 8874 | #define const | 
 | 8875 | _ACEOF | 
 | 8876 |  | 
 | 8877 | fi | 
 | 8878 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8879 |  | 
 | 8880 |  | 
 | 8881 |  | 
 | 8882 |  | 
 | 8883 |  | 
 | 8884 | ac_header_dirent=no | 
 | 8885 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 8886 |   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8887 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
 | 8888 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
 | 8889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8890 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8891 | else | 
 | 8892 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 8893 | /* confdefs.h.  */ | 
 | 8894 | _ACEOF | 
 | 8895 | cat confdefs.h >>conftest.$ac_ext | 
 | 8896 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8897 | /* end confdefs.h.  */ | 
 | 8898 | #include <sys/types.h> | 
 | 8899 | #include <$ac_hdr> | 
 | 8900 |  | 
 | 8901 | int | 
 | 8902 | main () | 
 | 8903 | { | 
 | 8904 | if ((DIR *) 0) | 
 | 8905 | return 0; | 
 | 8906 |   ; | 
 | 8907 |   return 0; | 
 | 8908 | } | 
 | 8909 | _ACEOF | 
 | 8910 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8911 | if { (ac_try="$ac_compile" | 
 | 8912 | case "(($ac_try" in | 
 | 8913 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8914 |   *) ac_try_echo=$ac_try;; | 
 | 8915 | esac | 
 | 8916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8917 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8918 |   ac_status=$? | 
 | 8919 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 8920 |   rm -f conftest.er1 | 
 | 8921 |   cat conftest.err >&5 | 
 | 8922 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8923 |   (exit $ac_status); } && | 
 | 8924 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 8925 |   { (case "(($ac_try" in | 
 | 8926 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8927 |   *) ac_try_echo=$ac_try;; | 
 | 8928 | esac | 
 | 8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8930 |   (eval "$ac_try") 2>&5 | 
 | 8931 |   ac_status=$? | 
 | 8932 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8933 |   (exit $ac_status); }; } && | 
 | 8934 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 8935 |   { (case "(($ac_try" in | 
 | 8936 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 8937 |   *) ac_try_echo=$ac_try;; | 
 | 8938 | esac | 
 | 8939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 8940 |   (eval "$ac_try") 2>&5 | 
 | 8941 |   ac_status=$? | 
 | 8942 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 8943 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8944 |   eval "$as_ac_Header=yes" | 
 | 8945 | else | 
 | 8946 |   echo "$as_me: failed program was:" >&5 | 
 | 8947 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 8948 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8949 | 	eval "$as_ac_Header=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8950 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8951 |  | 
 | 8952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8953 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8954 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 8955 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 8956 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8957 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 8958 |   cat >>confdefs.h <<_ACEOF | 
 | 8959 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 8960 | _ACEOF | 
 | 8961 |  | 
 | 8962 | ac_header_dirent=$ac_hdr; break | 
 | 8963 | fi | 
 | 8964 |  | 
 | 8965 | done | 
 | 8966 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 8967 | if test $ac_header_dirent = dirent.h; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8968 |   { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 8969 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8970 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 8971 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 8972 | else | 
 | 8973 |   ac_func_search_save_LIBS=$LIBS | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8974 | cat >conftest.$ac_ext <<_ACEOF | 
 | 8975 | /* confdefs.h.  */ | 
 | 8976 | _ACEOF | 
 | 8977 | cat confdefs.h >>conftest.$ac_ext | 
 | 8978 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 8979 | /* end confdefs.h.  */ | 
 | 8980 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8981 | /* Override any GCC internal prototype to avoid an error. | 
 | 8982 |    Use char because int might match the return type of a GCC | 
 | 8983 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8984 | #ifdef __cplusplus | 
 | 8985 | extern "C" | 
 | 8986 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8987 | char opendir (); | 
 | 8988 | int | 
 | 8989 | main () | 
 | 8990 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8991 | return opendir (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8992 |   ; | 
 | 8993 |   return 0; | 
 | 8994 | } | 
 | 8995 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8996 | for ac_lib in '' dir; do | 
 | 8997 |   if test -z "$ac_lib"; then | 
 | 8998 |     ac_res="none required" | 
 | 8999 |   else | 
 | 9000 |     ac_res=-l$ac_lib | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9001 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9002 |   fi | 
 | 9003 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9004 | if { (ac_try="$ac_link" | 
 | 9005 | case "(($ac_try" in | 
 | 9006 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9007 |   *) ac_try_echo=$ac_try;; | 
 | 9008 | esac | 
 | 9009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9010 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9011 |   ac_status=$? | 
 | 9012 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9013 |   rm -f conftest.er1 | 
 | 9014 |   cat conftest.err >&5 | 
 | 9015 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9016 |   (exit $ac_status); } && | 
 | 9017 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 9018 |   { (case "(($ac_try" in | 
 | 9019 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9020 |   *) ac_try_echo=$ac_try;; | 
 | 9021 | esac | 
 | 9022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9023 |   (eval "$ac_try") 2>&5 | 
 | 9024 |   ac_status=$? | 
 | 9025 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9026 |   (exit $ac_status); }; } && | 
 | 9027 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9028 |   { (case "(($ac_try" in | 
 | 9029 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9030 |   *) ac_try_echo=$ac_try;; | 
 | 9031 | esac | 
 | 9032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9033 |   (eval "$ac_try") 2>&5 | 
 | 9034 |   ac_status=$? | 
 | 9035 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9036 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9037 |   ac_cv_search_opendir=$ac_res | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9038 | else | 
 | 9039 |   echo "$as_me: failed program was:" >&5 | 
 | 9040 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9041 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9042 |  | 
 | 9043 | fi | 
 | 9044 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9045 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9046 |       conftest$ac_exeext | 
 | 9047 |   if test "${ac_cv_search_opendir+set}" = set; then | 
 | 9048 |   break | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9049 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9050 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9051 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 9052 |   : | 
 | 9053 | else | 
 | 9054 |   ac_cv_search_opendir=no | 
 | 9055 | fi | 
 | 9056 | rm conftest.$ac_ext | 
 | 9057 | LIBS=$ac_func_search_save_LIBS | 
 | 9058 | fi | 
 | 9059 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 9060 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
 | 9061 | ac_res=$ac_cv_search_opendir | 
 | 9062 | if test "$ac_res" != no; then | 
 | 9063 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9064 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9065 | fi | 
 | 9066 |  | 
 | 9067 | else | 
 | 9068 |   { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 9069 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
 | 9070 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 9071 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9072 | else | 
 | 9073 |   ac_func_search_save_LIBS=$LIBS | 
 | 9074 | cat >conftest.$ac_ext <<_ACEOF | 
 | 9075 | /* confdefs.h.  */ | 
 | 9076 | _ACEOF | 
 | 9077 | cat confdefs.h >>conftest.$ac_ext | 
 | 9078 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9079 | /* end confdefs.h.  */ | 
 | 9080 |  | 
 | 9081 | /* Override any GCC internal prototype to avoid an error. | 
 | 9082 |    Use char because int might match the return type of a GCC | 
 | 9083 |    builtin and then its argument prototype would still apply.  */ | 
 | 9084 | #ifdef __cplusplus | 
 | 9085 | extern "C" | 
 | 9086 | #endif | 
 | 9087 | char opendir (); | 
 | 9088 | int | 
 | 9089 | main () | 
 | 9090 | { | 
 | 9091 | return opendir (); | 
 | 9092 |   ; | 
 | 9093 |   return 0; | 
 | 9094 | } | 
 | 9095 | _ACEOF | 
 | 9096 | for ac_lib in '' x; do | 
 | 9097 |   if test -z "$ac_lib"; then | 
 | 9098 |     ac_res="none required" | 
 | 9099 |   else | 
 | 9100 |     ac_res=-l$ac_lib | 
 | 9101 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 9102 |   fi | 
 | 9103 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 9104 | if { (ac_try="$ac_link" | 
 | 9105 | case "(($ac_try" in | 
 | 9106 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9107 |   *) ac_try_echo=$ac_try;; | 
 | 9108 | esac | 
 | 9109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9110 |   (eval "$ac_link") 2>conftest.er1 | 
 | 9111 |   ac_status=$? | 
 | 9112 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9113 |   rm -f conftest.er1 | 
 | 9114 |   cat conftest.err >&5 | 
 | 9115 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9116 |   (exit $ac_status); } && | 
 | 9117 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 9118 |   { (case "(($ac_try" in | 
 | 9119 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9120 |   *) ac_try_echo=$ac_try;; | 
 | 9121 | esac | 
 | 9122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9123 |   (eval "$ac_try") 2>&5 | 
 | 9124 |   ac_status=$? | 
 | 9125 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9126 |   (exit $ac_status); }; } && | 
 | 9127 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 9128 |   { (case "(($ac_try" in | 
 | 9129 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9130 |   *) ac_try_echo=$ac_try;; | 
 | 9131 | esac | 
 | 9132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9133 |   (eval "$ac_try") 2>&5 | 
 | 9134 |   ac_status=$? | 
 | 9135 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9136 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9137 |   ac_cv_search_opendir=$ac_res | 
 | 9138 | else | 
 | 9139 |   echo "$as_me: failed program was:" >&5 | 
 | 9140 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9141 |  | 
 | 9142 |  | 
 | 9143 | fi | 
 | 9144 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9145 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9146 |       conftest$ac_exeext | 
 | 9147 |   if test "${ac_cv_search_opendir+set}" = set; then | 
 | 9148 |   break | 
 | 9149 | fi | 
 | 9150 | done | 
 | 9151 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 9152 |   : | 
 | 9153 | else | 
 | 9154 |   ac_cv_search_opendir=no | 
 | 9155 | fi | 
 | 9156 | rm conftest.$ac_ext | 
 | 9157 | LIBS=$ac_func_search_save_LIBS | 
 | 9158 | fi | 
 | 9159 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 9160 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
 | 9161 | ac_res=$ac_cv_search_opendir | 
 | 9162 | if test "$ac_res" != no; then | 
 | 9163 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 9164 |  | 
 | 9165 | fi | 
 | 9166 |  | 
 | 9167 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9168 |  | 
 | 9169 |  | 
 | 9170 | for ac_header in dlfcn.h | 
 | 9171 | do | 
 | 9172 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 9174 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 9176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9177 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9178 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9179 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 9180 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 9181 | echo "${ECHO_T}$ac_res" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9182 | else | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9183 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9184 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 9185 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9186 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9187 | /* confdefs.h.  */ | 
 | 9188 | _ACEOF | 
 | 9189 | cat confdefs.h >>conftest.$ac_ext | 
 | 9190 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9191 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9192 | $ac_includes_default | 
 | 9193 | #include <$ac_header> | 
 | 9194 | _ACEOF | 
 | 9195 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9196 | if { (ac_try="$ac_compile" | 
 | 9197 | case "(($ac_try" in | 
 | 9198 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9199 |   *) ac_try_echo=$ac_try;; | 
 | 9200 | esac | 
 | 9201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9202 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9203 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9204 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9205 |   rm -f conftest.er1 | 
 | 9206 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9207 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9208 |   (exit $ac_status); } && | 
 | 9209 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 9210 |   { (case "(($ac_try" in | 
 | 9211 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9212 |   *) ac_try_echo=$ac_try;; | 
 | 9213 | esac | 
 | 9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9215 |   (eval "$ac_try") 2>&5 | 
 | 9216 |   ac_status=$? | 
 | 9217 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9218 |   (exit $ac_status); }; } && | 
 | 9219 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 9220 |   { (case "(($ac_try" in | 
 | 9221 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9222 |   *) ac_try_echo=$ac_try;; | 
 | 9223 | esac | 
 | 9224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9225 |   (eval "$ac_try") 2>&5 | 
 | 9226 |   ac_status=$? | 
 | 9227 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 9228 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9229 |   ac_header_compiler=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9230 | else | 
 | 9231 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9232 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9233 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9234 | 	ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9235 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9236 |  | 
 | 9237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9238 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 9239 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9240 |  | 
 | 9241 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9242 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 9243 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9244 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9245 | /* confdefs.h.  */ | 
 | 9246 | _ACEOF | 
 | 9247 | cat confdefs.h >>conftest.$ac_ext | 
 | 9248 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 9249 | /* end confdefs.h.  */ | 
 | 9250 | #include <$ac_header> | 
 | 9251 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9252 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 9253 | case "(($ac_try" in | 
 | 9254 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 9255 |   *) ac_try_echo=$ac_try;; | 
 | 9256 | esac | 
 | 9257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 9258 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9259 |   ac_status=$? | 
 | 9260 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 9261 |   rm -f conftest.er1 | 
 | 9262 |   cat conftest.err >&5 | 
 | 9263 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9264 |   (exit $ac_status); } >/dev/null; then | 
 | 9265 |   if test -s conftest.err; then | 
 | 9266 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 9267 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 9268 |   else | 
 | 9269 |     ac_cpp_err= | 
 | 9270 |   fi | 
 | 9271 | else | 
 | 9272 |   ac_cpp_err=yes | 
 | 9273 | fi | 
 | 9274 | if test -z "$ac_cpp_err"; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9275 |   ac_header_preproc=yes | 
 | 9276 | else | 
 | 9277 |   echo "$as_me: failed program was:" >&5 | 
 | 9278 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 9279 |  | 
 | 9280 |   ac_header_preproc=no | 
 | 9281 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9282 |  | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9283 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9284 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 9285 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9286 |  | 
 | 9287 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 9289 |   yes:no: ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9290 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 9291 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9292 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 9293 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 9294 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9295 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9296 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9297 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 9298 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9299 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 9300 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 9301 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 9302 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 9303 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 9304 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9305 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 9306 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9307 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 9308 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9309 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9310 | ## ----------------------------------- ## | 
 | 9311 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 9312 | ## ----------------------------------- ## | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9313 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9314 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9315 |     ;; | 
 | 9316 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9317 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 9318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 9319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9320 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9321 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9322 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9323 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9324 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 9325 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 9326 | echo "${ECHO_T}$ac_res" >&6; } | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9327 |  | 
 | 9328 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9329 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 9330 |   cat >>confdefs.h <<_ACEOF | 
 | 9331 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9332 | _ACEOF | 
 | 9333 |  | 
 | 9334 | fi | 
 | 9335 |  | 
 | 9336 | done | 
 | 9337 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9338 | # Check whether --enable-ltdl-install was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9339 | if test "${enable_ltdl_install+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9340 |   enableval=$enable_ltdl_install; | 
 | 9341 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9342 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9343 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9344 |  | 
 | 9345 |  | 
 | 9346 | if test x"${enable_ltdl_install-no}" != xno; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9347 |   INSTALL_LTDL_TRUE= | 
 | 9348 |   INSTALL_LTDL_FALSE='#' | 
 | 9349 | else | 
 | 9350 |   INSTALL_LTDL_TRUE='#' | 
 | 9351 |   INSTALL_LTDL_FALSE= | 
 | 9352 | fi | 
 | 9353 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9354 |  | 
 | 9355 |  | 
 | 9356 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9357 |   CONVENIENCE_LTDL_TRUE= | 
 | 9358 |   CONVENIENCE_LTDL_FALSE='#' | 
 | 9359 | else | 
 | 9360 |   CONVENIENCE_LTDL_TRUE='#' | 
 | 9361 |   CONVENIENCE_LTDL_FALSE= | 
 | 9362 | fi | 
 | 9363 |  | 
 | 9364 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9365 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 9366 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9367 | library_names_spec= | 
 | 9368 | libname_spec='lib$name' | 
 | 9369 | soname_spec= | 
 | 9370 | shrext_cmds=".so" | 
 | 9371 | postinstall_cmds= | 
 | 9372 | postuninstall_cmds= | 
 | 9373 | finish_cmds= | 
 | 9374 | finish_eval= | 
 | 9375 | shlibpath_var= | 
 | 9376 | shlibpath_overrides_runpath=unknown | 
 | 9377 | version_type=none | 
 | 9378 | dynamic_linker="$host_os ld.so" | 
 | 9379 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 9380 | if test "$GCC" = yes; then | 
 | 9381 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 9382 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 9383 |     # if the path contains ";" then we assume it to be the separator | 
 | 9384 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 9385 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 9386 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 9387 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 9388 |   else | 
 | 9389 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 9390 |   fi | 
 | 9391 | else | 
 | 9392 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 9393 | fi | 
 | 9394 | need_lib_prefix=unknown | 
 | 9395 | hardcode_into_libs=no | 
 | 9396 |  | 
 | 9397 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 9398 | # flags to be left without arguments | 
 | 9399 | need_version=unknown | 
 | 9400 |  | 
 | 9401 | case $host_os in | 
 | 9402 | aix3*) | 
 | 9403 |   version_type=linux | 
 | 9404 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 9405 |   shlibpath_var=LIBPATH | 
 | 9406 |  | 
 | 9407 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 9408 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9409 |   ;; | 
 | 9410 |  | 
 | 9411 | aix4* | aix5*) | 
 | 9412 |   version_type=linux | 
 | 9413 |   need_lib_prefix=no | 
 | 9414 |   need_version=no | 
 | 9415 |   hardcode_into_libs=yes | 
 | 9416 |   if test "$host_cpu" = ia64; then | 
 | 9417 |     # AIX 5 supports IA64 | 
 | 9418 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 9419 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 9420 |   else | 
 | 9421 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 9422 |     # for dependence libraries.  The import file would start with | 
 | 9423 |     # the line `#! .'.  This would cause the generated library to | 
 | 9424 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 9425 |     # development snapshots of GCC prior to 3.0. | 
 | 9426 |     case $host_os in | 
 | 9427 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 9428 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 9429 | 	   echo ' yes ' | 
 | 9430 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 9431 | 	: | 
 | 9432 |       else | 
 | 9433 | 	can_build_shared=no | 
 | 9434 |       fi | 
 | 9435 |       ;; | 
 | 9436 |     esac | 
 | 9437 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 9438 |     # soname into executable. Probably we can add versioning support to | 
 | 9439 |     # collect2, so additional links can be useful in future. | 
 | 9440 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 9441 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 9442 |       # instead of lib<name>.a to let people know that these are not | 
 | 9443 |       # typical AIX shared libraries. | 
 | 9444 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9445 |     else | 
 | 9446 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 9447 |       # and later when we are not doing run time linking. | 
 | 9448 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 9449 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9450 |     fi | 
 | 9451 |     shlibpath_var=LIBPATH | 
 | 9452 |   fi | 
 | 9453 |   ;; | 
 | 9454 |  | 
 | 9455 | amigaos*) | 
 | 9456 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 9457 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
 | 9458 |   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' | 
 | 9459 |   ;; | 
 | 9460 |  | 
 | 9461 | beos*) | 
 | 9462 |   library_names_spec='${libname}${shared_ext}' | 
 | 9463 |   dynamic_linker="$host_os ld.so" | 
 | 9464 |   shlibpath_var=LIBRARY_PATH | 
 | 9465 |   ;; | 
 | 9466 |  | 
 | 9467 | bsdi[45]*) | 
 | 9468 |   version_type=linux | 
 | 9469 |   need_version=no | 
 | 9470 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9471 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9472 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 9473 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9474 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 9475 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 9476 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 9477 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 9478 |   # libtool to hard-code these into programs | 
 | 9479 |   ;; | 
 | 9480 |  | 
 | 9481 | cygwin* | mingw* | pw32*) | 
 | 9482 |   version_type=windows | 
 | 9483 |   shrext_cmds=".dll" | 
 | 9484 |   need_version=no | 
 | 9485 |   need_lib_prefix=no | 
 | 9486 |  | 
 | 9487 |   case $GCC,$host_os in | 
 | 9488 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 9489 |     library_names_spec='$libname.dll.a' | 
 | 9490 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 9491 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 9492 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 9493 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 9494 |       test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9495 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 9496 |       chmod a+x \$dldir/$dlname' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9497 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 9498 |       dlpath=$dir/\$dldll~ | 
 | 9499 |        $rm \$dlpath' | 
 | 9500 |     shlibpath_overrides_runpath=yes | 
 | 9501 |  | 
 | 9502 |     case $host_os in | 
 | 9503 |     cygwin*) | 
 | 9504 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 9505 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 9506 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
 | 9507 |       ;; | 
 | 9508 |     mingw*) | 
 | 9509 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 9510 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 9511 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 9512 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 9513 |         # It is most probably a Windows format PATH printed by | 
 | 9514 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 9515 |         # path with ; separators, and with drive letters. We can handle the | 
 | 9516 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 9517 |         # especially as we might pass files found there to a mingw objdump, | 
 | 9518 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 9519 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 9520 |       else | 
 | 9521 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 9522 |       fi | 
 | 9523 |       ;; | 
 | 9524 |     pw32*) | 
 | 9525 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9526 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9527 |       ;; | 
 | 9528 |     esac | 
 | 9529 |     ;; | 
 | 9530 |  | 
 | 9531 |   *) | 
 | 9532 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 9533 |     ;; | 
 | 9534 |   esac | 
 | 9535 |   dynamic_linker='Win32 ld.exe' | 
 | 9536 |   # FIXME: first we should search . and the directory the executable is in | 
 | 9537 |   shlibpath_var=PATH | 
 | 9538 |   ;; | 
 | 9539 |  | 
 | 9540 | darwin* | rhapsody*) | 
 | 9541 |   dynamic_linker="$host_os dyld" | 
 | 9542 |   version_type=darwin | 
 | 9543 |   need_lib_prefix=no | 
 | 9544 |   need_version=no | 
 | 9545 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 9546 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 9547 |   shlibpath_overrides_runpath=yes | 
 | 9548 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9549 |   shrext_cmds='.dylib' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9550 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
 | 9551 |   if test "$GCC" = yes; then | 
 | 9552 |     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"` | 
 | 9553 |   else | 
 | 9554 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
 | 9555 |   fi | 
 | 9556 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 9557 |   ;; | 
 | 9558 |  | 
 | 9559 | dgux*) | 
 | 9560 |   version_type=linux | 
 | 9561 |   need_lib_prefix=no | 
 | 9562 |   need_version=no | 
 | 9563 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 9564 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9565 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9566 |   ;; | 
 | 9567 |  | 
 | 9568 | freebsd1*) | 
 | 9569 |   dynamic_linker=no | 
 | 9570 |   ;; | 
 | 9571 |  | 
 | 9572 | kfreebsd*-gnu) | 
 | 9573 |   version_type=linux | 
 | 9574 |   need_lib_prefix=no | 
 | 9575 |   need_version=no | 
 | 9576 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 9577 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9578 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9579 |   shlibpath_overrides_runpath=no | 
 | 9580 |   hardcode_into_libs=yes | 
 | 9581 |   dynamic_linker='GNU ld.so' | 
 | 9582 |   ;; | 
 | 9583 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9584 | freebsd* | dragonfly*) | 
 | 9585 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 9586 |   # versioning mechanism, adjust this. | 
 | 9587 |   if test -x /usr/bin/objformat; then | 
 | 9588 |     objformat=`/usr/bin/objformat` | 
 | 9589 |   else | 
 | 9590 |     case $host_os in | 
 | 9591 |     freebsd[123]*) objformat=aout ;; | 
 | 9592 |     *) objformat=elf ;; | 
 | 9593 |     esac | 
 | 9594 |   fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9595 |   version_type=freebsd-$objformat | 
 | 9596 |   case $version_type in | 
 | 9597 |     freebsd-elf*) | 
 | 9598 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 9599 |       need_version=no | 
 | 9600 |       need_lib_prefix=no | 
 | 9601 |       ;; | 
 | 9602 |     freebsd-*) | 
 | 9603 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 9604 |       need_version=yes | 
 | 9605 |       ;; | 
 | 9606 |   esac | 
 | 9607 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9608 |   case $host_os in | 
 | 9609 |   freebsd2*) | 
 | 9610 |     shlibpath_overrides_runpath=yes | 
 | 9611 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9612 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9613 |     shlibpath_overrides_runpath=yes | 
 | 9614 |     hardcode_into_libs=yes | 
 | 9615 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9616 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 9617 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9618 |     shlibpath_overrides_runpath=no | 
 | 9619 |     hardcode_into_libs=yes | 
 | 9620 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9621 |   freebsd*) # from 4.6 on | 
 | 9622 |     shlibpath_overrides_runpath=yes | 
 | 9623 |     hardcode_into_libs=yes | 
 | 9624 |     ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9625 |   esac | 
 | 9626 |   ;; | 
 | 9627 |  | 
 | 9628 | gnu*) | 
 | 9629 |   version_type=linux | 
 | 9630 |   need_lib_prefix=no | 
 | 9631 |   need_version=no | 
 | 9632 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 9633 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9634 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9635 |   hardcode_into_libs=yes | 
 | 9636 |   ;; | 
 | 9637 |  | 
 | 9638 | hpux9* | hpux10* | hpux11*) | 
 | 9639 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 9640 |   # link against other versions. | 
 | 9641 |   version_type=sunos | 
 | 9642 |   need_lib_prefix=no | 
 | 9643 |   need_version=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9644 |   case $host_cpu in | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9645 |   ia64*) | 
 | 9646 |     shrext_cmds='.so' | 
 | 9647 |     hardcode_into_libs=yes | 
 | 9648 |     dynamic_linker="$host_os dld.so" | 
 | 9649 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 9650 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 9651 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9652 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9653 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 9654 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 9655 |     else | 
 | 9656 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 9657 |     fi | 
 | 9658 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 9659 |     ;; | 
 | 9660 |    hppa*64*) | 
 | 9661 |      shrext_cmds='.sl' | 
 | 9662 |      hardcode_into_libs=yes | 
 | 9663 |      dynamic_linker="$host_os dld.sl" | 
 | 9664 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 9665 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 9666 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9667 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9668 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 9669 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 9670 |      ;; | 
 | 9671 |    *) | 
 | 9672 |     shrext_cmds='.sl' | 
 | 9673 |     dynamic_linker="$host_os dld.sl" | 
 | 9674 |     shlibpath_var=SHLIB_PATH | 
 | 9675 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 9676 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9677 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9678 |     ;; | 
 | 9679 |   esac | 
 | 9680 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 9681 |   postinstall_cmds='chmod 555 $lib' | 
 | 9682 |   ;; | 
 | 9683 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9684 | interix3*) | 
 | 9685 |   version_type=linux | 
 | 9686 |   need_lib_prefix=no | 
 | 9687 |   need_version=no | 
 | 9688 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 9689 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9690 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 9691 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9692 |   shlibpath_overrides_runpath=no | 
 | 9693 |   hardcode_into_libs=yes | 
 | 9694 |   ;; | 
 | 9695 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9696 | irix5* | irix6* | nonstopux*) | 
 | 9697 |   case $host_os in | 
 | 9698 |     nonstopux*) version_type=nonstopux ;; | 
 | 9699 |     *) | 
 | 9700 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 9701 | 		version_type=linux | 
 | 9702 | 	else | 
 | 9703 | 		version_type=irix | 
 | 9704 | 	fi ;; | 
 | 9705 |   esac | 
 | 9706 |   need_lib_prefix=no | 
 | 9707 |   need_version=no | 
 | 9708 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9709 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 9710 |   case $host_os in | 
 | 9711 |   irix5* | nonstopux*) | 
 | 9712 |     libsuff= shlibsuff= | 
 | 9713 |     ;; | 
 | 9714 |   *) | 
 | 9715 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 9716 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 9717 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 9718 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 9719 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 9720 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 9721 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 9722 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 9723 |     esac | 
 | 9724 |     ;; | 
 | 9725 |   esac | 
 | 9726 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 9727 |   shlibpath_overrides_runpath=no | 
 | 9728 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 9729 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 9730 |   hardcode_into_libs=yes | 
 | 9731 |   ;; | 
 | 9732 |  | 
 | 9733 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 9734 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 9735 |   dynamic_linker=no | 
 | 9736 |   ;; | 
 | 9737 |  | 
 | 9738 | # This must be Linux ELF. | 
 | 9739 | linux*) | 
 | 9740 |   version_type=linux | 
 | 9741 |   need_lib_prefix=no | 
 | 9742 |   need_version=no | 
 | 9743 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9744 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9745 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 9746 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9747 |   shlibpath_overrides_runpath=no | 
 | 9748 |   # This implies no fast_install, which is unacceptable. | 
 | 9749 |   # Some rework will be needed to allow for fast_install | 
 | 9750 |   # before this can be enabled. | 
 | 9751 |   hardcode_into_libs=yes | 
 | 9752 |  | 
 | 9753 |   # Append ld.so.conf contents to the search path | 
 | 9754 |   if test -f /etc/ld.so.conf; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9755 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9756 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 9757 |   fi | 
 | 9758 |  | 
 | 9759 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 9760 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 9761 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 9762 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 9763 |   # people can always --disable-shared, the test was removed, and we | 
 | 9764 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 9765 |   dynamic_linker='GNU/Linux ld.so' | 
 | 9766 |   ;; | 
 | 9767 |  | 
 | 9768 | knetbsd*-gnu) | 
 | 9769 |   version_type=linux | 
 | 9770 |   need_lib_prefix=no | 
 | 9771 |   need_version=no | 
 | 9772 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 9773 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9774 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9775 |   shlibpath_overrides_runpath=no | 
 | 9776 |   hardcode_into_libs=yes | 
 | 9777 |   dynamic_linker='GNU ld.so' | 
 | 9778 |   ;; | 
 | 9779 |  | 
 | 9780 | netbsd*) | 
 | 9781 |   version_type=sunos | 
 | 9782 |   need_lib_prefix=no | 
 | 9783 |   need_version=no | 
 | 9784 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 9785 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 9786 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 9787 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 9788 |   else | 
 | 9789 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 9790 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9791 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 9792 |   fi | 
 | 9793 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9794 |   shlibpath_overrides_runpath=yes | 
 | 9795 |   hardcode_into_libs=yes | 
 | 9796 |   ;; | 
 | 9797 |  | 
 | 9798 | newsos6) | 
 | 9799 |   version_type=linux | 
 | 9800 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9801 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9802 |   shlibpath_overrides_runpath=yes | 
 | 9803 |   ;; | 
 | 9804 |  | 
 | 9805 | nto-qnx*) | 
 | 9806 |   version_type=linux | 
 | 9807 |   need_lib_prefix=no | 
 | 9808 |   need_version=no | 
 | 9809 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9810 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9811 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9812 |   shlibpath_overrides_runpath=yes | 
 | 9813 |   ;; | 
 | 9814 |  | 
 | 9815 | openbsd*) | 
 | 9816 |   version_type=sunos | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9817 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9818 |   need_lib_prefix=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9819 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 9820 |   case $host_os in | 
 | 9821 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
 | 9822 |     *)                         need_version=no  ;; | 
 | 9823 |   esac | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9824 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 9825 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 9826 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9827 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 9828 |     case $host_os in | 
 | 9829 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 9830 | 	shlibpath_overrides_runpath=no | 
 | 9831 | 	;; | 
 | 9832 |       *) | 
 | 9833 | 	shlibpath_overrides_runpath=yes | 
 | 9834 | 	;; | 
 | 9835 |       esac | 
 | 9836 |   else | 
 | 9837 |     shlibpath_overrides_runpath=yes | 
 | 9838 |   fi | 
 | 9839 |   ;; | 
 | 9840 |  | 
 | 9841 | os2*) | 
 | 9842 |   libname_spec='$name' | 
 | 9843 |   shrext_cmds=".dll" | 
 | 9844 |   need_lib_prefix=no | 
 | 9845 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 9846 |   dynamic_linker='OS/2 ld.exe' | 
 | 9847 |   shlibpath_var=LIBPATH | 
 | 9848 |   ;; | 
 | 9849 |  | 
 | 9850 | osf3* | osf4* | osf5*) | 
 | 9851 |   version_type=osf | 
 | 9852 |   need_lib_prefix=no | 
 | 9853 |   need_version=no | 
 | 9854 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9855 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9856 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9857 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 9858 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 9859 |   ;; | 
 | 9860 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9861 | solaris*) | 
 | 9862 |   version_type=linux | 
 | 9863 |   need_lib_prefix=no | 
 | 9864 |   need_version=no | 
 | 9865 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9866 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9867 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9868 |   shlibpath_overrides_runpath=yes | 
 | 9869 |   hardcode_into_libs=yes | 
 | 9870 |   # ldd complains unless libraries are executable | 
 | 9871 |   postinstall_cmds='chmod +x $lib' | 
 | 9872 |   ;; | 
 | 9873 |  | 
 | 9874 | sunos4*) | 
 | 9875 |   version_type=sunos | 
 | 9876 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 9877 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 9878 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9879 |   shlibpath_overrides_runpath=yes | 
 | 9880 |   if test "$with_gnu_ld" = yes; then | 
 | 9881 |     need_lib_prefix=no | 
 | 9882 |   fi | 
 | 9883 |   need_version=yes | 
 | 9884 |   ;; | 
 | 9885 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9886 | sysv4 | sysv4.3*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9887 |   version_type=linux | 
 | 9888 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9889 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9890 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9891 |   case $host_vendor in | 
 | 9892 |     sni) | 
 | 9893 |       shlibpath_overrides_runpath=no | 
 | 9894 |       need_lib_prefix=no | 
 | 9895 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 9896 |       runpath_var=LD_RUN_PATH | 
 | 9897 |       ;; | 
 | 9898 |     siemens) | 
 | 9899 |       need_lib_prefix=no | 
 | 9900 |       ;; | 
 | 9901 |     motorola) | 
 | 9902 |       need_lib_prefix=no | 
 | 9903 |       need_version=no | 
 | 9904 |       shlibpath_overrides_runpath=no | 
 | 9905 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 9906 |       ;; | 
 | 9907 |   esac | 
 | 9908 |   ;; | 
 | 9909 |  | 
 | 9910 | sysv4*MP*) | 
 | 9911 |   if test -d /usr/nec ;then | 
 | 9912 |     version_type=linux | 
 | 9913 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 9914 |     soname_spec='$libname${shared_ext}.$major' | 
 | 9915 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 9916 |   fi | 
 | 9917 |   ;; | 
 | 9918 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9919 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 9920 |   version_type=freebsd-elf | 
 | 9921 |   need_lib_prefix=no | 
 | 9922 |   need_version=no | 
 | 9923 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 9924 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9925 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9926 |   hardcode_into_libs=yes | 
 | 9927 |   if test "$with_gnu_ld" = yes; then | 
 | 9928 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 9929 |     shlibpath_overrides_runpath=no | 
 | 9930 |   else | 
 | 9931 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 9932 |     shlibpath_overrides_runpath=yes | 
 | 9933 |     case $host_os in | 
 | 9934 |       sco3.2v5*) | 
 | 9935 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 9936 | 	;; | 
 | 9937 |     esac | 
 | 9938 |   fi | 
 | 9939 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 9940 |   ;; | 
 | 9941 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9942 | uts4*) | 
 | 9943 |   version_type=linux | 
 | 9944 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 9945 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 9946 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 9947 |   ;; | 
 | 9948 |  | 
 | 9949 | *) | 
 | 9950 |   dynamic_linker=no | 
 | 9951 |   ;; | 
 | 9952 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9953 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 9954 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9955 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 9956 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9957 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 9958 | if test "$GCC" = yes; then | 
 | 9959 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 9960 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9961 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9962 |  | 
 | 9963 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | 
 | 9964 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9965 | if test "${libltdl_cv_shlibext+set}" = set; then | 
 | 9966 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9967 | else | 
 | 9968 |  | 
 | 9969 | module=yes | 
 | 9970 | eval libltdl_cv_shlibext=$shrext_cmds | 
 | 9971 |  | 
 | 9972 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9973 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | 
 | 9974 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9975 | if test -n "$libltdl_cv_shlibext"; then | 
 | 9976 |  | 
 | 9977 | cat >>confdefs.h <<_ACEOF | 
 | 9978 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | 
 | 9979 | _ACEOF | 
 | 9980 |  | 
 | 9981 | fi | 
 | 9982 |  | 
 | 9983 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9984 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | 
 | 9985 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9986 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | 
 | 9987 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 9988 | else | 
 | 9989 |   libltdl_cv_shlibpath_var="$shlibpath_var" | 
 | 9990 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9991 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | 
 | 9992 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9993 | if test -n "$libltdl_cv_shlibpath_var"; then | 
 | 9994 |  | 
 | 9995 | cat >>confdefs.h <<_ACEOF | 
 | 9996 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | 
 | 9997 | _ACEOF | 
 | 9998 |  | 
 | 9999 | fi | 
 | 10000 |  | 
 | 10001 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10002 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 | 
 | 10003 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | if test "${libltdl_cv_sys_search_path+set}" = set; then | 
 | 10005 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10006 | else | 
 | 10007 |   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | 
 | 10008 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10009 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | 
 | 10010 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10011 | if test -n "$libltdl_cv_sys_search_path"; then | 
 | 10012 |   sys_search_path= | 
 | 10013 |   for dir in $libltdl_cv_sys_search_path; do | 
 | 10014 |     if test -z "$sys_search_path"; then | 
 | 10015 |       sys_search_path="$dir" | 
 | 10016 |     else | 
 | 10017 |       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 
 | 10018 |     fi | 
 | 10019 |   done | 
 | 10020 |  | 
 | 10021 | cat >>confdefs.h <<_ACEOF | 
 | 10022 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | 
 | 10023 | _ACEOF | 
 | 10024 |  | 
 | 10025 | fi | 
 | 10026 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10027 | { echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 10028 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10029 | if test "${libltdl_cv_objdir+set}" = set; then | 
 | 10030 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10031 | else | 
 | 10032 |   libltdl_cv_objdir="$objdir" | 
 | 10033 |   if test -n "$objdir"; then | 
 | 10034 |     : | 
 | 10035 |   else | 
 | 10036 |     rm -f .libs 2>/dev/null | 
 | 10037 |     mkdir .libs 2>/dev/null | 
 | 10038 |     if test -d .libs; then | 
 | 10039 |       libltdl_cv_objdir=.libs | 
 | 10040 |     else | 
 | 10041 |       # MS-DOS does not allow filenames that begin with a dot. | 
 | 10042 |       libltdl_cv_objdir=_libs | 
 | 10043 |     fi | 
 | 10044 |   rmdir .libs 2>/dev/null | 
 | 10045 |   fi | 
 | 10046 |  | 
 | 10047 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10048 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | 
 | 10049 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10050 |  | 
 | 10051 | cat >>confdefs.h <<_ACEOF | 
 | 10052 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | 
 | 10053 | _ACEOF | 
 | 10054 |  | 
 | 10055 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10056 |  | 
 | 10057 |  | 
 | 10058 |  | 
 | 10059 |  | 
 | 10060 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10061 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 10062 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10063 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 10064 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10065 | else | 
 | 10066 |  | 
 | 10067 | # These are sane defaults that work on at least a few old systems. | 
 | 10068 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 10069 |  | 
 | 10070 | # Character class describing NM global symbol codes. | 
 | 10071 | symcode='[BCDEGRST]' | 
 | 10072 |  | 
 | 10073 | # Regexp to match symbols that can be accessed directly from C. | 
 | 10074 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 10075 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10076 | # Transform an extracted symbol line into a proper C declaration | 
 | 10077 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 10078 |  | 
 | 10079 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 10080 | 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'" | 
 | 10081 |  | 
 | 10082 | # Define system-specific variables. | 
 | 10083 | case $host_os in | 
 | 10084 | aix*) | 
 | 10085 |   symcode='[BCDT]' | 
 | 10086 |   ;; | 
 | 10087 | cygwin* | mingw* | pw32*) | 
 | 10088 |   symcode='[ABCDGISTW]' | 
 | 10089 |   ;; | 
 | 10090 | hpux*) # Its linker distinguishes data from code symbols | 
 | 10091 |   if test "$host_cpu" = ia64; then | 
 | 10092 |     symcode='[ABCDEGRST]' | 
 | 10093 |   fi | 
 | 10094 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 10095 |   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'" | 
 | 10096 |   ;; | 
 | 10097 | linux*) | 
 | 10098 |   if test "$host_cpu" = ia64; then | 
 | 10099 |     symcode='[ABCDGIRSTW]' | 
 | 10100 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 10101 |     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'" | 
 | 10102 |   fi | 
 | 10103 |   ;; | 
 | 10104 | irix* | nonstopux*) | 
 | 10105 |   symcode='[BCDEGRST]' | 
 | 10106 |   ;; | 
 | 10107 | osf*) | 
 | 10108 |   symcode='[BCDEGQRST]' | 
 | 10109 |   ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10110 | solaris*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10111 |   symcode='[BDRT]' | 
 | 10112 |   ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10113 | sco3.2v5*) | 
 | 10114 |   symcode='[DT]' | 
 | 10115 |   ;; | 
 | 10116 | sysv4.2uw2*) | 
 | 10117 |   symcode='[DT]' | 
 | 10118 |   ;; | 
 | 10119 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 10120 |   symcode='[ABDT]' | 
 | 10121 |   ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10122 | sysv4) | 
 | 10123 |   symcode='[DFNSTU]' | 
 | 10124 |   ;; | 
 | 10125 | esac | 
 | 10126 |  | 
 | 10127 | # Handle CRLF in mingw tool chain | 
 | 10128 | opt_cr= | 
 | 10129 | case $build_os in | 
 | 10130 | mingw*) | 
 | 10131 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 10132 |   ;; | 
 | 10133 | esac | 
 | 10134 |  | 
 | 10135 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 10136 | case `$NM -V 2>&1` in | 
 | 10137 | *GNU* | *'with BFD'*) | 
 | 10138 |   symcode='[ABCDGIRSTW]' ;; | 
 | 10139 | esac | 
 | 10140 |  | 
 | 10141 | # Try without a prefix undercore, then with it. | 
 | 10142 | for ac_symprfx in "" "_"; do | 
 | 10143 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10144 |   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
 | 10145 |   symxfrm="\\1 $ac_symprfx\\2 \\2" | 
 | 10146 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10147 |   # Write the raw and C identifiers. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10148 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10149 |  | 
 | 10150 |   # Check to see that the pipe works correctly. | 
 | 10151 |   pipe_works=no | 
 | 10152 |  | 
 | 10153 |   rm -f conftest* | 
 | 10154 |   cat > conftest.$ac_ext <<EOF | 
 | 10155 | #ifdef __cplusplus | 
 | 10156 | extern "C" { | 
 | 10157 | #endif | 
 | 10158 | char nm_test_var; | 
 | 10159 | void nm_test_func(){} | 
 | 10160 | #ifdef __cplusplus | 
 | 10161 | } | 
 | 10162 | #endif | 
 | 10163 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 10164 | EOF | 
 | 10165 |  | 
 | 10166 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 10167 |   (eval $ac_compile) 2>&5 | 
 | 10168 |   ac_status=$? | 
 | 10169 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10170 |   (exit $ac_status); }; then | 
 | 10171 |     # Now try to grab the symbols. | 
 | 10172 |     nlist=conftest.nm | 
 | 10173 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 10174 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 10175 |   ac_status=$? | 
 | 10176 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10177 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 10178 |       # Try sorting and uniquifying the output. | 
 | 10179 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 10180 | 	mv -f "$nlist"T "$nlist" | 
 | 10181 |       else | 
 | 10182 | 	rm -f "$nlist"T | 
 | 10183 |       fi | 
 | 10184 |  | 
 | 10185 |       # Make sure that we snagged all the symbols we need. | 
 | 10186 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 10187 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 10188 | 	  cat <<EOF > conftest.$ac_ext | 
 | 10189 | #ifdef __cplusplus | 
 | 10190 | extern "C" { | 
 | 10191 | #endif | 
 | 10192 |  | 
 | 10193 | EOF | 
 | 10194 | 	  # Now generate the symbol file. | 
 | 10195 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 10196 |  | 
 | 10197 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 10198 | #if defined (__STDC__) && __STDC__ | 
 | 10199 | # define lt_ptr_t void * | 
 | 10200 | #else | 
 | 10201 | # define lt_ptr_t char * | 
 | 10202 | # define const | 
 | 10203 | #endif | 
 | 10204 |  | 
 | 10205 | /* The mapping between symbol names and symbols. */ | 
 | 10206 | const struct { | 
 | 10207 |   const char *name; | 
 | 10208 |   lt_ptr_t address; | 
 | 10209 | } | 
 | 10210 | lt_preloaded_symbols[] = | 
 | 10211 | { | 
 | 10212 | EOF | 
 | 10213 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 10214 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 10215 |   {0, (lt_ptr_t) 0} | 
 | 10216 | }; | 
 | 10217 |  | 
 | 10218 | #ifdef __cplusplus | 
 | 10219 | } | 
 | 10220 | #endif | 
 | 10221 | EOF | 
 | 10222 | 	  # Now try linking the two files. | 
 | 10223 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 10224 | 	  lt_save_LIBS="$LIBS" | 
 | 10225 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 10226 | 	  LIBS="conftstm.$ac_objext" | 
 | 10227 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 10228 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 10229 |   (eval $ac_link) 2>&5 | 
 | 10230 |   ac_status=$? | 
 | 10231 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10232 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 10233 | 	    pipe_works=yes | 
 | 10234 | 	  fi | 
 | 10235 | 	  LIBS="$lt_save_LIBS" | 
 | 10236 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 10237 | 	else | 
 | 10238 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 10239 | 	fi | 
 | 10240 |       else | 
 | 10241 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 10242 |       fi | 
 | 10243 |     else | 
 | 10244 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 10245 |     fi | 
 | 10246 |   else | 
 | 10247 |     echo "$progname: failed program was:" >&5 | 
 | 10248 |     cat conftest.$ac_ext >&5 | 
 | 10249 |   fi | 
 | 10250 |   rm -f conftest* conftst* | 
 | 10251 |  | 
 | 10252 |   # Do not use the global_symbol_pipe unless it works. | 
 | 10253 |   if test "$pipe_works" = yes; then | 
 | 10254 |     break | 
 | 10255 |   else | 
 | 10256 |     lt_cv_sys_global_symbol_pipe= | 
 | 10257 |   fi | 
 | 10258 | done | 
 | 10259 |  | 
 | 10260 | fi | 
 | 10261 |  | 
 | 10262 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 10263 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 10264 | fi | 
 | 10265 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10266 |   { echo "$as_me:$LINENO: result: failed" >&5 | 
 | 10267 | echo "${ECHO_T}failed" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10269 |   { echo "$as_me:$LINENO: result: ok" >&5 | 
 | 10270 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10271 | fi | 
 | 10272 |  | 
 | 10273 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10274 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
 | 10275 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10276 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | 
 | 10277 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10278 | else | 
 | 10279 |   if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
 | 10280 |     libltdl_cv_preloaded_symbols=yes | 
 | 10281 |   else | 
 | 10282 |     libltdl_cv_preloaded_symbols=no | 
 | 10283 |   fi | 
 | 10284 |  | 
 | 10285 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10286 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | 
 | 10287 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10288 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
 | 10289 |  | 
 | 10290 | cat >>confdefs.h <<\_ACEOF | 
 | 10291 | #define HAVE_PRELOADED_SYMBOLS 1 | 
 | 10292 | _ACEOF | 
 | 10293 |  | 
 | 10294 | fi | 
 | 10295 |  | 
 | 10296 | LIBADD_DL= | 
 | 10297 |  | 
 | 10298 | ac_ext=c | 
 | 10299 | ac_cpp='$CPP $CPPFLAGS' | 
 | 10300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 10301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 10302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 10303 |  | 
 | 10304 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10305 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 10306 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10307 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 10308 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10309 | else | 
 | 10310 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10311 | /* confdefs.h.  */ | 
 | 10312 | _ACEOF | 
 | 10313 | cat confdefs.h >>conftest.$ac_ext | 
 | 10314 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10315 | /* end confdefs.h.  */ | 
 | 10316 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 10317 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 10318 | #define shl_load innocuous_shl_load | 
 | 10319 |  | 
 | 10320 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 10321 |     which can conflict with char shl_load (); below. | 
 | 10322 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10323 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 10324 |  | 
 | 10325 | #ifdef __STDC__ | 
 | 10326 | # include <limits.h> | 
 | 10327 | #else | 
 | 10328 | # include <assert.h> | 
 | 10329 | #endif | 
 | 10330 |  | 
 | 10331 | #undef shl_load | 
 | 10332 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10333 | /* Override any GCC internal prototype to avoid an error. | 
 | 10334 |    Use char because int might match the return type of a GCC | 
 | 10335 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10336 | #ifdef __cplusplus | 
 | 10337 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10338 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10339 | char shl_load (); | 
 | 10340 | /* The GNU C library defines this for functions which it implements | 
 | 10341 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 10342 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10343 | #if defined __stub_shl_load || defined __stub___shl_load | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10344 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | #endif | 
 | 10346 |  | 
 | 10347 | int | 
 | 10348 | main () | 
 | 10349 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10350 | return shl_load (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10351 |   ; | 
 | 10352 |   return 0; | 
 | 10353 | } | 
 | 10354 | _ACEOF | 
 | 10355 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10356 | if { (ac_try="$ac_link" | 
 | 10357 | case "(($ac_try" in | 
 | 10358 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10359 |   *) ac_try_echo=$ac_try;; | 
 | 10360 | esac | 
 | 10361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10362 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10363 |   ac_status=$? | 
 | 10364 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10365 |   rm -f conftest.er1 | 
 | 10366 |   cat conftest.err >&5 | 
 | 10367 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10368 |   (exit $ac_status); } && | 
 | 10369 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10370 |   { (case "(($ac_try" in | 
 | 10371 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10372 |   *) ac_try_echo=$ac_try;; | 
 | 10373 | esac | 
 | 10374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10375 |   (eval "$ac_try") 2>&5 | 
 | 10376 |   ac_status=$? | 
 | 10377 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10378 |   (exit $ac_status); }; } && | 
 | 10379 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10380 |   { (case "(($ac_try" in | 
 | 10381 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10382 |   *) ac_try_echo=$ac_try;; | 
 | 10383 | esac | 
 | 10384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10385 |   (eval "$ac_try") 2>&5 | 
 | 10386 |   ac_status=$? | 
 | 10387 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10388 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10389 |   ac_cv_func_shl_load=yes | 
 | 10390 | else | 
 | 10391 |   echo "$as_me: failed program was:" >&5 | 
 | 10392 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10393 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10394 | 	ac_cv_func_shl_load=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10395 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10396 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10397 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10398 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10399 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10400 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 10401 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10402 | if test $ac_cv_func_shl_load = yes; then | 
 | 10403 |  | 
 | 10404 | cat >>confdefs.h <<\_ACEOF | 
 | 10405 | #define HAVE_SHL_LOAD 1 | 
 | 10406 | _ACEOF | 
 | 10407 |  | 
 | 10408 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10409 |   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 10410 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10411 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 10412 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10413 | else | 
 | 10414 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10415 | LIBS="-ldld  $LIBS" | 
 | 10416 | cat >conftest.$ac_ext <<_ACEOF | 
 | 10417 | /* confdefs.h.  */ | 
 | 10418 | _ACEOF | 
 | 10419 | cat confdefs.h >>conftest.$ac_ext | 
 | 10420 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10421 | /* end confdefs.h.  */ | 
 | 10422 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10423 | /* Override any GCC internal prototype to avoid an error. | 
 | 10424 |    Use char because int might match the return type of a GCC | 
 | 10425 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10426 | #ifdef __cplusplus | 
 | 10427 | extern "C" | 
 | 10428 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | char shl_load (); | 
 | 10430 | int | 
 | 10431 | main () | 
 | 10432 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10433 | return shl_load (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10434 |   ; | 
 | 10435 |   return 0; | 
 | 10436 | } | 
 | 10437 | _ACEOF | 
 | 10438 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10439 | if { (ac_try="$ac_link" | 
 | 10440 | case "(($ac_try" in | 
 | 10441 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10442 |   *) ac_try_echo=$ac_try;; | 
 | 10443 | esac | 
 | 10444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10445 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10446 |   ac_status=$? | 
 | 10447 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10448 |   rm -f conftest.er1 | 
 | 10449 |   cat conftest.err >&5 | 
 | 10450 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10451 |   (exit $ac_status); } && | 
 | 10452 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10453 |   { (case "(($ac_try" in | 
 | 10454 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10455 |   *) ac_try_echo=$ac_try;; | 
 | 10456 | esac | 
 | 10457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10458 |   (eval "$ac_try") 2>&5 | 
 | 10459 |   ac_status=$? | 
 | 10460 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10461 |   (exit $ac_status); }; } && | 
 | 10462 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10463 |   { (case "(($ac_try" in | 
 | 10464 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10465 |   *) ac_try_echo=$ac_try;; | 
 | 10466 | esac | 
 | 10467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10468 |   (eval "$ac_try") 2>&5 | 
 | 10469 |   ac_status=$? | 
 | 10470 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10471 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 |   ac_cv_lib_dld_shl_load=yes | 
 | 10473 | else | 
 | 10474 |   echo "$as_me: failed program was:" >&5 | 
 | 10475 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10476 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10477 | 	ac_cv_lib_dld_shl_load=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10478 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10479 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10480 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10481 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10482 | LIBS=$ac_check_lib_save_LIBS | 
 | 10483 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10484 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 10485 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 10487 |  | 
 | 10488 | cat >>confdefs.h <<\_ACEOF | 
 | 10489 | #define HAVE_SHL_LOAD 1 | 
 | 10490 | _ACEOF | 
 | 10491 |  | 
 | 10492 | 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 10493 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10494 |   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 10495 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 10497 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10498 | else | 
 | 10499 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10500 | LIBS="-ldl  $LIBS" | 
 | 10501 | cat >conftest.$ac_ext <<_ACEOF | 
 | 10502 | /* confdefs.h.  */ | 
 | 10503 | _ACEOF | 
 | 10504 | cat confdefs.h >>conftest.$ac_ext | 
 | 10505 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10506 | /* end confdefs.h.  */ | 
 | 10507 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | /* Override any GCC internal prototype to avoid an error. | 
 | 10509 |    Use char because int might match the return type of a GCC | 
 | 10510 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10511 | #ifdef __cplusplus | 
 | 10512 | extern "C" | 
 | 10513 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10514 | char dlopen (); | 
 | 10515 | int | 
 | 10516 | main () | 
 | 10517 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10518 | return dlopen (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10519 |   ; | 
 | 10520 |   return 0; | 
 | 10521 | } | 
 | 10522 | _ACEOF | 
 | 10523 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10524 | if { (ac_try="$ac_link" | 
 | 10525 | case "(($ac_try" in | 
 | 10526 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10527 |   *) ac_try_echo=$ac_try;; | 
 | 10528 | esac | 
 | 10529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10530 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10531 |   ac_status=$? | 
 | 10532 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10533 |   rm -f conftest.er1 | 
 | 10534 |   cat conftest.err >&5 | 
 | 10535 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10536 |   (exit $ac_status); } && | 
 | 10537 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10538 |   { (case "(($ac_try" in | 
 | 10539 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10540 |   *) ac_try_echo=$ac_try;; | 
 | 10541 | esac | 
 | 10542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10543 |   (eval "$ac_try") 2>&5 | 
 | 10544 |   ac_status=$? | 
 | 10545 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10546 |   (exit $ac_status); }; } && | 
 | 10547 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10548 |   { (case "(($ac_try" in | 
 | 10549 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10550 |   *) ac_try_echo=$ac_try;; | 
 | 10551 | esac | 
 | 10552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10553 |   (eval "$ac_try") 2>&5 | 
 | 10554 |   ac_status=$? | 
 | 10555 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10556 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10557 |   ac_cv_lib_dl_dlopen=yes | 
 | 10558 | else | 
 | 10559 |   echo "$as_me: failed program was:" >&5 | 
 | 10560 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10561 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10562 | 	ac_cv_lib_dl_dlopen=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10563 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10564 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10565 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10566 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10567 | LIBS=$ac_check_lib_save_LIBS | 
 | 10568 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10569 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 10570 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10571 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 10572 |  | 
 | 10573 | cat >>confdefs.h <<\_ACEOF | 
 | 10574 | #define HAVE_LIBDL 1 | 
 | 10575 | _ACEOF | 
 | 10576 |  | 
 | 10577 | 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | 
 | 10578 | else | 
 | 10579 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10580 | /* confdefs.h.  */ | 
 | 10581 | _ACEOF | 
 | 10582 | cat confdefs.h >>conftest.$ac_ext | 
 | 10583 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10584 | /* end confdefs.h.  */ | 
 | 10585 | #if HAVE_DLFCN_H | 
 | 10586 | #  include <dlfcn.h> | 
 | 10587 | #endif | 
 | 10588 |  | 
 | 10589 | int | 
 | 10590 | main () | 
 | 10591 | { | 
 | 10592 | dlopen(0, 0); | 
 | 10593 |   ; | 
 | 10594 |   return 0; | 
 | 10595 | } | 
 | 10596 | _ACEOF | 
 | 10597 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10598 | if { (ac_try="$ac_link" | 
 | 10599 | case "(($ac_try" in | 
 | 10600 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10601 |   *) ac_try_echo=$ac_try;; | 
 | 10602 | esac | 
 | 10603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10604 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10605 |   ac_status=$? | 
 | 10606 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10607 |   rm -f conftest.er1 | 
 | 10608 |   cat conftest.err >&5 | 
 | 10609 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10610 |   (exit $ac_status); } && | 
 | 10611 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10612 |   { (case "(($ac_try" in | 
 | 10613 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10614 |   *) ac_try_echo=$ac_try;; | 
 | 10615 | esac | 
 | 10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10617 |   (eval "$ac_try") 2>&5 | 
 | 10618 |   ac_status=$? | 
 | 10619 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10620 |   (exit $ac_status); }; } && | 
 | 10621 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10622 |   { (case "(($ac_try" in | 
 | 10623 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10624 |   *) ac_try_echo=$ac_try;; | 
 | 10625 | esac | 
 | 10626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10627 |   (eval "$ac_try") 2>&5 | 
 | 10628 |   ac_status=$? | 
 | 10629 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10630 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10631 |  | 
 | 10632 | cat >>confdefs.h <<\_ACEOF | 
 | 10633 | #define HAVE_LIBDL 1 | 
 | 10634 | _ACEOF | 
 | 10635 |  libltdl_cv_func_dlopen="yes" | 
 | 10636 | else | 
 | 10637 |   echo "$as_me: failed program was:" >&5 | 
 | 10638 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10639 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10640 | 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 10641 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10642 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 10643 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10644 | else | 
 | 10645 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10646 | LIBS="-lsvld  $LIBS" | 
 | 10647 | cat >conftest.$ac_ext <<_ACEOF | 
 | 10648 | /* confdefs.h.  */ | 
 | 10649 | _ACEOF | 
 | 10650 | cat confdefs.h >>conftest.$ac_ext | 
 | 10651 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10652 | /* end confdefs.h.  */ | 
 | 10653 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10654 | /* Override any GCC internal prototype to avoid an error. | 
 | 10655 |    Use char because int might match the return type of a GCC | 
 | 10656 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10657 | #ifdef __cplusplus | 
 | 10658 | extern "C" | 
 | 10659 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10660 | char dlopen (); | 
 | 10661 | int | 
 | 10662 | main () | 
 | 10663 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10664 | return dlopen (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10665 |   ; | 
 | 10666 |   return 0; | 
 | 10667 | } | 
 | 10668 | _ACEOF | 
 | 10669 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10670 | if { (ac_try="$ac_link" | 
 | 10671 | case "(($ac_try" in | 
 | 10672 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10673 |   *) ac_try_echo=$ac_try;; | 
 | 10674 | esac | 
 | 10675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10676 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10677 |   ac_status=$? | 
 | 10678 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10679 |   rm -f conftest.er1 | 
 | 10680 |   cat conftest.err >&5 | 
 | 10681 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10682 |   (exit $ac_status); } && | 
 | 10683 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10684 |   { (case "(($ac_try" in | 
 | 10685 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10686 |   *) ac_try_echo=$ac_try;; | 
 | 10687 | esac | 
 | 10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10689 |   (eval "$ac_try") 2>&5 | 
 | 10690 |   ac_status=$? | 
 | 10691 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10692 |   (exit $ac_status); }; } && | 
 | 10693 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10694 |   { (case "(($ac_try" in | 
 | 10695 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10696 |   *) ac_try_echo=$ac_try;; | 
 | 10697 | esac | 
 | 10698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10699 |   (eval "$ac_try") 2>&5 | 
 | 10700 |   ac_status=$? | 
 | 10701 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10702 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 |   ac_cv_lib_svld_dlopen=yes | 
 | 10704 | else | 
 | 10705 |   echo "$as_me: failed program was:" >&5 | 
 | 10706 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10707 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10708 | 	ac_cv_lib_svld_dlopen=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10709 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10710 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10711 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10713 | LIBS=$ac_check_lib_save_LIBS | 
 | 10714 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10715 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 10716 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10717 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 10718 |  | 
 | 10719 | cat >>confdefs.h <<\_ACEOF | 
 | 10720 | #define HAVE_LIBDL 1 | 
 | 10721 | _ACEOF | 
 | 10722 |  | 
 | 10723 | 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | 
 | 10724 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10725 |   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 10726 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10727 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 10728 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10729 | else | 
 | 10730 |   ac_check_lib_save_LIBS=$LIBS | 
 | 10731 | LIBS="-ldld  $LIBS" | 
 | 10732 | cat >conftest.$ac_ext <<_ACEOF | 
 | 10733 | /* confdefs.h.  */ | 
 | 10734 | _ACEOF | 
 | 10735 | cat confdefs.h >>conftest.$ac_ext | 
 | 10736 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10737 | /* end confdefs.h.  */ | 
 | 10738 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10739 | /* Override any GCC internal prototype to avoid an error. | 
 | 10740 |    Use char because int might match the return type of a GCC | 
 | 10741 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10742 | #ifdef __cplusplus | 
 | 10743 | extern "C" | 
 | 10744 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10745 | char dld_link (); | 
 | 10746 | int | 
 | 10747 | main () | 
 | 10748 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10749 | return dld_link (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10750 |   ; | 
 | 10751 |   return 0; | 
 | 10752 | } | 
 | 10753 | _ACEOF | 
 | 10754 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10755 | if { (ac_try="$ac_link" | 
 | 10756 | case "(($ac_try" in | 
 | 10757 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10758 |   *) ac_try_echo=$ac_try;; | 
 | 10759 | esac | 
 | 10760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10761 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10762 |   ac_status=$? | 
 | 10763 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10764 |   rm -f conftest.er1 | 
 | 10765 |   cat conftest.err >&5 | 
 | 10766 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10767 |   (exit $ac_status); } && | 
 | 10768 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10769 |   { (case "(($ac_try" in | 
 | 10770 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10771 |   *) ac_try_echo=$ac_try;; | 
 | 10772 | esac | 
 | 10773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10774 |   (eval "$ac_try") 2>&5 | 
 | 10775 |   ac_status=$? | 
 | 10776 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10777 |   (exit $ac_status); }; } && | 
 | 10778 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10779 |   { (case "(($ac_try" in | 
 | 10780 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10781 |   *) ac_try_echo=$ac_try;; | 
 | 10782 | esac | 
 | 10783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10784 |   (eval "$ac_try") 2>&5 | 
 | 10785 |   ac_status=$? | 
 | 10786 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10787 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10788 |   ac_cv_lib_dld_dld_link=yes | 
 | 10789 | else | 
 | 10790 |   echo "$as_me: failed program was:" >&5 | 
 | 10791 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10792 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10793 | 	ac_cv_lib_dld_dld_link=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10794 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10795 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10796 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10797 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10798 | LIBS=$ac_check_lib_save_LIBS | 
 | 10799 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10800 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 10801 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10802 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 10803 |  | 
 | 10804 | cat >>confdefs.h <<\_ACEOF | 
 | 10805 | #define HAVE_DLD 1 | 
 | 10806 | _ACEOF | 
 | 10807 |  | 
 | 10808 | 	 	LIBADD_DL="$LIBADD_DL -ldld" | 
 | 10809 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10810 |   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | 
 | 10811 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10812 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | 
 | 10813 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10814 | else | 
 | 10815 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10816 | /* confdefs.h.  */ | 
 | 10817 | _ACEOF | 
 | 10818 | cat confdefs.h >>conftest.$ac_ext | 
 | 10819 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10820 | /* end confdefs.h.  */ | 
 | 10821 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | 
 | 10822 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 10823 | #define _dyld_func_lookup innocuous__dyld_func_lookup | 
 | 10824 |  | 
 | 10825 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 10826 |     which can conflict with char _dyld_func_lookup (); below. | 
 | 10827 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10828 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 10829 |  | 
 | 10830 | #ifdef __STDC__ | 
 | 10831 | # include <limits.h> | 
 | 10832 | #else | 
 | 10833 | # include <assert.h> | 
 | 10834 | #endif | 
 | 10835 |  | 
 | 10836 | #undef _dyld_func_lookup | 
 | 10837 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10838 | /* Override any GCC internal prototype to avoid an error. | 
 | 10839 |    Use char because int might match the return type of a GCC | 
 | 10840 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10841 | #ifdef __cplusplus | 
 | 10842 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10844 | char _dyld_func_lookup (); | 
 | 10845 | /* The GNU C library defines this for functions which it implements | 
 | 10846 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 10847 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10848 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10849 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10850 | #endif | 
 | 10851 |  | 
 | 10852 | int | 
 | 10853 | main () | 
 | 10854 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10855 | return _dyld_func_lookup (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10856 |   ; | 
 | 10857 |   return 0; | 
 | 10858 | } | 
 | 10859 | _ACEOF | 
 | 10860 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10861 | if { (ac_try="$ac_link" | 
 | 10862 | case "(($ac_try" in | 
 | 10863 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10864 |   *) ac_try_echo=$ac_try;; | 
 | 10865 | esac | 
 | 10866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10867 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10868 |   ac_status=$? | 
 | 10869 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 10870 |   rm -f conftest.er1 | 
 | 10871 |   cat conftest.err >&5 | 
 | 10872 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10873 |   (exit $ac_status); } && | 
 | 10874 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 10875 |   { (case "(($ac_try" in | 
 | 10876 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10877 |   *) ac_try_echo=$ac_try;; | 
 | 10878 | esac | 
 | 10879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10880 |   (eval "$ac_try") 2>&5 | 
 | 10881 |   ac_status=$? | 
 | 10882 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10883 |   (exit $ac_status); }; } && | 
 | 10884 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 10885 |   { (case "(($ac_try" in | 
 | 10886 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10887 |   *) ac_try_echo=$ac_try;; | 
 | 10888 | esac | 
 | 10889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 10890 |   (eval "$ac_try") 2>&5 | 
 | 10891 |   ac_status=$? | 
 | 10892 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 10893 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 |   ac_cv_func__dyld_func_lookup=yes | 
 | 10895 | else | 
 | 10896 |   echo "$as_me: failed program was:" >&5 | 
 | 10897 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 10898 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10899 | 	ac_cv_func__dyld_func_lookup=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10900 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10901 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10902 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10903 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10904 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10905 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | 
 | 10906 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10907 | if test $ac_cv_func__dyld_func_lookup = yes; then | 
 | 10908 |  | 
 | 10909 | cat >>confdefs.h <<\_ACEOF | 
 | 10910 | #define HAVE_DYLD 1 | 
 | 10911 | _ACEOF | 
 | 10912 |  | 
 | 10913 | fi | 
 | 10914 |  | 
 | 10915 |  | 
 | 10916 | fi | 
 | 10917 |  | 
 | 10918 |  | 
 | 10919 | fi | 
 | 10920 |  | 
 | 10921 |  | 
 | 10922 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10923 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10924 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10925 |       conftest$ac_exeext conftest.$ac_ext | 
 | 10926 |  | 
 | 10927 | fi | 
 | 10928 |  | 
 | 10929 |  | 
 | 10930 | fi | 
 | 10931 |  | 
 | 10932 |  | 
 | 10933 | fi | 
 | 10934 |  | 
 | 10935 |  | 
 | 10936 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
 | 10937 | then | 
 | 10938 |   lt_save_LIBS="$LIBS" | 
 | 10939 |   LIBS="$LIBS $LIBADD_DL" | 
 | 10940 |  | 
 | 10941 | for ac_func in dlerror | 
 | 10942 | do | 
 | 10943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10944 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 10945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 10946 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10947 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 10948 | else | 
 | 10949 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 10950 | /* confdefs.h.  */ | 
 | 10951 | _ACEOF | 
 | 10952 | cat confdefs.h >>conftest.$ac_ext | 
 | 10953 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 10954 | /* end confdefs.h.  */ | 
 | 10955 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 10956 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 10957 | #define $ac_func innocuous_$ac_func | 
 | 10958 |  | 
 | 10959 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 10960 |     which can conflict with char $ac_func (); below. | 
 | 10961 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 10962 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 10963 |  | 
 | 10964 | #ifdef __STDC__ | 
 | 10965 | # include <limits.h> | 
 | 10966 | #else | 
 | 10967 | # include <assert.h> | 
 | 10968 | #endif | 
 | 10969 |  | 
 | 10970 | #undef $ac_func | 
 | 10971 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10972 | /* Override any GCC internal prototype to avoid an error. | 
 | 10973 |    Use char because int might match the return type of a GCC | 
 | 10974 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10975 | #ifdef __cplusplus | 
 | 10976 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10977 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10978 | char $ac_func (); | 
 | 10979 | /* The GNU C library defines this for functions which it implements | 
 | 10980 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 10981 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10982 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10983 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10984 | #endif | 
 | 10985 |  | 
 | 10986 | int | 
 | 10987 | main () | 
 | 10988 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10989 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10990 |   ; | 
 | 10991 |   return 0; | 
 | 10992 | } | 
 | 10993 | _ACEOF | 
 | 10994 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10995 | if { (ac_try="$ac_link" | 
 | 10996 | case "(($ac_try" in | 
 | 10997 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 10998 |   *) ac_try_echo=$ac_try;; | 
 | 10999 | esac | 
 | 11000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11001 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11002 |   ac_status=$? | 
 | 11003 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11004 |   rm -f conftest.er1 | 
 | 11005 |   cat conftest.err >&5 | 
 | 11006 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11007 |   (exit $ac_status); } && | 
 | 11008 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11009 |   { (case "(($ac_try" in | 
 | 11010 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11011 |   *) ac_try_echo=$ac_try;; | 
 | 11012 | esac | 
 | 11013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11014 |   (eval "$ac_try") 2>&5 | 
 | 11015 |   ac_status=$? | 
 | 11016 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11017 |   (exit $ac_status); }; } && | 
 | 11018 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 11019 |   { (case "(($ac_try" in | 
 | 11020 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11021 |   *) ac_try_echo=$ac_try;; | 
 | 11022 | esac | 
 | 11023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11024 |   (eval "$ac_try") 2>&5 | 
 | 11025 |   ac_status=$? | 
 | 11026 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11027 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11028 |   eval "$as_ac_var=yes" | 
 | 11029 | else | 
 | 11030 |   echo "$as_me: failed program was:" >&5 | 
 | 11031 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11032 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11033 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11034 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11035 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11036 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11037 |       conftest$ac_exeext conftest.$ac_ext | 
 | 11038 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11039 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 11040 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11041 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 11043 |   cat >>confdefs.h <<_ACEOF | 
 | 11044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 11045 | _ACEOF | 
 | 11046 |  | 
 | 11047 | fi | 
 | 11048 | done | 
 | 11049 |  | 
 | 11050 |   LIBS="$lt_save_LIBS" | 
 | 11051 | fi | 
 | 11052 | ac_ext=c | 
 | 11053 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11057 |  | 
 | 11058 |  | 
 | 11059 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11060 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | 
 | 11061 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11062 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | 
 | 11063 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11064 | else | 
 | 11065 |   ac_cv_sys_symbol_underscore=no | 
 | 11066 |   cat > conftest.$ac_ext <<EOF | 
 | 11067 | void nm_test_func(){} | 
 | 11068 | int main(){nm_test_func;return 0;} | 
 | 11069 | EOF | 
 | 11070 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 11071 |   (eval $ac_compile) 2>&5 | 
 | 11072 |   ac_status=$? | 
 | 11073 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11074 |   (exit $ac_status); }; then | 
 | 11075 |     # Now try to grab the symbols. | 
 | 11076 |     ac_nlist=conftest.nm | 
 | 11077 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | 
 | 11078 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
 | 11079 |   ac_status=$? | 
 | 11080 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11081 |   (exit $ac_status); } && test -s "$ac_nlist"; then | 
 | 11082 |       # See whether the symbols have a leading underscore. | 
 | 11083 |       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
 | 11084 |         ac_cv_sys_symbol_underscore=yes | 
 | 11085 |       else | 
 | 11086 |         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
 | 11087 | 	  : | 
 | 11088 |         else | 
 | 11089 | 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
 | 11090 |         fi | 
 | 11091 |       fi | 
 | 11092 |     else | 
 | 11093 |       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 11094 |     fi | 
 | 11095 |   else | 
 | 11096 |     echo "configure: failed program was:" >&5 | 
 | 11097 |     cat conftest.c >&5 | 
 | 11098 |   fi | 
 | 11099 |   rm -rf conftest* | 
 | 11100 |  | 
 | 11101 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11102 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | 
 | 11103 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11104 |  | 
 | 11105 |  | 
 | 11106 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | 
 | 11107 |   if test x"$libltdl_cv_func_dlopen" = xyes || | 
 | 11108 |      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11109 | 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | 
 | 11110 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11111 | if test "${libltdl_cv_need_uscore+set}" = set; then | 
 | 11112 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11113 | else | 
 | 11114 |   libltdl_cv_need_uscore=unknown | 
 | 11115 |           save_LIBS="$LIBS" | 
 | 11116 |           LIBS="$LIBS $LIBADD_DL" | 
 | 11117 | 	  if test "$cross_compiling" = yes; then : | 
 | 11118 |   libltdl_cv_need_uscore=cross | 
 | 11119 | else | 
 | 11120 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 11121 |   lt_status=$lt_dlunknown | 
 | 11122 |   cat > conftest.$ac_ext <<EOF | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 11123 | #line 11123 "configure" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11124 | #include "confdefs.h" | 
 | 11125 |  | 
 | 11126 | #if HAVE_DLFCN_H | 
 | 11127 | #include <dlfcn.h> | 
 | 11128 | #endif | 
 | 11129 |  | 
 | 11130 | #include <stdio.h> | 
 | 11131 |  | 
 | 11132 | #ifdef RTLD_GLOBAL | 
 | 11133 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 11134 | #else | 
 | 11135 | #  ifdef DL_GLOBAL | 
 | 11136 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 11137 | #  else | 
 | 11138 | #    define LT_DLGLOBAL		0 | 
 | 11139 | #  endif | 
 | 11140 | #endif | 
 | 11141 |  | 
 | 11142 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 11143 |    find out it does not work in some platform. */ | 
 | 11144 | #ifndef LT_DLLAZY_OR_NOW | 
 | 11145 | #  ifdef RTLD_LAZY | 
 | 11146 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 11147 | #  else | 
 | 11148 | #    ifdef DL_LAZY | 
 | 11149 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 11150 | #    else | 
 | 11151 | #      ifdef RTLD_NOW | 
 | 11152 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 11153 | #      else | 
 | 11154 | #        ifdef DL_NOW | 
 | 11155 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 11156 | #        else | 
 | 11157 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 11158 | #        endif | 
 | 11159 | #      endif | 
 | 11160 | #    endif | 
 | 11161 | #  endif | 
 | 11162 | #endif | 
 | 11163 |  | 
 | 11164 | #ifdef __cplusplus | 
 | 11165 | extern "C" void exit (int); | 
 | 11166 | #endif | 
 | 11167 |  | 
 | 11168 | void fnord() { int i=42;} | 
 | 11169 | int main () | 
 | 11170 | { | 
 | 11171 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 11172 |   int status = $lt_dlunknown; | 
 | 11173 |  | 
 | 11174 |   if (self) | 
 | 11175 |     { | 
 | 11176 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 11177 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 11178 |       /* dlclose (self); */ | 
 | 11179 |     } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11180 |   else | 
 | 11181 |     puts (dlerror ()); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11182 |  | 
 | 11183 |     exit (status); | 
 | 11184 | } | 
 | 11185 | EOF | 
 | 11186 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 11187 |   (eval $ac_link) 2>&5 | 
 | 11188 |   ac_status=$? | 
 | 11189 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11190 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11191 |     (./conftest; exit; ) >&5 2>/dev/null | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11192 |     lt_status=$? | 
 | 11193 |     case x$lt_status in | 
 | 11194 |       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
 | 11195 |       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11196 |       x$lt_dlunknown|x*)  ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11197 |     esac | 
 | 11198 |   else : | 
 | 11199 |     # compilation failed | 
 | 11200 |  | 
 | 11201 |   fi | 
 | 11202 | fi | 
 | 11203 | rm -fr conftest* | 
 | 11204 |  | 
 | 11205 | 	  LIBS="$save_LIBS" | 
 | 11206 |  | 
 | 11207 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11208 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | 
 | 11209 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11210 |   fi | 
 | 11211 | fi | 
 | 11212 |  | 
 | 11213 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
 | 11214 |  | 
 | 11215 | cat >>confdefs.h <<\_ACEOF | 
 | 11216 | #define NEED_USCORE 1 | 
 | 11217 | _ACEOF | 
 | 11218 |  | 
 | 11219 | fi | 
 | 11220 |  | 
 | 11221 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11222 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | 
 | 11223 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11224 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | 
 | 11225 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11226 | else | 
 | 11227 |   # PORTME does your system automatically load deplibs for dlopen? | 
 | 11228 |   # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
 | 11229 |   # For now, we just catch OSes we know something about -- in the | 
 | 11230 |   # future, we'll try test this programmatically. | 
 | 11231 |   libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 11232 |   case "$host_os" in | 
 | 11233 |   aix3*|aix4.1.*|aix4.2.*) | 
 | 11234 |     # Unknown whether this is true for these versions of AIX, but | 
 | 11235 |     # we want this `case' here to explicitly catch those versions. | 
 | 11236 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 11237 |     ;; | 
 | 11238 |   aix[45]*) | 
 | 11239 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11240 |     ;; | 
 | 11241 |   darwin*) | 
 | 11242 |     # Assuming the user has installed a libdl from somewhere, this is true | 
 | 11243 |     # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
 | 11244 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11245 |     ;; | 
 | 11246 |   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | 
 | 11247 |     # GNU and its variants, using gnu ld.so (Glibc) | 
 | 11248 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11249 |     ;; | 
 | 11250 |   hpux10*|hpux11*) | 
 | 11251 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11252 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11253 |   interix*) | 
 | 11254 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11255 |     ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11256 |   irix[12345]*|irix6.[01]*) | 
 | 11257 |     # Catch all versions of IRIX before 6.2, and indicate that we don't | 
 | 11258 |     # know how it worked for any of those versions. | 
 | 11259 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 11260 |     ;; | 
 | 11261 |   irix*) | 
 | 11262 |     # The case above catches anything before 6.2, and it's known that | 
 | 11263 |     # at 6.2 and later dlopen does load deplibs. | 
 | 11264 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11265 |     ;; | 
 | 11266 |   netbsd*) | 
 | 11267 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11268 |     ;; | 
 | 11269 |   openbsd*) | 
 | 11270 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11271 |     ;; | 
 | 11272 |   osf[1234]*) | 
 | 11273 |     # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
 | 11274 |     # it did *not* use an RPATH in a shared library to find objects the | 
 | 11275 |     # library depends on, so we explictly say `no'. | 
 | 11276 |     libltdl_cv_sys_dlopen_deplibs=no | 
 | 11277 |     ;; | 
 | 11278 |   osf5.0|osf5.0a|osf5.1) | 
 | 11279 |     # dlopen *does* load deplibs and with the right loader patch applied | 
 | 11280 |     # it even uses RPATH in a shared library to search for shared objects | 
 | 11281 |     # that the library depends on, but there's no easy way to know if that | 
 | 11282 |     # patch is installed.  Since this is the case, all we can really | 
 | 11283 |     # say is unknown -- it depends on the patch being installed.  If | 
 | 11284 |     # it is, this changes to `yes'.  Without it, it would be `no'. | 
 | 11285 |     libltdl_cv_sys_dlopen_deplibs=unknown | 
 | 11286 |     ;; | 
 | 11287 |   osf*) | 
 | 11288 |     # the two cases above should catch all versions of osf <= 5.1.  Read | 
 | 11289 |     # the comments above for what we know about them. | 
 | 11290 |     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
 | 11291 |     # is used to find them so we can finally say `yes'. | 
 | 11292 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11293 |     ;; | 
 | 11294 |   solaris*) | 
 | 11295 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11296 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11297 |   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 11298 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 11299 |     ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11300 |   esac | 
 | 11301 |  | 
 | 11302 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11303 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | 
 | 11304 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11305 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 
 | 11306 |  | 
 | 11307 | cat >>confdefs.h <<\_ACEOF | 
 | 11308 | #define LTDL_DLOPEN_DEPLIBS 1 | 
 | 11309 | _ACEOF | 
 | 11310 |  | 
 | 11311 | fi | 
 | 11312 |  | 
 | 11313 |  | 
 | 11314 | for ac_header in argz.h | 
 | 11315 | do | 
 | 11316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 11318 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 11319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 11320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11322 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11323 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 11324 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11325 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11326 | else | 
 | 11327 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11328 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 11329 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11330 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11331 | /* confdefs.h.  */ | 
 | 11332 | _ACEOF | 
 | 11333 | cat confdefs.h >>conftest.$ac_ext | 
 | 11334 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11335 | /* end confdefs.h.  */ | 
 | 11336 | $ac_includes_default | 
 | 11337 | #include <$ac_header> | 
 | 11338 | _ACEOF | 
 | 11339 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11340 | if { (ac_try="$ac_compile" | 
 | 11341 | case "(($ac_try" in | 
 | 11342 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11343 |   *) ac_try_echo=$ac_try;; | 
 | 11344 | esac | 
 | 11345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11346 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11347 |   ac_status=$? | 
 | 11348 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11349 |   rm -f conftest.er1 | 
 | 11350 |   cat conftest.err >&5 | 
 | 11351 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11352 |   (exit $ac_status); } && | 
 | 11353 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11354 |   { (case "(($ac_try" in | 
 | 11355 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11356 |   *) ac_try_echo=$ac_try;; | 
 | 11357 | esac | 
 | 11358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11359 |   (eval "$ac_try") 2>&5 | 
 | 11360 |   ac_status=$? | 
 | 11361 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11362 |   (exit $ac_status); }; } && | 
 | 11363 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 11364 |   { (case "(($ac_try" in | 
 | 11365 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11366 |   *) ac_try_echo=$ac_try;; | 
 | 11367 | esac | 
 | 11368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11369 |   (eval "$ac_try") 2>&5 | 
 | 11370 |   ac_status=$? | 
 | 11371 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11372 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11373 |   ac_header_compiler=yes | 
 | 11374 | else | 
 | 11375 |   echo "$as_me: failed program was:" >&5 | 
 | 11376 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11377 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11378 | 	ac_header_compiler=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11379 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11380 |  | 
 | 11381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11382 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 11383 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11384 |  | 
 | 11385 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11386 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 11387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11388 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11389 | /* confdefs.h.  */ | 
 | 11390 | _ACEOF | 
 | 11391 | cat confdefs.h >>conftest.$ac_ext | 
 | 11392 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11393 | /* end confdefs.h.  */ | 
 | 11394 | #include <$ac_header> | 
 | 11395 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11396 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 11397 | case "(($ac_try" in | 
 | 11398 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11399 |   *) ac_try_echo=$ac_try;; | 
 | 11400 | esac | 
 | 11401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11402 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11403 |   ac_status=$? | 
 | 11404 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11405 |   rm -f conftest.er1 | 
 | 11406 |   cat conftest.err >&5 | 
 | 11407 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11408 |   (exit $ac_status); } >/dev/null; then | 
 | 11409 |   if test -s conftest.err; then | 
 | 11410 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 11411 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 11412 |   else | 
 | 11413 |     ac_cpp_err= | 
 | 11414 |   fi | 
 | 11415 | else | 
 | 11416 |   ac_cpp_err=yes | 
 | 11417 | fi | 
 | 11418 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11419 |   ac_header_preproc=yes | 
 | 11420 | else | 
 | 11421 |   echo "$as_me: failed program was:" >&5 | 
 | 11422 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11423 |  | 
 | 11424 |   ac_header_preproc=no | 
 | 11425 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11426 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11427 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11428 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 11429 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11430 |  | 
 | 11431 | # So?  What about this header? | 
 | 11432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 11433 |   yes:no: ) | 
 | 11434 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 11435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 11436 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 11437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 11438 |     ac_header_preproc=yes | 
 | 11439 |     ;; | 
 | 11440 |   no:yes:* ) | 
 | 11441 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 11442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 11443 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 11444 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 11445 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 11446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 11447 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 11448 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 11449 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 11450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 11451 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 11452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11453 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11454 | ## ----------------------------------- ## | 
 | 11455 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 11456 | ## ----------------------------------- ## | 
 | 11457 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11458 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 |     ;; | 
 | 11460 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11461 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 11462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 11463 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11464 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11465 | else | 
 | 11466 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 11467 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11468 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 11469 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11470 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11471 |  | 
 | 11472 | fi | 
 | 11473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 11474 |   cat >>confdefs.h <<_ACEOF | 
 | 11475 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 11476 | _ACEOF | 
 | 11477 |  | 
 | 11478 | fi | 
 | 11479 |  | 
 | 11480 | done | 
 | 11481 |  | 
 | 11482 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11483 | { echo "$as_me:$LINENO: checking for error_t" >&5 | 
 | 11484 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11485 | if test "${ac_cv_type_error_t+set}" = set; then | 
 | 11486 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11487 | else | 
 | 11488 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 11489 | /* confdefs.h.  */ | 
 | 11490 | _ACEOF | 
 | 11491 | cat confdefs.h >>conftest.$ac_ext | 
 | 11492 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11493 | /* end confdefs.h.  */ | 
 | 11494 | #if HAVE_ARGZ_H | 
 | 11495 | #  include <argz.h> | 
 | 11496 | #endif | 
 | 11497 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11498 | typedef error_t ac__type_new_; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11499 | int | 
 | 11500 | main () | 
 | 11501 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11502 | if ((ac__type_new_ *) 0) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11503 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11504 | if (sizeof (ac__type_new_)) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11505 |   return 0; | 
 | 11506 |   ; | 
 | 11507 |   return 0; | 
 | 11508 | } | 
 | 11509 | _ACEOF | 
 | 11510 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11511 | if { (ac_try="$ac_compile" | 
 | 11512 | case "(($ac_try" in | 
 | 11513 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11514 |   *) ac_try_echo=$ac_try;; | 
 | 11515 | esac | 
 | 11516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11517 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11518 |   ac_status=$? | 
 | 11519 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11520 |   rm -f conftest.er1 | 
 | 11521 |   cat conftest.err >&5 | 
 | 11522 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11523 |   (exit $ac_status); } && | 
 | 11524 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11525 |   { (case "(($ac_try" in | 
 | 11526 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11527 |   *) ac_try_echo=$ac_try;; | 
 | 11528 | esac | 
 | 11529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11530 |   (eval "$ac_try") 2>&5 | 
 | 11531 |   ac_status=$? | 
 | 11532 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11533 |   (exit $ac_status); }; } && | 
 | 11534 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 11535 |   { (case "(($ac_try" in | 
 | 11536 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11537 |   *) ac_try_echo=$ac_try;; | 
 | 11538 | esac | 
 | 11539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11540 |   (eval "$ac_try") 2>&5 | 
 | 11541 |   ac_status=$? | 
 | 11542 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11543 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11544 |   ac_cv_type_error_t=yes | 
 | 11545 | else | 
 | 11546 |   echo "$as_me: failed program was:" >&5 | 
 | 11547 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11548 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11549 | 	ac_cv_type_error_t=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11550 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11551 |  | 
 | 11552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11553 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11554 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | 
 | 11555 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11556 | if test $ac_cv_type_error_t = yes; then | 
 | 11557 |  | 
 | 11558 | cat >>confdefs.h <<_ACEOF | 
 | 11559 | #define HAVE_ERROR_T 1 | 
 | 11560 | _ACEOF | 
 | 11561 |  | 
 | 11562 |  | 
 | 11563 | else | 
 | 11564 |  | 
 | 11565 | cat >>confdefs.h <<\_ACEOF | 
 | 11566 | #define error_t int | 
 | 11567 | _ACEOF | 
 | 11568 |  | 
 | 11569 | fi | 
 | 11570 |  | 
 | 11571 |  | 
 | 11572 |  | 
 | 11573 |  | 
 | 11574 |  | 
 | 11575 |  | 
 | 11576 |  | 
 | 11577 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | 
 | 11578 | do | 
 | 11579 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11580 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 11581 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 11582 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11583 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11584 | else | 
 | 11585 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 11586 | /* confdefs.h.  */ | 
 | 11587 | _ACEOF | 
 | 11588 | cat confdefs.h >>conftest.$ac_ext | 
 | 11589 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11590 | /* end confdefs.h.  */ | 
 | 11591 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 11592 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 11593 | #define $ac_func innocuous_$ac_func | 
 | 11594 |  | 
 | 11595 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 11596 |     which can conflict with char $ac_func (); below. | 
 | 11597 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 11598 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 11599 |  | 
 | 11600 | #ifdef __STDC__ | 
 | 11601 | # include <limits.h> | 
 | 11602 | #else | 
 | 11603 | # include <assert.h> | 
 | 11604 | #endif | 
 | 11605 |  | 
 | 11606 | #undef $ac_func | 
 | 11607 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11608 | /* Override any GCC internal prototype to avoid an error. | 
 | 11609 |    Use char because int might match the return type of a GCC | 
 | 11610 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11611 | #ifdef __cplusplus | 
 | 11612 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11613 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11614 | char $ac_func (); | 
 | 11615 | /* The GNU C library defines this for functions which it implements | 
 | 11616 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 11617 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11618 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11619 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11620 | #endif | 
 | 11621 |  | 
 | 11622 | int | 
 | 11623 | main () | 
 | 11624 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11625 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11626 |   ; | 
 | 11627 |   return 0; | 
 | 11628 | } | 
 | 11629 | _ACEOF | 
 | 11630 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11631 | if { (ac_try="$ac_link" | 
 | 11632 | case "(($ac_try" in | 
 | 11633 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11634 |   *) ac_try_echo=$ac_try;; | 
 | 11635 | esac | 
 | 11636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11637 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11638 |   ac_status=$? | 
 | 11639 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11640 |   rm -f conftest.er1 | 
 | 11641 |   cat conftest.err >&5 | 
 | 11642 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11643 |   (exit $ac_status); } && | 
 | 11644 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11645 |   { (case "(($ac_try" in | 
 | 11646 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11647 |   *) ac_try_echo=$ac_try;; | 
 | 11648 | esac | 
 | 11649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11650 |   (eval "$ac_try") 2>&5 | 
 | 11651 |   ac_status=$? | 
 | 11652 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11653 |   (exit $ac_status); }; } && | 
 | 11654 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 11655 |   { (case "(($ac_try" in | 
 | 11656 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11657 |   *) ac_try_echo=$ac_try;; | 
 | 11658 | esac | 
 | 11659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11660 |   (eval "$ac_try") 2>&5 | 
 | 11661 |   ac_status=$? | 
 | 11662 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11663 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11664 |   eval "$as_ac_var=yes" | 
 | 11665 | else | 
 | 11666 |   echo "$as_me: failed program was:" >&5 | 
 | 11667 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11668 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11669 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11670 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11671 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11672 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11673 |       conftest$ac_exeext conftest.$ac_ext | 
 | 11674 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11675 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 11676 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11677 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11678 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 11679 |   cat >>confdefs.h <<_ACEOF | 
 | 11680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 11681 | _ACEOF | 
 | 11682 |  | 
 | 11683 | fi | 
 | 11684 | done | 
 | 11685 |  | 
 | 11686 |  | 
 | 11687 |  | 
 | 11688 |  | 
 | 11689 |  | 
 | 11690 |  | 
 | 11691 |  | 
 | 11692 |  | 
 | 11693 |  | 
 | 11694 |  | 
 | 11695 |  | 
 | 11696 |  | 
 | 11697 |  | 
 | 11698 |  | 
 | 11699 |  | 
 | 11700 |  | 
 | 11701 |  | 
 | 11702 |  | 
 | 11703 |  | 
 | 11704 |  | 
 | 11705 |  | 
 | 11706 |  | 
 | 11707 |  | 
 | 11708 |  | 
 | 11709 |  | 
 | 11710 |  | 
 | 11711 |  | 
 | 11712 |  | 
 | 11713 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | 
 | 11714 | 		  stdio.h unistd.h | 
 | 11715 | do | 
 | 11716 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 11718 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 11719 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 11720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11721 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11722 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11723 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 11724 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11725 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11726 | else | 
 | 11727 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11728 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 11729 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11730 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11731 | /* confdefs.h.  */ | 
 | 11732 | _ACEOF | 
 | 11733 | cat confdefs.h >>conftest.$ac_ext | 
 | 11734 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11735 | /* end confdefs.h.  */ | 
 | 11736 | $ac_includes_default | 
 | 11737 | #include <$ac_header> | 
 | 11738 | _ACEOF | 
 | 11739 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11740 | if { (ac_try="$ac_compile" | 
 | 11741 | case "(($ac_try" in | 
 | 11742 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11743 |   *) ac_try_echo=$ac_try;; | 
 | 11744 | esac | 
 | 11745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11746 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11747 |   ac_status=$? | 
 | 11748 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11749 |   rm -f conftest.er1 | 
 | 11750 |   cat conftest.err >&5 | 
 | 11751 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11752 |   (exit $ac_status); } && | 
 | 11753 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11754 |   { (case "(($ac_try" in | 
 | 11755 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11756 |   *) ac_try_echo=$ac_try;; | 
 | 11757 | esac | 
 | 11758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11759 |   (eval "$ac_try") 2>&5 | 
 | 11760 |   ac_status=$? | 
 | 11761 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11762 |   (exit $ac_status); }; } && | 
 | 11763 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 11764 |   { (case "(($ac_try" in | 
 | 11765 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11766 |   *) ac_try_echo=$ac_try;; | 
 | 11767 | esac | 
 | 11768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11769 |   (eval "$ac_try") 2>&5 | 
 | 11770 |   ac_status=$? | 
 | 11771 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11772 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11773 |   ac_header_compiler=yes | 
 | 11774 | else | 
 | 11775 |   echo "$as_me: failed program was:" >&5 | 
 | 11776 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11777 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11778 | 	ac_header_compiler=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11779 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11780 |  | 
 | 11781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11782 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 11783 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11784 |  | 
 | 11785 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11786 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 11787 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11788 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11789 | /* confdefs.h.  */ | 
 | 11790 | _ACEOF | 
 | 11791 | cat confdefs.h >>conftest.$ac_ext | 
 | 11792 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11793 | /* end confdefs.h.  */ | 
 | 11794 | #include <$ac_header> | 
 | 11795 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11796 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 11797 | case "(($ac_try" in | 
 | 11798 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11799 |   *) ac_try_echo=$ac_try;; | 
 | 11800 | esac | 
 | 11801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11802 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11803 |   ac_status=$? | 
 | 11804 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11805 |   rm -f conftest.er1 | 
 | 11806 |   cat conftest.err >&5 | 
 | 11807 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11808 |   (exit $ac_status); } >/dev/null; then | 
 | 11809 |   if test -s conftest.err; then | 
 | 11810 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 11811 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 11812 |   else | 
 | 11813 |     ac_cpp_err= | 
 | 11814 |   fi | 
 | 11815 | else | 
 | 11816 |   ac_cpp_err=yes | 
 | 11817 | fi | 
 | 11818 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11819 |   ac_header_preproc=yes | 
 | 11820 | else | 
 | 11821 |   echo "$as_me: failed program was:" >&5 | 
 | 11822 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11823 |  | 
 | 11824 |   ac_header_preproc=no | 
 | 11825 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11826 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11827 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11828 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 11829 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11830 |  | 
 | 11831 | # So?  What about this header? | 
 | 11832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 11833 |   yes:no: ) | 
 | 11834 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 11835 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 11836 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 11837 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 11838 |     ac_header_preproc=yes | 
 | 11839 |     ;; | 
 | 11840 |   no:yes:* ) | 
 | 11841 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 11842 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 11843 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 11844 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 11845 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 11846 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 11847 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 11848 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 11849 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 11850 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 11851 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 11852 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11853 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11854 | ## ----------------------------------- ## | 
 | 11855 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 11856 | ## ----------------------------------- ## | 
 | 11857 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11858 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11859 |     ;; | 
 | 11860 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11861 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 11862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 11863 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11864 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11865 | else | 
 | 11866 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 11867 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11868 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 11869 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11870 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11871 |  | 
 | 11872 | fi | 
 | 11873 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 11874 |   cat >>confdefs.h <<_ACEOF | 
 | 11875 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 11876 | _ACEOF | 
 | 11877 |  | 
 | 11878 | fi | 
 | 11879 |  | 
 | 11880 | done | 
 | 11881 |  | 
 | 11882 |  | 
 | 11883 |  | 
 | 11884 |  | 
 | 11885 |  | 
 | 11886 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | 
 | 11887 | do | 
 | 11888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 11890 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 11891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 11892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11893 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 11894 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11895 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 11896 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 11897 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11898 | else | 
 | 11899 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11900 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 11901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11902 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11903 | /* confdefs.h.  */ | 
 | 11904 | _ACEOF | 
 | 11905 | cat confdefs.h >>conftest.$ac_ext | 
 | 11906 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11907 | /* end confdefs.h.  */ | 
 | 11908 | $ac_includes_default | 
 | 11909 | #include <$ac_header> | 
 | 11910 | _ACEOF | 
 | 11911 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | if { (ac_try="$ac_compile" | 
 | 11913 | case "(($ac_try" in | 
 | 11914 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11915 |   *) ac_try_echo=$ac_try;; | 
 | 11916 | esac | 
 | 11917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11918 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11919 |   ac_status=$? | 
 | 11920 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11921 |   rm -f conftest.er1 | 
 | 11922 |   cat conftest.err >&5 | 
 | 11923 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11924 |   (exit $ac_status); } && | 
 | 11925 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 11926 |   { (case "(($ac_try" in | 
 | 11927 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11928 |   *) ac_try_echo=$ac_try;; | 
 | 11929 | esac | 
 | 11930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11931 |   (eval "$ac_try") 2>&5 | 
 | 11932 |   ac_status=$? | 
 | 11933 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11934 |   (exit $ac_status); }; } && | 
 | 11935 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 11936 |   { (case "(($ac_try" in | 
 | 11937 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11938 |   *) ac_try_echo=$ac_try;; | 
 | 11939 | esac | 
 | 11940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11941 |   (eval "$ac_try") 2>&5 | 
 | 11942 |   ac_status=$? | 
 | 11943 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 11944 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 |   ac_header_compiler=yes | 
 | 11946 | else | 
 | 11947 |   echo "$as_me: failed program was:" >&5 | 
 | 11948 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11949 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11950 | 	ac_header_compiler=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11951 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11952 |  | 
 | 11953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 11954 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 11955 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11956 |  | 
 | 11957 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11958 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 11959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11960 | cat >conftest.$ac_ext <<_ACEOF | 
 | 11961 | /* confdefs.h.  */ | 
 | 11962 | _ACEOF | 
 | 11963 | cat confdefs.h >>conftest.$ac_ext | 
 | 11964 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 11965 | /* end confdefs.h.  */ | 
 | 11966 | #include <$ac_header> | 
 | 11967 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11968 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 11969 | case "(($ac_try" in | 
 | 11970 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 11971 |   *) ac_try_echo=$ac_try;; | 
 | 11972 | esac | 
 | 11973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 11974 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11975 |   ac_status=$? | 
 | 11976 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 11977 |   rm -f conftest.er1 | 
 | 11978 |   cat conftest.err >&5 | 
 | 11979 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11980 |   (exit $ac_status); } >/dev/null; then | 
 | 11981 |   if test -s conftest.err; then | 
 | 11982 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 11983 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 11984 |   else | 
 | 11985 |     ac_cpp_err= | 
 | 11986 |   fi | 
 | 11987 | else | 
 | 11988 |   ac_cpp_err=yes | 
 | 11989 | fi | 
 | 11990 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11991 |   ac_header_preproc=yes | 
 | 11992 | else | 
 | 11993 |   echo "$as_me: failed program was:" >&5 | 
 | 11994 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 11995 |  | 
 | 11996 |   ac_header_preproc=no | 
 | 11997 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11998 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11999 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 12001 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12002 |  | 
 | 12003 | # So?  What about this header? | 
 | 12004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 12005 |   yes:no: ) | 
 | 12006 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 12007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 12008 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 12009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 12010 |     ac_header_preproc=yes | 
 | 12011 |     ;; | 
 | 12012 |   no:yes:* ) | 
 | 12013 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 12014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 12015 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 12016 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 12017 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 12018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 12019 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 12020 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 12021 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 12022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 12023 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 12024 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12025 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | ## ----------------------------------- ## | 
 | 12027 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 12028 | ## ----------------------------------- ## | 
 | 12029 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12030 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12031 |     ;; | 
 | 12032 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12033 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 12034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 12035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12036 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12037 | else | 
 | 12038 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 12039 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12040 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 12041 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12042 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12043 |  | 
 | 12044 | fi | 
 | 12045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 12046 |   cat >>confdefs.h <<_ACEOF | 
 | 12047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 12048 | _ACEOF | 
 | 12049 |  | 
 | 12050 | fi | 
 | 12051 |  | 
 | 12052 | done | 
 | 12053 |  | 
 | 12054 |  | 
 | 12055 |  | 
 | 12056 | for ac_header in string.h strings.h | 
 | 12057 | do | 
 | 12058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 12060 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 12061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 12062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12063 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12064 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12065 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 12066 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12067 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12068 | else | 
 | 12069 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12070 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 12071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12072 | cat >conftest.$ac_ext <<_ACEOF | 
 | 12073 | /* confdefs.h.  */ | 
 | 12074 | _ACEOF | 
 | 12075 | cat confdefs.h >>conftest.$ac_ext | 
 | 12076 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12077 | /* end confdefs.h.  */ | 
 | 12078 | $ac_includes_default | 
 | 12079 | #include <$ac_header> | 
 | 12080 | _ACEOF | 
 | 12081 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12082 | if { (ac_try="$ac_compile" | 
 | 12083 | case "(($ac_try" in | 
 | 12084 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12085 |   *) ac_try_echo=$ac_try;; | 
 | 12086 | esac | 
 | 12087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12088 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12089 |   ac_status=$? | 
 | 12090 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12091 |   rm -f conftest.er1 | 
 | 12092 |   cat conftest.err >&5 | 
 | 12093 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12094 |   (exit $ac_status); } && | 
 | 12095 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12096 |   { (case "(($ac_try" in | 
 | 12097 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12098 |   *) ac_try_echo=$ac_try;; | 
 | 12099 | esac | 
 | 12100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12101 |   (eval "$ac_try") 2>&5 | 
 | 12102 |   ac_status=$? | 
 | 12103 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12104 |   (exit $ac_status); }; } && | 
 | 12105 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 12106 |   { (case "(($ac_try" in | 
 | 12107 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12108 |   *) ac_try_echo=$ac_try;; | 
 | 12109 | esac | 
 | 12110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12111 |   (eval "$ac_try") 2>&5 | 
 | 12112 |   ac_status=$? | 
 | 12113 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12114 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12115 |   ac_header_compiler=yes | 
 | 12116 | else | 
 | 12117 |   echo "$as_me: failed program was:" >&5 | 
 | 12118 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12119 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12120 | 	ac_header_compiler=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12121 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12122 |  | 
 | 12123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 12124 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 12125 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12126 |  | 
 | 12127 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12128 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 12129 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12130 | cat >conftest.$ac_ext <<_ACEOF | 
 | 12131 | /* confdefs.h.  */ | 
 | 12132 | _ACEOF | 
 | 12133 | cat confdefs.h >>conftest.$ac_ext | 
 | 12134 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12135 | /* end confdefs.h.  */ | 
 | 12136 | #include <$ac_header> | 
 | 12137 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12138 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 12139 | case "(($ac_try" in | 
 | 12140 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12141 |   *) ac_try_echo=$ac_try;; | 
 | 12142 | esac | 
 | 12143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12144 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12145 |   ac_status=$? | 
 | 12146 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12147 |   rm -f conftest.er1 | 
 | 12148 |   cat conftest.err >&5 | 
 | 12149 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12150 |   (exit $ac_status); } >/dev/null; then | 
 | 12151 |   if test -s conftest.err; then | 
 | 12152 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 12153 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 12154 |   else | 
 | 12155 |     ac_cpp_err= | 
 | 12156 |   fi | 
 | 12157 | else | 
 | 12158 |   ac_cpp_err=yes | 
 | 12159 | fi | 
 | 12160 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12161 |   ac_header_preproc=yes | 
 | 12162 | else | 
 | 12163 |   echo "$as_me: failed program was:" >&5 | 
 | 12164 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12165 |  | 
 | 12166 |   ac_header_preproc=no | 
 | 12167 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12168 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12169 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12170 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 12171 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12172 |  | 
 | 12173 | # So?  What about this header? | 
 | 12174 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 12175 |   yes:no: ) | 
 | 12176 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 12177 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 12178 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 12179 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 12180 |     ac_header_preproc=yes | 
 | 12181 |     ;; | 
 | 12182 |   no:yes:* ) | 
 | 12183 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 12184 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 12185 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 12186 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 12187 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 12188 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 12189 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 12190 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 12191 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 12192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 12193 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 12194 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12195 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12196 | ## ----------------------------------- ## | 
 | 12197 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 12198 | ## ----------------------------------- ## | 
 | 12199 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12200 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12201 |     ;; | 
 | 12202 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12203 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 12204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 12205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12206 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12207 | else | 
 | 12208 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 12209 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12210 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 12211 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12212 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12213 |  | 
 | 12214 | fi | 
 | 12215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 12216 |   cat >>confdefs.h <<_ACEOF | 
 | 12217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 12218 | _ACEOF | 
 | 12219 |  break | 
 | 12220 | fi | 
 | 12221 |  | 
 | 12222 | done | 
 | 12223 |  | 
 | 12224 |  | 
 | 12225 |  | 
 | 12226 |  | 
 | 12227 | for ac_func in strchr index | 
 | 12228 | do | 
 | 12229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12230 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 12231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 12232 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12233 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12234 | else | 
 | 12235 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 12236 | /* confdefs.h.  */ | 
 | 12237 | _ACEOF | 
 | 12238 | cat confdefs.h >>conftest.$ac_ext | 
 | 12239 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12240 | /* end confdefs.h.  */ | 
 | 12241 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 12242 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 12243 | #define $ac_func innocuous_$ac_func | 
 | 12244 |  | 
 | 12245 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 12246 |     which can conflict with char $ac_func (); below. | 
 | 12247 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12248 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 12249 |  | 
 | 12250 | #ifdef __STDC__ | 
 | 12251 | # include <limits.h> | 
 | 12252 | #else | 
 | 12253 | # include <assert.h> | 
 | 12254 | #endif | 
 | 12255 |  | 
 | 12256 | #undef $ac_func | 
 | 12257 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12258 | /* Override any GCC internal prototype to avoid an error. | 
 | 12259 |    Use char because int might match the return type of a GCC | 
 | 12260 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12261 | #ifdef __cplusplus | 
 | 12262 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12263 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12264 | char $ac_func (); | 
 | 12265 | /* The GNU C library defines this for functions which it implements | 
 | 12266 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12267 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12268 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12269 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12270 | #endif | 
 | 12271 |  | 
 | 12272 | int | 
 | 12273 | main () | 
 | 12274 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12275 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12276 |   ; | 
 | 12277 |   return 0; | 
 | 12278 | } | 
 | 12279 | _ACEOF | 
 | 12280 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12281 | if { (ac_try="$ac_link" | 
 | 12282 | case "(($ac_try" in | 
 | 12283 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12284 |   *) ac_try_echo=$ac_try;; | 
 | 12285 | esac | 
 | 12286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12287 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12288 |   ac_status=$? | 
 | 12289 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12290 |   rm -f conftest.er1 | 
 | 12291 |   cat conftest.err >&5 | 
 | 12292 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12293 |   (exit $ac_status); } && | 
 | 12294 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12295 |   { (case "(($ac_try" in | 
 | 12296 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12297 |   *) ac_try_echo=$ac_try;; | 
 | 12298 | esac | 
 | 12299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12300 |   (eval "$ac_try") 2>&5 | 
 | 12301 |   ac_status=$? | 
 | 12302 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12303 |   (exit $ac_status); }; } && | 
 | 12304 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 12305 |   { (case "(($ac_try" in | 
 | 12306 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12307 |   *) ac_try_echo=$ac_try;; | 
 | 12308 | esac | 
 | 12309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12310 |   (eval "$ac_try") 2>&5 | 
 | 12311 |   ac_status=$? | 
 | 12312 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12313 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12314 |   eval "$as_ac_var=yes" | 
 | 12315 | else | 
 | 12316 |   echo "$as_me: failed program was:" >&5 | 
 | 12317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12318 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12319 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12320 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12321 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12322 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12323 |       conftest$ac_exeext conftest.$ac_ext | 
 | 12324 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12325 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 12326 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12327 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12328 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 12329 |   cat >>confdefs.h <<_ACEOF | 
 | 12330 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12331 | _ACEOF | 
 | 12332 |  break | 
 | 12333 | fi | 
 | 12334 | done | 
 | 12335 |  | 
 | 12336 |  | 
 | 12337 |  | 
 | 12338 | for ac_func in strrchr rindex | 
 | 12339 | do | 
 | 12340 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12341 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 12342 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 12343 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12344 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12345 | else | 
 | 12346 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 12347 | /* confdefs.h.  */ | 
 | 12348 | _ACEOF | 
 | 12349 | cat confdefs.h >>conftest.$ac_ext | 
 | 12350 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12351 | /* end confdefs.h.  */ | 
 | 12352 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 12353 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 12354 | #define $ac_func innocuous_$ac_func | 
 | 12355 |  | 
 | 12356 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 12357 |     which can conflict with char $ac_func (); below. | 
 | 12358 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12359 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 12360 |  | 
 | 12361 | #ifdef __STDC__ | 
 | 12362 | # include <limits.h> | 
 | 12363 | #else | 
 | 12364 | # include <assert.h> | 
 | 12365 | #endif | 
 | 12366 |  | 
 | 12367 | #undef $ac_func | 
 | 12368 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12369 | /* Override any GCC internal prototype to avoid an error. | 
 | 12370 |    Use char because int might match the return type of a GCC | 
 | 12371 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12372 | #ifdef __cplusplus | 
 | 12373 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12374 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12375 | char $ac_func (); | 
 | 12376 | /* The GNU C library defines this for functions which it implements | 
 | 12377 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12378 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12379 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12380 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12381 | #endif | 
 | 12382 |  | 
 | 12383 | int | 
 | 12384 | main () | 
 | 12385 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12386 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12387 |   ; | 
 | 12388 |   return 0; | 
 | 12389 | } | 
 | 12390 | _ACEOF | 
 | 12391 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12392 | if { (ac_try="$ac_link" | 
 | 12393 | case "(($ac_try" in | 
 | 12394 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12395 |   *) ac_try_echo=$ac_try;; | 
 | 12396 | esac | 
 | 12397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12398 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12399 |   ac_status=$? | 
 | 12400 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12401 |   rm -f conftest.er1 | 
 | 12402 |   cat conftest.err >&5 | 
 | 12403 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12404 |   (exit $ac_status); } && | 
 | 12405 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12406 |   { (case "(($ac_try" in | 
 | 12407 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12408 |   *) ac_try_echo=$ac_try;; | 
 | 12409 | esac | 
 | 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12411 |   (eval "$ac_try") 2>&5 | 
 | 12412 |   ac_status=$? | 
 | 12413 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12414 |   (exit $ac_status); }; } && | 
 | 12415 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 12416 |   { (case "(($ac_try" in | 
 | 12417 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12418 |   *) ac_try_echo=$ac_try;; | 
 | 12419 | esac | 
 | 12420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12421 |   (eval "$ac_try") 2>&5 | 
 | 12422 |   ac_status=$? | 
 | 12423 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12424 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12425 |   eval "$as_ac_var=yes" | 
 | 12426 | else | 
 | 12427 |   echo "$as_me: failed program was:" >&5 | 
 | 12428 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12429 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12430 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12431 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12432 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12433 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12434 |       conftest$ac_exeext conftest.$ac_ext | 
 | 12435 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12436 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 12437 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12438 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12439 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 12440 |   cat >>confdefs.h <<_ACEOF | 
 | 12441 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12442 | _ACEOF | 
 | 12443 |  break | 
 | 12444 | fi | 
 | 12445 | done | 
 | 12446 |  | 
 | 12447 |  | 
 | 12448 |  | 
 | 12449 | for ac_func in memcpy bcopy | 
 | 12450 | do | 
 | 12451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12452 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 12453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 12454 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12455 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12456 | else | 
 | 12457 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 12458 | /* confdefs.h.  */ | 
 | 12459 | _ACEOF | 
 | 12460 | cat confdefs.h >>conftest.$ac_ext | 
 | 12461 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12462 | /* end confdefs.h.  */ | 
 | 12463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 12464 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 12465 | #define $ac_func innocuous_$ac_func | 
 | 12466 |  | 
 | 12467 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 12468 |     which can conflict with char $ac_func (); below. | 
 | 12469 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12470 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 12471 |  | 
 | 12472 | #ifdef __STDC__ | 
 | 12473 | # include <limits.h> | 
 | 12474 | #else | 
 | 12475 | # include <assert.h> | 
 | 12476 | #endif | 
 | 12477 |  | 
 | 12478 | #undef $ac_func | 
 | 12479 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12480 | /* Override any GCC internal prototype to avoid an error. | 
 | 12481 |    Use char because int might match the return type of a GCC | 
 | 12482 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12483 | #ifdef __cplusplus | 
 | 12484 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12486 | char $ac_func (); | 
 | 12487 | /* The GNU C library defines this for functions which it implements | 
 | 12488 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12489 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12490 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12491 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12492 | #endif | 
 | 12493 |  | 
 | 12494 | int | 
 | 12495 | main () | 
 | 12496 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12497 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12498 |   ; | 
 | 12499 |   return 0; | 
 | 12500 | } | 
 | 12501 | _ACEOF | 
 | 12502 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12503 | if { (ac_try="$ac_link" | 
 | 12504 | case "(($ac_try" in | 
 | 12505 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12506 |   *) ac_try_echo=$ac_try;; | 
 | 12507 | esac | 
 | 12508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12509 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12510 |   ac_status=$? | 
 | 12511 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12512 |   rm -f conftest.er1 | 
 | 12513 |   cat conftest.err >&5 | 
 | 12514 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12515 |   (exit $ac_status); } && | 
 | 12516 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12517 |   { (case "(($ac_try" in | 
 | 12518 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12519 |   *) ac_try_echo=$ac_try;; | 
 | 12520 | esac | 
 | 12521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12522 |   (eval "$ac_try") 2>&5 | 
 | 12523 |   ac_status=$? | 
 | 12524 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12525 |   (exit $ac_status); }; } && | 
 | 12526 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 12527 |   { (case "(($ac_try" in | 
 | 12528 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12529 |   *) ac_try_echo=$ac_try;; | 
 | 12530 | esac | 
 | 12531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12532 |   (eval "$ac_try") 2>&5 | 
 | 12533 |   ac_status=$? | 
 | 12534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12535 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12536 |   eval "$as_ac_var=yes" | 
 | 12537 | else | 
 | 12538 |   echo "$as_me: failed program was:" >&5 | 
 | 12539 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12540 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12541 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12542 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12543 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12544 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12545 |       conftest$ac_exeext conftest.$ac_ext | 
 | 12546 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12547 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 12548 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12549 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12550 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 12551 |   cat >>confdefs.h <<_ACEOF | 
 | 12552 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12553 | _ACEOF | 
 | 12554 |  break | 
 | 12555 | fi | 
 | 12556 | done | 
 | 12557 |  | 
 | 12558 |  | 
 | 12559 |  | 
 | 12560 | for ac_func in memmove strcmp | 
 | 12561 | do | 
 | 12562 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12563 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 12564 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 12565 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12566 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12567 | else | 
 | 12568 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 12569 | /* confdefs.h.  */ | 
 | 12570 | _ACEOF | 
 | 12571 | cat confdefs.h >>conftest.$ac_ext | 
 | 12572 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12573 | /* end confdefs.h.  */ | 
 | 12574 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 12575 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 12576 | #define $ac_func innocuous_$ac_func | 
 | 12577 |  | 
 | 12578 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 12579 |     which can conflict with char $ac_func (); below. | 
 | 12580 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12581 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 12582 |  | 
 | 12583 | #ifdef __STDC__ | 
 | 12584 | # include <limits.h> | 
 | 12585 | #else | 
 | 12586 | # include <assert.h> | 
 | 12587 | #endif | 
 | 12588 |  | 
 | 12589 | #undef $ac_func | 
 | 12590 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12591 | /* Override any GCC internal prototype to avoid an error. | 
 | 12592 |    Use char because int might match the return type of a GCC | 
 | 12593 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12594 | #ifdef __cplusplus | 
 | 12595 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12596 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12597 | char $ac_func (); | 
 | 12598 | /* The GNU C library defines this for functions which it implements | 
 | 12599 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12600 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12601 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12602 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12603 | #endif | 
 | 12604 |  | 
 | 12605 | int | 
 | 12606 | main () | 
 | 12607 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12608 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12609 |   ; | 
 | 12610 |   return 0; | 
 | 12611 | } | 
 | 12612 | _ACEOF | 
 | 12613 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12614 | if { (ac_try="$ac_link" | 
 | 12615 | case "(($ac_try" in | 
 | 12616 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12617 |   *) ac_try_echo=$ac_try;; | 
 | 12618 | esac | 
 | 12619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12620 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12621 |   ac_status=$? | 
 | 12622 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12623 |   rm -f conftest.er1 | 
 | 12624 |   cat conftest.err >&5 | 
 | 12625 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12626 |   (exit $ac_status); } && | 
 | 12627 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12628 |   { (case "(($ac_try" in | 
 | 12629 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12630 |   *) ac_try_echo=$ac_try;; | 
 | 12631 | esac | 
 | 12632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12633 |   (eval "$ac_try") 2>&5 | 
 | 12634 |   ac_status=$? | 
 | 12635 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12636 |   (exit $ac_status); }; } && | 
 | 12637 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 12638 |   { (case "(($ac_try" in | 
 | 12639 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12640 |   *) ac_try_echo=$ac_try;; | 
 | 12641 | esac | 
 | 12642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12643 |   (eval "$ac_try") 2>&5 | 
 | 12644 |   ac_status=$? | 
 | 12645 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12646 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12647 |   eval "$as_ac_var=yes" | 
 | 12648 | else | 
 | 12649 |   echo "$as_me: failed program was:" >&5 | 
 | 12650 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12651 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12652 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12653 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12654 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12655 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12656 |       conftest$ac_exeext conftest.$ac_ext | 
 | 12657 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12658 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 12659 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12660 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12661 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 12662 |   cat >>confdefs.h <<_ACEOF | 
 | 12663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12664 | _ACEOF | 
 | 12665 |  | 
 | 12666 | fi | 
 | 12667 | done | 
 | 12668 |  | 
 | 12669 |  | 
 | 12670 |  | 
 | 12671 |  | 
 | 12672 | for ac_func in closedir opendir readdir | 
 | 12673 | do | 
 | 12674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12675 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 12676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 12677 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12678 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12679 | else | 
 | 12680 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 12681 | /* confdefs.h.  */ | 
 | 12682 | _ACEOF | 
 | 12683 | cat confdefs.h >>conftest.$ac_ext | 
 | 12684 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 12685 | /* end confdefs.h.  */ | 
 | 12686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 12687 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 12688 | #define $ac_func innocuous_$ac_func | 
 | 12689 |  | 
 | 12690 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 12691 |     which can conflict with char $ac_func (); below. | 
 | 12692 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 12693 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 12694 |  | 
 | 12695 | #ifdef __STDC__ | 
 | 12696 | # include <limits.h> | 
 | 12697 | #else | 
 | 12698 | # include <assert.h> | 
 | 12699 | #endif | 
 | 12700 |  | 
 | 12701 | #undef $ac_func | 
 | 12702 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12703 | /* Override any GCC internal prototype to avoid an error. | 
 | 12704 |    Use char because int might match the return type of a GCC | 
 | 12705 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12706 | #ifdef __cplusplus | 
 | 12707 | extern "C" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12708 | #endif | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12709 | char $ac_func (); | 
 | 12710 | /* The GNU C library defines this for functions which it implements | 
 | 12711 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 12712 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12713 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12714 | choke me | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12715 | #endif | 
 | 12716 |  | 
 | 12717 | int | 
 | 12718 | main () | 
 | 12719 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12720 | return $ac_func (); | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12721 |   ; | 
 | 12722 |   return 0; | 
 | 12723 | } | 
 | 12724 | _ACEOF | 
 | 12725 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12726 | if { (ac_try="$ac_link" | 
 | 12727 | case "(($ac_try" in | 
 | 12728 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12729 |   *) ac_try_echo=$ac_try;; | 
 | 12730 | esac | 
 | 12731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12732 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12733 |   ac_status=$? | 
 | 12734 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 12735 |   rm -f conftest.er1 | 
 | 12736 |   cat conftest.err >&5 | 
 | 12737 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12738 |   (exit $ac_status); } && | 
 | 12739 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 12740 |   { (case "(($ac_try" in | 
 | 12741 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12742 |   *) ac_try_echo=$ac_try;; | 
 | 12743 | esac | 
 | 12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12745 |   (eval "$ac_try") 2>&5 | 
 | 12746 |   ac_status=$? | 
 | 12747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12748 |   (exit $ac_status); }; } && | 
 | 12749 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 12750 |   { (case "(($ac_try" in | 
 | 12751 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 12752 |   *) ac_try_echo=$ac_try;; | 
 | 12753 | esac | 
 | 12754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 12755 |   (eval "$ac_try") 2>&5 | 
 | 12756 |   ac_status=$? | 
 | 12757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 12758 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12759 |   eval "$as_ac_var=yes" | 
 | 12760 | else | 
 | 12761 |   echo "$as_me: failed program was:" >&5 | 
 | 12762 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 12763 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12765 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12766 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12767 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12768 |       conftest$ac_exeext conftest.$ac_ext | 
 | 12769 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12770 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 12771 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 12772 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 12774 |   cat >>confdefs.h <<_ACEOF | 
 | 12775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 12776 | _ACEOF | 
 | 12777 |  | 
 | 12778 | fi | 
 | 12779 | done | 
 | 12780 |  | 
 | 12781 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12782 | # Check whether --enable-shared was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12783 | if test "${enable_shared+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12784 |   enableval=$enable_shared; p=${PACKAGE-default} | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12785 |     case $enableval in | 
 | 12786 |     yes) enable_shared=yes ;; | 
 | 12787 |     no) enable_shared=no ;; | 
 | 12788 |     *) | 
 | 12789 |       enable_shared=no | 
 | 12790 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12791 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12792 |       for pkg in $enableval; do | 
 | 12793 | 	IFS="$lt_save_ifs" | 
 | 12794 | 	if test "X$pkg" = "X$p"; then | 
 | 12795 | 	  enable_shared=yes | 
 | 12796 | 	fi | 
 | 12797 |       done | 
 | 12798 |       IFS="$lt_save_ifs" | 
 | 12799 |       ;; | 
 | 12800 |     esac | 
 | 12801 | else | 
 | 12802 |   enable_shared=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12803 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12804 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12805 |  | 
 | 12806 | # Check whether --enable-static was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12807 | if test "${enable_static+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12808 |   enableval=$enable_static; p=${PACKAGE-default} | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12809 |     case $enableval in | 
 | 12810 |     yes) enable_static=yes ;; | 
 | 12811 |     no) enable_static=no ;; | 
 | 12812 |     *) | 
 | 12813 |      enable_static=no | 
 | 12814 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12815 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12816 |       for pkg in $enableval; do | 
 | 12817 | 	IFS="$lt_save_ifs" | 
 | 12818 | 	if test "X$pkg" = "X$p"; then | 
 | 12819 | 	  enable_static=yes | 
 | 12820 | 	fi | 
 | 12821 |       done | 
 | 12822 |       IFS="$lt_save_ifs" | 
 | 12823 |       ;; | 
 | 12824 |     esac | 
 | 12825 | else | 
 | 12826 |   enable_static=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12827 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12828 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12829 |  | 
 | 12830 | # Check whether --enable-fast-install was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12831 | if test "${enable_fast_install+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12832 |   enableval=$enable_fast_install; p=${PACKAGE-default} | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12833 |     case $enableval in | 
 | 12834 |     yes) enable_fast_install=yes ;; | 
 | 12835 |     no) enable_fast_install=no ;; | 
 | 12836 |     *) | 
 | 12837 |       enable_fast_install=no | 
 | 12838 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12839 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12840 |       for pkg in $enableval; do | 
 | 12841 | 	IFS="$lt_save_ifs" | 
 | 12842 | 	if test "X$pkg" = "X$p"; then | 
 | 12843 | 	  enable_fast_install=yes | 
 | 12844 | 	fi | 
 | 12845 |       done | 
 | 12846 |       IFS="$lt_save_ifs" | 
 | 12847 |       ;; | 
 | 12848 |     esac | 
 | 12849 | else | 
 | 12850 |   enable_fast_install=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12851 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12852 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12853 |  | 
 | 12854 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 
 | 12855 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12856 | if test "${lt_cv_path_SED+set}" = set; then | 
 | 12857 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12858 | else | 
 | 12859 |   # Loop through the user's path and test for sed and gsed. | 
 | 12860 | # Then use that list of sed's as ones to test for truncation. | 
 | 12861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12862 | for as_dir in $PATH | 
 | 12863 | do | 
 | 12864 |   IFS=$as_save_IFS | 
 | 12865 |   test -z "$as_dir" && as_dir=. | 
 | 12866 |   for lt_ac_prog in sed gsed; do | 
 | 12867 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12868 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 
 | 12869 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 
 | 12870 |       fi | 
 | 12871 |     done | 
 | 12872 |   done | 
 | 12873 | done | 
 | 12874 | lt_ac_max=0 | 
 | 12875 | lt_ac_count=0 | 
 | 12876 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 
 | 12877 | # along with /bin/sed that truncates output. | 
 | 12878 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12879 |   test ! -f $lt_ac_sed && continue | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12880 |   cat /dev/null > conftest.in | 
 | 12881 |   lt_ac_count=0 | 
 | 12882 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 
 | 12883 |   # Check for GNU sed and select it if it is found. | 
 | 12884 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 
 | 12885 |     lt_cv_path_SED=$lt_ac_sed | 
 | 12886 |     break | 
 | 12887 |   fi | 
 | 12888 |   while true; do | 
 | 12889 |     cat conftest.in conftest.in >conftest.tmp | 
 | 12890 |     mv conftest.tmp conftest.in | 
 | 12891 |     cp conftest.in conftest.nl | 
 | 12892 |     echo >>conftest.nl | 
 | 12893 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | 
 | 12894 |     cmp -s conftest.out conftest.nl || break | 
 | 12895 |     # 10000 chars as input seems more than enough | 
 | 12896 |     test $lt_ac_count -gt 10 && break | 
 | 12897 |     lt_ac_count=`expr $lt_ac_count + 1` | 
 | 12898 |     if test $lt_ac_count -gt $lt_ac_max; then | 
 | 12899 |       lt_ac_max=$lt_ac_count | 
 | 12900 |       lt_cv_path_SED=$lt_ac_sed | 
 | 12901 |     fi | 
 | 12902 |   done | 
 | 12903 | done | 
 | 12904 |  | 
 | 12905 | fi | 
 | 12906 |  | 
 | 12907 | SED=$lt_cv_path_SED | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | { echo "$as_me:$LINENO: result: $SED" >&5 | 
 | 12909 | echo "${ECHO_T}$SED" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12910 |  | 
 | 12911 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12912 | # Check whether --with-gnu-ld was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12913 | if test "${with_gnu_ld+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12914 |   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12915 | else | 
 | 12916 |   with_gnu_ld=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12917 | fi | 
 | 12918 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12919 | ac_prog=ld | 
 | 12920 | if test "$GCC" = yes; then | 
 | 12921 |   # Check if gcc -print-prog-name=ld gives a path. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12922 |   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 12923 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12924 |   case $host in | 
 | 12925 |   *-*-mingw*) | 
 | 12926 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 12927 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 12928 |   *) | 
 | 12929 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 12930 |   esac | 
 | 12931 |   case $ac_prog in | 
 | 12932 |     # Accept absolute paths. | 
 | 12933 |     [\\/]* | ?:[\\/]*) | 
 | 12934 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 12935 |       # Canonicalize the pathname of ld | 
 | 12936 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 12937 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 12938 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 12939 |       done | 
 | 12940 |       test -z "$LD" && LD="$ac_prog" | 
 | 12941 |       ;; | 
 | 12942 |   "") | 
 | 12943 |     # If it fails, then pretend we aren't using GCC. | 
 | 12944 |     ac_prog=ld | 
 | 12945 |     ;; | 
 | 12946 |   *) | 
 | 12947 |     # If it is relative, then search for the first ld in PATH. | 
 | 12948 |     with_gnu_ld=unknown | 
 | 12949 |     ;; | 
 | 12950 |   esac | 
 | 12951 | elif test "$with_gnu_ld" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 |   { echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 12953 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12954 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12955 |   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 12956 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12957 | fi | 
 | 12958 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 12959 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 12960 | else | 
 | 12961 |   if test -z "$LD"; then | 
 | 12962 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 12963 |   for ac_dir in $PATH; do | 
 | 12964 |     IFS="$lt_save_ifs" | 
 | 12965 |     test -z "$ac_dir" && ac_dir=. | 
 | 12966 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 12967 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 12968 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12969 |       # but apparently some variants of GNU ld only accept -v. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12970 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 12971 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 12972 |       *GNU* | *'with BFD'*) | 
 | 12973 | 	test "$with_gnu_ld" != no && break | 
 | 12974 | 	;; | 
 | 12975 |       *) | 
 | 12976 | 	test "$with_gnu_ld" != yes && break | 
 | 12977 | 	;; | 
 | 12978 |       esac | 
 | 12979 |     fi | 
 | 12980 |   done | 
 | 12981 |   IFS="$lt_save_ifs" | 
 | 12982 | else | 
 | 12983 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 12984 | fi | 
 | 12985 | fi | 
 | 12986 |  | 
 | 12987 | LD="$lt_cv_path_LD" | 
 | 12988 | if test -n "$LD"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12989 |   { echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 12990 | echo "${ECHO_T}$LD" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12991 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12992 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 12993 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12994 | fi | 
 | 12995 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 12996 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 12997 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12998 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 12999 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13000 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 13001 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13002 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13003 |   # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13004 | case `$LD -v 2>&1 </dev/null` in | 
 | 13005 | *GNU* | *'with BFD'*) | 
 | 13006 |   lt_cv_prog_gnu_ld=yes | 
 | 13007 |   ;; | 
 | 13008 | *) | 
 | 13009 |   lt_cv_prog_gnu_ld=no | 
 | 13010 |   ;; | 
 | 13011 | esac | 
 | 13012 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 13014 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13015 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 13016 |  | 
 | 13017 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13018 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 
 | 13019 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13020 | if test "${lt_cv_ld_reload_flag+set}" = set; then | 
 | 13021 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13022 | else | 
 | 13023 |   lt_cv_ld_reload_flag='-r' | 
 | 13024 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13025 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 
 | 13026 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13027 | reload_flag=$lt_cv_ld_reload_flag | 
 | 13028 | case $reload_flag in | 
 | 13029 | "" | " "*) ;; | 
 | 13030 | *) reload_flag=" $reload_flag" ;; | 
 | 13031 | esac | 
 | 13032 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 13033 | case $host_os in | 
 | 13034 |   darwin*) | 
 | 13035 |     if test "$GCC" = yes; then | 
| Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 13036 |       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13037 |     else | 
 | 13038 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 13039 |     fi | 
 | 13040 |     ;; | 
 | 13041 | esac | 
 | 13042 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13043 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 
 | 13044 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13045 | if test "${lt_cv_deplibs_check_method+set}" = set; then | 
 | 13046 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13047 | else | 
 | 13048 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 13049 | lt_cv_file_magic_test_file= | 
 | 13050 | lt_cv_deplibs_check_method='unknown' | 
 | 13051 | # Need to set the preceding variable on all platforms that support | 
 | 13052 | # interlibrary dependencies. | 
 | 13053 | # 'none' -- dependencies not supported. | 
 | 13054 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 13055 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 13056 | # 'test_compile' -- check by making test program. | 
 | 13057 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
 | 13058 | # which responds to the $file_magic_cmd with a given extended regex. | 
 | 13059 | # If you have `file' or equivalent on your system and you're not sure | 
 | 13060 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 13061 |  | 
 | 13062 | case $host_os in | 
 | 13063 | aix4* | aix5*) | 
 | 13064 |   lt_cv_deplibs_check_method=pass_all | 
 | 13065 |   ;; | 
 | 13066 |  | 
 | 13067 | beos*) | 
 | 13068 |   lt_cv_deplibs_check_method=pass_all | 
 | 13069 |   ;; | 
 | 13070 |  | 
 | 13071 | bsdi[45]*) | 
 | 13072 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 13073 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 13074 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 13075 |   ;; | 
 | 13076 |  | 
 | 13077 | cygwin*) | 
 | 13078 |   # func_win32_libid is a shell function defined in ltmain.sh | 
 | 13079 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 13080 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 13081 |   ;; | 
 | 13082 |  | 
 | 13083 | mingw* | pw32*) | 
 | 13084 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 13085 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 
 | 13086 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
 | 13087 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
 | 13088 |   ;; | 
 | 13089 |  | 
 | 13090 | darwin* | rhapsody*) | 
 | 13091 |   lt_cv_deplibs_check_method=pass_all | 
 | 13092 |   ;; | 
 | 13093 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13094 | freebsd* | kfreebsd*-gnu | dragonfly*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13095 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 13096 |     case $host_cpu in | 
 | 13097 |     i*86 ) | 
 | 13098 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 13099 |       # Let's accept both of them until this is cleared up. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13100 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13101 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 13102 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 13103 |       ;; | 
 | 13104 |     esac | 
 | 13105 |   else | 
 | 13106 |     lt_cv_deplibs_check_method=pass_all | 
 | 13107 |   fi | 
 | 13108 |   ;; | 
 | 13109 |  | 
 | 13110 | gnu*) | 
 | 13111 |   lt_cv_deplibs_check_method=pass_all | 
 | 13112 |   ;; | 
 | 13113 |  | 
 | 13114 | hpux10.20* | hpux11*) | 
 | 13115 |   lt_cv_file_magic_cmd=/usr/bin/file | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13116 |   case $host_cpu in | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13117 |   ia64*) | 
 | 13118 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 13119 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 13120 |     ;; | 
 | 13121 |   hppa*64*) | 
 | 13122 |     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]' | 
 | 13123 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 13124 |     ;; | 
 | 13125 |   *) | 
 | 13126 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
 | 13127 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 13128 |     ;; | 
 | 13129 |   esac | 
 | 13130 |   ;; | 
 | 13131 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13132 | interix3*) | 
 | 13133 |   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 
 | 13134 |   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | 
 | 13135 |   ;; | 
 | 13136 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13137 | irix5* | irix6* | nonstopux*) | 
 | 13138 |   case $LD in | 
 | 13139 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 13140 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 13141 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 13142 |   *) libmagic=never-match;; | 
 | 13143 |   esac | 
 | 13144 |   lt_cv_deplibs_check_method=pass_all | 
 | 13145 |   ;; | 
 | 13146 |  | 
 | 13147 | # This must be Linux ELF. | 
 | 13148 | linux*) | 
 | 13149 |   lt_cv_deplibs_check_method=pass_all | 
 | 13150 |   ;; | 
 | 13151 |  | 
 | 13152 | netbsd*) | 
 | 13153 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
 | 13154 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 13155 |   else | 
 | 13156 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
 | 13157 |   fi | 
 | 13158 |   ;; | 
 | 13159 |  | 
 | 13160 | newos6*) | 
 | 13161 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 13162 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 13163 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 13164 |   ;; | 
 | 13165 |  | 
 | 13166 | nto-qnx*) | 
 | 13167 |   lt_cv_deplibs_check_method=unknown | 
 | 13168 |   ;; | 
 | 13169 |  | 
 | 13170 | openbsd*) | 
 | 13171 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 13172 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
 | 13173 |   else | 
 | 13174 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 13175 |   fi | 
 | 13176 |   ;; | 
 | 13177 |  | 
 | 13178 | osf3* | osf4* | osf5*) | 
 | 13179 |   lt_cv_deplibs_check_method=pass_all | 
 | 13180 |   ;; | 
 | 13181 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13182 | solaris*) | 
 | 13183 |   lt_cv_deplibs_check_method=pass_all | 
 | 13184 |   ;; | 
 | 13185 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13186 | sysv4 | sysv4.3*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13187 |   case $host_vendor in | 
 | 13188 |   motorola) | 
 | 13189 |     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]' | 
 | 13190 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 13191 |     ;; | 
 | 13192 |   ncr) | 
 | 13193 |     lt_cv_deplibs_check_method=pass_all | 
 | 13194 |     ;; | 
 | 13195 |   sequent) | 
 | 13196 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 13197 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 13198 |     ;; | 
 | 13199 |   sni) | 
 | 13200 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 13201 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 13202 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 13203 |     ;; | 
 | 13204 |   siemens) | 
 | 13205 |     lt_cv_deplibs_check_method=pass_all | 
 | 13206 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13207 |   pc) | 
 | 13208 |     lt_cv_deplibs_check_method=pass_all | 
 | 13209 |     ;; | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13210 |   esac | 
 | 13211 |   ;; | 
 | 13212 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13213 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13214 |   lt_cv_deplibs_check_method=pass_all | 
 | 13215 |   ;; | 
 | 13216 | esac | 
 | 13217 |  | 
 | 13218 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13219 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | 
 | 13220 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13221 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 13222 | deplibs_check_method=$lt_cv_deplibs_check_method | 
 | 13223 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
 | 13224 |  | 
 | 13225 |  | 
 | 13226 |  | 
 | 13227 | # If no C compiler was specified, use CC. | 
 | 13228 | LTCC=${LTCC-"$CC"} | 
 | 13229 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13230 | # If no C compiler flags were specified, use CFLAGS. | 
 | 13231 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 13232 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13233 | # Allow CC to be a program name with arguments. | 
 | 13234 | compiler=$CC | 
 | 13235 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13236 | # Check whether --enable-libtool-lock was given. | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13237 | if test "${enable_libtool_lock+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13238 |   enableval=$enable_libtool_lock; | 
 | 13239 | fi | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13240 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13241 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 13242 |  | 
 | 13243 | # Some flags need to be propagated to the compiler or linker for good | 
 | 13244 | # libtool support. | 
 | 13245 | case $host in | 
 | 13246 | ia64-*-hpux*) | 
 | 13247 |   # Find out which ABI we are using. | 
 | 13248 |   echo 'int i;' > conftest.$ac_ext | 
 | 13249 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13250 |   (eval $ac_compile) 2>&5 | 
 | 13251 |   ac_status=$? | 
 | 13252 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13253 |   (exit $ac_status); }; then | 
 | 13254 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 13255 |     *ELF-32*) | 
 | 13256 |       HPUX_IA64_MODE="32" | 
 | 13257 |       ;; | 
 | 13258 |     *ELF-64*) | 
 | 13259 |       HPUX_IA64_MODE="64" | 
 | 13260 |       ;; | 
 | 13261 |     esac | 
 | 13262 |   fi | 
 | 13263 |   rm -rf conftest* | 
 | 13264 |   ;; | 
 | 13265 | *-*-irix6*) | 
 | 13266 |   # Find out which ABI we are using. | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 13267 |   echo '#line 13267 "configure"' > conftest.$ac_ext | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13268 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13269 |   (eval $ac_compile) 2>&5 | 
 | 13270 |   ac_status=$? | 
 | 13271 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13272 |   (exit $ac_status); }; then | 
 | 13273 |    if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 13274 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 13275 |     *32-bit*) | 
 | 13276 |       LD="${LD-ld} -melf32bsmip" | 
 | 13277 |       ;; | 
 | 13278 |     *N32*) | 
 | 13279 |       LD="${LD-ld} -melf32bmipn32" | 
 | 13280 |       ;; | 
 | 13281 |     *64-bit*) | 
 | 13282 |       LD="${LD-ld} -melf64bmip" | 
 | 13283 |       ;; | 
 | 13284 |     esac | 
 | 13285 |    else | 
 | 13286 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 13287 |     *32-bit*) | 
 | 13288 |       LD="${LD-ld} -32" | 
 | 13289 |       ;; | 
 | 13290 |     *N32*) | 
 | 13291 |       LD="${LD-ld} -n32" | 
 | 13292 |       ;; | 
 | 13293 |     *64-bit*) | 
 | 13294 |       LD="${LD-ld} -64" | 
 | 13295 |       ;; | 
 | 13296 |     esac | 
 | 13297 |    fi | 
 | 13298 |   fi | 
 | 13299 |   rm -rf conftest* | 
 | 13300 |   ;; | 
 | 13301 |  | 
 | 13302 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
 | 13303 |   # Find out which ABI we are using. | 
 | 13304 |   echo 'int i;' > conftest.$ac_ext | 
 | 13305 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13306 |   (eval $ac_compile) 2>&5 | 
 | 13307 |   ac_status=$? | 
 | 13308 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13309 |   (exit $ac_status); }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13310 |     case `/usr/bin/file conftest.o` in | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13311 |     *32-bit*) | 
 | 13312 |       case $host in | 
 | 13313 |         x86_64-*linux*) | 
 | 13314 |           LD="${LD-ld} -m elf_i386" | 
 | 13315 |           ;; | 
 | 13316 |         ppc64-*linux*|powerpc64-*linux*) | 
 | 13317 |           LD="${LD-ld} -m elf32ppclinux" | 
 | 13318 |           ;; | 
 | 13319 |         s390x-*linux*) | 
 | 13320 |           LD="${LD-ld} -m elf_s390" | 
 | 13321 |           ;; | 
 | 13322 |         sparc64-*linux*) | 
 | 13323 |           LD="${LD-ld} -m elf32_sparc" | 
 | 13324 |           ;; | 
 | 13325 |       esac | 
 | 13326 |       ;; | 
 | 13327 |     *64-bit*) | 
 | 13328 |       case $host in | 
 | 13329 |         x86_64-*linux*) | 
 | 13330 |           LD="${LD-ld} -m elf_x86_64" | 
 | 13331 |           ;; | 
 | 13332 |         ppc*-*linux*|powerpc*-*linux*) | 
 | 13333 |           LD="${LD-ld} -m elf64ppc" | 
 | 13334 |           ;; | 
 | 13335 |         s390*-*linux*) | 
 | 13336 |           LD="${LD-ld} -m elf64_s390" | 
 | 13337 |           ;; | 
 | 13338 |         sparc*-*linux*) | 
 | 13339 |           LD="${LD-ld} -m elf64_sparc" | 
 | 13340 |           ;; | 
 | 13341 |       esac | 
 | 13342 |       ;; | 
 | 13343 |     esac | 
 | 13344 |   fi | 
 | 13345 |   rm -rf conftest* | 
 | 13346 |   ;; | 
 | 13347 |  | 
 | 13348 | *-*-sco3.2v5*) | 
 | 13349 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 13350 |   SAVE_CFLAGS="$CFLAGS" | 
 | 13351 |   CFLAGS="$CFLAGS -belf" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13352 |   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | 
 | 13353 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13354 | if test "${lt_cv_cc_needs_belf+set}" = set; then | 
 | 13355 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13356 | else | 
 | 13357 |   ac_ext=c | 
 | 13358 | ac_cpp='$CPP $CPPFLAGS' | 
 | 13359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 13360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 13362 |  | 
 | 13363 |      cat >conftest.$ac_ext <<_ACEOF | 
 | 13364 | /* confdefs.h.  */ | 
 | 13365 | _ACEOF | 
 | 13366 | cat confdefs.h >>conftest.$ac_ext | 
 | 13367 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13368 | /* end confdefs.h.  */ | 
 | 13369 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13370 | int | 
 | 13371 | main () | 
 | 13372 | { | 
 | 13373 |  | 
 | 13374 |   ; | 
 | 13375 |   return 0; | 
 | 13376 | } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13377 | _ACEOF | 
 | 13378 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13379 | if { (ac_try="$ac_link" | 
 | 13380 | case "(($ac_try" in | 
 | 13381 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13382 |   *) ac_try_echo=$ac_try;; | 
 | 13383 | esac | 
 | 13384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13385 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13386 |   ac_status=$? | 
 | 13387 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13388 |   rm -f conftest.er1 | 
 | 13389 |   cat conftest.err >&5 | 
 | 13390 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13391 |   (exit $ac_status); } && | 
 | 13392 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 13393 |   { (case "(($ac_try" in | 
 | 13394 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13395 |   *) ac_try_echo=$ac_try;; | 
 | 13396 | esac | 
 | 13397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13398 |   (eval "$ac_try") 2>&5 | 
 | 13399 |   ac_status=$? | 
 | 13400 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13401 |   (exit $ac_status); }; } && | 
 | 13402 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 13403 |   { (case "(($ac_try" in | 
 | 13404 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13405 |   *) ac_try_echo=$ac_try;; | 
 | 13406 | esac | 
 | 13407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13408 |   (eval "$ac_try") 2>&5 | 
 | 13409 |   ac_status=$? | 
 | 13410 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13411 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13412 |   lt_cv_cc_needs_belf=yes | 
 | 13413 | else | 
 | 13414 |   echo "$as_me: failed program was:" >&5 | 
 | 13415 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13416 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13417 | 	lt_cv_cc_needs_belf=no | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13418 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13419 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13420 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13421 |       conftest$ac_exeext conftest.$ac_ext | 
 | 13422 |      ac_ext=c | 
 | 13423 | ac_cpp='$CPP $CPPFLAGS' | 
 | 13424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 13425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 13427 |  | 
 | 13428 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13429 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | 
 | 13430 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13431 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 13432 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 13433 |     CFLAGS="$SAVE_CFLAGS" | 
 | 13434 |   fi | 
 | 13435 |   ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13436 | sparc*-*solaris*) | 
 | 13437 |   # Find out which ABI we are using. | 
 | 13438 |   echo 'int i;' > conftest.$ac_ext | 
 | 13439 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 13440 |   (eval $ac_compile) 2>&5 | 
 | 13441 |   ac_status=$? | 
 | 13442 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13443 |   (exit $ac_status); }; then | 
 | 13444 |     case `/usr/bin/file conftest.o` in | 
 | 13445 |     *64-bit*) | 
 | 13446 |       case $lt_cv_prog_gnu_ld in | 
 | 13447 |       yes*) LD="${LD-ld} -m elf64_sparc" ;; | 
 | 13448 |       *)    LD="${LD-ld} -64" ;; | 
 | 13449 |       esac | 
 | 13450 |       ;; | 
 | 13451 |     esac | 
 | 13452 |   fi | 
 | 13453 |   rm -rf conftest* | 
 | 13454 |   ;; | 
 | 13455 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13456 |  | 
 | 13457 | esac | 
 | 13458 |  | 
 | 13459 | need_locks="$enable_libtool_lock" | 
 | 13460 |  | 
 | 13461 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13462 |  | 
 | 13463 |  | 
 | 13464 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 13465 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 13466 |     (test "X$CXX" != "Xg++"))) ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13467 |   ac_ext=cpp | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13468 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 13469 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 13470 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13471 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13472 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | 
 | 13473 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13474 | if test -z "$CXXCPP"; then | 
 | 13475 |   if test "${ac_cv_prog_CXXCPP+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13476 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13477 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13478 |       # Double quotes because CXXCPP needs to be expanded | 
 | 13479 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 13480 |     do | 
 | 13481 |       ac_preproc_ok=false | 
 | 13482 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 13483 | do | 
 | 13484 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 13485 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13486 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 13487 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13488 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 13489 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 13490 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13491 | /* confdefs.h.  */ | 
 | 13492 | _ACEOF | 
 | 13493 | cat confdefs.h >>conftest.$ac_ext | 
 | 13494 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13495 | /* end confdefs.h.  */ | 
 | 13496 | #ifdef __STDC__ | 
 | 13497 | # include <limits.h> | 
 | 13498 | #else | 
 | 13499 | # include <assert.h> | 
 | 13500 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13501 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13502 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13503 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 13504 | case "(($ac_try" in | 
 | 13505 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13506 |   *) ac_try_echo=$ac_try;; | 
 | 13507 | esac | 
 | 13508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13509 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13510 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13511 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13512 |   rm -f conftest.er1 | 
 | 13513 |   cat conftest.err >&5 | 
 | 13514 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13515 |   (exit $ac_status); } >/dev/null; then | 
 | 13516 |   if test -s conftest.err; then | 
 | 13517 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 13518 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
 | 13519 |   else | 
 | 13520 |     ac_cpp_err= | 
 | 13521 |   fi | 
 | 13522 | else | 
 | 13523 |   ac_cpp_err=yes | 
 | 13524 | fi | 
 | 13525 | if test -z "$ac_cpp_err"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13526 |   : | 
 | 13527 | else | 
 | 13528 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13529 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13530 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13531 |   # Broken: fails on valid input. | 
 | 13532 | continue | 
 | 13533 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13534 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13535 | rm -f conftest.err conftest.$ac_ext | 
 | 13536 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13537 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 |   # can be detected and how. | 
 | 13539 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13540 | /* confdefs.h.  */ | 
 | 13541 | _ACEOF | 
 | 13542 | cat confdefs.h >>conftest.$ac_ext | 
 | 13543 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13544 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13545 | #include <ac_nonexistent.h> | 
 | 13546 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13547 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 13548 | case "(($ac_try" in | 
 | 13549 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13550 |   *) ac_try_echo=$ac_try;; | 
 | 13551 | esac | 
 | 13552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13553 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13554 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13555 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13556 |   rm -f conftest.er1 | 
 | 13557 |   cat conftest.err >&5 | 
 | 13558 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13559 |   (exit $ac_status); } >/dev/null; then | 
 | 13560 |   if test -s conftest.err; then | 
 | 13561 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 13562 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
 | 13563 |   else | 
 | 13564 |     ac_cpp_err= | 
 | 13565 |   fi | 
 | 13566 | else | 
 | 13567 |   ac_cpp_err=yes | 
 | 13568 | fi | 
 | 13569 | if test -z "$ac_cpp_err"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13570 |   # Broken: success on invalid input. | 
 | 13571 | continue | 
 | 13572 | else | 
 | 13573 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13574 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13575 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13576 |   # Passes both tests. | 
 | 13577 | ac_preproc_ok=: | 
 | 13578 | break | 
 | 13579 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13580 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13581 | rm -f conftest.err conftest.$ac_ext | 
 | 13582 |  | 
 | 13583 | done | 
 | 13584 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 13585 | rm -f conftest.err conftest.$ac_ext | 
 | 13586 | if $ac_preproc_ok; then | 
 | 13587 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13588 | fi | 
 | 13589 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13590 |     done | 
 | 13591 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 13592 |  | 
 | 13593 | fi | 
 | 13594 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 13595 | else | 
 | 13596 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 13597 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13598 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | 
 | 13599 | echo "${ECHO_T}$CXXCPP" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13600 | ac_preproc_ok=false | 
 | 13601 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 13602 | do | 
 | 13603 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 13604 |   # with a fresh cross-compiler works. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13605 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 13606 |   # <limits.h> exists even on freestanding compilers. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13607 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 13608 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 13609 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13610 | /* confdefs.h.  */ | 
 | 13611 | _ACEOF | 
 | 13612 | cat confdefs.h >>conftest.$ac_ext | 
 | 13613 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13614 | /* end confdefs.h.  */ | 
 | 13615 | #ifdef __STDC__ | 
 | 13616 | # include <limits.h> | 
 | 13617 | #else | 
 | 13618 | # include <assert.h> | 
 | 13619 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13620 | 		     Syntax error | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13621 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13622 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 13623 | case "(($ac_try" in | 
 | 13624 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13625 |   *) ac_try_echo=$ac_try;; | 
 | 13626 | esac | 
 | 13627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13628 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13629 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13630 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13631 |   rm -f conftest.er1 | 
 | 13632 |   cat conftest.err >&5 | 
 | 13633 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13634 |   (exit $ac_status); } >/dev/null; then | 
 | 13635 |   if test -s conftest.err; then | 
 | 13636 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 13637 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
 | 13638 |   else | 
 | 13639 |     ac_cpp_err= | 
 | 13640 |   fi | 
 | 13641 | else | 
 | 13642 |   ac_cpp_err=yes | 
 | 13643 | fi | 
 | 13644 | if test -z "$ac_cpp_err"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13645 |   : | 
 | 13646 | else | 
 | 13647 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13648 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13649 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13650 |   # Broken: fails on valid input. | 
 | 13651 | continue | 
 | 13652 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13653 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13654 | rm -f conftest.err conftest.$ac_ext | 
 | 13655 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13656 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13657 |   # can be detected and how. | 
 | 13658 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13659 | /* confdefs.h.  */ | 
 | 13660 | _ACEOF | 
 | 13661 | cat confdefs.h >>conftest.$ac_ext | 
 | 13662 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 13663 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13664 | #include <ac_nonexistent.h> | 
 | 13665 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13666 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 13667 | case "(($ac_try" in | 
 | 13668 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13669 |   *) ac_try_echo=$ac_try;; | 
 | 13670 | esac | 
 | 13671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13672 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13673 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13674 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13675 |   rm -f conftest.er1 | 
 | 13676 |   cat conftest.err >&5 | 
 | 13677 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13678 |   (exit $ac_status); } >/dev/null; then | 
 | 13679 |   if test -s conftest.err; then | 
 | 13680 |     ac_cpp_err=$ac_cxx_preproc_warn_flag | 
 | 13681 |     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | 
 | 13682 |   else | 
 | 13683 |     ac_cpp_err= | 
 | 13684 |   fi | 
 | 13685 | else | 
 | 13686 |   ac_cpp_err=yes | 
 | 13687 | fi | 
 | 13688 | if test -z "$ac_cpp_err"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13689 |   # Broken: success on invalid input. | 
 | 13690 | continue | 
 | 13691 | else | 
 | 13692 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13693 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13694 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13695 |   # Passes both tests. | 
 | 13696 | ac_preproc_ok=: | 
 | 13697 | break | 
 | 13698 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13699 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13700 | rm -f conftest.err conftest.$ac_ext | 
 | 13701 |  | 
 | 13702 | done | 
 | 13703 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
 | 13704 | rm -f conftest.err conftest.$ac_ext | 
 | 13705 | if $ac_preproc_ok; then | 
 | 13706 |   : | 
 | 13707 | else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13708 |   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 13709 | See \`config.log' for more details." >&5 | 
 | 13710 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 13711 | See \`config.log' for more details." >&2;} | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13712 |    { (exit 1); exit 1; }; } | 
 | 13713 | fi | 
 | 13714 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13715 | ac_ext=cpp | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13716 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 13717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 13718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 13720 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13721 | fi | 
 | 13722 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13723 |  | 
 | 13724 | ac_ext=f | 
 | 13725 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 13726 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13727 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 13728 | if test -n "$ac_tool_prefix"; then | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13729 |   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13730 |   do | 
 | 13731 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 13732 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 13734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13735 | if test "${ac_cv_prog_F77+set}" = set; then | 
 | 13736 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13737 | else | 
 | 13738 |   if test -n "$F77"; then | 
 | 13739 |   ac_cv_prog_F77="$F77" # Let the user override the test. | 
 | 13740 | else | 
 | 13741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 13742 | for as_dir in $PATH | 
 | 13743 | do | 
 | 13744 |   IFS=$as_save_IFS | 
 | 13745 |   test -z "$as_dir" && as_dir=. | 
 | 13746 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13747 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13748 |     ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 
 | 13749 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 13750 |     break 2 | 
 | 13751 |   fi | 
 | 13752 | done | 
 | 13753 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13754 | IFS=$as_save_IFS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13755 |  | 
 | 13756 | fi | 
 | 13757 | fi | 
 | 13758 | F77=$ac_cv_prog_F77 | 
 | 13759 | if test -n "$F77"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13760 |   { echo "$as_me:$LINENO: result: $F77" >&5 | 
 | 13761 | echo "${ECHO_T}$F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13762 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13763 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 13764 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13765 | fi | 
 | 13766 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13767 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13768 |     test -n "$F77" && break | 
 | 13769 |   done | 
 | 13770 | fi | 
 | 13771 | if test -z "$F77"; then | 
 | 13772 |   ac_ct_F77=$F77 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13773 |   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13774 | do | 
 | 13775 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 13776 | set dummy $ac_prog; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 13778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13779 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 
 | 13780 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13781 | else | 
 | 13782 |   if test -n "$ac_ct_F77"; then | 
 | 13783 |   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 
 | 13784 | else | 
 | 13785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 13786 | for as_dir in $PATH | 
 | 13787 | do | 
 | 13788 |   IFS=$as_save_IFS | 
 | 13789 |   test -z "$as_dir" && as_dir=. | 
 | 13790 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13791 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13792 |     ac_cv_prog_ac_ct_F77="$ac_prog" | 
 | 13793 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 13794 |     break 2 | 
 | 13795 |   fi | 
 | 13796 | done | 
 | 13797 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13798 | IFS=$as_save_IFS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13799 |  | 
 | 13800 | fi | 
 | 13801 | fi | 
 | 13802 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 
 | 13803 | if test -n "$ac_ct_F77"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13804 |   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 
 | 13805 | echo "${ECHO_T}$ac_ct_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13806 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13807 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 13808 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13809 | fi | 
 | 13810 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13811 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13812 |   test -n "$ac_ct_F77" && break | 
 | 13813 | done | 
 | 13814 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13815 |   if test "x$ac_ct_F77" = x; then | 
 | 13816 |     F77="" | 
 | 13817 |   else | 
 | 13818 |     case $cross_compiling:$ac_tool_warned in | 
 | 13819 | yes:) | 
 | 13820 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 13821 | whose name does not start with the host triplet.  If you think this | 
 | 13822 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 13823 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 13824 | whose name does not start with the host triplet.  If you think this | 
 | 13825 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 13826 | ac_tool_warned=yes ;; | 
 | 13827 | esac | 
 | 13828 |     F77=$ac_ct_F77 | 
 | 13829 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13830 | fi | 
 | 13831 |  | 
 | 13832 |  | 
 | 13833 | # Provide some information about the compiler. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13834 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13835 | ac_compiler=`set X $ac_compile; echo $2` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13836 | { (ac_try="$ac_compiler --version >&5" | 
 | 13837 | case "(($ac_try" in | 
 | 13838 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13839 |   *) ac_try_echo=$ac_try;; | 
 | 13840 | esac | 
 | 13841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13842 |   (eval "$ac_compiler --version >&5") 2>&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13843 |   ac_status=$? | 
 | 13844 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13845 |   (exit $ac_status); } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13846 | { (ac_try="$ac_compiler -v >&5" | 
 | 13847 | case "(($ac_try" in | 
 | 13848 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13849 |   *) ac_try_echo=$ac_try;; | 
 | 13850 | esac | 
 | 13851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13852 |   (eval "$ac_compiler -v >&5") 2>&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13853 |   ac_status=$? | 
 | 13854 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13855 |   (exit $ac_status); } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13856 | { (ac_try="$ac_compiler -V >&5" | 
 | 13857 | case "(($ac_try" in | 
 | 13858 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13859 |   *) ac_try_echo=$ac_try;; | 
 | 13860 | esac | 
 | 13861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13862 |   (eval "$ac_compiler -V >&5") 2>&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13863 |   ac_status=$? | 
 | 13864 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13865 |   (exit $ac_status); } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13866 | rm -f a.out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13867 |  | 
 | 13868 | # If we don't use `.F' as extension, the preprocessor is not run on the | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13869 | # input file.  (Note that this only needs to work for GNU compilers.) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13870 | ac_save_ext=$ac_ext | 
 | 13871 | ac_ext=F | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13872 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | 
 | 13873 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13874 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | 
 | 13875 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13876 | else | 
 | 13877 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 13878 |       program main | 
 | 13879 | #ifndef __GNUC__ | 
 | 13880 |        choke me | 
 | 13881 | #endif | 
 | 13882 |  | 
 | 13883 |       end | 
 | 13884 | _ACEOF | 
 | 13885 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13886 | if { (ac_try="$ac_compile" | 
 | 13887 | case "(($ac_try" in | 
 | 13888 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13889 |   *) ac_try_echo=$ac_try;; | 
 | 13890 | esac | 
 | 13891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13892 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13893 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13894 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13895 |   rm -f conftest.er1 | 
 | 13896 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13897 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13898 |   (exit $ac_status); } && | 
 | 13899 | 	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 
 | 13900 |   { (case "(($ac_try" in | 
 | 13901 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13902 |   *) ac_try_echo=$ac_try;; | 
 | 13903 | esac | 
 | 13904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13905 |   (eval "$ac_try") 2>&5 | 
 | 13906 |   ac_status=$? | 
 | 13907 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13908 |   (exit $ac_status); }; } && | 
 | 13909 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 13910 |   { (case "(($ac_try" in | 
 | 13911 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13912 |   *) ac_try_echo=$ac_try;; | 
 | 13913 | esac | 
 | 13914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13915 |   (eval "$ac_try") 2>&5 | 
 | 13916 |   ac_status=$? | 
 | 13917 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13918 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13919 |   ac_compiler_gnu=yes | 
 | 13920 | else | 
 | 13921 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13922 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13923 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13924 | 	ac_compiler_gnu=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13925 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13926 |  | 
 | 13927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13928 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | 
 | 13929 |  | 
 | 13930 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13931 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | 
 | 13932 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13933 | ac_ext=$ac_save_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13934 | ac_test_FFLAGS=${FFLAGS+set} | 
 | 13935 | ac_save_FFLAGS=$FFLAGS | 
 | 13936 | FFLAGS= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13937 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | 
 | 13938 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13939 | if test "${ac_cv_prog_f77_g+set}" = set; then | 
 | 13940 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 13941 | else | 
 | 13942 |   FFLAGS=-g | 
 | 13943 | cat >conftest.$ac_ext <<_ACEOF | 
 | 13944 |       program main | 
 | 13945 |  | 
 | 13946 |       end | 
 | 13947 | _ACEOF | 
 | 13948 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13949 | if { (ac_try="$ac_compile" | 
 | 13950 | case "(($ac_try" in | 
 | 13951 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13952 |   *) ac_try_echo=$ac_try;; | 
 | 13953 | esac | 
 | 13954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13955 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13956 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13957 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 13958 |   rm -f conftest.er1 | 
 | 13959 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13960 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13961 |   (exit $ac_status); } && | 
 | 13962 | 	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 
 | 13963 |   { (case "(($ac_try" in | 
 | 13964 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13965 |   *) ac_try_echo=$ac_try;; | 
 | 13966 | esac | 
 | 13967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13968 |   (eval "$ac_try") 2>&5 | 
 | 13969 |   ac_status=$? | 
 | 13970 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13971 |   (exit $ac_status); }; } && | 
 | 13972 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 13973 |   { (case "(($ac_try" in | 
 | 13974 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 13975 |   *) ac_try_echo=$ac_try;; | 
 | 13976 | esac | 
 | 13977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 13978 |   (eval "$ac_try") 2>&5 | 
 | 13979 |   ac_status=$? | 
 | 13980 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 13981 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13982 |   ac_cv_prog_f77_g=yes | 
 | 13983 | else | 
 | 13984 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13985 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 13986 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13987 | 	ac_cv_prog_f77_g=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13988 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13989 |  | 
 | 13990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13991 |  | 
 | 13992 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13993 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | 
 | 13994 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13995 | if test "$ac_test_FFLAGS" = set; then | 
 | 13996 |   FFLAGS=$ac_save_FFLAGS | 
 | 13997 | elif test $ac_cv_prog_f77_g = yes; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13998 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13999 |     FFLAGS="-g -O2" | 
 | 14000 |   else | 
 | 14001 |     FFLAGS="-g" | 
 | 14002 |   fi | 
 | 14003 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14004 |   if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14005 |     FFLAGS="-O2" | 
 | 14006 |   else | 
 | 14007 |     FFLAGS= | 
 | 14008 |   fi | 
 | 14009 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14010 |  | 
 | 14011 | G77=`test $ac_compiler_gnu = yes && echo yes` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14012 | ac_ext=c | 
 | 14013 | ac_cpp='$CPP $CPPFLAGS' | 
 | 14014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 14015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 14016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 14017 |  | 
 | 14018 |  | 
 | 14019 |  | 
 | 14020 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
 | 14021 |  | 
 | 14022 | # find the maximum length of command line arguments | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | 
 | 14024 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14025 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | 
 | 14026 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14027 | else | 
 | 14028 |     i=0 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14029 |   teststring="ABCD" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14030 |  | 
 | 14031 |   case $build_os in | 
 | 14032 |   msdosdjgpp*) | 
 | 14033 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 14034 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 14035 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 14036 |     # check would be larger than it should be. | 
 | 14037 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 14038 |     ;; | 
 | 14039 |  | 
 | 14040 |   gnu*) | 
 | 14041 |     # Under GNU Hurd, this test is not required because there is | 
 | 14042 |     # no limit to the length of command line arguments. | 
 | 14043 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 14044 |     lt_cv_sys_max_cmd_len=-1; | 
 | 14045 |     ;; | 
 | 14046 |  | 
 | 14047 |   cygwin* | mingw*) | 
 | 14048 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 14049 |     # about 5 minutes as the teststring grows exponentially. | 
 | 14050 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 14051 |     # you end up with a "frozen" computer, even though with patience | 
 | 14052 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 14053 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 14054 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 14055 |     lt_cv_sys_max_cmd_len=8192; | 
 | 14056 |     ;; | 
 | 14057 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14058 |   amigaos*) | 
 | 14059 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 14060 |     # So we just punt and use a minimum line length of 8192. | 
 | 14061 |     lt_cv_sys_max_cmd_len=8192; | 
 | 14062 |     ;; | 
 | 14063 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14064 |   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14065 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 14066 |     if test -x /sbin/sysctl; then | 
 | 14067 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 14068 |     elif test -x /usr/sbin/sysctl; then | 
 | 14069 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 14070 |     else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14071 |       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14072 |     fi | 
 | 14073 |     # And add a safety zone | 
 | 14074 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14075 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14076 |     ;; | 
 | 14077 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14078 |   interix*) | 
 | 14079 |     # We know the value 262144 and hardcode it with a safety zone (like BSD) | 
 | 14080 |     lt_cv_sys_max_cmd_len=196608 | 
 | 14081 |     ;; | 
 | 14082 |  | 
 | 14083 |   osf*) | 
 | 14084 |     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 
 | 14085 |     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 
 | 14086 |     # nice to cause kernel panics so lets avoid the loop below. | 
 | 14087 |     # First set a reasonable default. | 
 | 14088 |     lt_cv_sys_max_cmd_len=16384 | 
 | 14089 |     # | 
 | 14090 |     if test -x /sbin/sysconfig; then | 
 | 14091 |       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 
 | 14092 |         *1*) lt_cv_sys_max_cmd_len=-1 ;; | 
 | 14093 |       esac | 
 | 14094 |     fi | 
 | 14095 |     ;; | 
 | 14096 |   sco3.2v5*) | 
 | 14097 |     lt_cv_sys_max_cmd_len=102400 | 
 | 14098 |     ;; | 
 | 14099 |   sysv5* | sco5v6* | sysv4.2uw2*) | 
 | 14100 |     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 
 | 14101 |     if test -n "$kargmax"; then | 
 | 14102 |       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'` | 
 | 14103 |     else | 
 | 14104 |       lt_cv_sys_max_cmd_len=32768 | 
 | 14105 |     fi | 
 | 14106 |     ;; | 
 | 14107 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14108 |     # If test is not a shell built-in, we'll probably end up computing a | 
 | 14109 |     # maximum length that is only half of the actual maximum length, but | 
 | 14110 |     # we can't tell. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14111 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 14112 |     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | 
 | 14113 | 	       = "XX$teststring") >/dev/null 2>&1 && | 
 | 14114 | 	    new_result=`expr "X$teststring" : ".*" 2>&1` && | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14115 | 	    lt_cv_sys_max_cmd_len=$new_result && | 
 | 14116 | 	    test $i != 17 # 1/2 MB should be enough | 
 | 14117 |     do | 
 | 14118 |       i=`expr $i + 1` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14119 |       teststring=$teststring$teststring | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14120 |     done | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14121 |     teststring= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14122 |     # Add a significant safety factor because C++ compilers can tack on massive | 
 | 14123 |     # amounts of additional arguments before passing them to the linker. | 
 | 14124 |     # It appears as though 1/2 is a usable value. | 
 | 14125 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 14126 |     ;; | 
 | 14127 |   esac | 
 | 14128 |  | 
 | 14129 | fi | 
 | 14130 |  | 
 | 14131 | if test -n $lt_cv_sys_max_cmd_len ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14132 |   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 14133 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14134 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14135 |   { echo "$as_me:$LINENO: result: none" >&5 | 
 | 14136 | echo "${ECHO_T}none" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14137 | fi | 
 | 14138 |  | 
 | 14139 |  | 
 | 14140 |  | 
 | 14141 |  | 
 | 14142 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14143 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 
 | 14144 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14145 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | 
 | 14146 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14147 | else | 
 | 14148 |  | 
 | 14149 | # These are sane defaults that work on at least a few old systems. | 
 | 14150 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 14151 |  | 
 | 14152 | # Character class describing NM global symbol codes. | 
 | 14153 | symcode='[BCDEGRST]' | 
 | 14154 |  | 
 | 14155 | # Regexp to match symbols that can be accessed directly from C. | 
 | 14156 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 14157 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14158 | # Transform an extracted symbol line into a proper C declaration | 
 | 14159 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 
 | 14160 |  | 
 | 14161 | # Transform an extracted symbol line into symbol name and symbol address | 
 | 14162 | 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'" | 
 | 14163 |  | 
 | 14164 | # Define system-specific variables. | 
 | 14165 | case $host_os in | 
 | 14166 | aix*) | 
 | 14167 |   symcode='[BCDT]' | 
 | 14168 |   ;; | 
 | 14169 | cygwin* | mingw* | pw32*) | 
 | 14170 |   symcode='[ABCDGISTW]' | 
 | 14171 |   ;; | 
 | 14172 | hpux*) # Its linker distinguishes data from code symbols | 
 | 14173 |   if test "$host_cpu" = ia64; then | 
 | 14174 |     symcode='[ABCDEGRST]' | 
 | 14175 |   fi | 
 | 14176 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 14177 |   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'" | 
 | 14178 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14179 | linux*) | 
 | 14180 |   if test "$host_cpu" = ia64; then | 
 | 14181 |     symcode='[ABCDGIRSTW]' | 
 | 14182 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 14183 |     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'" | 
 | 14184 |   fi | 
 | 14185 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14186 | irix* | nonstopux*) | 
 | 14187 |   symcode='[BCDEGRST]' | 
 | 14188 |   ;; | 
 | 14189 | osf*) | 
 | 14190 |   symcode='[BCDEGQRST]' | 
 | 14191 |   ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14192 | solaris*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14193 |   symcode='[BDRT]' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14194 |   ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14195 | sco3.2v5*) | 
 | 14196 |   symcode='[DT]' | 
 | 14197 |   ;; | 
 | 14198 | sysv4.2uw2*) | 
 | 14199 |   symcode='[DT]' | 
 | 14200 |   ;; | 
 | 14201 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 14202 |   symcode='[ABDT]' | 
 | 14203 |   ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14204 | sysv4) | 
 | 14205 |   symcode='[DFNSTU]' | 
 | 14206 |   ;; | 
 | 14207 | esac | 
 | 14208 |  | 
 | 14209 | # Handle CRLF in mingw tool chain | 
 | 14210 | opt_cr= | 
 | 14211 | case $build_os in | 
 | 14212 | mingw*) | 
 | 14213 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 14214 |   ;; | 
 | 14215 | esac | 
 | 14216 |  | 
 | 14217 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 14218 | case `$NM -V 2>&1` in | 
 | 14219 | *GNU* | *'with BFD'*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14220 |   symcode='[ABCDGIRSTW]' ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14221 | esac | 
 | 14222 |  | 
 | 14223 | # Try without a prefix undercore, then with it. | 
 | 14224 | for ac_symprfx in "" "_"; do | 
 | 14225 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 |   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
 | 14227 |   symxfrm="\\1 $ac_symprfx\\2 \\2" | 
 | 14228 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14229 |   # Write the raw and C identifiers. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14230 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14231 |  | 
 | 14232 |   # Check to see that the pipe works correctly. | 
 | 14233 |   pipe_works=no | 
 | 14234 |  | 
 | 14235 |   rm -f conftest* | 
 | 14236 |   cat > conftest.$ac_ext <<EOF | 
 | 14237 | #ifdef __cplusplus | 
 | 14238 | extern "C" { | 
 | 14239 | #endif | 
 | 14240 | char nm_test_var; | 
 | 14241 | void nm_test_func(){} | 
 | 14242 | #ifdef __cplusplus | 
 | 14243 | } | 
 | 14244 | #endif | 
 | 14245 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 14246 | EOF | 
 | 14247 |  | 
 | 14248 |   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 14249 |   (eval $ac_compile) 2>&5 | 
 | 14250 |   ac_status=$? | 
 | 14251 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14252 |   (exit $ac_status); }; then | 
 | 14253 |     # Now try to grab the symbols. | 
 | 14254 |     nlist=conftest.nm | 
 | 14255 |     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | 
 | 14256 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | 
 | 14257 |   ac_status=$? | 
 | 14258 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14259 |   (exit $ac_status); } && test -s "$nlist"; then | 
 | 14260 |       # Try sorting and uniquifying the output. | 
 | 14261 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 14262 | 	mv -f "$nlist"T "$nlist" | 
 | 14263 |       else | 
 | 14264 | 	rm -f "$nlist"T | 
 | 14265 |       fi | 
 | 14266 |  | 
 | 14267 |       # Make sure that we snagged all the symbols we need. | 
 | 14268 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 14269 | 	if grep ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 14270 | 	  cat <<EOF > conftest.$ac_ext | 
 | 14271 | #ifdef __cplusplus | 
 | 14272 | extern "C" { | 
 | 14273 | #endif | 
 | 14274 |  | 
 | 14275 | EOF | 
 | 14276 | 	  # Now generate the symbol file. | 
 | 14277 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 
 | 14278 |  | 
 | 14279 | 	  cat <<EOF >> conftest.$ac_ext | 
 | 14280 | #if defined (__STDC__) && __STDC__ | 
 | 14281 | # define lt_ptr_t void * | 
 | 14282 | #else | 
 | 14283 | # define lt_ptr_t char * | 
 | 14284 | # define const | 
 | 14285 | #endif | 
 | 14286 |  | 
 | 14287 | /* The mapping between symbol names and symbols. */ | 
 | 14288 | const struct { | 
 | 14289 |   const char *name; | 
 | 14290 |   lt_ptr_t address; | 
 | 14291 | } | 
 | 14292 | lt_preloaded_symbols[] = | 
 | 14293 | { | 
 | 14294 | EOF | 
 | 14295 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 
 | 14296 | 	  cat <<\EOF >> conftest.$ac_ext | 
 | 14297 |   {0, (lt_ptr_t) 0} | 
 | 14298 | }; | 
 | 14299 |  | 
 | 14300 | #ifdef __cplusplus | 
 | 14301 | } | 
 | 14302 | #endif | 
 | 14303 | EOF | 
 | 14304 | 	  # Now try linking the two files. | 
 | 14305 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
 | 14306 | 	  lt_save_LIBS="$LIBS" | 
 | 14307 | 	  lt_save_CFLAGS="$CFLAGS" | 
 | 14308 | 	  LIBS="conftstm.$ac_objext" | 
 | 14309 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 14310 | 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 14311 |   (eval $ac_link) 2>&5 | 
 | 14312 |   ac_status=$? | 
 | 14313 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 14314 |   (exit $ac_status); } && test -s conftest${ac_exeext}; then | 
 | 14315 | 	    pipe_works=yes | 
 | 14316 | 	  fi | 
 | 14317 | 	  LIBS="$lt_save_LIBS" | 
 | 14318 | 	  CFLAGS="$lt_save_CFLAGS" | 
 | 14319 | 	else | 
 | 14320 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 14321 | 	fi | 
 | 14322 |       else | 
 | 14323 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 14324 |       fi | 
 | 14325 |     else | 
 | 14326 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 14327 |     fi | 
 | 14328 |   else | 
 | 14329 |     echo "$progname: failed program was:" >&5 | 
 | 14330 |     cat conftest.$ac_ext >&5 | 
 | 14331 |   fi | 
 | 14332 |   rm -f conftest* conftst* | 
 | 14333 |  | 
 | 14334 |   # Do not use the global_symbol_pipe unless it works. | 
 | 14335 |   if test "$pipe_works" = yes; then | 
 | 14336 |     break | 
 | 14337 |   else | 
 | 14338 |     lt_cv_sys_global_symbol_pipe= | 
 | 14339 |   fi | 
 | 14340 | done | 
 | 14341 |  | 
 | 14342 | fi | 
 | 14343 |  | 
 | 14344 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 14345 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 14346 | fi | 
 | 14347 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14348 |   { echo "$as_me:$LINENO: result: failed" >&5 | 
 | 14349 | echo "${ECHO_T}failed" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14350 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14351 |   { echo "$as_me:$LINENO: result: ok" >&5 | 
 | 14352 | echo "${ECHO_T}ok" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14353 | fi | 
 | 14354 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14355 | { echo "$as_me:$LINENO: checking for objdir" >&5 | 
 | 14356 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14357 | if test "${lt_cv_objdir+set}" = set; then | 
 | 14358 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14359 | else | 
 | 14360 |   rm -f .libs 2>/dev/null | 
 | 14361 | mkdir .libs 2>/dev/null | 
 | 14362 | if test -d .libs; then | 
 | 14363 |   lt_cv_objdir=.libs | 
 | 14364 | else | 
 | 14365 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 14366 |   lt_cv_objdir=_libs | 
 | 14367 | fi | 
 | 14368 | rmdir .libs 2>/dev/null | 
 | 14369 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14370 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 
 | 14371 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14372 | objdir=$lt_cv_objdir | 
 | 14373 |  | 
 | 14374 |  | 
 | 14375 |  | 
 | 14376 |  | 
 | 14377 |  | 
 | 14378 | case $host_os in | 
 | 14379 | aix3*) | 
 | 14380 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 14381 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 14382 |   # vanish in a puff of smoke. | 
 | 14383 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 14384 |     COLLECT_NAMES= | 
 | 14385 |     export COLLECT_NAMES | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14386 |   fi | 
 | 14387 |   ;; | 
 | 14388 | esac | 
 | 14389 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14390 | # Sed substitution that helps us do robust quoting.  It backslashifies | 
 | 14391 | # metacharacters that are still active within double-quoted strings. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14392 | Xsed='sed -e 1s/^X//' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14393 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | 
 | 14394 |  | 
 | 14395 | # Same as above, but do not quote variable references. | 
 | 14396 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 
 | 14397 |  | 
 | 14398 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 14399 | # double_quote_subst'ed string. | 
 | 14400 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 14401 |  | 
 | 14402 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 14403 | no_glob_subst='s/\*/\\\*/g' | 
 | 14404 |  | 
 | 14405 | # Constants: | 
 | 14406 | rm="rm -f" | 
 | 14407 |  | 
 | 14408 | # Global variables: | 
| Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14409 | default_ofile=mklib | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14410 | can_build_shared=yes | 
 | 14411 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14412 | # All known linkers require a `.a' archive for static linking (except MSVC, | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14413 | # which needs '.lib'). | 
 | 14414 | libext=a | 
 | 14415 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 14416 | ofile="$default_ofile" | 
 | 14417 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 14418 |  | 
 | 14419 | if test -n "$ac_tool_prefix"; then | 
 | 14420 |   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 14421 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14424 | if test "${ac_cv_prog_AR+set}" = set; then | 
 | 14425 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14426 | else | 
 | 14427 |   if test -n "$AR"; then | 
 | 14428 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 14429 | else | 
 | 14430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14431 | for as_dir in $PATH | 
 | 14432 | do | 
 | 14433 |   IFS=$as_save_IFS | 
 | 14434 |   test -z "$as_dir" && as_dir=. | 
 | 14435 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14436 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14437 |     ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 14438 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14439 |     break 2 | 
 | 14440 |   fi | 
 | 14441 | done | 
 | 14442 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14443 | IFS=$as_save_IFS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14444 |  | 
 | 14445 | fi | 
 | 14446 | fi | 
 | 14447 | AR=$ac_cv_prog_AR | 
 | 14448 | if test -n "$AR"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14449 |   { echo "$as_me:$LINENO: result: $AR" >&5 | 
 | 14450 | echo "${ECHO_T}$AR" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14451 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14452 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14453 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14454 | fi | 
 | 14455 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14456 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14457 | fi | 
 | 14458 | if test -z "$ac_cv_prog_AR"; then | 
 | 14459 |   ac_ct_AR=$AR | 
 | 14460 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 14461 | set dummy ar; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14464 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | 
 | 14465 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14466 | else | 
 | 14467 |   if test -n "$ac_ct_AR"; then | 
 | 14468 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 14469 | else | 
 | 14470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14471 | for as_dir in $PATH | 
 | 14472 | do | 
 | 14473 |   IFS=$as_save_IFS | 
 | 14474 |   test -z "$as_dir" && as_dir=. | 
 | 14475 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14476 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14477 |     ac_cv_prog_ac_ct_AR="ar" | 
 | 14478 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14479 |     break 2 | 
 | 14480 |   fi | 
 | 14481 | done | 
 | 14482 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14483 | IFS=$as_save_IFS | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14484 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14485 | fi | 
 | 14486 | fi | 
 | 14487 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 14488 | if test -n "$ac_ct_AR"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14489 |   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | 
 | 14490 | echo "${ECHO_T}$ac_ct_AR" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14491 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14492 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14493 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14494 | fi | 
 | 14495 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14496 |   if test "x$ac_ct_AR" = x; then | 
 | 14497 |     AR="false" | 
 | 14498 |   else | 
 | 14499 |     case $cross_compiling:$ac_tool_warned in | 
 | 14500 | yes:) | 
 | 14501 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14502 | whose name does not start with the host triplet.  If you think this | 
 | 14503 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 14504 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14505 | whose name does not start with the host triplet.  If you think this | 
 | 14506 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 14507 | ac_tool_warned=yes ;; | 
 | 14508 | esac | 
 | 14509 |     AR=$ac_ct_AR | 
 | 14510 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14511 | else | 
 | 14512 |   AR="$ac_cv_prog_AR" | 
 | 14513 | fi | 
 | 14514 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14515 | if test -n "$ac_tool_prefix"; then | 
 | 14516 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 14517 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14518 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14520 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
 | 14521 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14522 | else | 
 | 14523 |   if test -n "$RANLIB"; then | 
 | 14524 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 14525 | else | 
 | 14526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14527 | for as_dir in $PATH | 
 | 14528 | do | 
 | 14529 |   IFS=$as_save_IFS | 
 | 14530 |   test -z "$as_dir" && as_dir=. | 
 | 14531 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14532 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14533 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 14534 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14535 |     break 2 | 
 | 14536 |   fi | 
 | 14537 | done | 
 | 14538 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14539 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14540 |  | 
 | 14541 | fi | 
 | 14542 | fi | 
 | 14543 | RANLIB=$ac_cv_prog_RANLIB | 
 | 14544 | if test -n "$RANLIB"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14545 |   { echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
 | 14546 | echo "${ECHO_T}$RANLIB" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14547 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14548 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14549 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14550 | fi | 
 | 14551 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14552 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14553 | fi | 
 | 14554 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 14555 |   ac_ct_RANLIB=$RANLIB | 
 | 14556 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 14557 | set dummy ranlib; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14560 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
 | 14561 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14562 | else | 
 | 14563 |   if test -n "$ac_ct_RANLIB"; then | 
 | 14564 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 14565 | else | 
 | 14566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14567 | for as_dir in $PATH | 
 | 14568 | do | 
 | 14569 |   IFS=$as_save_IFS | 
 | 14570 |   test -z "$as_dir" && as_dir=. | 
 | 14571 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14572 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14573 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 14574 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14575 |     break 2 | 
 | 14576 |   fi | 
 | 14577 | done | 
 | 14578 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14579 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14580 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14581 | fi | 
 | 14582 | fi | 
 | 14583 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 14584 | if test -n "$ac_ct_RANLIB"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14585 |   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
 | 14586 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14587 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14588 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14589 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14590 | fi | 
 | 14591 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14592 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 14593 |     RANLIB=":" | 
 | 14594 |   else | 
 | 14595 |     case $cross_compiling:$ac_tool_warned in | 
 | 14596 | yes:) | 
 | 14597 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14598 | whose name does not start with the host triplet.  If you think this | 
 | 14599 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 14600 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14601 | whose name does not start with the host triplet.  If you think this | 
 | 14602 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 14603 | ac_tool_warned=yes ;; | 
 | 14604 | esac | 
 | 14605 |     RANLIB=$ac_ct_RANLIB | 
 | 14606 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14607 | else | 
 | 14608 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 14609 | fi | 
 | 14610 |  | 
 | 14611 | if test -n "$ac_tool_prefix"; then | 
 | 14612 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 14613 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14614 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14616 | if test "${ac_cv_prog_STRIP+set}" = set; then | 
 | 14617 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14618 | else | 
 | 14619 |   if test -n "$STRIP"; then | 
 | 14620 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 14621 | else | 
 | 14622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14623 | for as_dir in $PATH | 
 | 14624 | do | 
 | 14625 |   IFS=$as_save_IFS | 
 | 14626 |   test -z "$as_dir" && as_dir=. | 
 | 14627 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14628 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14629 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 14630 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14631 |     break 2 | 
 | 14632 |   fi | 
 | 14633 | done | 
 | 14634 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14635 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14636 |  | 
 | 14637 | fi | 
 | 14638 | fi | 
 | 14639 | STRIP=$ac_cv_prog_STRIP | 
 | 14640 | if test -n "$STRIP"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14641 |   { echo "$as_me:$LINENO: result: $STRIP" >&5 | 
 | 14642 | echo "${ECHO_T}$STRIP" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14643 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14644 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14645 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14646 | fi | 
 | 14647 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14648 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14649 | fi | 
 | 14650 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 14651 |   ac_ct_STRIP=$STRIP | 
 | 14652 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 14653 | set dummy strip; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14654 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 14655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14656 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | 
 | 14657 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14658 | else | 
 | 14659 |   if test -n "$ac_ct_STRIP"; then | 
 | 14660 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 14661 | else | 
 | 14662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 14663 | for as_dir in $PATH | 
 | 14664 | do | 
 | 14665 |   IFS=$as_save_IFS | 
 | 14666 |   test -z "$as_dir" && as_dir=. | 
 | 14667 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14668 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14669 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 14670 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 14671 |     break 2 | 
 | 14672 |   fi | 
 | 14673 | done | 
 | 14674 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14675 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14676 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14677 | fi | 
 | 14678 | fi | 
 | 14679 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 14680 | if test -n "$ac_ct_STRIP"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14681 |   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | 
 | 14682 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14683 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14684 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14685 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14686 | fi | 
 | 14687 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14688 |   if test "x$ac_ct_STRIP" = x; then | 
 | 14689 |     STRIP=":" | 
 | 14690 |   else | 
 | 14691 |     case $cross_compiling:$ac_tool_warned in | 
 | 14692 | yes:) | 
 | 14693 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14694 | whose name does not start with the host triplet.  If you think this | 
 | 14695 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | 
 | 14696 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 
 | 14697 | whose name does not start with the host triplet.  If you think this | 
 | 14698 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 
 | 14699 | ac_tool_warned=yes ;; | 
 | 14700 | esac | 
 | 14701 |     STRIP=$ac_ct_STRIP | 
 | 14702 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14703 | else | 
 | 14704 |   STRIP="$ac_cv_prog_STRIP" | 
 | 14705 | fi | 
 | 14706 |  | 
 | 14707 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14708 | old_CC="$CC" | 
 | 14709 | old_CFLAGS="$CFLAGS" | 
 | 14710 |  | 
 | 14711 | # Set sane defaults for various variables | 
 | 14712 | test -z "$AR" && AR=ar | 
 | 14713 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
 | 14714 | test -z "$AS" && AS=as | 
 | 14715 | test -z "$CC" && CC=cc | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14716 | test -z "$LTCC" && LTCC=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14717 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14718 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 14719 | test -z "$LD" && LD=ld | 
 | 14720 | test -z "$LN_S" && LN_S="ln -s" | 
 | 14721 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 14722 | test -z "$NM" && NM=nm | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14723 | test -z "$SED" && SED=sed | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14724 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 14725 | test -z "$RANLIB" && RANLIB=: | 
 | 14726 | test -z "$STRIP" && STRIP=: | 
 | 14727 | test -z "$ac_objext" && ac_objext=o | 
 | 14728 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14729 | # Determine commands to create old-style static archives. | 
 | 14730 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | 
 | 14731 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 14732 | old_postuninstall_cmds= | 
 | 14733 |  | 
 | 14734 | if test -n "$RANLIB"; then | 
 | 14735 |   case $host_os in | 
 | 14736 |   openbsd*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14737 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14738 |     ;; | 
 | 14739 |   *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14740 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14741 |     ;; | 
 | 14742 |   esac | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14743 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14744 | fi | 
 | 14745 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14746 | for cc_temp in $compiler""; do | 
 | 14747 |   case $cc_temp in | 
 | 14748 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 14749 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 14750 |     \-*) ;; | 
 | 14751 |     *) break;; | 
 | 14752 |   esac | 
 | 14753 | done | 
 | 14754 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
 | 14755 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14756 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14757 | # Only perform the check for file, if the check method requires it | 
 | 14758 | case $deplibs_check_method in | 
 | 14759 | file_magic*) | 
 | 14760 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14761 |     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 
 | 14762 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14763 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 14764 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14765 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14766 |   case $MAGIC_CMD in | 
 | 14767 | [\\/*] |  ?:[\\/]*) | 
 | 14768 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 14769 |   ;; | 
 | 14770 | *) | 
 | 14771 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 14772 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 14773 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 14774 |   for ac_dir in $ac_dummy; do | 
 | 14775 |     IFS="$lt_save_ifs" | 
 | 14776 |     test -z "$ac_dir" && ac_dir=. | 
 | 14777 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 14778 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 14779 |       if test -n "$file_magic_test_file"; then | 
 | 14780 | 	case $deplibs_check_method in | 
 | 14781 | 	"file_magic "*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14782 | 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14783 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 14784 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 14785 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 14786 | 	    : | 
 | 14787 | 	  else | 
 | 14788 | 	    cat <<EOF 1>&2 | 
 | 14789 |  | 
 | 14790 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 14791 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 14792 | *** The result is that libtool may fail to recognize shared libraries | 
 | 14793 | *** as such.  This will affect the creation of libtool libraries that | 
 | 14794 | *** depend on shared libraries, but programs linked with such libtool | 
 | 14795 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 14796 | *** may want to report the problem to your system manager and/or to | 
 | 14797 | *** bug-libtool@gnu.org | 
 | 14798 |  | 
 | 14799 | EOF | 
 | 14800 | 	  fi ;; | 
 | 14801 | 	esac | 
 | 14802 |       fi | 
 | 14803 |       break | 
 | 14804 |     fi | 
 | 14805 |   done | 
 | 14806 |   IFS="$lt_save_ifs" | 
 | 14807 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 14808 |   ;; | 
 | 14809 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14810 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14811 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14812 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 14813 | if test -n "$MAGIC_CMD"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14814 |   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 14815 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14816 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14817 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14818 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14819 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14820 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14821 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 14822 |   if test -n "$ac_tool_prefix"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14823 |     { echo "$as_me:$LINENO: checking for file" >&5 | 
 | 14824 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14825 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | 
 | 14826 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14827 | else | 
 | 14828 |   case $MAGIC_CMD in | 
 | 14829 | [\\/*] |  ?:[\\/]*) | 
 | 14830 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 14831 |   ;; | 
 | 14832 | *) | 
 | 14833 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 14834 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 14835 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 14836 |   for ac_dir in $ac_dummy; do | 
 | 14837 |     IFS="$lt_save_ifs" | 
 | 14838 |     test -z "$ac_dir" && ac_dir=. | 
 | 14839 |     if test -f $ac_dir/file; then | 
 | 14840 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 14841 |       if test -n "$file_magic_test_file"; then | 
 | 14842 | 	case $deplibs_check_method in | 
 | 14843 | 	"file_magic "*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14844 | 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14845 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 14846 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 14847 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 14848 | 	    : | 
 | 14849 | 	  else | 
 | 14850 | 	    cat <<EOF 1>&2 | 
 | 14851 |  | 
 | 14852 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 14853 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 14854 | *** The result is that libtool may fail to recognize shared libraries | 
 | 14855 | *** as such.  This will affect the creation of libtool libraries that | 
 | 14856 | *** depend on shared libraries, but programs linked with such libtool | 
 | 14857 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 14858 | *** may want to report the problem to your system manager and/or to | 
 | 14859 | *** bug-libtool@gnu.org | 
 | 14860 |  | 
 | 14861 | EOF | 
 | 14862 | 	  fi ;; | 
 | 14863 | 	esac | 
 | 14864 |       fi | 
 | 14865 |       break | 
 | 14866 |     fi | 
 | 14867 |   done | 
 | 14868 |   IFS="$lt_save_ifs" | 
 | 14869 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 14870 |   ;; | 
 | 14871 | esac | 
 | 14872 | fi | 
 | 14873 |  | 
 | 14874 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 14875 | if test -n "$MAGIC_CMD"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14876 |   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | 
 | 14877 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14878 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14879 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 14880 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14881 | fi | 
 | 14882 |  | 
 | 14883 |   else | 
 | 14884 |     MAGIC_CMD=: | 
 | 14885 |   fi | 
 | 14886 | fi | 
 | 14887 |  | 
 | 14888 |   fi | 
 | 14889 |   ;; | 
 | 14890 | esac | 
 | 14891 |  | 
| Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14892 | enable_dlopen=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14893 | enable_win32_dll=no | 
 | 14894 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14895 | # Check whether --enable-libtool-lock was given. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14896 | if test "${enable_libtool_lock+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14897 |   enableval=$enable_libtool_lock; | 
 | 14898 | fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14899 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14900 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 14901 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14902 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14903 | # Check whether --with-pic was given. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14904 | if test "${with_pic+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14905 |   withval=$with_pic; pic_mode="$withval" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14906 | else | 
 | 14907 |   pic_mode=default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14908 | fi | 
 | 14909 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14910 | test -z "$pic_mode" && pic_mode=default | 
 | 14911 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14912 | # Use C for the default configuration in the libtool script | 
 | 14913 | tagname= | 
 | 14914 | lt_save_CC="$CC" | 
 | 14915 | ac_ext=c | 
 | 14916 | ac_cpp='$CPP $CPPFLAGS' | 
 | 14917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 14918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 14919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 14920 |  | 
 | 14921 |  | 
 | 14922 | # Source file extension for C test sources. | 
 | 14923 | ac_ext=c | 
 | 14924 |  | 
 | 14925 | # Object file extension for compiled C test sources. | 
 | 14926 | objext=o | 
 | 14927 | objext=$objext | 
 | 14928 |  | 
 | 14929 | # Code to be used in simple compile tests | 
 | 14930 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 14931 |  | 
 | 14932 | # Code to be used in simple link tests | 
 | 14933 | lt_simple_link_test_code='int main(){return(0);}\n' | 
 | 14934 |  | 
 | 14935 |  | 
 | 14936 | # If no C compiler was specified, use CC. | 
 | 14937 | LTCC=${LTCC-"$CC"} | 
 | 14938 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14939 | # If no C compiler flags were specified, use CFLAGS. | 
 | 14940 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 14941 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14942 | # Allow CC to be a program name with arguments. | 
 | 14943 | compiler=$CC | 
 | 14944 |  | 
 | 14945 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14946 | # save warnings/boilerplate of simple test code | 
 | 14947 | ac_outfile=conftest.$ac_objext | 
 | 14948 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 14949 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 14950 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 14951 | $rm conftest* | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14953 | ac_outfile=conftest.$ac_objext | 
 | 14954 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 14955 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 14956 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 14957 | $rm conftest* | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14958 |  | 
 | 14959 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14960 |  | 
 | 14961 | lt_prog_compiler_no_builtin_flag= | 
 | 14962 |  | 
 | 14963 | if test "$GCC" = yes; then | 
 | 14964 |   lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 
 | 14965 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14966 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14967 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
 | 14968 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14969 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 14970 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 14971 | else | 
 | 14972 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 14973 |   ac_outfile=conftest.$ac_objext | 
 | 14974 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 14975 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 14976 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 14977 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 14978 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 14979 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 14980 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 14981 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14982 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14983 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 14984 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 14985 |    (eval echo "\"\$as_me:14985: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14986 |    (eval "$lt_compile" 2>conftest.err) | 
 | 14987 |    ac_status=$? | 
 | 14988 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 14989 |    echo "$as_me:14989: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14990 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 14991 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14992 |      # So say no if there are warnings other than the usual output. | 
 | 14993 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 14994 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 14995 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14996 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 14997 |      fi | 
 | 14998 |    fi | 
 | 14999 |    $rm conftest* | 
 | 15000 |  | 
 | 15001 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15002 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 15003 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15004 |  | 
 | 15005 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 15006 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 15007 | else | 
 | 15008 |     : | 
 | 15009 | fi | 
 | 15010 |  | 
 | 15011 | fi | 
 | 15012 |  | 
 | 15013 | lt_prog_compiler_wl= | 
 | 15014 | lt_prog_compiler_pic= | 
 | 15015 | lt_prog_compiler_static= | 
 | 15016 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15017 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 15018 | 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] | 15019 |  | 
 | 15020 |   if test "$GCC" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15021 |     lt_prog_compiler_wl='-Wl,' | 
 | 15022 |     lt_prog_compiler_static='-static' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15023 |  | 
 | 15024 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15025 |       aix*) | 
 | 15026 |       # All AIX code is PIC. | 
 | 15027 |       if test "$host_cpu" = ia64; then | 
 | 15028 | 	# AIX 5 now supports IA64 processor | 
 | 15029 | 	lt_prog_compiler_static='-Bstatic' | 
 | 15030 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15031 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15032 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15033 |     amigaos*) | 
 | 15034 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 15035 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 15036 |       # like `-m68040'. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15037 |       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15038 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15039 |  | 
 | 15040 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15041 |       # PIC is the default for these OSes. | 
 | 15042 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15043 |  | 
 | 15044 |     mingw* | pw32* | os2*) | 
 | 15045 |       # This hack is so that the source file can tell whether it is being | 
 | 15046 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15047 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 15048 |       ;; | 
 | 15049 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15050 |     darwin* | rhapsody*) | 
 | 15051 |       # PIC is the default on this platform | 
 | 15052 |       # Common symbols not allowed in MH_DYLIB files | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15053 |       lt_prog_compiler_pic='-fno-common' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15054 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15055 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15056 |     interix3*) | 
 | 15057 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 15058 |       # Instead, we relocate shared libraries at runtime. | 
 | 15059 |       ;; | 
 | 15060 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15061 |     msdosdjgpp*) | 
 | 15062 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 15063 |       # on systems that don't support them. | 
 | 15064 |       lt_prog_compiler_can_build_shared=no | 
 | 15065 |       enable_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15066 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15067 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15068 |     sysv4*MP*) | 
 | 15069 |       if test -d /usr/nec; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15070 | 	lt_prog_compiler_pic=-Kconform_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15071 |       fi | 
 | 15072 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15073 |  | 
 | 15074 |     hpux*) | 
 | 15075 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15076 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15077 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15078 |       hppa*64*|ia64*) | 
 | 15079 | 	# +Z the default | 
 | 15080 | 	;; | 
 | 15081 |       *) | 
 | 15082 | 	lt_prog_compiler_pic='-fPIC' | 
 | 15083 | 	;; | 
 | 15084 |       esac | 
 | 15085 |       ;; | 
 | 15086 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15087 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15088 |       lt_prog_compiler_pic='-fPIC' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15089 |       ;; | 
 | 15090 |     esac | 
 | 15091 |   else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15093 |     case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15094 |     aix*) | 
 | 15095 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15096 |       if test "$host_cpu" = ia64; then | 
 | 15097 | 	# AIX 5 now supports IA64 processor | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15098 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15099 |       else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15100 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15101 |       fi | 
 | 15102 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15103 |       darwin*) | 
 | 15104 |         # PIC is the default on this platform | 
 | 15105 |         # Common symbols not allowed in MH_DYLIB files | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15106 |        case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15107 |          xlc*) | 
 | 15108 |          lt_prog_compiler_pic='-qnocommon' | 
 | 15109 |          lt_prog_compiler_wl='-Wl,' | 
 | 15110 |          ;; | 
 | 15111 |        esac | 
 | 15112 |        ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15113 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15114 |     mingw* | pw32* | os2*) | 
 | 15115 |       # This hack is so that the source file can tell whether it is being | 
 | 15116 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 15117 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 15118 |       ;; | 
 | 15119 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15120 |     hpux9* | hpux10* | hpux11*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15121 |       lt_prog_compiler_wl='-Wl,' | 
 | 15122 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 15123 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15124 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15125 |       hppa*64*|ia64*) | 
 | 15126 | 	# +Z the default | 
 | 15127 | 	;; | 
 | 15128 |       *) | 
 | 15129 | 	lt_prog_compiler_pic='+Z' | 
 | 15130 | 	;; | 
 | 15131 |       esac | 
 | 15132 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 15133 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15134 |       ;; | 
 | 15135 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15136 |     irix5* | irix6* | nonstopux*) | 
 | 15137 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15138 |       # PIC (with -KPIC) is the default. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15139 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15140 |       ;; | 
 | 15141 |  | 
 | 15142 |     newsos6) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15143 |       lt_prog_compiler_pic='-KPIC' | 
 | 15144 |       lt_prog_compiler_static='-Bstatic' | 
 | 15145 |       ;; | 
 | 15146 |  | 
 | 15147 |     linux*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15148 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15149 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15150 | 	lt_prog_compiler_wl='-Wl,' | 
 | 15151 | 	lt_prog_compiler_pic='-KPIC' | 
 | 15152 | 	lt_prog_compiler_static='-static' | 
 | 15153 |         ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15154 |       pgcc* | pgf77* | pgf90* | pgf95*) | 
 | 15155 |         # Portland Group compilers (*not* the Pentium gcc compiler, | 
 | 15156 | 	# which looks to be a dead project) | 
 | 15157 | 	lt_prog_compiler_wl='-Wl,' | 
 | 15158 | 	lt_prog_compiler_pic='-fpic' | 
 | 15159 | 	lt_prog_compiler_static='-Bstatic' | 
 | 15160 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15161 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15162 |         lt_prog_compiler_wl='-Wl,' | 
 | 15163 |         # All Alpha code is PIC. | 
 | 15164 |         lt_prog_compiler_static='-non_shared' | 
 | 15165 |         ;; | 
 | 15166 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15167 |       ;; | 
 | 15168 |  | 
 | 15169 |     osf3* | osf4* | osf5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15170 |       lt_prog_compiler_wl='-Wl,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15171 |       # All OSF/1 code is PIC. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15172 |       lt_prog_compiler_static='-non_shared' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15173 |       ;; | 
 | 15174 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15175 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15176 |       lt_prog_compiler_pic='-KPIC' | 
 | 15177 |       lt_prog_compiler_static='-Bstatic' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15178 |       case $cc_basename in | 
 | 15179 |       f77* | f90* | f95*) | 
 | 15180 | 	lt_prog_compiler_wl='-Qoption ld ';; | 
 | 15181 |       *) | 
 | 15182 | 	lt_prog_compiler_wl='-Wl,';; | 
 | 15183 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15184 |       ;; | 
 | 15185 |  | 
 | 15186 |     sunos4*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15187 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 15188 |       lt_prog_compiler_pic='-PIC' | 
 | 15189 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15190 |       ;; | 
 | 15191 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15192 |     sysv4 | sysv4.2uw2* | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15193 |       lt_prog_compiler_wl='-Wl,' | 
 | 15194 |       lt_prog_compiler_pic='-KPIC' | 
 | 15195 |       lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15196 |       ;; | 
 | 15197 |  | 
 | 15198 |     sysv4*MP*) | 
 | 15199 |       if test -d /usr/nec ;then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15200 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 15201 | 	lt_prog_compiler_static='-Bstatic' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15202 |       fi | 
 | 15203 |       ;; | 
 | 15204 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15205 |     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 15206 |       lt_prog_compiler_wl='-Wl,' | 
 | 15207 |       lt_prog_compiler_pic='-KPIC' | 
 | 15208 |       lt_prog_compiler_static='-Bstatic' | 
 | 15209 |       ;; | 
 | 15210 |  | 
 | 15211 |     unicos*) | 
 | 15212 |       lt_prog_compiler_wl='-Wl,' | 
 | 15213 |       lt_prog_compiler_can_build_shared=no | 
 | 15214 |       ;; | 
 | 15215 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15216 |     uts4*) | 
 | 15217 |       lt_prog_compiler_pic='-pic' | 
 | 15218 |       lt_prog_compiler_static='-Bstatic' | 
 | 15219 |       ;; | 
 | 15220 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15221 |     *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15222 |       lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15223 |       ;; | 
 | 15224 |     esac | 
 | 15225 |   fi | 
 | 15226 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15227 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 
 | 15228 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15229 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15230 | # | 
 | 15231 | # Check to make sure the PIC flag actually works. | 
 | 15232 | # | 
 | 15233 | if test -n "$lt_prog_compiler_pic"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15234 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15235 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
 | 15236 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15237 | if test "${lt_prog_compiler_pic_works+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15238 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15239 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15240 |   lt_prog_compiler_pic_works=no | 
 | 15241 |   ac_outfile=conftest.$ac_objext | 
 | 15242 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 15243 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 15244 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15245 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15246 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15247 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15248 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 15249 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15250 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15251 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15252 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 15253 |    (eval echo "\"\$as_me:15253: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15254 |    (eval "$lt_compile" 2>conftest.err) | 
 | 15255 |    ac_status=$? | 
 | 15256 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 15257 |    echo "$as_me:15257: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15258 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 15259 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15260 |      # So say no if there are warnings other than the usual output. | 
 | 15261 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 15262 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 15263 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15264 |        lt_prog_compiler_pic_works=yes | 
 | 15265 |      fi | 
 | 15266 |    fi | 
 | 15267 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15268 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15269 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15270 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 
 | 15271 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15272 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15273 | if test x"$lt_prog_compiler_pic_works" = xyes; then | 
 | 15274 |     case $lt_prog_compiler_pic in | 
 | 15275 |      "" | " "*) ;; | 
 | 15276 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 15277 |      esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15278 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15279 |     lt_prog_compiler_pic= | 
 | 15280 |      lt_prog_compiler_can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15281 | fi | 
 | 15282 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15283 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15284 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15285 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 15286 |   *djgpp*) | 
 | 15287 |     lt_prog_compiler_pic= | 
 | 15288 |     ;; | 
 | 15289 |   *) | 
 | 15290 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 15291 |     ;; | 
 | 15292 | esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15293 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15294 | # | 
 | 15295 | # Check to make sure the static flag actually works. | 
 | 15296 | # | 
 | 15297 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | 
 | 15298 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 15299 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | 
 | 15300 | if test "${lt_prog_compiler_static_works+set}" = set; then | 
 | 15301 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15302 | else | 
 | 15303 |   lt_prog_compiler_static_works=no | 
 | 15304 |    save_LDFLAGS="$LDFLAGS" | 
 | 15305 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 15306 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 15307 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 15308 |      # The linker can only warn and ignore the option if not recognized | 
 | 15309 |      # So say no if there are warnings | 
 | 15310 |      if test -s conftest.err; then | 
 | 15311 |        # Append any errors to the config.log. | 
 | 15312 |        cat conftest.err 1>&5 | 
 | 15313 |        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 
 | 15314 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 15315 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 15316 |          lt_prog_compiler_static_works=yes | 
 | 15317 |        fi | 
 | 15318 |      else | 
 | 15319 |        lt_prog_compiler_static_works=yes | 
 | 15320 |      fi | 
 | 15321 |    fi | 
 | 15322 |    $rm conftest* | 
 | 15323 |    LDFLAGS="$save_LDFLAGS" | 
 | 15324 |  | 
 | 15325 | fi | 
 | 15326 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 
 | 15327 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | 
 | 15328 |  | 
 | 15329 | if test x"$lt_prog_compiler_static_works" = xyes; then | 
 | 15330 |     : | 
 | 15331 | else | 
 | 15332 |     lt_prog_compiler_static= | 
 | 15333 | fi | 
 | 15334 |  | 
 | 15335 |  | 
 | 15336 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 15337 | 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] | 15338 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15339 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 15340 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15341 |   lt_cv_prog_compiler_c_o=no | 
 | 15342 |    $rm -r conftest 2>/dev/null | 
 | 15343 |    mkdir conftest | 
 | 15344 |    cd conftest | 
 | 15345 |    mkdir out | 
 | 15346 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15347 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15348 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 15349 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 15350 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 15351 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 15352 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 15353 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15354 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15355 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 15356 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 15357 |    (eval echo "\"\$as_me:15357: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15358 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 15359 |    ac_status=$? | 
 | 15360 |    cat out/conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 15361 |    echo "$as_me:15361: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15362 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 15363 |    then | 
 | 15364 |      # The compiler can only warn and ignore the option if not recognized | 
 | 15365 |      # So say no if there are warnings | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15366 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 
 | 15367 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 15368 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15369 |        lt_cv_prog_compiler_c_o=yes | 
 | 15370 |      fi | 
 | 15371 |    fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15372 |    chmod u+w . 2>&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15373 |    $rm conftest* | 
 | 15374 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 15375 |    # template instantiation | 
 | 15376 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 15377 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15378 |    cd .. | 
 | 15379 |    rmdir conftest | 
 | 15380 |    $rm conftest* | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15381 |  | 
 | 15382 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15383 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 15384 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15385 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15386 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15387 | hard_links="nottested" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15388 | 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] | 15389 |   # do not overwrite the value of need_locks provided by the user | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15390 |   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 15391 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15392 |   hard_links=yes | 
 | 15393 |   $rm conftest* | 
 | 15394 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 15395 |   touch conftest.a | 
 | 15396 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 15397 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15398 |   { echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 15399 | echo "${ECHO_T}$hard_links" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15400 |   if test "$hard_links" = no; then | 
 | 15401 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 15402 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 15403 |     need_locks=warn | 
 | 15404 |   fi | 
 | 15405 | else | 
 | 15406 |   need_locks=no | 
 | 15407 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15408 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15409 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 15410 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15411 |  | 
 | 15412 |   runpath_var= | 
 | 15413 |   allow_undefined_flag= | 
 | 15414 |   enable_shared_with_static_runtimes=no | 
 | 15415 |   archive_cmds= | 
 | 15416 |   archive_expsym_cmds= | 
 | 15417 |   old_archive_From_new_cmds= | 
 | 15418 |   old_archive_from_expsyms_cmds= | 
 | 15419 |   export_dynamic_flag_spec= | 
 | 15420 |   whole_archive_flag_spec= | 
 | 15421 |   thread_safe_flag_spec= | 
 | 15422 |   hardcode_libdir_flag_spec= | 
 | 15423 |   hardcode_libdir_flag_spec_ld= | 
 | 15424 |   hardcode_libdir_separator= | 
 | 15425 |   hardcode_direct=no | 
 | 15426 |   hardcode_minus_L=no | 
 | 15427 |   hardcode_shlibpath_var=unsupported | 
 | 15428 |   link_all_deplibs=unknown | 
 | 15429 |   hardcode_automatic=no | 
 | 15430 |   module_cmds= | 
 | 15431 |   module_expsym_cmds= | 
 | 15432 |   always_export_symbols=no | 
 | 15433 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 15434 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 15435 |   # included in the symbol list | 
 | 15436 |   include_expsyms= | 
 | 15437 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 15438 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 15439 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 15440 |   # as well as any symbol that contains `d'. | 
 | 15441 |   exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 
 | 15442 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 15443 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 15444 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 15445 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 15446 |   # preloaded symbol tables. | 
 | 15447 |   extract_expsyms_cmds= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15448 |   # Just being paranoid about ensuring that cc_basename is set. | 
 | 15449 |   for cc_temp in $compiler""; do | 
 | 15450 |   case $cc_temp in | 
 | 15451 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 15452 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 15453 |     \-*) ;; | 
 | 15454 |     *) break;; | 
 | 15455 |   esac | 
 | 15456 | done | 
 | 15457 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15458 |  | 
 | 15459 |   case $host_os in | 
 | 15460 |   cygwin* | mingw* | pw32*) | 
 | 15461 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 15462 |     # When not using gcc, we currently assume that we are using | 
 | 15463 |     # Microsoft Visual C++. | 
 | 15464 |     if test "$GCC" != yes; then | 
 | 15465 |       with_gnu_ld=no | 
 | 15466 |     fi | 
 | 15467 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15468 |   interix*) | 
 | 15469 |     # we just hope/assume this is gcc and not c89 (= MSVC++) | 
 | 15470 |     with_gnu_ld=yes | 
 | 15471 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15472 |   openbsd*) | 
 | 15473 |     with_gnu_ld=no | 
 | 15474 |     ;; | 
 | 15475 |   esac | 
 | 15476 |  | 
 | 15477 |   ld_shlibs=yes | 
 | 15478 |   if test "$with_gnu_ld" = yes; then | 
 | 15479 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 15480 |     wlarc='${wl}' | 
 | 15481 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15482 |     # Set some defaults for GNU ld with shared library support. These | 
 | 15483 |     # are reset later if shared libraries are not supported. Putting them | 
 | 15484 |     # here allows them to be overridden if necessary. | 
 | 15485 |     runpath_var=LD_RUN_PATH | 
 | 15486 |     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 
 | 15487 |     export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 15488 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 15489 |     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 15490 | 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 15491 |       else | 
 | 15492 |   	whole_archive_flag_spec= | 
 | 15493 |     fi | 
 | 15494 |     supports_anon_versioning=no | 
 | 15495 |     case `$LD -v 2>/dev/null` in | 
 | 15496 |       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 15497 |       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 15498 |       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 15499 |       *\ 2.11.*) ;; # other 2.11 versions | 
 | 15500 |       *) supports_anon_versioning=yes ;; | 
 | 15501 |     esac | 
 | 15502 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15503 |     # See if GNU ld supports shared libraries. | 
 | 15504 |     case $host_os in | 
 | 15505 |     aix3* | aix4* | aix5*) | 
 | 15506 |       # On AIX/PPC, the GNU linker is very broken | 
 | 15507 |       if test "$host_cpu" != ia64; then | 
 | 15508 | 	ld_shlibs=no | 
 | 15509 | 	cat <<EOF 1>&2 | 
 | 15510 |  | 
 | 15511 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 15512 | *** to be unable to reliably create shared libraries on AIX. | 
 | 15513 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 15514 | *** really care for shared libraries, you may want to modify your PATH | 
 | 15515 | *** so that a non-GNU linker is found, and then restart. | 
 | 15516 |  | 
 | 15517 | EOF | 
 | 15518 |       fi | 
 | 15519 |       ;; | 
 | 15520 |  | 
 | 15521 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15522 |       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15523 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 15524 |       hardcode_minus_L=yes | 
 | 15525 |  | 
 | 15526 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 15527 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 15528 |       # to version 4, is to share data among multiple programs linked | 
 | 15529 |       # with the same dynamic library.  Since this doesn't match the | 
 | 15530 |       # behavior of shared libraries on other platforms, we can't use | 
 | 15531 |       # them. | 
 | 15532 |       ld_shlibs=no | 
 | 15533 |       ;; | 
 | 15534 |  | 
 | 15535 |     beos*) | 
 | 15536 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15537 | 	allow_undefined_flag=unsupported | 
 | 15538 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 15539 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 15540 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15541 |       else | 
 | 15542 | 	ld_shlibs=no | 
 | 15543 |       fi | 
 | 15544 |       ;; | 
 | 15545 |  | 
 | 15546 |     cygwin* | mingw* | pw32*) | 
 | 15547 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 15548 |       # as there is no search path for DLLs. | 
 | 15549 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 15550 |       allow_undefined_flag=unsupported | 
 | 15551 |       always_export_symbols=no | 
 | 15552 |       enable_shared_with_static_runtimes=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15553 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15554 |  | 
 | 15555 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15556 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15557 | 	# If the export-symbols file already is a .def file (1st line | 
 | 15558 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 15559 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 15560 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 15561 | 	else | 
 | 15562 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 15563 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15564 | 	fi~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15565 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
 | 15566 |       else | 
 | 15567 | 	ld_shlibs=no | 
 | 15568 |       fi | 
 | 15569 |       ;; | 
 | 15570 |  | 
 | 15571 |     interix3*) | 
 | 15572 |       hardcode_direct=no | 
 | 15573 |       hardcode_shlibpath_var=no | 
 | 15574 |       hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 15575 |       export_dynamic_flag_spec='${wl}-E' | 
 | 15576 |       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 15577 |       # Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 15578 |       # default) and relocated if they conflict, which is a slow very memory | 
 | 15579 |       # consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 15580 |       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 15581 |       # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 15582 |       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 15583 |       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 15584 |       ;; | 
 | 15585 |  | 
 | 15586 |     linux*) | 
 | 15587 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15588 | 	tmp_addflag= | 
 | 15589 | 	case $cc_basename,$host_cpu in | 
 | 15590 | 	pgcc*)				# Portland Group C compiler | 
 | 15591 | 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 15592 | 	  tmp_addflag=' $pic_flag' | 
 | 15593 | 	  ;; | 
 | 15594 | 	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers | 
 | 15595 | 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 15596 | 	  tmp_addflag=' $pic_flag -Mnomain' ;; | 
 | 15597 | 	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64 | 
 | 15598 | 	  tmp_addflag=' -i_dynamic' ;; | 
 | 15599 | 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
 | 15600 | 	  tmp_addflag=' -i_dynamic -nofor_main' ;; | 
 | 15601 | 	ifc* | ifort*)			# Intel Fortran compiler | 
 | 15602 | 	  tmp_addflag=' -nofor_main' ;; | 
 | 15603 | 	esac | 
 | 15604 | 	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15605 |  | 
 | 15606 | 	if test $supports_anon_versioning = yes; then | 
 | 15607 | 	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 15608 |   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 15609 |   $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
 | 15610 | 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 15611 | 	fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15612 |       else | 
 | 15613 | 	ld_shlibs=no | 
 | 15614 |       fi | 
 | 15615 |       ;; | 
 | 15616 |  | 
 | 15617 |     netbsd*) | 
 | 15618 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 15619 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 15620 | 	wlarc= | 
 | 15621 |       else | 
 | 15622 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15623 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15624 |       fi | 
 | 15625 |       ;; | 
 | 15626 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15627 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15628 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 15629 | 	ld_shlibs=no | 
 | 15630 | 	cat <<EOF 1>&2 | 
 | 15631 |  | 
 | 15632 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 15633 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 15634 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 15635 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 15636 | *** your PATH or compiler configuration so that the native linker is | 
 | 15637 | *** used, and then restart. | 
 | 15638 |  | 
 | 15639 | EOF | 
 | 15640 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15641 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15642 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15643 |       else | 
 | 15644 | 	ld_shlibs=no | 
 | 15645 |       fi | 
 | 15646 |       ;; | 
 | 15647 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15648 |     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 15649 |       case `$LD -v 2>&1` in | 
 | 15650 |         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
 | 15651 | 	ld_shlibs=no | 
 | 15652 | 	cat <<_LT_EOF 1>&2 | 
 | 15653 |  | 
 | 15654 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
 | 15655 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
 | 15656 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 15657 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
 | 15658 | *** your PATH or compiler configuration so that the native linker is | 
 | 15659 | *** used, and then restart. | 
 | 15660 |  | 
 | 15661 | _LT_EOF | 
 | 15662 | 	;; | 
 | 15663 | 	*) | 
 | 15664 | 	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15665 | 	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | 
 | 15666 | 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | 
 | 15667 | 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | 
 | 15668 | 	  else | 
 | 15669 | 	    ld_shlibs=no | 
 | 15670 | 	  fi | 
 | 15671 | 	;; | 
 | 15672 |       esac | 
 | 15673 |       ;; | 
 | 15674 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15675 |     sunos4*) | 
 | 15676 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 15677 |       wlarc= | 
 | 15678 |       hardcode_direct=yes | 
 | 15679 |       hardcode_shlibpath_var=no | 
 | 15680 |       ;; | 
 | 15681 |  | 
 | 15682 |     *) | 
 | 15683 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 15684 | 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 15685 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 15686 |       else | 
 | 15687 | 	ld_shlibs=no | 
 | 15688 |       fi | 
 | 15689 |       ;; | 
 | 15690 |     esac | 
 | 15691 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15692 |     if test "$ld_shlibs" = no; then | 
 | 15693 |       runpath_var= | 
 | 15694 |       hardcode_libdir_flag_spec= | 
 | 15695 |       export_dynamic_flag_spec= | 
 | 15696 |       whole_archive_flag_spec= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15697 |     fi | 
 | 15698 |   else | 
 | 15699 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 15700 |     case $host_os in | 
 | 15701 |     aix3*) | 
 | 15702 |       allow_undefined_flag=unsupported | 
 | 15703 |       always_export_symbols=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15704 |       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15705 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 15706 |       # are no directories specified by -L. | 
 | 15707 |       hardcode_minus_L=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15708 |       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15709 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 15710 | 	# broken collect2. | 
 | 15711 | 	hardcode_direct=unsupported | 
 | 15712 |       fi | 
 | 15713 |       ;; | 
 | 15714 |  | 
 | 15715 |     aix4* | aix5*) | 
 | 15716 |       if test "$host_cpu" = ia64; then | 
 | 15717 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 15718 | 	# have to do anything special. | 
 | 15719 | 	aix_use_runtimelinking=no | 
 | 15720 | 	exp_sym_flag='-Bexport' | 
 | 15721 | 	no_entry_flag="" | 
 | 15722 |       else | 
 | 15723 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 15724 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 15725 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 15726 | 	  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' | 
 | 15727 | 	else | 
 | 15728 | 	  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' | 
 | 15729 | 	fi | 
 | 15730 | 	aix_use_runtimelinking=no | 
 | 15731 |  | 
 | 15732 | 	# Test if we are trying to use run time linking or normal | 
 | 15733 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 15734 | 	# need to do runtime linking. | 
 | 15735 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 15736 | 	  for ld_flag in $LDFLAGS; do | 
 | 15737 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 15738 |   	    aix_use_runtimelinking=yes | 
 | 15739 |   	    break | 
 | 15740 |   	  fi | 
 | 15741 | 	  done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15742 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15743 | 	esac | 
 | 15744 |  | 
 | 15745 | 	exp_sym_flag='-bexport' | 
 | 15746 | 	no_entry_flag='-bnoentry' | 
 | 15747 |       fi | 
 | 15748 |  | 
 | 15749 |       # When large executables or shared objects are built, AIX ld can | 
 | 15750 |       # have problems creating the table of contents.  If linking a library | 
 | 15751 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 15752 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 15753 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 15754 |  | 
 | 15755 |       archive_cmds='' | 
 | 15756 |       hardcode_direct=yes | 
 | 15757 |       hardcode_libdir_separator=':' | 
 | 15758 |       link_all_deplibs=yes | 
 | 15759 |  | 
 | 15760 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15761 | 	case $host_os in aix4.[012]|aix4.[012].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15762 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 15763 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 15764 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 15765 | 	  if test -f "$collect2name" && \ | 
 | 15766 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 15767 | 	  then | 
 | 15768 |   	  # We have reworked collect2 | 
 | 15769 |   	  hardcode_direct=yes | 
 | 15770 | 	  else | 
 | 15771 |   	  # We have old collect2 | 
 | 15772 |   	  hardcode_direct=unsupported | 
 | 15773 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 15774 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 15775 |   	  # to unsupported forces relinking | 
 | 15776 |   	  hardcode_minus_L=yes | 
 | 15777 |   	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 15778 |   	  hardcode_libdir_separator= | 
 | 15779 | 	  fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15780 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15781 | 	esac | 
 | 15782 | 	shared_flag='-shared' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15783 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 15784 | 	  shared_flag="$shared_flag "'${wl}-G' | 
 | 15785 | 	fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15786 |       else | 
 | 15787 | 	# not using gcc | 
 | 15788 | 	if test "$host_cpu" = ia64; then | 
 | 15789 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 15790 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 15791 | 	  shared_flag='-G' | 
 | 15792 | 	else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15793 | 	  if test "$aix_use_runtimelinking" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15794 | 	    shared_flag='${wl}-G' | 
 | 15795 | 	  else | 
 | 15796 | 	    shared_flag='${wl}-bM:SRE' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15797 | 	  fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15798 | 	fi | 
 | 15799 |       fi | 
 | 15800 |  | 
 | 15801 |       # It seems that -bexpall does not export symbols beginning with | 
 | 15802 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 15803 |       always_export_symbols=yes | 
 | 15804 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 15805 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 15806 | 	# -berok will link without error, but may produce a broken library. | 
 | 15807 | 	allow_undefined_flag='-berok' | 
 | 15808 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 15809 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15810 | /* confdefs.h.  */ | 
 | 15811 | _ACEOF | 
 | 15812 | cat confdefs.h >>conftest.$ac_ext | 
 | 15813 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15814 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15815 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15816 | int | 
 | 15817 | main () | 
 | 15818 | { | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15819 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15820 |   ; | 
 | 15821 |   return 0; | 
 | 15822 | } | 
 | 15823 | _ACEOF | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15824 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15825 | if { (ac_try="$ac_link" | 
 | 15826 | case "(($ac_try" in | 
 | 15827 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15828 |   *) ac_try_echo=$ac_try;; | 
 | 15829 | esac | 
 | 15830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15831 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15832 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15833 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15834 |   rm -f conftest.er1 | 
 | 15835 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15836 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15837 |   (exit $ac_status); } && | 
 | 15838 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 15839 |   { (case "(($ac_try" in | 
 | 15840 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15841 |   *) ac_try_echo=$ac_try;; | 
 | 15842 | esac | 
 | 15843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15844 |   (eval "$ac_try") 2>&5 | 
 | 15845 |   ac_status=$? | 
 | 15846 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15847 |   (exit $ac_status); }; } && | 
 | 15848 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 15849 |   { (case "(($ac_try" in | 
 | 15850 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15851 |   *) ac_try_echo=$ac_try;; | 
 | 15852 | esac | 
 | 15853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15854 |   (eval "$ac_try") 2>&5 | 
 | 15855 |   ac_status=$? | 
 | 15856 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15857 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15858 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15859 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15860 | }'` | 
 | 15861 | # Check for a 64-bit object if we didn't find anything. | 
 | 15862 | 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; } | 
 | 15863 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15864 | else | 
 | 15865 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15866 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15867 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15868 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15869 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15870 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15871 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15872 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15873 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15874 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15875 |        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15876 | 	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15877 |        else | 
 | 15878 | 	if test "$host_cpu" = ia64; then | 
 | 15879 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 15880 | 	  allow_undefined_flag="-z nodefs" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15881 | 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15882 | 	else | 
 | 15883 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 15884 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15885 | /* confdefs.h.  */ | 
 | 15886 | _ACEOF | 
 | 15887 | cat confdefs.h >>conftest.$ac_ext | 
 | 15888 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 15889 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15890 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15891 | int | 
 | 15892 | main () | 
 | 15893 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15894 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15895 |   ; | 
 | 15896 |   return 0; | 
 | 15897 | } | 
 | 15898 | _ACEOF | 
 | 15899 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15900 | if { (ac_try="$ac_link" | 
 | 15901 | case "(($ac_try" in | 
 | 15902 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15903 |   *) ac_try_echo=$ac_try;; | 
 | 15904 | esac | 
 | 15905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15906 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15907 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15908 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 15909 |   rm -f conftest.er1 | 
 | 15910 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15912 |   (exit $ac_status); } && | 
 | 15913 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 15914 |   { (case "(($ac_try" in | 
 | 15915 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15916 |   *) ac_try_echo=$ac_try;; | 
 | 15917 | esac | 
 | 15918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15919 |   (eval "$ac_try") 2>&5 | 
 | 15920 |   ac_status=$? | 
 | 15921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15922 |   (exit $ac_status); }; } && | 
 | 15923 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 15924 |   { (case "(($ac_try" in | 
 | 15925 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 15926 |   *) ac_try_echo=$ac_try;; | 
 | 15927 | esac | 
 | 15928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 15929 |   (eval "$ac_try") 2>&5 | 
 | 15930 |   ac_status=$? | 
 | 15931 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 15932 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15933 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15934 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 15935 | }'` | 
 | 15936 | # Check for a 64-bit object if we didn't find anything. | 
 | 15937 | 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; } | 
 | 15938 | }'`; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15939 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15940 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15941 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 15942 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15943 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15944 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15945 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15946 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15947 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15948 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15949 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15950 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 15951 | 	  # Warning - without using the other run time loading flags, | 
 | 15952 | 	  # -berok will link without error, but may produce a broken library. | 
 | 15953 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 15954 | 	  allow_undefined_flag=' ${wl}-berok' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15955 | 	  # Exported symbols can be pulled into shared objects from archives | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15956 | 	  whole_archive_flag_spec='$convenience' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15957 | 	  archive_cmds_need_lc=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15958 | 	  # This is similar to how AIX traditionally builds its shared libraries. | 
 | 15959 | 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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] | 15960 | 	fi | 
 | 15961 |       fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15962 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15963 |  | 
 | 15964 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15965 |       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15966 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 15967 |       hardcode_minus_L=yes | 
 | 15968 |       # see comment about different semantics on the GNU ld section | 
 | 15969 |       ld_shlibs=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15970 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15971 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15972 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15973 |       export_dynamic_flag_spec=-rdynamic | 
 | 15974 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15975 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15976 |     cygwin* | mingw* | pw32*) | 
 | 15977 |       # When not using gcc, we currently assume that we are using | 
 | 15978 |       # Microsoft Visual C++. | 
 | 15979 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 15980 |       # no search path for DLLs. | 
 | 15981 |       hardcode_libdir_flag_spec=' ' | 
 | 15982 |       allow_undefined_flag=unsupported | 
 | 15983 |       # Tell ltmain to make .lib files, not .a files. | 
 | 15984 |       libext=lib | 
 | 15985 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15986 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15987 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15988 |       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15989 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 15990 |       old_archive_From_new_cmds='true' | 
 | 15991 |       # FIXME: Should let the user specify the lib program. | 
 | 15992 |       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
 | 15993 |       fix_srcfile_path='`cygpath -w "$srcfile"`' | 
 | 15994 |       enable_shared_with_static_runtimes=yes | 
 | 15995 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15996 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15997 |     darwin* | rhapsody*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15998 |       case $host_os in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15999 |         rhapsody* | darwin1.[012]) | 
 | 16000 |          allow_undefined_flag='${wl}-undefined ${wl}suppress' | 
 | 16001 |          ;; | 
 | 16002 |        *) # Darwin 1.3 on | 
 | 16003 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 16004 |            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16005 |          else | 
 | 16006 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 16007 |              10.[012]) | 
 | 16008 |                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 16009 |                ;; | 
 | 16010 |              10.*) | 
 | 16011 |                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 
 | 16012 |                ;; | 
 | 16013 |            esac | 
 | 16014 |          fi | 
 | 16015 |          ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16016 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16017 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16018 |       hardcode_direct=no | 
 | 16019 |       hardcode_automatic=yes | 
 | 16020 |       hardcode_shlibpath_var=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16021 |       whole_archive_flag_spec='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16022 |       link_all_deplibs=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16023 |     if test "$GCC" = yes ; then | 
 | 16024 |     	output_verbose_link_cmd='echo' | 
 | 16025 |         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 16026 |       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16027 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16028 |       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}' | 
 | 16029 |       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16030 |     else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16031 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16032 |         xlc*) | 
 | 16033 |          output_verbose_link_cmd='echo' | 
 | 16034 |          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 16035 |          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16036 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16037 |          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 16038 |           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16039 |           ;; | 
 | 16040 |        *) | 
 | 16041 |          ld_shlibs=no | 
 | 16042 |           ;; | 
 | 16043 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16044 |     fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16046 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16047 |     dgux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16048 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16049 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 16050 |       hardcode_shlibpath_var=no | 
 | 16051 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16052 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16053 |     freebsd1*) | 
 | 16054 |       ld_shlibs=no | 
 | 16055 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16056 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16057 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 16058 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 16059 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 16060 |     # extra space). | 
 | 16061 |     freebsd2.2*) | 
 | 16062 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 16063 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 16064 |       hardcode_direct=yes | 
 | 16065 |       hardcode_shlibpath_var=no | 
 | 16066 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16067 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16068 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 16069 |     freebsd2*) | 
 | 16070 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16071 |       hardcode_direct=yes | 
 | 16072 |       hardcode_minus_L=yes | 
 | 16073 |       hardcode_shlibpath_var=no | 
 | 16074 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16075 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16076 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16077 |     freebsd* | kfreebsd*-gnu | dragonfly*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16078 |       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16079 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 16080 |       hardcode_direct=yes | 
 | 16081 |       hardcode_shlibpath_var=no | 
 | 16082 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16083 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16084 |     hpux9*) | 
 | 16085 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16086 | 	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16087 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16088 | 	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16089 |       fi | 
 | 16090 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 16091 |       hardcode_libdir_separator=: | 
 | 16092 |       hardcode_direct=yes | 
 | 16093 |  | 
 | 16094 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 16095 |       # but as the default location of the library. | 
 | 16096 |       hardcode_minus_L=yes | 
 | 16097 |       export_dynamic_flag_spec='${wl}-E' | 
 | 16098 |       ;; | 
 | 16099 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16100 |     hpux10*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16101 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16102 | 	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16103 |       else | 
 | 16104 | 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 16105 |       fi | 
 | 16106 |       if test "$with_gnu_ld" = no; then | 
 | 16107 | 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 16108 | 	hardcode_libdir_separator=: | 
 | 16109 |  | 
 | 16110 | 	hardcode_direct=yes | 
 | 16111 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 16112 |  | 
 | 16113 | 	# hardcode_minus_L: Not really in the search PATH, | 
 | 16114 | 	# but as the default location of the library. | 
 | 16115 | 	hardcode_minus_L=yes | 
 | 16116 |       fi | 
 | 16117 |       ;; | 
 | 16118 |  | 
 | 16119 |     hpux11*) | 
 | 16120 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 16121 | 	case $host_cpu in | 
 | 16122 | 	hppa*64*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16123 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16124 | 	  ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16125 | 	ia64*) | 
 | 16126 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16127 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16128 | 	*) | 
 | 16129 | 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16130 | 	  ;; | 
 | 16131 | 	esac | 
 | 16132 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16133 | 	case $host_cpu in | 
 | 16134 | 	hppa*64*) | 
 | 16135 | 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16136 | 	  ;; | 
 | 16137 | 	ia64*) | 
 | 16138 | 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16139 | 	  ;; | 
 | 16140 | 	*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16141 | 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16142 | 	  ;; | 
 | 16143 | 	esac | 
 | 16144 |       fi | 
 | 16145 |       if test "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16146 | 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 16147 | 	hardcode_libdir_separator=: | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16148 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16149 | 	case $host_cpu in | 
 | 16150 | 	hppa*64*|ia64*) | 
 | 16151 | 	  hardcode_libdir_flag_spec_ld='+b $libdir' | 
 | 16152 | 	  hardcode_direct=no | 
 | 16153 | 	  hardcode_shlibpath_var=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16154 | 	  ;; | 
 | 16155 | 	*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16156 | 	  hardcode_direct=yes | 
 | 16157 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 16158 |  | 
 | 16159 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 16160 | 	  # but as the default location of the library. | 
 | 16161 | 	  hardcode_minus_L=yes | 
 | 16162 | 	  ;; | 
 | 16163 | 	esac | 
 | 16164 |       fi | 
 | 16165 |       ;; | 
 | 16166 |  | 
 | 16167 |     irix5* | irix6* | nonstopux*) | 
 | 16168 |       if test "$GCC" = yes; then | 
 | 16169 | 	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' | 
 | 16170 |       else | 
 | 16171 | 	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' | 
 | 16172 | 	hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
 | 16173 |       fi | 
 | 16174 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 16175 |       hardcode_libdir_separator=: | 
 | 16176 |       link_all_deplibs=yes | 
 | 16177 |       ;; | 
 | 16178 |  | 
 | 16179 |     netbsd*) | 
 | 16180 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 16181 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 16182 |       else | 
 | 16183 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 16184 |       fi | 
 | 16185 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 16186 |       hardcode_direct=yes | 
 | 16187 |       hardcode_shlibpath_var=no | 
 | 16188 |       ;; | 
 | 16189 |  | 
 | 16190 |     newsos6) | 
 | 16191 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16192 |       hardcode_direct=yes | 
 | 16193 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 16194 |       hardcode_libdir_separator=: | 
 | 16195 |       hardcode_shlibpath_var=no | 
 | 16196 |       ;; | 
 | 16197 |  | 
 | 16198 |     openbsd*) | 
 | 16199 |       hardcode_direct=yes | 
 | 16200 |       hardcode_shlibpath_var=no | 
 | 16201 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 16202 | 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16203 | 	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16204 | 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 16205 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 16206 |       else | 
 | 16207 |        case $host_os in | 
 | 16208 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 16209 | 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 16210 | 	   hardcode_libdir_flag_spec='-R$libdir' | 
 | 16211 | 	   ;; | 
 | 16212 | 	 *) | 
 | 16213 | 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16214 | 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 16215 | 	   ;; | 
 | 16216 |        esac | 
 | 16217 |       fi | 
 | 16218 |       ;; | 
 | 16219 |  | 
 | 16220 |     os2*) | 
 | 16221 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 16222 |       hardcode_minus_L=yes | 
 | 16223 |       allow_undefined_flag=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16224 |       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16225 |       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 16226 |       ;; | 
 | 16227 |  | 
 | 16228 |     osf3*) | 
 | 16229 |       if test "$GCC" = yes; then | 
 | 16230 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16231 | 	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' | 
 | 16232 |       else | 
 | 16233 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 16234 | 	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' | 
 | 16235 |       fi | 
 | 16236 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 16237 |       hardcode_libdir_separator=: | 
 | 16238 |       ;; | 
 | 16239 |  | 
 | 16240 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 16241 |       if test "$GCC" = yes; then | 
 | 16242 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
 | 16243 | 	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' | 
 | 16244 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 16245 |       else | 
 | 16246 | 	allow_undefined_flag=' -expect_unresolved \*' | 
 | 16247 | 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16248 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16249 | 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16250 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16251 | 	# Both c and cxx compiler support -rpath directly | 
 | 16252 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 16253 |       fi | 
 | 16254 |       hardcode_libdir_separator=: | 
 | 16255 |       ;; | 
 | 16256 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16257 |     solaris*) | 
 | 16258 |       no_undefined_flag=' -z text' | 
 | 16259 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16260 | 	wlarc='${wl}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16261 | 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16262 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16263 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16264 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16265 | 	wlarc='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16266 | 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16267 | 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 16268 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16269 |       fi | 
 | 16270 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 16271 |       hardcode_shlibpath_var=no | 
 | 16272 |       case $host_os in | 
 | 16273 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16274 |       *) | 
 | 16275 |  	# The compiler driver will combine linker options so we | 
 | 16276 |  	# cannot just pass the convience library names through | 
 | 16277 |  	# without $wl, iff we do not link with $LD. | 
 | 16278 |  	# Luckily, gcc supports the same syntax we need for Sun Studio. | 
 | 16279 |  	# Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 16280 |  	case $wlarc in | 
 | 16281 |  	'') | 
 | 16282 |  	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 
 | 16283 |  	*) | 
 | 16284 |  	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | 
 | 16285 |  	esac ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16286 |       esac | 
 | 16287 |       link_all_deplibs=yes | 
 | 16288 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16289 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16290 |     sunos4*) | 
 | 16291 |       if test "x$host_vendor" = xsequent; then | 
 | 16292 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 16293 | 	# files that make .init and .fini sections work. | 
 | 16294 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16295 |       else | 
 | 16296 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 16297 |       fi | 
 | 16298 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 16299 |       hardcode_direct=yes | 
 | 16300 |       hardcode_minus_L=yes | 
 | 16301 |       hardcode_shlibpath_var=no | 
 | 16302 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16303 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16304 |     sysv4) | 
 | 16305 |       case $host_vendor in | 
 | 16306 | 	sni) | 
 | 16307 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16308 | 	  hardcode_direct=yes # is this really true??? | 
 | 16309 | 	;; | 
 | 16310 | 	siemens) | 
 | 16311 | 	  ## LD is ld it makes a PLAMLIB | 
 | 16312 | 	  ## CC just makes a GrossModule. | 
 | 16313 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 16314 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 16315 | 	  hardcode_direct=no | 
 | 16316 |         ;; | 
 | 16317 | 	motorola) | 
 | 16318 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16319 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 16320 | 	;; | 
 | 16321 |       esac | 
 | 16322 |       runpath_var='LD_RUN_PATH' | 
 | 16323 |       hardcode_shlibpath_var=no | 
 | 16324 |       ;; | 
 | 16325 |  | 
 | 16326 |     sysv4.3*) | 
 | 16327 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16328 |       hardcode_shlibpath_var=no | 
 | 16329 |       export_dynamic_flag_spec='-Bexport' | 
 | 16330 |       ;; | 
 | 16331 |  | 
 | 16332 |     sysv4*MP*) | 
 | 16333 |       if test -d /usr/nec; then | 
 | 16334 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16335 | 	hardcode_shlibpath_var=no | 
 | 16336 | 	runpath_var=LD_RUN_PATH | 
 | 16337 | 	hardcode_runpath_var=yes | 
 | 16338 | 	ld_shlibs=yes | 
 | 16339 |       fi | 
 | 16340 |       ;; | 
 | 16341 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16342 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 
 | 16343 |       no_undefined_flag='${wl}-z,text' | 
 | 16344 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16345 |       hardcode_shlibpath_var=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16346 |       runpath_var='LD_RUN_PATH' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16347 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16348 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16349 | 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16350 | 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16351 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16352 | 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16353 | 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16354 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16355 |       ;; | 
 | 16356 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16357 |     sysv5* | sco3.2v5* | sco5v6*) | 
 | 16358 |       # Note: We can NOT use -z defs as we might desire, because we do not | 
 | 16359 |       # link with -lc, and that would cause any symbols used from libc to | 
 | 16360 |       # always be unresolved, which means just about no library would | 
 | 16361 |       # ever link correctly.  If we're not using GNU ld we use -z text | 
 | 16362 |       # though, which does catch some bad symbols but isn't as heavy-handed | 
 | 16363 |       # as -z defs. | 
 | 16364 |       no_undefined_flag='${wl}-z,text' | 
 | 16365 |       allow_undefined_flag='${wl}-z,nodefs' | 
 | 16366 |       archive_cmds_need_lc=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16367 |       hardcode_shlibpath_var=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16368 |       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 
 | 16369 |       hardcode_libdir_separator=':' | 
 | 16370 |       link_all_deplibs=yes | 
 | 16371 |       export_dynamic_flag_spec='${wl}-Bexport' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16372 |       runpath_var='LD_RUN_PATH' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16373 |  | 
 | 16374 |       if test "$GCC" = yes; then | 
 | 16375 | 	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16376 | 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16377 |       else | 
 | 16378 | 	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16379 | 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 16380 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16381 |       ;; | 
 | 16382 |  | 
 | 16383 |     uts4*) | 
 | 16384 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 16385 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 16386 |       hardcode_shlibpath_var=no | 
 | 16387 |       ;; | 
 | 16388 |  | 
 | 16389 |     *) | 
 | 16390 |       ld_shlibs=no | 
 | 16391 |       ;; | 
 | 16392 |     esac | 
 | 16393 |   fi | 
 | 16394 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16395 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 
 | 16396 | echo "${ECHO_T}$ld_shlibs" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16397 | test "$ld_shlibs" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16398 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16399 | # | 
 | 16400 | # Do we need to explicitly link libc? | 
 | 16401 | # | 
 | 16402 | case "x$archive_cmds_need_lc" in | 
 | 16403 | x|xyes) | 
 | 16404 |   # Assume -lc should be added | 
 | 16405 |   archive_cmds_need_lc=yes | 
 | 16406 |  | 
 | 16407 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 16408 |     case $archive_cmds in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16409 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16410 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 16411 |       ;; | 
 | 16412 |     '$CC '*) | 
 | 16413 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 16414 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 16415 |       # to ld, don't add -lc before -lgcc. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16416 |       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 16417 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16418 |       $rm conftest* | 
 | 16419 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 16420 |  | 
 | 16421 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 16422 |   (eval $ac_compile) 2>&5 | 
 | 16423 |   ac_status=$? | 
 | 16424 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16425 |   (exit $ac_status); } 2>conftest.err; then | 
 | 16426 |         soname=conftest | 
 | 16427 |         lib=conftest | 
 | 16428 |         libobjs=conftest.$ac_objext | 
 | 16429 |         deplibs= | 
 | 16430 |         wl=$lt_prog_compiler_wl | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16431 | 	pic_flag=$lt_prog_compiler_pic | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16432 |         compiler_flags=-v | 
 | 16433 |         linker_flags=-v | 
 | 16434 |         verstring= | 
 | 16435 |         output_objdir=. | 
 | 16436 |         libname=conftest | 
 | 16437 |         lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 16438 |         allow_undefined_flag= | 
 | 16439 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 16440 |   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 16441 |   ac_status=$? | 
 | 16442 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 16443 |   (exit $ac_status); } | 
 | 16444 |         then | 
 | 16445 | 	  archive_cmds_need_lc=no | 
 | 16446 |         else | 
 | 16447 | 	  archive_cmds_need_lc=yes | 
 | 16448 |         fi | 
 | 16449 |         allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 16450 |       else | 
 | 16451 |         cat conftest.err 1>&5 | 
 | 16452 |       fi | 
 | 16453 |       $rm conftest* | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16454 |       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 
 | 16455 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16456 |       ;; | 
 | 16457 |     esac | 
 | 16458 |   fi | 
 | 16459 |   ;; | 
 | 16460 | esac | 
 | 16461 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16462 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 16463 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16464 | library_names_spec= | 
 | 16465 | libname_spec='lib$name' | 
 | 16466 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16467 | shrext_cmds=".so" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16468 | postinstall_cmds= | 
 | 16469 | postuninstall_cmds= | 
 | 16470 | finish_cmds= | 
 | 16471 | finish_eval= | 
 | 16472 | shlibpath_var= | 
 | 16473 | shlibpath_overrides_runpath=unknown | 
 | 16474 | version_type=none | 
 | 16475 | dynamic_linker="$host_os ld.so" | 
 | 16476 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16477 | if test "$GCC" = yes; then | 
 | 16478 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16479 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 16480 |     # if the path contains ";" then we assume it to be the separator | 
 | 16481 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 16482 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 16483 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 16484 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16485 |   else | 
 | 16486 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16487 |   fi | 
 | 16488 | else | 
 | 16489 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 16490 | fi | 
 | 16491 | need_lib_prefix=unknown | 
 | 16492 | hardcode_into_libs=no | 
 | 16493 |  | 
 | 16494 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 16495 | # flags to be left without arguments | 
 | 16496 | need_version=unknown | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16497 |  | 
 | 16498 | case $host_os in | 
 | 16499 | aix3*) | 
 | 16500 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16501 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16502 |   shlibpath_var=LIBPATH | 
 | 16503 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16504 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 16505 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16506 |   ;; | 
 | 16507 |  | 
 | 16508 | aix4* | aix5*) | 
 | 16509 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16510 |   need_lib_prefix=no | 
 | 16511 |   need_version=no | 
 | 16512 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 |   if test "$host_cpu" = ia64; then | 
 | 16514 |     # AIX 5 supports IA64 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16515 |     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] | 16516 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16517 |   else | 
 | 16518 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 16519 |     # for dependence libraries.  The import file would start with | 
 | 16520 |     # the line `#! .'.  This would cause the generated library to | 
 | 16521 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 16522 |     # development snapshots of GCC prior to 3.0. | 
 | 16523 |     case $host_os in | 
 | 16524 |       aix4 | aix4.[01] | aix4.[01].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16525 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 16526 | 	   echo ' yes ' | 
 | 16527 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 16528 | 	: | 
 | 16529 |       else | 
 | 16530 | 	can_build_shared=no | 
 | 16531 |       fi | 
 | 16532 |       ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16533 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16534 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 16535 |     # soname into executable. Probably we can add versioning support to | 
 | 16536 |     # collect2, so additional links can be useful in future. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16537 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 16538 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 16539 |       # instead of lib<name>.a to let people know that these are not | 
 | 16540 |       # typical AIX shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16541 |       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] | 16542 |     else | 
 | 16543 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 16544 |       # and later when we are not doing run time linking. | 
 | 16545 |       library_names_spec='${libname}${release}.a $libname.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16546 |       soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16547 |     fi | 
 | 16548 |     shlibpath_var=LIBPATH | 
 | 16549 |   fi | 
 | 16550 |   ;; | 
 | 16551 |  | 
 | 16552 | amigaos*) | 
 | 16553 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 16554 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16555 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16556 |   ;; | 
 | 16557 |  | 
 | 16558 | beos*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16559 |   library_names_spec='${libname}${shared_ext}' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16560 |   dynamic_linker="$host_os ld.so" | 
 | 16561 |   shlibpath_var=LIBRARY_PATH | 
 | 16562 |   ;; | 
 | 16563 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16564 | bsdi[45]*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16565 |   version_type=linux | 
 | 16566 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16567 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16568 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16569 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 16570 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16571 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 16572 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16573 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 16574 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 16575 |   # libtool to hard-code these into programs | 
 | 16576 |   ;; | 
 | 16577 |  | 
 | 16578 | cygwin* | mingw* | pw32*) | 
 | 16579 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16580 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16581 |   need_version=no | 
 | 16582 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16583 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16584 |   case $GCC,$host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16585 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16586 |     library_names_spec='$libname.dll.a' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16587 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16588 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 16589 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 16590 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 16591 |       test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16592 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 16593 |       chmod a+x \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16594 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 16595 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16596 |        $rm \$dlpath' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16597 |     shlibpath_overrides_runpath=yes | 
 | 16598 |  | 
 | 16599 |     case $host_os in | 
 | 16600 |     cygwin*) | 
 | 16601 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 16602 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16603 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16604 |       ;; | 
 | 16605 |     mingw*) | 
 | 16606 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 16607 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 16608 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 16609 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 16610 |         # It is most probably a Windows format PATH printed by | 
 | 16611 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 16612 |         # path with ; separators, and with drive letters. We can handle the | 
 | 16613 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 16614 |         # especially as we might pass files found there to a mingw objdump, | 
 | 16615 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 16616 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 16617 |       else | 
 | 16618 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 16619 |       fi | 
 | 16620 |       ;; | 
 | 16621 |     pw32*) | 
 | 16622 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16623 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16624 |       ;; | 
 | 16625 |     esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16626 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16627 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16628 |   *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16629 |     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] | 16630 |     ;; | 
 | 16631 |   esac | 
 | 16632 |   dynamic_linker='Win32 ld.exe' | 
 | 16633 |   # FIXME: first we should search . and the directory the executable is in | 
 | 16634 |   shlibpath_var=PATH | 
 | 16635 |   ;; | 
 | 16636 |  | 
 | 16637 | darwin* | rhapsody*) | 
 | 16638 |   dynamic_linker="$host_os dyld" | 
 | 16639 |   version_type=darwin | 
 | 16640 |   need_lib_prefix=no | 
 | 16641 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16642 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16643 |   soname_spec='${libname}${release}${major}$shared_ext' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16644 |   shlibpath_overrides_runpath=yes | 
 | 16645 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16646 |   shrext_cmds='.dylib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16647 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16648 |   if test "$GCC" = yes; then | 
 | 16649 |     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"` | 
 | 16650 |   else | 
 | 16651 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16652 |   fi | 
 | 16653 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 16654 |   ;; | 
 | 16655 |  | 
 | 16656 | dgux*) | 
 | 16657 |   version_type=linux | 
 | 16658 |   need_lib_prefix=no | 
 | 16659 |   need_version=no | 
 | 16660 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 16661 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16662 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16663 |   ;; | 
 | 16664 |  | 
 | 16665 | freebsd1*) | 
 | 16666 |   dynamic_linker=no | 
 | 16667 |   ;; | 
 | 16668 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16669 | kfreebsd*-gnu) | 
 | 16670 |   version_type=linux | 
 | 16671 |   need_lib_prefix=no | 
 | 16672 |   need_version=no | 
 | 16673 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16674 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16675 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16676 |   shlibpath_overrides_runpath=no | 
 | 16677 |   hardcode_into_libs=yes | 
 | 16678 |   dynamic_linker='GNU ld.so' | 
 | 16679 |   ;; | 
 | 16680 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16681 | freebsd* | dragonfly*) | 
 | 16682 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 16683 |   # versioning mechanism, adjust this. | 
 | 16684 |   if test -x /usr/bin/objformat; then | 
 | 16685 |     objformat=`/usr/bin/objformat` | 
 | 16686 |   else | 
 | 16687 |     case $host_os in | 
 | 16688 |     freebsd[123]*) objformat=aout ;; | 
 | 16689 |     *) objformat=elf ;; | 
 | 16690 |     esac | 
 | 16691 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16692 |   version_type=freebsd-$objformat | 
 | 16693 |   case $version_type in | 
 | 16694 |     freebsd-elf*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16695 |       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] | 16696 |       need_version=no | 
 | 16697 |       need_lib_prefix=no | 
 | 16698 |       ;; | 
 | 16699 |     freebsd-*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16700 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16701 |       need_version=yes | 
 | 16702 |       ;; | 
 | 16703 |   esac | 
 | 16704 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16705 |   case $host_os in | 
 | 16706 |   freebsd2*) | 
 | 16707 |     shlibpath_overrides_runpath=yes | 
 | 16708 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16709 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16710 |     shlibpath_overrides_runpath=yes | 
 | 16711 |     hardcode_into_libs=yes | 
 | 16712 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16713 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 16714 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16715 |     shlibpath_overrides_runpath=no | 
 | 16716 |     hardcode_into_libs=yes | 
 | 16717 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16718 |   freebsd*) # from 4.6 on | 
 | 16719 |     shlibpath_overrides_runpath=yes | 
 | 16720 |     hardcode_into_libs=yes | 
 | 16721 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16722 |   esac | 
 | 16723 |   ;; | 
 | 16724 |  | 
 | 16725 | gnu*) | 
 | 16726 |   version_type=linux | 
 | 16727 |   need_lib_prefix=no | 
 | 16728 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16729 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 16730 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16731 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16732 |   hardcode_into_libs=yes | 
 | 16733 |   ;; | 
 | 16734 |  | 
 | 16735 | hpux9* | hpux10* | hpux11*) | 
 | 16736 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 16737 |   # link against other versions. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16738 |   version_type=sunos | 
 | 16739 |   need_lib_prefix=no | 
 | 16740 |   need_version=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16741 |   case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16742 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16743 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16744 |     hardcode_into_libs=yes | 
 | 16745 |     dynamic_linker="$host_os dld.so" | 
 | 16746 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16747 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16748 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16749 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16750 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 16751 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 16752 |     else | 
 | 16753 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 16754 |     fi | 
 | 16755 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16756 |     ;; | 
 | 16757 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16758 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16759 |      hardcode_into_libs=yes | 
 | 16760 |      dynamic_linker="$host_os dld.sl" | 
 | 16761 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 16762 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 16763 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16764 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16765 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 16766 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 16767 |      ;; | 
 | 16768 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16769 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16770 |     dynamic_linker="$host_os dld.sl" | 
 | 16771 |     shlibpath_var=SHLIB_PATH | 
 | 16772 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 16773 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16774 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16775 |     ;; | 
 | 16776 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16777 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 16778 |   postinstall_cmds='chmod 555 $lib' | 
 | 16779 |   ;; | 
 | 16780 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16781 | interix3*) | 
 | 16782 |   version_type=linux | 
 | 16783 |   need_lib_prefix=no | 
 | 16784 |   need_version=no | 
 | 16785 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16786 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16787 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 16788 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16789 |   shlibpath_overrides_runpath=no | 
 | 16790 |   hardcode_into_libs=yes | 
 | 16791 |   ;; | 
 | 16792 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16793 | irix5* | irix6* | nonstopux*) | 
 | 16794 |   case $host_os in | 
 | 16795 |     nonstopux*) version_type=nonstopux ;; | 
 | 16796 |     *) | 
 | 16797 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 16798 | 		version_type=linux | 
 | 16799 | 	else | 
 | 16800 | 		version_type=irix | 
 | 16801 | 	fi ;; | 
 | 16802 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16803 |   need_lib_prefix=no | 
 | 16804 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16805 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16806 |   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] | 16807 |   case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16808 |   irix5* | nonstopux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16809 |     libsuff= shlibsuff= | 
 | 16810 |     ;; | 
 | 16811 |   *) | 
 | 16812 |     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] | 16813 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 16814 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 16815 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 16816 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 16817 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 16818 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16819 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 16820 |     esac | 
 | 16821 |     ;; | 
 | 16822 |   esac | 
 | 16823 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 16824 |   shlibpath_overrides_runpath=no | 
 | 16825 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 16826 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16827 |   hardcode_into_libs=yes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16828 |   ;; | 
 | 16829 |  | 
 | 16830 | # No shared lib support for Linux oldld, aout, or coff. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16831 | linux*oldld* | linux*aout* | linux*coff*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16832 |   dynamic_linker=no | 
 | 16833 |   ;; | 
 | 16834 |  | 
 | 16835 | # This must be Linux ELF. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16836 | linux*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16837 |   version_type=linux | 
 | 16838 |   need_lib_prefix=no | 
 | 16839 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16840 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16841 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16842 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 16843 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16844 |   shlibpath_overrides_runpath=no | 
 | 16845 |   # This implies no fast_install, which is unacceptable. | 
 | 16846 |   # Some rework will be needed to allow for fast_install | 
 | 16847 |   # before this can be enabled. | 
 | 16848 |   hardcode_into_libs=yes | 
 | 16849 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16850 |   # Append ld.so.conf contents to the search path | 
 | 16851 |   if test -f /etc/ld.so.conf; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16852 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16853 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 16854 |   fi | 
 | 16855 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16856 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 16857 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 16858 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 16859 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 16860 |   # people can always --disable-shared, the test was removed, and we | 
 | 16861 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 16862 |   dynamic_linker='GNU/Linux ld.so' | 
 | 16863 |   ;; | 
 | 16864 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16865 | knetbsd*-gnu) | 
 | 16866 |   version_type=linux | 
 | 16867 |   need_lib_prefix=no | 
 | 16868 |   need_version=no | 
 | 16869 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 16870 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16871 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16872 |   shlibpath_overrides_runpath=no | 
 | 16873 |   hardcode_into_libs=yes | 
 | 16874 |   dynamic_linker='GNU ld.so' | 
 | 16875 |   ;; | 
 | 16876 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16877 | netbsd*) | 
 | 16878 |   version_type=sunos | 
 | 16879 |   need_lib_prefix=no | 
 | 16880 |   need_version=no | 
 | 16881 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16882 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16883 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 16884 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 16885 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16886 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16887 |     soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16888 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 16889 |   fi | 
 | 16890 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16891 |   shlibpath_overrides_runpath=yes | 
 | 16892 |   hardcode_into_libs=yes | 
 | 16893 |   ;; | 
 | 16894 |  | 
 | 16895 | newsos6) | 
 | 16896 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16897 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16898 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16899 |   shlibpath_overrides_runpath=yes | 
 | 16900 |   ;; | 
 | 16901 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16902 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16903 |   version_type=linux | 
 | 16904 |   need_lib_prefix=no | 
 | 16905 |   need_version=no | 
 | 16906 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16907 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16909 |   shlibpath_overrides_runpath=yes | 
 | 16910 |   ;; | 
 | 16911 |  | 
 | 16912 | openbsd*) | 
 | 16913 |   version_type=sunos | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16914 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16915 |   need_lib_prefix=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16916 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 16917 |   case $host_os in | 
 | 16918 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
 | 16919 |     *)                         need_version=no  ;; | 
 | 16920 |   esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16921 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 16922 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 16923 |   shlibpath_var=LD_LIBRARY_PATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16924 |   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] | 16925 |     case $host_os in | 
 | 16926 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 16927 | 	shlibpath_overrides_runpath=no | 
 | 16928 | 	;; | 
 | 16929 |       *) | 
 | 16930 | 	shlibpath_overrides_runpath=yes | 
 | 16931 | 	;; | 
 | 16932 |       esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16933 |   else | 
 | 16934 |     shlibpath_overrides_runpath=yes | 
 | 16935 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16936 |   ;; | 
 | 16937 |  | 
 | 16938 | os2*) | 
 | 16939 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16940 |   shrext_cmds=".dll" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16941 |   need_lib_prefix=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16942 |   library_names_spec='$libname${shared_ext} $libname.a' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16943 |   dynamic_linker='OS/2 ld.exe' | 
 | 16944 |   shlibpath_var=LIBPATH | 
 | 16945 |   ;; | 
 | 16946 |  | 
 | 16947 | osf3* | osf4* | osf5*) | 
 | 16948 |   version_type=osf | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16949 |   need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16950 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16951 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16952 |   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] | 16953 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16954 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 16955 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 16956 |   ;; | 
 | 16957 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16958 | solaris*) | 
 | 16959 |   version_type=linux | 
 | 16960 |   need_lib_prefix=no | 
 | 16961 |   need_version=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16962 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16963 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16964 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16965 |   shlibpath_overrides_runpath=yes | 
 | 16966 |   hardcode_into_libs=yes | 
 | 16967 |   # ldd complains unless libraries are executable | 
 | 16968 |   postinstall_cmds='chmod +x $lib' | 
 | 16969 |   ;; | 
 | 16970 |  | 
 | 16971 | sunos4*) | 
 | 16972 |   version_type=sunos | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16973 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16974 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 16975 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16976 |   shlibpath_overrides_runpath=yes | 
 | 16977 |   if test "$with_gnu_ld" = yes; then | 
 | 16978 |     need_lib_prefix=no | 
 | 16979 |   fi | 
 | 16980 |   need_version=yes | 
 | 16981 |   ;; | 
 | 16982 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16983 | sysv4 | sysv4.3*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16984 |   version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16985 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16986 |   soname_spec='${libname}${release}${shared_ext}$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16987 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16988 |   case $host_vendor in | 
 | 16989 |     sni) | 
 | 16990 |       shlibpath_overrides_runpath=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16991 |       need_lib_prefix=no | 
 | 16992 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 16993 |       runpath_var=LD_RUN_PATH | 
 | 16994 |       ;; | 
 | 16995 |     siemens) | 
 | 16996 |       need_lib_prefix=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16997 |       ;; | 
 | 16998 |     motorola) | 
 | 16999 |       need_lib_prefix=no | 
 | 17000 |       need_version=no | 
 | 17001 |       shlibpath_overrides_runpath=no | 
 | 17002 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 17003 |       ;; | 
 | 17004 |   esac | 
 | 17005 |   ;; | 
 | 17006 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17007 | sysv4*MP*) | 
 | 17008 |   if test -d /usr/nec ;then | 
 | 17009 |     version_type=linux | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17010 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 17011 |     soname_spec='$libname${shared_ext}.$major' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17012 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 17013 |   fi | 
 | 17014 |   ;; | 
 | 17015 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17016 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 17017 |   version_type=freebsd-elf | 
 | 17018 |   need_lib_prefix=no | 
 | 17019 |   need_version=no | 
 | 17020 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 17021 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17022 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17023 |   hardcode_into_libs=yes | 
 | 17024 |   if test "$with_gnu_ld" = yes; then | 
 | 17025 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 17026 |     shlibpath_overrides_runpath=no | 
 | 17027 |   else | 
 | 17028 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 17029 |     shlibpath_overrides_runpath=yes | 
 | 17030 |     case $host_os in | 
 | 17031 |       sco3.2v5*) | 
 | 17032 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 17033 | 	;; | 
 | 17034 |     esac | 
 | 17035 |   fi | 
 | 17036 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 17037 |   ;; | 
 | 17038 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17039 | uts4*) | 
 | 17040 |   version_type=linux | 
 | 17041 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 17042 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 17043 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 17044 |   ;; | 
 | 17045 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17046 | *) | 
 | 17047 |   dynamic_linker=no | 
 | 17048 |   ;; | 
 | 17049 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17050 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 17051 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17052 | test "$dynamic_linker" = no && can_build_shared=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17053 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17054 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 17055 | if test "$GCC" = yes; then | 
 | 17056 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 17057 | fi | 
 | 17058 |  | 
 | 17059 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 17060 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17061 | hardcode_action= | 
 | 17062 | if test -n "$hardcode_libdir_flag_spec" || \ | 
 | 17063 |    test -n "$runpath_var" || \ | 
 | 17064 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 17065 |  | 
 | 17066 |   # We can hardcode non-existant directories. | 
 | 17067 |   if test "$hardcode_direct" != no && | 
 | 17068 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 17069 |      # have to relink, otherwise we might link with an installed library | 
 | 17070 |      # when we should be linking with a yet-to-be-installed one | 
 | 17071 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 17072 |      test "$hardcode_minus_L" != no; then | 
 | 17073 |     # Linking always hardcodes the temporary library directory. | 
 | 17074 |     hardcode_action=relink | 
 | 17075 |   else | 
 | 17076 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 17077 |     hardcode_action=immediate | 
 | 17078 |   fi | 
 | 17079 | else | 
 | 17080 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 17081 |   # directories. | 
 | 17082 |   hardcode_action=unsupported | 
 | 17083 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17084 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 
 | 17085 | echo "${ECHO_T}$hardcode_action" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17086 |  | 
 | 17087 | if test "$hardcode_action" = relink; then | 
 | 17088 |   # Fast installation is not supported | 
 | 17089 |   enable_fast_install=no | 
 | 17090 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 17091 |      test "$enable_shared" = no; then | 
 | 17092 |   # Fast installation is not necessary | 
 | 17093 |   enable_fast_install=needless | 
 | 17094 | fi | 
 | 17095 |  | 
 | 17096 | striplib= | 
 | 17097 | old_striplib= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17098 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 
 | 17099 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17100 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 
 | 17101 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 17102 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17103 |   { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17104 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17105 | else | 
 | 17106 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 17107 |   case $host_os in | 
 | 17108 |    darwin*) | 
 | 17109 |        if test -n "$STRIP" ; then | 
 | 17110 |          striplib="$STRIP -x" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17111 |          { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 17112 | echo "${ECHO_T}yes" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17113 |        else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17114 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 17115 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17116 | fi | 
 | 17117 |        ;; | 
 | 17118 |    *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17119 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 17120 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17121 |     ;; | 
 | 17122 |   esac | 
 | 17123 | fi | 
 | 17124 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17125 | if test "x$enable_dlopen" != xyes; then | 
 | 17126 |   enable_dlopen=unknown | 
 | 17127 |   enable_dlopen_self=unknown | 
 | 17128 |   enable_dlopen_self_static=unknown | 
 | 17129 | else | 
 | 17130 |   lt_cv_dlopen=no | 
 | 17131 |   lt_cv_dlopen_libs= | 
 | 17132 |  | 
 | 17133 |   case $host_os in | 
 | 17134 |   beos*) | 
 | 17135 |     lt_cv_dlopen="load_add_on" | 
 | 17136 |     lt_cv_dlopen_libs= | 
 | 17137 |     lt_cv_dlopen_self=yes | 
 | 17138 |     ;; | 
 | 17139 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17140 |   mingw* | pw32*) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17141 |     lt_cv_dlopen="LoadLibrary" | 
 | 17142 |     lt_cv_dlopen_libs= | 
 | 17143 |    ;; | 
 | 17144 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17145 |   cygwin*) | 
 | 17146 |     lt_cv_dlopen="dlopen" | 
 | 17147 |     lt_cv_dlopen_libs= | 
 | 17148 |    ;; | 
 | 17149 |  | 
 | 17150 |   darwin*) | 
 | 17151 |   # if libdl is installed we need to link against it | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17152 |     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17153 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17154 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17155 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17156 | else | 
 | 17157 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17158 | LIBS="-ldl  $LIBS" | 
 | 17159 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17160 | /* confdefs.h.  */ | 
 | 17161 | _ACEOF | 
 | 17162 | cat confdefs.h >>conftest.$ac_ext | 
 | 17163 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17164 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17165 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17166 | /* Override any GCC internal prototype to avoid an error. | 
 | 17167 |    Use char because int might match the return type of a GCC | 
 | 17168 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17169 | #ifdef __cplusplus | 
 | 17170 | extern "C" | 
 | 17171 | #endif | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17172 | char dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17173 | int | 
 | 17174 | main () | 
 | 17175 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17176 | return dlopen (); | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17177 |   ; | 
 | 17178 |   return 0; | 
 | 17179 | } | 
 | 17180 | _ACEOF | 
 | 17181 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17182 | if { (ac_try="$ac_link" | 
 | 17183 | case "(($ac_try" in | 
 | 17184 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17185 |   *) ac_try_echo=$ac_try;; | 
 | 17186 | esac | 
 | 17187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17188 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17189 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17190 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17191 |   rm -f conftest.er1 | 
 | 17192 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17193 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17194 |   (exit $ac_status); } && | 
 | 17195 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17196 |   { (case "(($ac_try" in | 
 | 17197 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17198 |   *) ac_try_echo=$ac_try;; | 
 | 17199 | esac | 
 | 17200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17201 |   (eval "$ac_try") 2>&5 | 
 | 17202 |   ac_status=$? | 
 | 17203 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17204 |   (exit $ac_status); }; } && | 
 | 17205 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17206 |   { (case "(($ac_try" in | 
 | 17207 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17208 |   *) ac_try_echo=$ac_try;; | 
 | 17209 | esac | 
 | 17210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17211 |   (eval "$ac_try") 2>&5 | 
 | 17212 |   ac_status=$? | 
 | 17213 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17214 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17215 |   ac_cv_lib_dl_dlopen=yes | 
 | 17216 | else | 
 | 17217 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17218 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17219 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17220 | 	ac_cv_lib_dl_dlopen=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17221 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17223 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17224 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17225 | LIBS=$ac_check_lib_save_LIBS | 
 | 17226 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17227 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17228 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17229 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17230 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17231 | else | 
 | 17232 |  | 
 | 17233 |     lt_cv_dlopen="dyld" | 
 | 17234 |     lt_cv_dlopen_libs= | 
 | 17235 |     lt_cv_dlopen_self=yes | 
 | 17236 |  | 
 | 17237 | fi | 
 | 17238 |  | 
 | 17239 |    ;; | 
 | 17240 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17241 |   *) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17242 |     { echo "$as_me:$LINENO: checking for shl_load" >&5 | 
 | 17243 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17244 | if test "${ac_cv_func_shl_load+set}" = set; then | 
 | 17245 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17246 | else | 
 | 17247 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17248 | /* confdefs.h.  */ | 
 | 17249 | _ACEOF | 
 | 17250 | cat confdefs.h >>conftest.$ac_ext | 
 | 17251 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17252 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17253 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | 
 | 17254 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17255 | #define shl_load innocuous_shl_load | 
 | 17256 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17257 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17258 |     which can conflict with char shl_load (); below. | 
 | 17259 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17260 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17261 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17262 | #ifdef __STDC__ | 
 | 17263 | # include <limits.h> | 
 | 17264 | #else | 
 | 17265 | # include <assert.h> | 
 | 17266 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17267 |  | 
 | 17268 | #undef shl_load | 
 | 17269 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17270 | /* Override any GCC internal prototype to avoid an error. | 
 | 17271 |    Use char because int might match the return type of a GCC | 
 | 17272 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17273 | #ifdef __cplusplus | 
 | 17274 | extern "C" | 
 | 17275 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17276 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17277 | /* The GNU C library defines this for functions which it implements | 
 | 17278 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17279 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17280 | #if defined __stub_shl_load || defined __stub___shl_load | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17281 | choke me | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17282 | #endif | 
 | 17283 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17284 | int | 
 | 17285 | main () | 
 | 17286 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17287 | return shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17288 |   ; | 
 | 17289 |   return 0; | 
 | 17290 | } | 
 | 17291 | _ACEOF | 
 | 17292 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17293 | if { (ac_try="$ac_link" | 
 | 17294 | case "(($ac_try" in | 
 | 17295 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17296 |   *) ac_try_echo=$ac_try;; | 
 | 17297 | esac | 
 | 17298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17299 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17300 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17301 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17302 |   rm -f conftest.er1 | 
 | 17303 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17304 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17305 |   (exit $ac_status); } && | 
 | 17306 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17307 |   { (case "(($ac_try" in | 
 | 17308 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17309 |   *) ac_try_echo=$ac_try;; | 
 | 17310 | esac | 
 | 17311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17312 |   (eval "$ac_try") 2>&5 | 
 | 17313 |   ac_status=$? | 
 | 17314 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17315 |   (exit $ac_status); }; } && | 
 | 17316 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17317 |   { (case "(($ac_try" in | 
 | 17318 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17319 |   *) ac_try_echo=$ac_try;; | 
 | 17320 | esac | 
 | 17321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17322 |   (eval "$ac_try") 2>&5 | 
 | 17323 |   ac_status=$? | 
 | 17324 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17325 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17326 |   ac_cv_func_shl_load=yes | 
 | 17327 | else | 
 | 17328 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17330 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17331 | 	ac_cv_func_shl_load=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17332 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17333 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17334 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17335 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17336 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17337 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | 
 | 17338 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17339 | if test $ac_cv_func_shl_load = yes; then | 
 | 17340 |   lt_cv_dlopen="shl_load" | 
 | 17341 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17342 |   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | 
 | 17343 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17344 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | 
 | 17345 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17346 | else | 
 | 17347 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17348 | LIBS="-ldld  $LIBS" | 
 | 17349 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17350 | /* confdefs.h.  */ | 
 | 17351 | _ACEOF | 
 | 17352 | cat confdefs.h >>conftest.$ac_ext | 
 | 17353 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17354 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17355 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17356 | /* Override any GCC internal prototype to avoid an error. | 
 | 17357 |    Use char because int might match the return type of a GCC | 
 | 17358 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17359 | #ifdef __cplusplus | 
 | 17360 | extern "C" | 
 | 17361 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17362 | char shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17363 | int | 
 | 17364 | main () | 
 | 17365 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17366 | return shl_load (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17367 |   ; | 
 | 17368 |   return 0; | 
 | 17369 | } | 
 | 17370 | _ACEOF | 
 | 17371 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17372 | if { (ac_try="$ac_link" | 
 | 17373 | case "(($ac_try" in | 
 | 17374 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17375 |   *) ac_try_echo=$ac_try;; | 
 | 17376 | esac | 
 | 17377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17378 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17379 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17380 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17381 |   rm -f conftest.er1 | 
 | 17382 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17383 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17384 |   (exit $ac_status); } && | 
 | 17385 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17386 |   { (case "(($ac_try" in | 
 | 17387 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17388 |   *) ac_try_echo=$ac_try;; | 
 | 17389 | esac | 
 | 17390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17391 |   (eval "$ac_try") 2>&5 | 
 | 17392 |   ac_status=$? | 
 | 17393 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17394 |   (exit $ac_status); }; } && | 
 | 17395 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17396 |   { (case "(($ac_try" in | 
 | 17397 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17398 |   *) ac_try_echo=$ac_try;; | 
 | 17399 | esac | 
 | 17400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17401 |   (eval "$ac_try") 2>&5 | 
 | 17402 |   ac_status=$? | 
 | 17403 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17404 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17405 |   ac_cv_lib_dld_shl_load=yes | 
 | 17406 | else | 
 | 17407 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17408 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17409 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17410 | 	ac_cv_lib_dld_shl_load=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17411 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17412 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17413 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17414 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | LIBS=$ac_check_lib_save_LIBS | 
 | 17416 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17417 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 17418 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17419 | if test $ac_cv_lib_dld_shl_load = yes; then | 
 | 17420 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 
 | 17421 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17422 |   { echo "$as_me:$LINENO: checking for dlopen" >&5 | 
 | 17423 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17424 | if test "${ac_cv_func_dlopen+set}" = set; then | 
 | 17425 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17426 | else | 
 | 17427 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17428 | /* confdefs.h.  */ | 
 | 17429 | _ACEOF | 
 | 17430 | cat confdefs.h >>conftest.$ac_ext | 
 | 17431 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17432 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17433 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | 
 | 17434 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 17435 | #define dlopen innocuous_dlopen | 
 | 17436 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17437 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17438 |     which can conflict with char dlopen (); below. | 
 | 17439 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 17440 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17441 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17442 | #ifdef __STDC__ | 
 | 17443 | # include <limits.h> | 
 | 17444 | #else | 
 | 17445 | # include <assert.h> | 
 | 17446 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17447 |  | 
 | 17448 | #undef dlopen | 
 | 17449 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17450 | /* Override any GCC internal prototype to avoid an error. | 
 | 17451 |    Use char because int might match the return type of a GCC | 
 | 17452 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17453 | #ifdef __cplusplus | 
 | 17454 | extern "C" | 
 | 17455 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17456 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17457 | /* The GNU C library defines this for functions which it implements | 
 | 17458 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 17459 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17460 | #if defined __stub_dlopen || defined __stub___dlopen | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17461 | choke me | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17462 | #endif | 
 | 17463 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17464 | int | 
 | 17465 | main () | 
 | 17466 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17467 | return dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17468 |   ; | 
 | 17469 |   return 0; | 
 | 17470 | } | 
 | 17471 | _ACEOF | 
 | 17472 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17473 | if { (ac_try="$ac_link" | 
 | 17474 | case "(($ac_try" in | 
 | 17475 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17476 |   *) ac_try_echo=$ac_try;; | 
 | 17477 | esac | 
 | 17478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17479 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17480 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17481 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17482 |   rm -f conftest.er1 | 
 | 17483 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17484 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17485 |   (exit $ac_status); } && | 
 | 17486 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17487 |   { (case "(($ac_try" in | 
 | 17488 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17489 |   *) ac_try_echo=$ac_try;; | 
 | 17490 | esac | 
 | 17491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17492 |   (eval "$ac_try") 2>&5 | 
 | 17493 |   ac_status=$? | 
 | 17494 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17495 |   (exit $ac_status); }; } && | 
 | 17496 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17497 |   { (case "(($ac_try" in | 
 | 17498 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17499 |   *) ac_try_echo=$ac_try;; | 
 | 17500 | esac | 
 | 17501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17502 |   (eval "$ac_try") 2>&5 | 
 | 17503 |   ac_status=$? | 
 | 17504 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17505 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17506 |   ac_cv_func_dlopen=yes | 
 | 17507 | else | 
 | 17508 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17509 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17510 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17511 | 	ac_cv_func_dlopen=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17512 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17513 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17514 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17515 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17516 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17517 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | 
 | 17518 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17519 | if test $ac_cv_func_dlopen = yes; then | 
 | 17520 |   lt_cv_dlopen="dlopen" | 
 | 17521 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17522 |   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 
 | 17523 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17524 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | 
 | 17525 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17526 | else | 
 | 17527 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17528 | LIBS="-ldl  $LIBS" | 
 | 17529 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17530 | /* confdefs.h.  */ | 
 | 17531 | _ACEOF | 
 | 17532 | cat confdefs.h >>conftest.$ac_ext | 
 | 17533 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17534 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17535 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17536 | /* Override any GCC internal prototype to avoid an error. | 
 | 17537 |    Use char because int might match the return type of a GCC | 
 | 17538 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17539 | #ifdef __cplusplus | 
 | 17540 | extern "C" | 
 | 17541 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17542 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17543 | int | 
 | 17544 | main () | 
 | 17545 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17546 | return dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17547 |   ; | 
 | 17548 |   return 0; | 
 | 17549 | } | 
 | 17550 | _ACEOF | 
 | 17551 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17552 | if { (ac_try="$ac_link" | 
 | 17553 | case "(($ac_try" in | 
 | 17554 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17555 |   *) ac_try_echo=$ac_try;; | 
 | 17556 | esac | 
 | 17557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17558 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17559 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17560 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17561 |   rm -f conftest.er1 | 
 | 17562 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17563 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17564 |   (exit $ac_status); } && | 
 | 17565 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17566 |   { (case "(($ac_try" in | 
 | 17567 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17568 |   *) ac_try_echo=$ac_try;; | 
 | 17569 | esac | 
 | 17570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17571 |   (eval "$ac_try") 2>&5 | 
 | 17572 |   ac_status=$? | 
 | 17573 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17574 |   (exit $ac_status); }; } && | 
 | 17575 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17576 |   { (case "(($ac_try" in | 
 | 17577 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17578 |   *) ac_try_echo=$ac_try;; | 
 | 17579 | esac | 
 | 17580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17581 |   (eval "$ac_try") 2>&5 | 
 | 17582 |   ac_status=$? | 
 | 17583 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17584 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17585 |   ac_cv_lib_dl_dlopen=yes | 
 | 17586 | else | 
 | 17587 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17588 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17589 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17590 | 	ac_cv_lib_dl_dlopen=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17591 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17592 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17593 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17594 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17595 | LIBS=$ac_check_lib_save_LIBS | 
 | 17596 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17597 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 17598 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17599 | if test $ac_cv_lib_dl_dlopen = yes; then | 
 | 17600 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 17601 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17602 |   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | 
 | 17603 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17604 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | 
 | 17605 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17606 | else | 
 | 17607 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17608 | LIBS="-lsvld  $LIBS" | 
 | 17609 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17610 | /* confdefs.h.  */ | 
 | 17611 | _ACEOF | 
 | 17612 | cat confdefs.h >>conftest.$ac_ext | 
 | 17613 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17614 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17615 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17616 | /* Override any GCC internal prototype to avoid an error. | 
 | 17617 |    Use char because int might match the return type of a GCC | 
 | 17618 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17619 | #ifdef __cplusplus | 
 | 17620 | extern "C" | 
 | 17621 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17622 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17623 | int | 
 | 17624 | main () | 
 | 17625 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17626 | return dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17627 |   ; | 
 | 17628 |   return 0; | 
 | 17629 | } | 
 | 17630 | _ACEOF | 
 | 17631 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17632 | if { (ac_try="$ac_link" | 
 | 17633 | case "(($ac_try" in | 
 | 17634 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17635 |   *) ac_try_echo=$ac_try;; | 
 | 17636 | esac | 
 | 17637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17638 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17639 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17640 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17641 |   rm -f conftest.er1 | 
 | 17642 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17643 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17644 |   (exit $ac_status); } && | 
 | 17645 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17646 |   { (case "(($ac_try" in | 
 | 17647 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17648 |   *) ac_try_echo=$ac_try;; | 
 | 17649 | esac | 
 | 17650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17651 |   (eval "$ac_try") 2>&5 | 
 | 17652 |   ac_status=$? | 
 | 17653 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17654 |   (exit $ac_status); }; } && | 
 | 17655 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17656 |   { (case "(($ac_try" in | 
 | 17657 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17658 |   *) ac_try_echo=$ac_try;; | 
 | 17659 | esac | 
 | 17660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17661 |   (eval "$ac_try") 2>&5 | 
 | 17662 |   ac_status=$? | 
 | 17663 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17664 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17665 |   ac_cv_lib_svld_dlopen=yes | 
 | 17666 | else | 
 | 17667 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17668 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17669 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17670 | 	ac_cv_lib_svld_dlopen=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17671 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17672 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17673 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17674 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17675 | LIBS=$ac_check_lib_save_LIBS | 
 | 17676 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17677 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 17678 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17679 | if test $ac_cv_lib_svld_dlopen = yes; then | 
 | 17680 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 17681 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17682 |   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | 
 | 17683 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17684 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | 
 | 17685 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17686 | else | 
 | 17687 |   ac_check_lib_save_LIBS=$LIBS | 
 | 17688 | LIBS="-ldld  $LIBS" | 
 | 17689 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17690 | /* confdefs.h.  */ | 
 | 17691 | _ACEOF | 
 | 17692 | cat confdefs.h >>conftest.$ac_ext | 
 | 17693 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 17694 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17695 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17696 | /* Override any GCC internal prototype to avoid an error. | 
 | 17697 |    Use char because int might match the return type of a GCC | 
 | 17698 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17699 | #ifdef __cplusplus | 
 | 17700 | extern "C" | 
 | 17701 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17702 | char dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17703 | int | 
 | 17704 | main () | 
 | 17705 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17706 | return dld_link (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17707 |   ; | 
 | 17708 |   return 0; | 
 | 17709 | } | 
 | 17710 | _ACEOF | 
 | 17711 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17712 | if { (ac_try="$ac_link" | 
 | 17713 | case "(($ac_try" in | 
 | 17714 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17715 |   *) ac_try_echo=$ac_try;; | 
 | 17716 | esac | 
 | 17717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17718 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17719 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17720 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 17721 |   rm -f conftest.er1 | 
 | 17722 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17723 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17724 |   (exit $ac_status); } && | 
 | 17725 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 17726 |   { (case "(($ac_try" in | 
 | 17727 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17728 |   *) ac_try_echo=$ac_try;; | 
 | 17729 | esac | 
 | 17730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17731 |   (eval "$ac_try") 2>&5 | 
 | 17732 |   ac_status=$? | 
 | 17733 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17734 |   (exit $ac_status); }; } && | 
 | 17735 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 17736 |   { (case "(($ac_try" in | 
 | 17737 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 17738 |   *) ac_try_echo=$ac_try;; | 
 | 17739 | esac | 
 | 17740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 17741 |   (eval "$ac_try") 2>&5 | 
 | 17742 |   ac_status=$? | 
 | 17743 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17744 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17745 |   ac_cv_lib_dld_dld_link=yes | 
 | 17746 | else | 
 | 17747 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17748 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 17749 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17750 | 	ac_cv_lib_dld_dld_link=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17751 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17752 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17753 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17754 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17755 | LIBS=$ac_check_lib_save_LIBS | 
 | 17756 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 17758 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17759 | if test $ac_cv_lib_dld_dld_link = yes; then | 
 | 17760 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 
 | 17761 | fi | 
 | 17762 |  | 
 | 17763 |  | 
 | 17764 | fi | 
 | 17765 |  | 
 | 17766 |  | 
 | 17767 | fi | 
 | 17768 |  | 
 | 17769 |  | 
 | 17770 | fi | 
 | 17771 |  | 
 | 17772 |  | 
 | 17773 | fi | 
 | 17774 |  | 
 | 17775 |  | 
 | 17776 | fi | 
 | 17777 |  | 
 | 17778 |     ;; | 
 | 17779 |   esac | 
 | 17780 |  | 
 | 17781 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 17782 |     enable_dlopen=yes | 
 | 17783 |   else | 
 | 17784 |     enable_dlopen=no | 
 | 17785 |   fi | 
 | 17786 |  | 
 | 17787 |   case $lt_cv_dlopen in | 
 | 17788 |   dlopen) | 
 | 17789 |     save_CPPFLAGS="$CPPFLAGS" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17790 |     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] | 17791 |  | 
 | 17792 |     save_LDFLAGS="$LDFLAGS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17793 |     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17794 |  | 
 | 17795 |     save_LIBS="$LIBS" | 
 | 17796 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 17797 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17798 |     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | 
 | 17799 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17800 | if test "${lt_cv_dlopen_self+set}" = set; then | 
 | 17801 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17802 | else | 
 | 17803 |   	  if test "$cross_compiling" = yes; then : | 
 | 17804 |   lt_cv_dlopen_self=cross | 
 | 17805 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17806 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17807 |   lt_status=$lt_dlunknown | 
 | 17808 |   cat > conftest.$ac_ext <<EOF | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 17809 | #line 17809 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17810 | #include "confdefs.h" | 
 | 17811 |  | 
 | 17812 | #if HAVE_DLFCN_H | 
 | 17813 | #include <dlfcn.h> | 
 | 17814 | #endif | 
 | 17815 |  | 
 | 17816 | #include <stdio.h> | 
 | 17817 |  | 
 | 17818 | #ifdef RTLD_GLOBAL | 
 | 17819 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17820 | #else | 
 | 17821 | #  ifdef DL_GLOBAL | 
 | 17822 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17823 | #  else | 
 | 17824 | #    define LT_DLGLOBAL		0 | 
 | 17825 | #  endif | 
 | 17826 | #endif | 
 | 17827 |  | 
 | 17828 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17829 |    find out it does not work in some platform. */ | 
 | 17830 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17831 | #  ifdef RTLD_LAZY | 
 | 17832 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17833 | #  else | 
 | 17834 | #    ifdef DL_LAZY | 
 | 17835 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17836 | #    else | 
 | 17837 | #      ifdef RTLD_NOW | 
 | 17838 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17839 | #      else | 
 | 17840 | #        ifdef DL_NOW | 
 | 17841 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17842 | #        else | 
 | 17843 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17844 | #        endif | 
 | 17845 | #      endif | 
 | 17846 | #    endif | 
 | 17847 | #  endif | 
 | 17848 | #endif | 
 | 17849 |  | 
 | 17850 | #ifdef __cplusplus | 
 | 17851 | extern "C" void exit (int); | 
 | 17852 | #endif | 
 | 17853 |  | 
 | 17854 | void fnord() { int i=42;} | 
 | 17855 | int main () | 
 | 17856 | { | 
 | 17857 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17858 |   int status = $lt_dlunknown; | 
 | 17859 |  | 
 | 17860 |   if (self) | 
 | 17861 |     { | 
 | 17862 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17863 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17864 |       /* dlclose (self); */ | 
 | 17865 |     } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17866 |   else | 
 | 17867 |     puts (dlerror ()); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17868 |  | 
 | 17869 |     exit (status); | 
 | 17870 | } | 
 | 17871 | EOF | 
 | 17872 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17873 |   (eval $ac_link) 2>&5 | 
 | 17874 |   ac_status=$? | 
 | 17875 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17876 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17877 |     (./conftest; exit; ) >&5 2>/dev/null | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17878 |     lt_status=$? | 
 | 17879 |     case x$lt_status in | 
 | 17880 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 17881 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17882 |       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17883 |     esac | 
 | 17884 |   else : | 
 | 17885 |     # compilation failed | 
 | 17886 |     lt_cv_dlopen_self=no | 
 | 17887 |   fi | 
 | 17888 | fi | 
 | 17889 | rm -fr conftest* | 
 | 17890 |  | 
 | 17891 |  | 
 | 17892 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17893 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | 
 | 17894 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17895 |  | 
 | 17896 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17897 |       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 
 | 17898 |       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 
 | 17899 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17900 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 
 | 17901 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 17902 | else | 
 | 17903 |   	  if test "$cross_compiling" = yes; then : | 
 | 17904 |   lt_cv_dlopen_self_static=cross | 
 | 17905 | else | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17906 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17907 |   lt_status=$lt_dlunknown | 
 | 17908 |   cat > conftest.$ac_ext <<EOF | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 17909 | #line 17909 "configure" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17910 | #include "confdefs.h" | 
 | 17911 |  | 
 | 17912 | #if HAVE_DLFCN_H | 
 | 17913 | #include <dlfcn.h> | 
 | 17914 | #endif | 
 | 17915 |  | 
 | 17916 | #include <stdio.h> | 
 | 17917 |  | 
 | 17918 | #ifdef RTLD_GLOBAL | 
 | 17919 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 17920 | #else | 
 | 17921 | #  ifdef DL_GLOBAL | 
 | 17922 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 17923 | #  else | 
 | 17924 | #    define LT_DLGLOBAL		0 | 
 | 17925 | #  endif | 
 | 17926 | #endif | 
 | 17927 |  | 
 | 17928 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 17929 |    find out it does not work in some platform. */ | 
 | 17930 | #ifndef LT_DLLAZY_OR_NOW | 
 | 17931 | #  ifdef RTLD_LAZY | 
 | 17932 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 17933 | #  else | 
 | 17934 | #    ifdef DL_LAZY | 
 | 17935 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 17936 | #    else | 
 | 17937 | #      ifdef RTLD_NOW | 
 | 17938 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 17939 | #      else | 
 | 17940 | #        ifdef DL_NOW | 
 | 17941 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 17942 | #        else | 
 | 17943 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 17944 | #        endif | 
 | 17945 | #      endif | 
 | 17946 | #    endif | 
 | 17947 | #  endif | 
 | 17948 | #endif | 
 | 17949 |  | 
 | 17950 | #ifdef __cplusplus | 
 | 17951 | extern "C" void exit (int); | 
 | 17952 | #endif | 
 | 17953 |  | 
 | 17954 | void fnord() { int i=42;} | 
 | 17955 | int main () | 
 | 17956 | { | 
 | 17957 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 17958 |   int status = $lt_dlunknown; | 
 | 17959 |  | 
 | 17960 |   if (self) | 
 | 17961 |     { | 
 | 17962 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
 | 17963 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 
 | 17964 |       /* dlclose (self); */ | 
 | 17965 |     } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17966 |   else | 
 | 17967 |     puts (dlerror ()); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17968 |  | 
 | 17969 |     exit (status); | 
 | 17970 | } | 
 | 17971 | EOF | 
 | 17972 |   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
 | 17973 |   (eval $ac_link) 2>&5 | 
 | 17974 |   ac_status=$? | 
 | 17975 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 17976 |   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17977 |     (./conftest; exit; ) >&5 2>/dev/null | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17978 |     lt_status=$? | 
 | 17979 |     case x$lt_status in | 
 | 17980 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 17981 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17982 |       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17983 |     esac | 
 | 17984 |   else : | 
 | 17985 |     # compilation failed | 
 | 17986 |     lt_cv_dlopen_self_static=no | 
 | 17987 |   fi | 
 | 17988 | fi | 
 | 17989 | rm -fr conftest* | 
 | 17990 |  | 
 | 17991 |  | 
 | 17992 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17993 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | 
 | 17994 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17995 |     fi | 
 | 17996 |  | 
 | 17997 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 17998 |     LDFLAGS="$save_LDFLAGS" | 
 | 17999 |     LIBS="$save_LIBS" | 
 | 18000 |     ;; | 
 | 18001 |   esac | 
 | 18002 |  | 
 | 18003 |   case $lt_cv_dlopen_self in | 
 | 18004 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 18005 |   *) enable_dlopen_self=unknown ;; | 
 | 18006 |   esac | 
 | 18007 |  | 
 | 18008 |   case $lt_cv_dlopen_self_static in | 
 | 18009 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 18010 |   *) enable_dlopen_self_static=unknown ;; | 
 | 18011 |   esac | 
 | 18012 | fi | 
 | 18013 |  | 
 | 18014 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18015 | # Report which library types will actually be built | 
 | 18016 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 18017 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | 
 | 18018 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 18019 | echo "${ECHO_T}$can_build_shared" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18020 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18021 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 18022 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18023 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 18024 |  | 
 | 18025 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 18026 | # are all built from PIC. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18027 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18028 | aix3*) | 
 | 18029 |   test "$enable_shared" = yes && enable_static=no | 
 | 18030 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18031 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18032 |     postinstall_cmds='$RANLIB $lib' | 
 | 18033 |   fi | 
 | 18034 |   ;; | 
 | 18035 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18036 | aix4* | aix5*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18037 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 18038 |     test "$enable_shared" = yes && enable_static=no | 
 | 18039 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18040 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18041 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18042 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 18043 | echo "${ECHO_T}$enable_shared" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18044 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18045 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 18046 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18047 | # Make sure either enable_shared or enable_static is yes. | 
 | 18048 | test "$enable_shared" = yes || enable_static=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18049 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 18050 | echo "${ECHO_T}$enable_static" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18051 |  | 
 | 18052 | # The else clause should only fire when bootstrapping the | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18053 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 18054 | # with your package, and you will get complaints that there are | 
 | 18055 | # no rules to generate ltmain.sh. | 
 | 18056 | if test -f "$ltmain"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18057 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 18058 |   # without removal of \ escapes. | 
 | 18059 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 18060 |     setopt NO_GLOB_SUBST | 
 | 18061 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18062 |   # Now quote all the things that may contain metacharacters while being | 
 | 18063 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 18064 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18065 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18066 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18067 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 18068 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 18069 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 18070 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 18071 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18072 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18073 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 18074 |     compiler \ | 
 | 18075 |     CC \ | 
 | 18076 |     LD \ | 
 | 18077 |     lt_prog_compiler_wl \ | 
 | 18078 |     lt_prog_compiler_pic \ | 
 | 18079 |     lt_prog_compiler_static \ | 
 | 18080 |     lt_prog_compiler_no_builtin_flag \ | 
 | 18081 |     export_dynamic_flag_spec \ | 
 | 18082 |     thread_safe_flag_spec \ | 
 | 18083 |     whole_archive_flag_spec \ | 
 | 18084 |     enable_shared_with_static_runtimes \ | 
 | 18085 |     old_archive_cmds \ | 
 | 18086 |     old_archive_from_new_cmds \ | 
 | 18087 |     predep_objects \ | 
 | 18088 |     postdep_objects \ | 
 | 18089 |     predeps \ | 
 | 18090 |     postdeps \ | 
 | 18091 |     compiler_lib_search_path \ | 
 | 18092 |     archive_cmds \ | 
 | 18093 |     archive_expsym_cmds \ | 
 | 18094 |     postinstall_cmds \ | 
 | 18095 |     postuninstall_cmds \ | 
 | 18096 |     old_archive_from_expsyms_cmds \ | 
 | 18097 |     allow_undefined_flag \ | 
 | 18098 |     no_undefined_flag \ | 
 | 18099 |     export_symbols_cmds \ | 
 | 18100 |     hardcode_libdir_flag_spec \ | 
 | 18101 |     hardcode_libdir_flag_spec_ld \ | 
 | 18102 |     hardcode_libdir_separator \ | 
 | 18103 |     hardcode_automatic \ | 
 | 18104 |     module_cmds \ | 
 | 18105 |     module_expsym_cmds \ | 
 | 18106 |     lt_cv_prog_compiler_c_o \ | 
 | 18107 |     exclude_expsyms \ | 
 | 18108 |     include_expsyms; do | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18109 |  | 
 | 18110 |     case $var in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18111 |     old_archive_cmds | \ | 
 | 18112 |     old_archive_from_new_cmds | \ | 
 | 18113 |     archive_cmds | \ | 
 | 18114 |     archive_expsym_cmds | \ | 
 | 18115 |     module_cmds | \ | 
 | 18116 |     module_expsym_cmds | \ | 
 | 18117 |     old_archive_from_expsyms_cmds | \ | 
 | 18118 |     export_symbols_cmds | \ | 
 | 18119 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18120 |     postinstall_cmds | postuninstall_cmds | \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18121 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 18122 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18123 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18124 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18125 |       ;; | 
 | 18126 |     *) | 
 | 18127 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 18128 |       ;; | 
 | 18129 |     esac | 
 | 18130 |   done | 
 | 18131 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18132 |   case $lt_echo in | 
 | 18133 |   *'\$0 --fallback-echo"') | 
 | 18134 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 18135 |     ;; | 
 | 18136 |   esac | 
 | 18137 |  | 
 | 18138 | cfgfile="${ofile}T" | 
 | 18139 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 
 | 18140 |   $rm -f "$cfgfile" | 
 | 18141 |   { echo "$as_me:$LINENO: creating $ofile" >&5 | 
 | 18142 | echo "$as_me: creating $ofile" >&6;} | 
 | 18143 |  | 
 | 18144 |   cat <<__EOF__ >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18145 | #! $SHELL | 
 | 18146 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18147 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18148 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 
 | 18149 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 18150 | # | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18151 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 
 | 18152 | # Free Software Foundation, Inc. | 
 | 18153 | # | 
 | 18154 | # This file is part of GNU Libtool: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18155 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 
 | 18156 | # | 
 | 18157 | # This program is free software; you can redistribute it and/or modify | 
 | 18158 | # it under the terms of the GNU General Public License as published by | 
 | 18159 | # the Free Software Foundation; either version 2 of the License, or | 
 | 18160 | # (at your option) any later version. | 
 | 18161 | # | 
 | 18162 | # This program is distributed in the hope that it will be useful, but | 
 | 18163 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 18164 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | 
 | 18165 | # General Public License for more details. | 
 | 18166 | # | 
 | 18167 | # You should have received a copy of the GNU General Public License | 
 | 18168 | # along with this program; if not, write to the Free Software | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18169 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18170 | # | 
 | 18171 | # As a special exception to the GNU General Public License, if you | 
 | 18172 | # distribute this file as part of a program that contains a | 
 | 18173 | # configuration script generated by Autoconf, you may include it under | 
 | 18174 | # the same distribution terms that you use for the rest of that program. | 
 | 18175 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18176 | # A sed program that does not truncate output. | 
 | 18177 | SED=$lt_SED | 
 | 18178 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18179 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18180 | Xsed="$SED -e 1s/^X//" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18181 |  | 
 | 18182 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 18183 | # if CDPATH is set. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18184 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18185 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18186 | # The names of the tagged configurations supported by this script. | 
 | 18187 | available_tags= | 
 | 18188 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18189 | # ### BEGIN LIBTOOL CONFIG | 
 | 18190 |  | 
 | 18191 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 18192 |  | 
 | 18193 | # Shell to use when invoking shell scripts. | 
 | 18194 | SHELL=$lt_SHELL | 
 | 18195 |  | 
 | 18196 | # Whether or not to build shared libraries. | 
 | 18197 | build_libtool_libs=$enable_shared | 
 | 18198 |  | 
 | 18199 | # Whether or not to build static libraries. | 
 | 18200 | build_old_libs=$enable_static | 
 | 18201 |  | 
 | 18202 | # Whether or not to add -lc for building shared libraries. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18203 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 18204 |  | 
 | 18205 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 18206 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18207 |  | 
 | 18208 | # Whether or not to optimize for fast installation. | 
 | 18209 | fast_install=$enable_fast_install | 
 | 18210 |  | 
 | 18211 | # The host system. | 
 | 18212 | host_alias=$host_alias | 
 | 18213 | host=$host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18214 | host_os=$host_os | 
 | 18215 |  | 
 | 18216 | # The build system. | 
 | 18217 | build_alias=$build_alias | 
 | 18218 | build=$build | 
 | 18219 | build_os=$build_os | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18220 |  | 
 | 18221 | # An echo program that does not interpret backslashes. | 
 | 18222 | echo=$lt_echo | 
 | 18223 |  | 
 | 18224 | # The archiver. | 
 | 18225 | AR=$lt_AR | 
 | 18226 | AR_FLAGS=$lt_AR_FLAGS | 
 | 18227 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18228 | # A C compiler. | 
 | 18229 | LTCC=$lt_LTCC | 
 | 18230 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18231 | # LTCC compiler flags. | 
 | 18232 | LTCFLAGS=$lt_LTCFLAGS | 
 | 18233 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18234 | # A language-specific compiler. | 
 | 18235 | CC=$lt_compiler | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18236 |  | 
 | 18237 | # Is the compiler the GNU C compiler? | 
 | 18238 | with_gcc=$GCC | 
 | 18239 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18240 | # An ERE matcher. | 
 | 18241 | EGREP=$lt_EGREP | 
 | 18242 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18243 | # The linker used to build libraries. | 
 | 18244 | LD=$lt_LD | 
 | 18245 |  | 
 | 18246 | # Whether we need hard or soft links. | 
 | 18247 | LN_S=$lt_LN_S | 
 | 18248 |  | 
 | 18249 | # A BSD-compatible nm program. | 
 | 18250 | NM=$lt_NM | 
 | 18251 |  | 
 | 18252 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18253 | STRIP=$lt_STRIP | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18254 |  | 
 | 18255 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 18256 | MAGIC_CMD=$MAGIC_CMD | 
 | 18257 |  | 
 | 18258 | # Used on cygwin: DLL creation program. | 
 | 18259 | DLLTOOL="$DLLTOOL" | 
 | 18260 |  | 
 | 18261 | # Used on cygwin: object dumper. | 
 | 18262 | OBJDUMP="$OBJDUMP" | 
 | 18263 |  | 
 | 18264 | # Used on cygwin: assembler. | 
 | 18265 | AS="$AS" | 
 | 18266 |  | 
 | 18267 | # The name of the directory that contains temporary libtool files. | 
 | 18268 | objdir=$objdir | 
 | 18269 |  | 
 | 18270 | # How to create reloadable object files. | 
 | 18271 | reload_flag=$lt_reload_flag | 
 | 18272 | reload_cmds=$lt_reload_cmds | 
 | 18273 |  | 
 | 18274 | # How to pass a linker flag through the compiler. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18275 | wl=$lt_lt_prog_compiler_wl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18276 |  | 
 | 18277 | # Object file suffix (normally "o"). | 
 | 18278 | objext="$ac_objext" | 
 | 18279 |  | 
 | 18280 | # Old archive suffix (normally "a"). | 
 | 18281 | libext="$libext" | 
 | 18282 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18283 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18284 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18285 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18286 | # Executable file suffix (normally ""). | 
 | 18287 | exeext="$exeext" | 
 | 18288 |  | 
 | 18289 | # Additional compiler flags for building library objects. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18290 | pic_flag=$lt_lt_prog_compiler_pic | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18291 | pic_mode=$pic_mode | 
 | 18292 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | # What is the maximum length of a command? | 
 | 18294 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18295 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18296 | # Does compiler simultaneously support -c and -o options? | 
 | 18297 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18298 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18299 | # Must we lock files when doing compilation? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18300 | need_locks=$lt_need_locks | 
 | 18301 |  | 
 | 18302 | # Do we need the lib prefix for modules? | 
 | 18303 | need_lib_prefix=$need_lib_prefix | 
 | 18304 |  | 
 | 18305 | # Do we need a version for libraries? | 
 | 18306 | need_version=$need_version | 
 | 18307 |  | 
 | 18308 | # Whether dlopen is supported. | 
 | 18309 | dlopen_support=$enable_dlopen | 
 | 18310 |  | 
 | 18311 | # Whether dlopen of programs is supported. | 
 | 18312 | dlopen_self=$enable_dlopen_self | 
 | 18313 |  | 
 | 18314 | # Whether dlopen of statically linked programs is supported. | 
 | 18315 | dlopen_self_static=$enable_dlopen_self_static | 
 | 18316 |  | 
 | 18317 | # Compiler flag to prevent dynamic linking. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18318 | link_static_flag=$lt_lt_prog_compiler_static | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18319 |  | 
 | 18320 | # Compiler flag to turn off builtin functions. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18321 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18322 |  | 
 | 18323 | # Compiler flag to allow reflexive dlopens. | 
 | 18324 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 18325 |  | 
 | 18326 | # Compiler flag to generate shared objects directly from archives. | 
 | 18327 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 18328 |  | 
 | 18329 | # Compiler flag to generate thread-safe objects. | 
 | 18330 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | 
 | 18331 |  | 
 | 18332 | # Library versioning type. | 
 | 18333 | version_type=$version_type | 
 | 18334 |  | 
 | 18335 | # Format of library name prefix. | 
 | 18336 | libname_spec=$lt_libname_spec | 
 | 18337 |  | 
 | 18338 | # List of archive names.  First name is the real one, the rest are links. | 
 | 18339 | # The last name is the one that the linker finds with -lNAME. | 
 | 18340 | library_names_spec=$lt_library_names_spec | 
 | 18341 |  | 
 | 18342 | # The coded name of the library, if different from the real name. | 
 | 18343 | soname_spec=$lt_soname_spec | 
 | 18344 |  | 
 | 18345 | # Commands used to build and install an old-style archive. | 
 | 18346 | RANLIB=$lt_RANLIB | 
 | 18347 | old_archive_cmds=$lt_old_archive_cmds | 
 | 18348 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 18349 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 18350 |  | 
 | 18351 | # Create an old-style archive from a shared archive. | 
 | 18352 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 18353 |  | 
 | 18354 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 18355 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 18356 |  | 
 | 18357 | # Commands used to build and install a shared archive. | 
 | 18358 | archive_cmds=$lt_archive_cmds | 
 | 18359 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 18360 | postinstall_cmds=$lt_postinstall_cmds | 
 | 18361 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 18362 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18363 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 18364 | module_cmds=$lt_module_cmds | 
 | 18365 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 18366 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18367 | # Commands to strip libraries. | 
 | 18368 | old_striplib=$lt_old_striplib | 
 | 18369 | striplib=$lt_striplib | 
 | 18370 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18371 | # Dependencies to place before the objects being linked to create a | 
 | 18372 | # shared library. | 
 | 18373 | predep_objects=$lt_predep_objects | 
 | 18374 |  | 
 | 18375 | # Dependencies to place after the objects being linked to create a | 
 | 18376 | # shared library. | 
 | 18377 | postdep_objects=$lt_postdep_objects | 
 | 18378 |  | 
 | 18379 | # Dependencies to place before the objects being linked to create a | 
 | 18380 | # shared library. | 
 | 18381 | predeps=$lt_predeps | 
 | 18382 |  | 
 | 18383 | # Dependencies to place after the objects being linked to create a | 
 | 18384 | # shared library. | 
 | 18385 | postdeps=$lt_postdeps | 
 | 18386 |  | 
 | 18387 | # The library search path used internally by the compiler when linking | 
 | 18388 | # a shared library. | 
 | 18389 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 18390 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18391 | # Method to check whether dependent libraries are shared objects. | 
 | 18392 | deplibs_check_method=$lt_deplibs_check_method | 
 | 18393 |  | 
 | 18394 | # Command to use when deplibs_check_method == file_magic. | 
 | 18395 | file_magic_cmd=$lt_file_magic_cmd | 
 | 18396 |  | 
 | 18397 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 18398 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 18399 |  | 
 | 18400 | # Flag that forces no undefined symbols. | 
 | 18401 | no_undefined_flag=$lt_no_undefined_flag | 
 | 18402 |  | 
 | 18403 | # Commands used to finish a libtool library installation in a directory. | 
 | 18404 | finish_cmds=$lt_finish_cmds | 
 | 18405 |  | 
 | 18406 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 18407 | finish_eval=$lt_finish_eval | 
 | 18408 |  | 
 | 18409 | # 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] | 18410 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18411 |  | 
 | 18412 | # Transform the output of nm in a proper C declaration | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18413 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18414 |  | 
 | 18415 | # Transform the output of nm in a C name address pair | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18416 | 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] | 18417 |  | 
 | 18418 | # This is the shared library runtime path variable. | 
 | 18419 | runpath_var=$runpath_var | 
 | 18420 |  | 
 | 18421 | # This is the shared library path variable. | 
 | 18422 | shlibpath_var=$shlibpath_var | 
 | 18423 |  | 
 | 18424 | # Is shlibpath searched before the hard-coded library search path? | 
 | 18425 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 18426 |  | 
 | 18427 | # How to hardcode a shared library path into an executable. | 
 | 18428 | hardcode_action=$hardcode_action | 
 | 18429 |  | 
 | 18430 | # Whether we should hardcode library paths into libraries. | 
 | 18431 | hardcode_into_libs=$hardcode_into_libs | 
 | 18432 |  | 
 | 18433 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 18434 | # This must work even if \$libdir does not exist. | 
 | 18435 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 18436 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18437 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 18438 | # a binary during linking. This must work even if \$libdir does | 
 | 18439 | # not exist. | 
 | 18440 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
 | 18441 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18442 | # Whether we need a single -rpath flag with a separated argument. | 
 | 18443 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 18444 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18445 | # 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] | 18446 | # resulting binary. | 
 | 18447 | hardcode_direct=$hardcode_direct | 
 | 18448 |  | 
 | 18449 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 18450 | # resulting binary. | 
 | 18451 | hardcode_minus_L=$hardcode_minus_L | 
 | 18452 |  | 
 | 18453 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 18454 | # the resulting binary. | 
 | 18455 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 18456 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 18458 | # and all subsequent libraries and executables linked against it. | 
 | 18459 | hardcode_automatic=$hardcode_automatic | 
 | 18460 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18461 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 18462 | # restored at relink time. | 
 | 18463 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 18464 |  | 
 | 18465 | # Whether libtool must link a program against all its dependency libraries. | 
 | 18466 | link_all_deplibs=$link_all_deplibs | 
 | 18467 |  | 
 | 18468 | # Compile-time system search path for libraries | 
 | 18469 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 18470 |  | 
 | 18471 | # Run-time system search path for libraries | 
 | 18472 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 18473 |  | 
 | 18474 | # Fix the shell variable \$srcfile for the compiler. | 
 | 18475 | fix_srcfile_path="$fix_srcfile_path" | 
 | 18476 |  | 
 | 18477 | # Set to yes if exported symbols are required. | 
 | 18478 | always_export_symbols=$always_export_symbols | 
 | 18479 |  | 
 | 18480 | # The commands to list exported symbols. | 
 | 18481 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 18482 |  | 
 | 18483 | # The commands to extract the exported symbol list from a shared archive. | 
 | 18484 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 18485 |  | 
 | 18486 | # Symbols that should not be listed in the preloaded symbols. | 
 | 18487 | exclude_expsyms=$lt_exclude_expsyms | 
 | 18488 |  | 
 | 18489 | # Symbols that must always be exported. | 
 | 18490 | include_expsyms=$lt_include_expsyms | 
 | 18491 |  | 
 | 18492 | # ### END LIBTOOL CONFIG | 
 | 18493 |  | 
 | 18494 | __EOF__ | 
 | 18495 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18496 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18497 |   case $host_os in | 
 | 18498 |   aix3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18499 |     cat <<\EOF >> "$cfgfile" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18500 |  | 
 | 18501 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 18502 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 18503 | # vanish in a puff of smoke. | 
 | 18504 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 18505 |   COLLECT_NAMES= | 
 | 18506 |   export COLLECT_NAMES | 
 | 18507 | fi | 
 | 18508 | EOF | 
 | 18509 |     ;; | 
 | 18510 |   esac | 
 | 18511 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18512 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 18513 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 18514 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 18515 |   # is reportedly fixed, but why not run on old versions too? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18516 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18517 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18518 |   mv -f "$cfgfile" "$ofile" || \ | 
 | 18519 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18520 |   chmod +x "$ofile" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18521 |  | 
 | 18522 | else | 
 | 18523 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 18524 |   # `config.status --recheck' to rerun these tests and create the | 
 | 18525 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18526 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 18527 |   if test -f "$ltmain_in"; then | 
 | 18528 |     test -f Makefile && make "$ltmain" | 
 | 18529 |   fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18530 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18531 |  | 
 | 18532 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18533 | ac_ext=c | 
 | 18534 | ac_cpp='$CPP $CPPFLAGS' | 
 | 18535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 18538 |  | 
 | 18539 | CC="$lt_save_CC" | 
 | 18540 |  | 
 | 18541 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18542 | # Check whether --with-tags was given. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18543 | if test "${with_tags+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18544 |   withval=$with_tags; tagnames="$withval" | 
 | 18545 | fi | 
 | 18546 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18547 |  | 
 | 18548 | if test -f "$ltmain" && test -n "$tagnames"; then | 
 | 18549 |   if test ! -f "${ofile}"; then | 
 | 18550 |     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 
 | 18551 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 
 | 18552 |   fi | 
 | 18553 |  | 
 | 18554 |   if test -z "$LTCC"; then | 
 | 18555 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 
 | 18556 |     if test -z "$LTCC"; then | 
 | 18557 |       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 
 | 18558 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 
 | 18559 |     else | 
 | 18560 |       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | 
 | 18561 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 
 | 18562 |     fi | 
 | 18563 |   fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18564 |   if test -z "$LTCFLAGS"; then | 
 | 18565 |     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | 
 | 18566 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18567 |  | 
 | 18568 |   # Extract list of available tagged configurations in $ofile. | 
 | 18569 |   # Note that this assumes the entire list is on one line. | 
 | 18570 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 
 | 18571 |  | 
 | 18572 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 18573 |   for tagname in $tagnames; do | 
 | 18574 |     IFS="$lt_save_ifs" | 
 | 18575 |     # Check whether tagname contains only valid characters | 
 | 18576 |     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | 
 | 18577 |     "") ;; | 
 | 18578 |     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | 
 | 18579 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | 
 | 18580 |    { (exit 1); exit 1; }; } | 
 | 18581 | 	;; | 
 | 18582 |     esac | 
 | 18583 |  | 
 | 18584 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | 
 | 18585 |     then | 
 | 18586 |       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | 
 | 18587 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | 
 | 18588 |    { (exit 1); exit 1; }; } | 
 | 18589 |     fi | 
 | 18590 |  | 
 | 18591 |     # Update the list of available tags. | 
 | 18592 |     if test -n "$tagname"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18593 |       echo appending configuration tag \"$tagname\" to $ofile | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18594 |  | 
 | 18595 |       case $tagname in | 
 | 18596 |       CXX) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18597 | 	if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 18598 | 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 18599 | 	    (test "X$CXX" != "Xg++"))) ; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18600 | 	  ac_ext=cpp | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18601 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 18602 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 18603 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 18604 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 18605 |  | 
 | 18606 |  | 
 | 18607 |  | 
 | 18608 |  | 
 | 18609 | archive_cmds_need_lc_CXX=no | 
 | 18610 | allow_undefined_flag_CXX= | 
 | 18611 | always_export_symbols_CXX=no | 
 | 18612 | archive_expsym_cmds_CXX= | 
 | 18613 | export_dynamic_flag_spec_CXX= | 
 | 18614 | hardcode_direct_CXX=no | 
 | 18615 | hardcode_libdir_flag_spec_CXX= | 
 | 18616 | hardcode_libdir_flag_spec_ld_CXX= | 
 | 18617 | hardcode_libdir_separator_CXX= | 
 | 18618 | hardcode_minus_L_CXX=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18619 | hardcode_shlibpath_var_CXX=unsupported | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18620 | hardcode_automatic_CXX=no | 
 | 18621 | module_cmds_CXX= | 
 | 18622 | module_expsym_cmds_CXX= | 
 | 18623 | link_all_deplibs_CXX=unknown | 
 | 18624 | old_archive_cmds_CXX=$old_archive_cmds | 
 | 18625 | no_undefined_flag_CXX= | 
 | 18626 | whole_archive_flag_spec_CXX= | 
 | 18627 | enable_shared_with_static_runtimes_CXX=no | 
 | 18628 |  | 
 | 18629 | # Dependencies to place before and after the object being linked: | 
 | 18630 | predep_objects_CXX= | 
 | 18631 | postdep_objects_CXX= | 
 | 18632 | predeps_CXX= | 
 | 18633 | postdeps_CXX= | 
 | 18634 | compiler_lib_search_path_CXX= | 
 | 18635 |  | 
 | 18636 | # Source file extension for C++ test sources. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18637 | ac_ext=cpp | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18638 |  | 
 | 18639 | # Object file extension for compiled C++ test sources. | 
 | 18640 | objext=o | 
 | 18641 | objext_CXX=$objext | 
 | 18642 |  | 
 | 18643 | # Code to be used in simple compile tests | 
 | 18644 | lt_simple_compile_test_code="int some_variable = 0;\n" | 
 | 18645 |  | 
 | 18646 | # Code to be used in simple link tests | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18647 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18648 |  | 
 | 18649 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 18650 |  | 
 | 18651 | # If no C compiler was specified, use CC. | 
 | 18652 | LTCC=${LTCC-"$CC"} | 
 | 18653 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18654 | # If no C compiler flags were specified, use CFLAGS. | 
 | 18655 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 18656 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18657 | # Allow CC to be a program name with arguments. | 
 | 18658 | compiler=$CC | 
 | 18659 |  | 
 | 18660 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18661 | # save warnings/boilerplate of simple test code | 
 | 18662 | ac_outfile=conftest.$ac_objext | 
 | 18663 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 18664 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 18665 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 18666 | $rm conftest* | 
 | 18667 |  | 
 | 18668 | ac_outfile=conftest.$ac_objext | 
 | 18669 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 18670 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 18671 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 18672 | $rm conftest* | 
 | 18673 |  | 
 | 18674 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18675 | # Allow CC to be a program name with arguments. | 
 | 18676 | lt_save_CC=$CC | 
 | 18677 | lt_save_LD=$LD | 
 | 18678 | lt_save_GCC=$GCC | 
 | 18679 | GCC=$GXX | 
 | 18680 | lt_save_with_gnu_ld=$with_gnu_ld | 
 | 18681 | lt_save_path_LD=$lt_cv_path_LD | 
 | 18682 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 18683 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 18684 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18685 |   $as_unset lt_cv_prog_gnu_ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18686 | fi | 
 | 18687 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 18688 |   lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 18689 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18690 |   $as_unset lt_cv_path_LD | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18691 | fi | 
 | 18692 | test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 18693 | CC=${CXX-"c++"} | 
 | 18694 | compiler=$CC | 
 | 18695 | compiler_CXX=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18696 | for cc_temp in $compiler""; do | 
 | 18697 |   case $cc_temp in | 
 | 18698 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 18699 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 18700 |     \-*) ;; | 
 | 18701 |     *) break;; | 
 | 18702 |   esac | 
 | 18703 | done | 
 | 18704 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
 | 18705 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18706 |  | 
 | 18707 | # We don't want -fno-exception wen compiling C++ code, so set the | 
 | 18708 | # no_builtin_flag separately | 
 | 18709 | if test "$GXX" = yes; then | 
 | 18710 |   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 18711 | else | 
 | 18712 |   lt_prog_compiler_no_builtin_flag_CXX= | 
 | 18713 | fi | 
 | 18714 |  | 
 | 18715 | if test "$GXX" = yes; then | 
 | 18716 |   # Set up default GNU C++ configuration | 
 | 18717 |  | 
 | 18718 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18719 | # Check whether --with-gnu-ld was given. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18720 | if test "${with_gnu_ld+set}" = set; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18721 |   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18722 | else | 
 | 18723 |   with_gnu_ld=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18724 | fi | 
 | 18725 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18726 | ac_prog=ld | 
 | 18727 | if test "$GCC" = yes; then | 
 | 18728 |   # Check if gcc -print-prog-name=ld gives a path. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18729 |   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | 
 | 18730 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18731 |   case $host in | 
 | 18732 |   *-*-mingw*) | 
 | 18733 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 18734 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 18735 |   *) | 
 | 18736 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 18737 |   esac | 
 | 18738 |   case $ac_prog in | 
 | 18739 |     # Accept absolute paths. | 
 | 18740 |     [\\/]* | ?:[\\/]*) | 
 | 18741 |       re_direlt='/[^/][^/]*/\.\./' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18742 |       # Canonicalize the pathname of ld | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18743 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 
 | 18744 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 18745 | 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 18746 |       done | 
 | 18747 |       test -z "$LD" && LD="$ac_prog" | 
 | 18748 |       ;; | 
 | 18749 |   "") | 
 | 18750 |     # If it fails, then pretend we aren't using GCC. | 
 | 18751 |     ac_prog=ld | 
 | 18752 |     ;; | 
 | 18753 |   *) | 
 | 18754 |     # If it is relative, then search for the first ld in PATH. | 
 | 18755 |     with_gnu_ld=unknown | 
 | 18756 |     ;; | 
 | 18757 |   esac | 
 | 18758 | elif test "$with_gnu_ld" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18759 |   { echo "$as_me:$LINENO: checking for GNU ld" >&5 | 
 | 18760 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18761 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18762 |   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | 
 | 18763 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18764 | fi | 
 | 18765 | if test "${lt_cv_path_LD+set}" = set; then | 
 | 18766 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18767 | else | 
 | 18768 |   if test -z "$LD"; then | 
 | 18769 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 18770 |   for ac_dir in $PATH; do | 
 | 18771 |     IFS="$lt_save_ifs" | 
 | 18772 |     test -z "$ac_dir" && ac_dir=. | 
 | 18773 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 18774 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 18775 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18776 |       # but apparently some variants of GNU ld only accept -v. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18777 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 18778 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 18779 |       *GNU* | *'with BFD'*) | 
 | 18780 | 	test "$with_gnu_ld" != no && break | 
 | 18781 | 	;; | 
 | 18782 |       *) | 
 | 18783 | 	test "$with_gnu_ld" != yes && break | 
 | 18784 | 	;; | 
 | 18785 |       esac | 
 | 18786 |     fi | 
 | 18787 |   done | 
 | 18788 |   IFS="$lt_save_ifs" | 
 | 18789 | else | 
 | 18790 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 18791 | fi | 
 | 18792 | fi | 
 | 18793 |  | 
 | 18794 | LD="$lt_cv_path_LD" | 
 | 18795 | if test -n "$LD"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18796 |   { echo "$as_me:$LINENO: result: $LD" >&5 | 
 | 18797 | echo "${ECHO_T}$LD" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18798 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18799 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 18800 | echo "${ECHO_T}no" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18801 | fi | 
 | 18802 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | 
 | 18803 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | 
 | 18804 |    { (exit 1); exit 1; }; } | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18805 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | 
 | 18806 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18807 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | 
 | 18808 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 18809 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18810 |   # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18811 | case `$LD -v 2>&1 </dev/null` in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18812 | *GNU* | *'with BFD'*) | 
 | 18813 |   lt_cv_prog_gnu_ld=yes | 
 | 18814 |   ;; | 
 | 18815 | *) | 
 | 18816 |   lt_cv_prog_gnu_ld=no | 
 | 18817 |   ;; | 
 | 18818 | esac | 
 | 18819 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18820 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 18821 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18822 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 18823 |  | 
 | 18824 |  | 
 | 18825 |  | 
 | 18826 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 18827 |   # archiving commands below assume that GNU ld is being used. | 
 | 18828 |   if test "$with_gnu_ld" = yes; then | 
 | 18829 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 18830 |     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' | 
 | 18831 |  | 
 | 18832 |     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 18833 |     export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 18834 |  | 
 | 18835 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 18836 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 18837 |     #     investigate it a little bit more. (MM) | 
 | 18838 |     wlarc='${wl}' | 
 | 18839 |  | 
 | 18840 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 18841 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | 
 | 18842 | 	grep 'no-whole-archive' > /dev/null; then | 
 | 18843 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 18844 |     else | 
 | 18845 |       whole_archive_flag_spec_CXX= | 
 | 18846 |     fi | 
 | 18847 |   else | 
 | 18848 |     with_gnu_ld=no | 
 | 18849 |     wlarc= | 
 | 18850 |  | 
 | 18851 |     # A generic and very simple default shared library creation | 
 | 18852 |     # command for GNU C++ for the case where it uses the native | 
 | 18853 |     # linker, instead of GNU ld.  If possible, this setting should | 
 | 18854 |     # overridden to take advantage of the native linker features on | 
 | 18855 |     # the platform it is being used on. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18856 |     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18857 |   fi | 
 | 18858 |  | 
 | 18859 |   # Commands to make compiler produce verbose output that lists | 
 | 18860 |   # what "hidden" libraries, object files and flags are used when | 
 | 18861 |   # linking a shared library. | 
 | 18862 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 18863 |  | 
 | 18864 | else | 
 | 18865 |   GXX=no | 
 | 18866 |   with_gnu_ld=no | 
 | 18867 |   wlarc= | 
 | 18868 | fi | 
 | 18869 |  | 
 | 18870 | # PORTME: fill in a description of your system's C++ link characteristics | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18871 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 18872 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18873 | ld_shlibs_CXX=yes | 
 | 18874 | case $host_os in | 
 | 18875 |   aix3*) | 
 | 18876 |     # FIXME: insert proper C++ library support | 
 | 18877 |     ld_shlibs_CXX=no | 
 | 18878 |     ;; | 
 | 18879 |   aix4* | aix5*) | 
 | 18880 |     if test "$host_cpu" = ia64; then | 
 | 18881 |       # On IA64, the linker does run time linking by default, so we don't | 
 | 18882 |       # have to do anything special. | 
 | 18883 |       aix_use_runtimelinking=no | 
 | 18884 |       exp_sym_flag='-Bexport' | 
 | 18885 |       no_entry_flag="" | 
 | 18886 |     else | 
 | 18887 |       aix_use_runtimelinking=no | 
 | 18888 |  | 
 | 18889 |       # Test if we are trying to use run time linking or normal | 
 | 18890 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 18891 |       # need to do runtime linking. | 
 | 18892 |       case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 18893 | 	for ld_flag in $LDFLAGS; do | 
 | 18894 | 	  case $ld_flag in | 
 | 18895 | 	  *-brtl*) | 
 | 18896 | 	    aix_use_runtimelinking=yes | 
 | 18897 | 	    break | 
 | 18898 | 	    ;; | 
 | 18899 | 	  esac | 
 | 18900 | 	done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18901 | 	;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18902 |       esac | 
 | 18903 |  | 
 | 18904 |       exp_sym_flag='-bexport' | 
 | 18905 |       no_entry_flag='-bnoentry' | 
 | 18906 |     fi | 
 | 18907 |  | 
 | 18908 |     # When large executables or shared objects are built, AIX ld can | 
 | 18909 |     # have problems creating the table of contents.  If linking a library | 
 | 18910 |     # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 18911 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 18912 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 18913 |  | 
 | 18914 |     archive_cmds_CXX='' | 
 | 18915 |     hardcode_direct_CXX=yes | 
 | 18916 |     hardcode_libdir_separator_CXX=':' | 
 | 18917 |     link_all_deplibs_CXX=yes | 
 | 18918 |  | 
 | 18919 |     if test "$GXX" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18920 |       case $host_os in aix4.[012]|aix4.[012].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18921 |       # We only want to do this on AIX 4.2 and lower, the check | 
 | 18922 |       # below for broken collect2 doesn't work under 4.3+ | 
 | 18923 | 	collect2name=`${CC} -print-prog-name=collect2` | 
 | 18924 | 	if test -f "$collect2name" && \ | 
 | 18925 | 	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 18926 | 	then | 
 | 18927 | 	  # We have reworked collect2 | 
 | 18928 | 	  hardcode_direct_CXX=yes | 
 | 18929 | 	else | 
 | 18930 | 	  # We have old collect2 | 
 | 18931 | 	  hardcode_direct_CXX=unsupported | 
 | 18932 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 18933 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 18934 | 	  # to unsupported forces relinking | 
 | 18935 | 	  hardcode_minus_L_CXX=yes | 
 | 18936 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 18937 | 	  hardcode_libdir_separator_CXX= | 
 | 18938 | 	fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18939 | 	;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18940 |       esac | 
 | 18941 |       shared_flag='-shared' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18942 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 18943 | 	shared_flag="$shared_flag "'${wl}-G' | 
 | 18944 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18945 |     else | 
 | 18946 |       # not using gcc | 
 | 18947 |       if test "$host_cpu" = ia64; then | 
 | 18948 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 18949 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 18950 | 	shared_flag='-G' | 
 | 18951 |       else | 
 | 18952 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 18953 | 	  shared_flag='${wl}-G' | 
 | 18954 | 	else | 
 | 18955 | 	  shared_flag='${wl}-bM:SRE' | 
 | 18956 | 	fi | 
 | 18957 |       fi | 
 | 18958 |     fi | 
 | 18959 |  | 
 | 18960 |     # It seems that -bexpall does not export symbols beginning with | 
 | 18961 |     # underscore (_), so it is better to generate a list of symbols to export. | 
 | 18962 |     always_export_symbols_CXX=yes | 
 | 18963 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 18964 |       # Warning - without using the other runtime loading flags (-brtl), | 
 | 18965 |       # -berok will link without error, but may produce a broken library. | 
 | 18966 |       allow_undefined_flag_CXX='-berok' | 
 | 18967 |       # Determine the default libpath from the value encoded in an empty executable. | 
 | 18968 |       cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18969 | /* confdefs.h.  */ | 
 | 18970 | _ACEOF | 
 | 18971 | cat confdefs.h >>conftest.$ac_ext | 
 | 18972 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 18973 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18974 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18975 | int | 
 | 18976 | main () | 
 | 18977 | { | 
 | 18978 |  | 
 | 18979 |   ; | 
 | 18980 |   return 0; | 
 | 18981 | } | 
 | 18982 | _ACEOF | 
 | 18983 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18984 | if { (ac_try="$ac_link" | 
 | 18985 | case "(($ac_try" in | 
 | 18986 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 18987 |   *) ac_try_echo=$ac_try;; | 
 | 18988 | esac | 
 | 18989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 18990 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18991 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18992 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 18993 |   rm -f conftest.er1 | 
 | 18994 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18995 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18996 |   (exit $ac_status); } && | 
 | 18997 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 18998 |   { (case "(($ac_try" in | 
 | 18999 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 19000 |   *) ac_try_echo=$ac_try;; | 
 | 19001 | esac | 
 | 19002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 19003 |   (eval "$ac_try") 2>&5 | 
 | 19004 |   ac_status=$? | 
 | 19005 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19006 |   (exit $ac_status); }; } && | 
 | 19007 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 19008 |   { (case "(($ac_try" in | 
 | 19009 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 19010 |   *) ac_try_echo=$ac_try;; | 
 | 19011 | esac | 
 | 19012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 19013 |   (eval "$ac_try") 2>&5 | 
 | 19014 |   ac_status=$? | 
 | 19015 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19016 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19017 |  | 
 | 19018 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19019 | }'` | 
 | 19020 | # Check for a 64-bit object if we didn't find anything. | 
 | 19021 | 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; } | 
 | 19022 | }'`; fi | 
 | 19023 | else | 
 | 19024 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19025 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19026 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19027 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19028 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19029 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19030 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19031 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19032 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19033 |  | 
 | 19034 |       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19035 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19036 |       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19037 |      else | 
 | 19038 |       if test "$host_cpu" = ia64; then | 
 | 19039 | 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 19040 | 	allow_undefined_flag_CXX="-z nodefs" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19041 | 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19042 |       else | 
 | 19043 | 	# Determine the default libpath from the value encoded in an empty executable. | 
 | 19044 | 	cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19045 | /* confdefs.h.  */ | 
 | 19046 | _ACEOF | 
 | 19047 | cat confdefs.h >>conftest.$ac_ext | 
 | 19048 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 19049 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19050 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19051 | int | 
 | 19052 | main () | 
 | 19053 | { | 
 | 19054 |  | 
 | 19055 |   ; | 
 | 19056 |   return 0; | 
 | 19057 | } | 
 | 19058 | _ACEOF | 
 | 19059 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19060 | if { (ac_try="$ac_link" | 
 | 19061 | case "(($ac_try" in | 
 | 19062 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 19063 |   *) ac_try_echo=$ac_try;; | 
 | 19064 | esac | 
 | 19065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 19066 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19067 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19068 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 19069 |   rm -f conftest.er1 | 
 | 19070 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19071 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19072 |   (exit $ac_status); } && | 
 | 19073 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 19074 |   { (case "(($ac_try" in | 
 | 19075 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 19076 |   *) ac_try_echo=$ac_try;; | 
 | 19077 | esac | 
 | 19078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 19079 |   (eval "$ac_try") 2>&5 | 
 | 19080 |   ac_status=$? | 
 | 19081 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19082 |   (exit $ac_status); }; } && | 
 | 19083 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 19084 |   { (case "(($ac_try" in | 
 | 19085 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 19086 |   *) ac_try_echo=$ac_try;; | 
 | 19087 | esac | 
 | 19088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 19089 |   (eval "$ac_try") 2>&5 | 
 | 19090 |   ac_status=$? | 
 | 19091 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19092 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19093 |  | 
 | 19094 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 19095 | }'` | 
 | 19096 | # Check for a 64-bit object if we didn't find anything. | 
 | 19097 | 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; } | 
 | 19098 | }'`; fi | 
 | 19099 | else | 
 | 19100 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19101 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 19102 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19103 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19104 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19105 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 19106 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19107 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19108 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 19109 |  | 
 | 19110 | 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 19111 | 	# Warning - without using the other run time loading flags, | 
 | 19112 | 	# -berok will link without error, but may produce a broken library. | 
 | 19113 | 	no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 19114 | 	allow_undefined_flag_CXX=' ${wl}-berok' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19115 | 	# Exported symbols can be pulled into shared objects from archives | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19116 | 	whole_archive_flag_spec_CXX='$convenience' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19117 | 	archive_cmds_need_lc_CXX=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19118 | 	# This is similar to how AIX traditionally builds its shared libraries. | 
 | 19119 | 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19120 |       fi | 
 | 19121 |     fi | 
 | 19122 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19123 |  | 
 | 19124 |   beos*) | 
 | 19125 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 19126 |       allow_undefined_flag_CXX=unsupported | 
 | 19127 |       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 19128 |       # support --undefined.  This deserves some investigation.  FIXME | 
 | 19129 |       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19130 |     else | 
 | 19131 |       ld_shlibs_CXX=no | 
 | 19132 |     fi | 
 | 19133 |     ;; | 
 | 19134 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19135 |   chorus*) | 
 | 19136 |     case $cc_basename in | 
 | 19137 |       *) | 
 | 19138 | 	# FIXME: insert proper C++ library support | 
 | 19139 | 	ld_shlibs_CXX=no | 
 | 19140 | 	;; | 
 | 19141 |     esac | 
 | 19142 |     ;; | 
 | 19143 |  | 
 | 19144 |   cygwin* | mingw* | pw32*) | 
 | 19145 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 19146 |     # as there is no search path for DLLs. | 
 | 19147 |     hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 19148 |     allow_undefined_flag_CXX=unsupported | 
 | 19149 |     always_export_symbols_CXX=no | 
 | 19150 |     enable_shared_with_static_runtimes_CXX=yes | 
 | 19151 |  | 
 | 19152 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19153 |       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19154 |       # If the export-symbols file already is a .def file (1st line | 
 | 19155 |       # is EXPORTS), use it as is; otherwise, prepend... | 
 | 19156 |       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 19157 | 	cp $export_symbols $output_objdir/$soname.def; | 
 | 19158 |       else | 
 | 19159 | 	echo EXPORTS > $output_objdir/$soname.def; | 
 | 19160 | 	cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19161 |       fi~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19162 |       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19163 |     else | 
 | 19164 |       ld_shlibs_CXX=no | 
 | 19165 |     fi | 
 | 19166 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19167 |       darwin* | rhapsody*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19168 |         case $host_os in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19169 |         rhapsody* | darwin1.[012]) | 
 | 19170 |          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | 
 | 19171 |          ;; | 
 | 19172 |        *) # Darwin 1.3 on | 
 | 19173 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 19174 |            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19175 |          else | 
 | 19176 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 19177 |              10.[012]) | 
 | 19178 |                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 19179 |                ;; | 
 | 19180 |              10.*) | 
 | 19181 |                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | 
 | 19182 |                ;; | 
 | 19183 |            esac | 
 | 19184 |          fi | 
 | 19185 |          ;; | 
 | 19186 |         esac | 
 | 19187 |       archive_cmds_need_lc_CXX=no | 
 | 19188 |       hardcode_direct_CXX=no | 
 | 19189 |       hardcode_automatic_CXX=yes | 
 | 19190 |       hardcode_shlibpath_var_CXX=unsupported | 
 | 19191 |       whole_archive_flag_spec_CXX='' | 
 | 19192 |       link_all_deplibs_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19193 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19194 |     if test "$GXX" = yes ; then | 
 | 19195 |       lt_int_apple_cc_single_mod=no | 
 | 19196 |       output_verbose_link_cmd='echo' | 
 | 19197 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 
 | 19198 |        lt_int_apple_cc_single_mod=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19199 |       fi | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19200 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19201 |        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19202 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19203 |           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19204 |         fi | 
 | 19205 |         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19206 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19207 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19208 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19209 |           else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19210 |             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19211 |           fi | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19212 |             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19213 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19214 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19215 |         xlc*) | 
 | 19216 |          output_verbose_link_cmd='echo' | 
 | 19217 |           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 19218 |           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19219 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19220 |           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 19221 |           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19222 |           ;; | 
 | 19223 |        *) | 
 | 19224 |          ld_shlibs_CXX=no | 
 | 19225 |           ;; | 
 | 19226 |       esac | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19227 |       fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19228 |         ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19229 |  | 
 | 19230 |   dgux*) | 
 | 19231 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19232 |       ec++*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19233 | 	# FIXME: insert proper C++ library support | 
 | 19234 | 	ld_shlibs_CXX=no | 
 | 19235 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19236 |       ghcx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19237 | 	# Green Hills C++ Compiler | 
 | 19238 | 	# FIXME: insert proper C++ library support | 
 | 19239 | 	ld_shlibs_CXX=no | 
 | 19240 | 	;; | 
 | 19241 |       *) | 
 | 19242 | 	# FIXME: insert proper C++ library support | 
 | 19243 | 	ld_shlibs_CXX=no | 
 | 19244 | 	;; | 
 | 19245 |     esac | 
 | 19246 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19247 |   freebsd[12]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19248 |     # C++ shared libraries reported to be fairly broken before switch to ELF | 
 | 19249 |     ld_shlibs_CXX=no | 
 | 19250 |     ;; | 
 | 19251 |   freebsd-elf*) | 
 | 19252 |     archive_cmds_need_lc_CXX=no | 
 | 19253 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19254 |   freebsd* | kfreebsd*-gnu | dragonfly*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19255 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 19256 |     # conventions | 
 | 19257 |     ld_shlibs_CXX=yes | 
 | 19258 |     ;; | 
 | 19259 |   gnu*) | 
 | 19260 |     ;; | 
 | 19261 |   hpux9*) | 
 | 19262 |     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 19263 |     hardcode_libdir_separator_CXX=: | 
 | 19264 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 19265 |     hardcode_direct_CXX=yes | 
 | 19266 |     hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 19267 | 				# but as the default | 
 | 19268 | 				# location of the library. | 
 | 19269 |  | 
 | 19270 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19271 |     CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19272 |       # FIXME: insert proper C++ library support | 
 | 19273 |       ld_shlibs_CXX=no | 
 | 19274 |       ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19275 |     aCC*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19276 |       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19277 |       # Commands to make compiler produce verbose output that lists | 
 | 19278 |       # what "hidden" libraries, object files and flags are used when | 
 | 19279 |       # linking a shared library. | 
 | 19280 |       # | 
 | 19281 |       # There doesn't appear to be a way to prevent this compiler from | 
 | 19282 |       # explicitly linking system object files so we need to strip them | 
 | 19283 |       # from the output so that they don't get included in the library | 
 | 19284 |       # dependencies. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19285 |       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19286 |       ;; | 
 | 19287 |     *) | 
 | 19288 |       if test "$GXX" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19289 |         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19290 |       else | 
 | 19291 |         # FIXME: insert proper C++ library support | 
 | 19292 |         ld_shlibs_CXX=no | 
 | 19293 |       fi | 
 | 19294 |       ;; | 
 | 19295 |     esac | 
 | 19296 |     ;; | 
 | 19297 |   hpux10*|hpux11*) | 
 | 19298 |     if test $with_gnu_ld = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19299 |       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 19300 |       hardcode_libdir_separator_CXX=: | 
 | 19301 |  | 
 | 19302 |       case $host_cpu in | 
 | 19303 |       hppa*64*|ia64*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19304 | 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19305 |         ;; | 
 | 19306 |       *) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19307 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 19308 |         ;; | 
 | 19309 |       esac | 
 | 19310 |     fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19311 |     case $host_cpu in | 
 | 19312 |     hppa*64*|ia64*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19313 |       hardcode_direct_CXX=no | 
 | 19314 |       hardcode_shlibpath_var_CXX=no | 
 | 19315 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19316 |     *) | 
 | 19317 |       hardcode_direct_CXX=yes | 
 | 19318 |       hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 19319 | 					      # but as the default | 
 | 19320 | 					      # location of the library. | 
 | 19321 |       ;; | 
 | 19322 |     esac | 
 | 19323 |  | 
 | 19324 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19325 |       CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19326 | 	# FIXME: insert proper C++ library support | 
 | 19327 | 	ld_shlibs_CXX=no | 
 | 19328 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19329 |       aCC*) | 
 | 19330 | 	case $host_cpu in | 
 | 19331 | 	hppa*64*) | 
 | 19332 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 19333 | 	  ;; | 
 | 19334 | 	ia64*) | 
 | 19335 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19336 | 	  ;; | 
 | 19337 | 	*) | 
 | 19338 | 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 19339 | 	  ;; | 
 | 19340 | 	esac | 
 | 19341 | 	# Commands to make compiler produce verbose output that lists | 
 | 19342 | 	# what "hidden" libraries, object files and flags are used when | 
 | 19343 | 	# linking a shared library. | 
 | 19344 | 	# | 
 | 19345 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 19346 | 	# explicitly linking system object files so we need to strip them | 
 | 19347 | 	# from the output so that they don't get included in the library | 
 | 19348 | 	# dependencies. | 
 | 19349 | 	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' | 
 | 19350 | 	;; | 
 | 19351 |       *) | 
 | 19352 | 	if test "$GXX" = yes; then | 
 | 19353 | 	  if test $with_gnu_ld = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19354 | 	    case $host_cpu in | 
 | 19355 | 	    hppa*64*) | 
 | 19356 | 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 19357 | 	      ;; | 
 | 19358 | 	    ia64*) | 
 | 19359 | 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19360 | 	      ;; | 
 | 19361 | 	    *) | 
 | 19362 | 	      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' | 
 | 19363 | 	      ;; | 
 | 19364 | 	    esac | 
 | 19365 | 	  fi | 
 | 19366 | 	else | 
 | 19367 | 	  # FIXME: insert proper C++ library support | 
 | 19368 | 	  ld_shlibs_CXX=no | 
 | 19369 | 	fi | 
 | 19370 | 	;; | 
 | 19371 |     esac | 
 | 19372 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19373 |   interix3*) | 
 | 19374 |     hardcode_direct_CXX=no | 
 | 19375 |     hardcode_shlibpath_var_CXX=no | 
 | 19376 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 19377 |     export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 19378 |     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 19379 |     # Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 19380 |     # default) and relocated if they conflict, which is a slow very memory | 
 | 19381 |     # consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 19382 |     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 19383 |     # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 19384 |     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 19385 |     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 19386 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19387 |   irix5* | irix6*) | 
 | 19388 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19389 |       CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19390 | 	# SGI C++ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19391 | 	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 ${output_objdir}/so_locations -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19392 |  | 
 | 19393 | 	# Archives containing C++ object files must be created using | 
 | 19394 | 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 19395 | 	# necessary to make sure instantiated templates are included | 
 | 19396 | 	# in the archive. | 
 | 19397 | 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 19398 | 	;; | 
 | 19399 |       *) | 
 | 19400 | 	if test "$GXX" = yes; then | 
 | 19401 | 	  if test "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19402 | 	    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}${output_objdir}/so_locations -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19403 | 	  else | 
 | 19404 | 	    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' | 
 | 19405 | 	  fi | 
 | 19406 | 	fi | 
 | 19407 | 	link_all_deplibs_CXX=yes | 
 | 19408 | 	;; | 
 | 19409 |     esac | 
 | 19410 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 19411 |     hardcode_libdir_separator_CXX=: | 
 | 19412 |     ;; | 
 | 19413 |   linux*) | 
 | 19414 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19415 |       KCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19416 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 19417 |  | 
 | 19418 | 	# KCC will only create a shared library if the output file | 
 | 19419 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 19420 | 	# to its proper name (with version) after linking. | 
 | 19421 | 	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' | 
 | 19422 | 	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' | 
 | 19423 | 	# Commands to make compiler produce verbose output that lists | 
 | 19424 | 	# what "hidden" libraries, object files and flags are used when | 
 | 19425 | 	# linking a shared library. | 
 | 19426 | 	# | 
 | 19427 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 19428 | 	# explicitly linking system object files so we need to strip them | 
 | 19429 | 	# from the output so that they don't get included in the library | 
 | 19430 | 	# dependencies. | 
 | 19431 | 	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' | 
 | 19432 |  | 
 | 19433 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | 
 | 19434 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 19435 |  | 
 | 19436 | 	# Archives containing C++ object files must be created using | 
 | 19437 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 19438 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 19439 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19440 |       icpc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19441 | 	# Intel C++ | 
 | 19442 | 	with_gnu_ld=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19443 | 	# version 8.0 and above of icpc choke on multiply defined symbols | 
 | 19444 | 	# if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 19445 | 	# earlier do not add the objects themselves. | 
 | 19446 | 	case `$CC -V 2>&1` in | 
 | 19447 | 	*"Version 7."*) | 
 | 19448 |   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19449 |   	  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' | 
 | 19450 | 	  ;; | 
 | 19451 | 	*)  # Version 8.0 or newer | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19452 | 	  tmp_idyn= | 
 | 19453 | 	  case $host_cpu in | 
 | 19454 | 	    ia64*) tmp_idyn=' -i_dynamic';; | 
 | 19455 | 	  esac | 
 | 19456 |   	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19457 | 	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19458 | 	  ;; | 
 | 19459 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19460 | 	archive_cmds_need_lc_CXX=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19461 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 19462 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 19463 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 19464 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19465 |       pgCC*) | 
 | 19466 |         # Portland Group C++ compiler | 
 | 19467 | 	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
 | 19468 |   	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 
 | 19469 |  | 
 | 19470 | 	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 19471 | 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 19472 | 	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 19473 |         ;; | 
 | 19474 |       cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19475 | 	# Compaq C++ | 
 | 19476 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 19477 | 	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' | 
 | 19478 |  | 
 | 19479 | 	runpath_var=LD_RUN_PATH | 
 | 19480 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 19481 | 	hardcode_libdir_separator_CXX=: | 
 | 19482 |  | 
 | 19483 | 	# Commands to make compiler produce verbose output that lists | 
 | 19484 | 	# what "hidden" libraries, object files and flags are used when | 
 | 19485 | 	# linking a shared library. | 
 | 19486 | 	# | 
 | 19487 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 19488 | 	# explicitly linking system object files so we need to strip them | 
 | 19489 | 	# from the output so that they don't get included in the library | 
 | 19490 | 	# dependencies. | 
 | 19491 | 	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' | 
 | 19492 | 	;; | 
 | 19493 |     esac | 
 | 19494 |     ;; | 
 | 19495 |   lynxos*) | 
 | 19496 |     # FIXME: insert proper C++ library support | 
 | 19497 |     ld_shlibs_CXX=no | 
 | 19498 |     ;; | 
 | 19499 |   m88k*) | 
 | 19500 |     # FIXME: insert proper C++ library support | 
 | 19501 |     ld_shlibs_CXX=no | 
 | 19502 |     ;; | 
 | 19503 |   mvs*) | 
 | 19504 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19505 |       cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19506 | 	# FIXME: insert proper C++ library support | 
 | 19507 | 	ld_shlibs_CXX=no | 
 | 19508 | 	;; | 
 | 19509 |       *) | 
 | 19510 | 	# FIXME: insert proper C++ library support | 
 | 19511 | 	ld_shlibs_CXX=no | 
 | 19512 | 	;; | 
 | 19513 |     esac | 
 | 19514 |     ;; | 
 | 19515 |   netbsd*) | 
 | 19516 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 19517 |       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 19518 |       wlarc= | 
 | 19519 |       hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 19520 |       hardcode_direct_CXX=yes | 
 | 19521 |       hardcode_shlibpath_var_CXX=no | 
 | 19522 |     fi | 
 | 19523 |     # Workaround some broken pre-1.5 toolchains | 
 | 19524 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 19525 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19526 |   openbsd2*) | 
 | 19527 |     # C++ shared libraries are fairly broken | 
 | 19528 |     ld_shlibs_CXX=no | 
 | 19529 |     ;; | 
 | 19530 |   openbsd*) | 
 | 19531 |     hardcode_direct_CXX=yes | 
 | 19532 |     hardcode_shlibpath_var_CXX=no | 
 | 19533 |     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 19534 |     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 19535 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 19536 |       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 19537 |       export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 19538 |       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 19539 |     fi | 
 | 19540 |     output_verbose_link_cmd='echo' | 
 | 19541 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19542 |   osf3*) | 
 | 19543 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19544 |       KCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19545 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 19546 |  | 
 | 19547 | 	# KCC will only create a shared library if the output file | 
 | 19548 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 19549 | 	# to its proper name (with version) after linking. | 
 | 19550 | 	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' | 
 | 19551 |  | 
 | 19552 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 19553 | 	hardcode_libdir_separator_CXX=: | 
 | 19554 |  | 
 | 19555 | 	# Archives containing C++ object files must be created using | 
 | 19556 | 	# "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 19557 | 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 19558 |  | 
 | 19559 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19560 |       RCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19561 | 	# Rational C++ 2.4.1 | 
 | 19562 | 	# FIXME: insert proper C++ library support | 
 | 19563 | 	ld_shlibs_CXX=no | 
 | 19564 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19565 |       cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19566 | 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19567 | 	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 ${output_objdir}/so_locations -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19568 |  | 
 | 19569 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 19570 | 	hardcode_libdir_separator_CXX=: | 
 | 19571 |  | 
 | 19572 | 	# Commands to make compiler produce verbose output that lists | 
 | 19573 | 	# what "hidden" libraries, object files and flags are used when | 
 | 19574 | 	# linking a shared library. | 
 | 19575 | 	# | 
 | 19576 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 19577 | 	# explicitly linking system object files so we need to strip them | 
 | 19578 | 	# from the output so that they don't get included in the library | 
 | 19579 | 	# dependencies. | 
 | 19580 | 	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' | 
 | 19581 | 	;; | 
 | 19582 |       *) | 
 | 19583 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 19584 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19585 | 	  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}${output_objdir}/so_locations -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19586 |  | 
 | 19587 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 19588 | 	  hardcode_libdir_separator_CXX=: | 
 | 19589 |  | 
 | 19590 | 	  # Commands to make compiler produce verbose output that lists | 
 | 19591 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 19592 | 	  # linking a shared library. | 
 | 19593 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 19594 |  | 
 | 19595 | 	else | 
 | 19596 | 	  # FIXME: insert proper C++ library support | 
 | 19597 | 	  ld_shlibs_CXX=no | 
 | 19598 | 	fi | 
 | 19599 | 	;; | 
 | 19600 |     esac | 
 | 19601 |     ;; | 
 | 19602 |   osf4* | osf5*) | 
 | 19603 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19604 |       KCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19605 | 	# Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 19606 |  | 
 | 19607 | 	# KCC will only create a shared library if the output file | 
 | 19608 | 	# ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 19609 | 	# to its proper name (with version) after linking. | 
 | 19610 | 	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' | 
 | 19611 |  | 
 | 19612 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 19613 | 	hardcode_libdir_separator_CXX=: | 
 | 19614 |  | 
 | 19615 | 	# Archives containing C++ object files must be created using | 
 | 19616 | 	# the KAI C++ compiler. | 
 | 19617 | 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | 
 | 19618 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19619 |       RCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19620 | 	# Rational C++ 2.4.1 | 
 | 19621 | 	# FIXME: insert proper C++ library support | 
 | 19622 | 	ld_shlibs_CXX=no | 
 | 19623 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19624 |       cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19625 | 	allow_undefined_flag_CXX=' -expect_unresolved \*' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19626 | 	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 ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19627 | 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 19628 | 	  echo "-hidden">> $lib.exp~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19629 | 	  $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 ${output_objdir}/so_locations -o $lib~ | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19630 | 	  $rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19631 |  | 
 | 19632 | 	hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 19633 | 	hardcode_libdir_separator_CXX=: | 
 | 19634 |  | 
 | 19635 | 	# Commands to make compiler produce verbose output that lists | 
 | 19636 | 	# what "hidden" libraries, object files and flags are used when | 
 | 19637 | 	# linking a shared library. | 
 | 19638 | 	# | 
 | 19639 | 	# There doesn't appear to be a way to prevent this compiler from | 
 | 19640 | 	# explicitly linking system object files so we need to strip them | 
 | 19641 | 	# from the output so that they don't get included in the library | 
 | 19642 | 	# dependencies. | 
 | 19643 | 	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' | 
 | 19644 | 	;; | 
 | 19645 |       *) | 
 | 19646 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 19647 | 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19648 | 	 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}${output_objdir}/so_locations -o $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19649 |  | 
 | 19650 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 19651 | 	  hardcode_libdir_separator_CXX=: | 
 | 19652 |  | 
 | 19653 | 	  # Commands to make compiler produce verbose output that lists | 
 | 19654 | 	  # what "hidden" libraries, object files and flags are used when | 
 | 19655 | 	  # linking a shared library. | 
 | 19656 | 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | 
 | 19657 |  | 
 | 19658 | 	else | 
 | 19659 | 	  # FIXME: insert proper C++ library support | 
 | 19660 | 	  ld_shlibs_CXX=no | 
 | 19661 | 	fi | 
 | 19662 | 	;; | 
 | 19663 |     esac | 
 | 19664 |     ;; | 
 | 19665 |   psos*) | 
 | 19666 |     # FIXME: insert proper C++ library support | 
 | 19667 |     ld_shlibs_CXX=no | 
 | 19668 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19669 |   sunos4*) | 
 | 19670 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19671 |       CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19672 | 	# Sun C++ 4.x | 
 | 19673 | 	# FIXME: insert proper C++ library support | 
 | 19674 | 	ld_shlibs_CXX=no | 
 | 19675 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19676 |       lcc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19677 | 	# Lucid | 
 | 19678 | 	# FIXME: insert proper C++ library support | 
 | 19679 | 	ld_shlibs_CXX=no | 
 | 19680 | 	;; | 
 | 19681 |       *) | 
 | 19682 | 	# FIXME: insert proper C++ library support | 
 | 19683 | 	ld_shlibs_CXX=no | 
 | 19684 | 	;; | 
 | 19685 |     esac | 
 | 19686 |     ;; | 
 | 19687 |   solaris*) | 
 | 19688 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19689 |       CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19690 | 	# Sun C++ 4.2, 5.x and Centerline C++ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19691 |         archive_cmds_need_lc_CXX=yes | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19692 | 	no_undefined_flag_CXX=' -zdefs' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19693 | 	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19694 | 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19695 | 	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19696 |  | 
 | 19697 | 	hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 19698 | 	hardcode_shlibpath_var_CXX=no | 
 | 19699 | 	case $host_os in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19700 | 	  solaris2.[0-5] | solaris2.[0-5].*) ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19701 | 	  *) | 
 | 19702 | 	    # The C++ compiler is used as linker so we must use $wl | 
 | 19703 | 	    # flag to pass the commands to the underlying system | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19704 | 	    # linker. We must also pass each convience library through | 
 | 19705 | 	    # to the system linker between allextract/defaultextract. | 
 | 19706 | 	    # The C++ compiler will combine linker options so we | 
 | 19707 | 	    # cannot just pass the convience library names through | 
 | 19708 | 	    # without $wl. | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19709 | 	    # Supported since Solaris 2.6 (maybe 2.5.1?) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19710 | 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19711 | 	    ;; | 
 | 19712 | 	esac | 
 | 19713 | 	link_all_deplibs_CXX=yes | 
 | 19714 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19715 | 	output_verbose_link_cmd='echo' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19716 |  | 
 | 19717 | 	# Archives containing C++ object files must be created using | 
 | 19718 | 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 19719 | 	# necessary to make sure instantiated templates are included | 
 | 19720 | 	# in the archive. | 
 | 19721 | 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 19722 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19723 |       gcx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19724 | 	# Green Hills C++ Compiler | 
 | 19725 | 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 19726 |  | 
 | 19727 | 	# The C++ compiler must be used to create the archive. | 
 | 19728 | 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 19729 | 	;; | 
 | 19730 |       *) | 
 | 19731 | 	# GNU C++ compiler with Solaris linker | 
 | 19732 | 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 19733 | 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 19734 | 	  if $CC --version | grep -v '^2\.7' > /dev/null; then | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19735 | 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19736 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19737 | 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
 | 19738 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19739 | 	    # Commands to make compiler produce verbose output that lists | 
 | 19740 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 19741 | 	    # linking a shared library. | 
| Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19742 | 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19743 | 	  else | 
 | 19744 | 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 19745 | 	    # platform. | 
 | 19746 | 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19747 | 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 19748 | 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19749 |  | 
 | 19750 | 	    # Commands to make compiler produce verbose output that lists | 
 | 19751 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 19752 | 	    # linking a shared library. | 
 | 19753 | 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | 
 | 19754 | 	  fi | 
 | 19755 |  | 
 | 19756 | 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 19757 | 	fi | 
 | 19758 | 	;; | 
 | 19759 |     esac | 
 | 19760 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19761 |   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
 | 19762 |     no_undefined_flag_CXX='${wl}-z,text' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19763 |     archive_cmds_need_lc_CXX=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19764 |     hardcode_shlibpath_var_CXX=no | 
 | 19765 |     runpath_var='LD_RUN_PATH' | 
 | 19766 |  | 
 | 19767 |     case $cc_basename in | 
 | 19768 |       CC*) | 
 | 19769 | 	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19770 | 	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19771 | 	;; | 
 | 19772 |       *) | 
 | 19773 | 	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19774 | 	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19775 | 	;; | 
 | 19776 |     esac | 
 | 19777 |     ;; | 
 | 19778 |   sysv5* | sco3.2v5* | sco5v6*) | 
 | 19779 |     # Note: We can NOT use -z defs as we might desire, because we do not | 
 | 19780 |     # link with -lc, and that would cause any symbols used from libc to | 
 | 19781 |     # always be unresolved, which means just about no library would | 
 | 19782 |     # ever link correctly.  If we're not using GNU ld we use -z text | 
 | 19783 |     # though, which does catch some bad symbols but isn't as heavy-handed | 
 | 19784 |     # as -z defs. | 
 | 19785 |     # For security reasons, it is highly recommended that you always | 
 | 19786 |     # use absolute paths for naming shared libraries, and exclude the | 
 | 19787 |     # DT_RUNPATH tag from executables and libraries.  But doing so | 
 | 19788 |     # requires that you compile everything twice, which is a pain. | 
 | 19789 |     # So that behaviour is only enabled if SCOABSPATH is set to a | 
 | 19790 |     # non-empty value in the environment.  Most likely only useful for | 
 | 19791 |     # creating official distributions of packages. | 
 | 19792 |     # This is a hack until libtool officially supports absolute path | 
 | 19793 |     # names for shared libraries. | 
 | 19794 |     no_undefined_flag_CXX='${wl}-z,text' | 
 | 19795 |     allow_undefined_flag_CXX='${wl}-z,nodefs' | 
 | 19796 |     archive_cmds_need_lc_CXX=no | 
 | 19797 |     hardcode_shlibpath_var_CXX=no | 
 | 19798 |     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 
 | 19799 |     hardcode_libdir_separator_CXX=':' | 
 | 19800 |     link_all_deplibs_CXX=yes | 
 | 19801 |     export_dynamic_flag_spec_CXX='${wl}-Bexport' | 
 | 19802 |     runpath_var='LD_RUN_PATH' | 
 | 19803 |  | 
 | 19804 |     case $cc_basename in | 
 | 19805 |       CC*) | 
 | 19806 | 	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19807 | 	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19808 | 	;; | 
 | 19809 |       *) | 
 | 19810 | 	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19811 | 	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 19812 | 	;; | 
 | 19813 |     esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19814 |     ;; | 
 | 19815 |   tandem*) | 
 | 19816 |     case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19817 |       NCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19818 | 	# NonStop-UX NCC 3.20 | 
 | 19819 | 	# FIXME: insert proper C++ library support | 
 | 19820 | 	ld_shlibs_CXX=no | 
 | 19821 | 	;; | 
 | 19822 |       *) | 
 | 19823 | 	# FIXME: insert proper C++ library support | 
 | 19824 | 	ld_shlibs_CXX=no | 
 | 19825 | 	;; | 
 | 19826 |     esac | 
 | 19827 |     ;; | 
 | 19828 |   vxworks*) | 
 | 19829 |     # FIXME: insert proper C++ library support | 
 | 19830 |     ld_shlibs_CXX=no | 
 | 19831 |     ;; | 
 | 19832 |   *) | 
 | 19833 |     # FIXME: insert proper C++ library support | 
 | 19834 |     ld_shlibs_CXX=no | 
 | 19835 |     ;; | 
 | 19836 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19837 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 19838 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19839 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 19840 |  | 
 | 19841 | GCC_CXX="$GXX" | 
 | 19842 | LD_CXX="$LD" | 
 | 19843 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19844 |  | 
 | 19845 | cat > conftest.$ac_ext <<EOF | 
 | 19846 | class Foo | 
 | 19847 | { | 
 | 19848 | public: | 
 | 19849 |   Foo (void) { a = 0; } | 
 | 19850 | private: | 
 | 19851 |   int a; | 
 | 19852 | }; | 
 | 19853 | EOF | 
 | 19854 |  | 
 | 19855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 19856 |   (eval $ac_compile) 2>&5 | 
 | 19857 |   ac_status=$? | 
 | 19858 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 19859 |   (exit $ac_status); }; then | 
 | 19860 |   # Parse the compiler output and extract the necessary | 
 | 19861 |   # objects, libraries and library flags. | 
 | 19862 |  | 
 | 19863 |   # Sentinel used to keep track of whether or not we are before | 
 | 19864 |   # the conftest object file. | 
 | 19865 |   pre_test_object_deps_done=no | 
 | 19866 |  | 
 | 19867 |   # The `*' in the case matches for architectures that use `case' in | 
 | 19868 |   # $output_verbose_cmd can trigger glob expansion during the loop | 
 | 19869 |   # eval without this substitution. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19870 |   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19871 |  | 
 | 19872 |   for p in `eval $output_verbose_link_cmd`; do | 
 | 19873 |     case $p in | 
 | 19874 |  | 
 | 19875 |     -L* | -R* | -l*) | 
 | 19876 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 19877 |        # Remove the space. | 
 | 19878 |        if test $p = "-L" \ | 
 | 19879 | 	  || test $p = "-R"; then | 
 | 19880 | 	 prev=$p | 
 | 19881 | 	 continue | 
 | 19882 |        else | 
 | 19883 | 	 prev= | 
 | 19884 |        fi | 
 | 19885 |  | 
 | 19886 |        if test "$pre_test_object_deps_done" = no; then | 
 | 19887 | 	 case $p in | 
 | 19888 | 	 -L* | -R*) | 
 | 19889 | 	   # Internal compiler library paths should come after those | 
 | 19890 | 	   # provided the user.  The postdeps already come after the | 
 | 19891 | 	   # user supplied libs so there is no need to process them. | 
 | 19892 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 19893 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 19894 | 	   else | 
 | 19895 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 19896 | 	   fi | 
 | 19897 | 	   ;; | 
 | 19898 | 	 # The "-l" case would never come before the object being | 
 | 19899 | 	 # linked, so don't bother handling this case. | 
 | 19900 | 	 esac | 
 | 19901 |        else | 
 | 19902 | 	 if test -z "$postdeps_CXX"; then | 
 | 19903 | 	   postdeps_CXX="${prev}${p}" | 
 | 19904 | 	 else | 
 | 19905 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 19906 | 	 fi | 
 | 19907 |        fi | 
 | 19908 |        ;; | 
 | 19909 |  | 
 | 19910 |     *.$objext) | 
 | 19911 |        # This assumes that the test object file only shows up | 
 | 19912 |        # once in the compiler output. | 
 | 19913 |        if test "$p" = "conftest.$objext"; then | 
 | 19914 | 	 pre_test_object_deps_done=yes | 
 | 19915 | 	 continue | 
 | 19916 |        fi | 
 | 19917 |  | 
 | 19918 |        if test "$pre_test_object_deps_done" = no; then | 
 | 19919 | 	 if test -z "$predep_objects_CXX"; then | 
 | 19920 | 	   predep_objects_CXX="$p" | 
 | 19921 | 	 else | 
 | 19922 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 19923 | 	 fi | 
 | 19924 |        else | 
 | 19925 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 19926 | 	   postdep_objects_CXX="$p" | 
 | 19927 | 	 else | 
 | 19928 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 19929 | 	 fi | 
 | 19930 |        fi | 
 | 19931 |        ;; | 
 | 19932 |  | 
 | 19933 |     *) ;; # Ignore the rest. | 
 | 19934 |  | 
 | 19935 |     esac | 
 | 19936 |   done | 
 | 19937 |  | 
 | 19938 |   # Clean up. | 
 | 19939 |   rm -f a.out a.exe | 
 | 19940 | else | 
 | 19941 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 19942 | fi | 
 | 19943 |  | 
 | 19944 | $rm -f confest.$objext | 
 | 19945 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19946 | # PORTME: override above test on systems where it is broken | 
 | 19947 | case $host_os in | 
 | 19948 | interix3*) | 
 | 19949 |   # Interix 3.5 installs completely hosed .la files for C++, so rather than | 
 | 19950 |   # hack all around it, let's just trust "g++" to DTRT. | 
 | 19951 |   predep_objects_CXX= | 
 | 19952 |   postdep_objects_CXX= | 
 | 19953 |   postdeps_CXX= | 
 | 19954 |   ;; | 
 | 19955 |  | 
 | 19956 | solaris*) | 
 | 19957 |   case $cc_basename in | 
 | 19958 |   CC*) | 
 | 19959 |     # Adding this requires a known-good setup of shared libraries for | 
 | 19960 |     # Sun compiler versions before 5.6, else PIC objects from an old | 
 | 19961 |     # archive will be linked into the output, leading to subtle bugs. | 
 | 19962 |     postdeps_CXX='-lCstd -lCrun' | 
 | 19963 |     ;; | 
 | 19964 |   esac | 
 | 19965 |   ;; | 
 | 19966 | esac | 
 | 19967 |  | 
 | 19968 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19969 | case " $postdeps_CXX " in | 
 | 19970 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 19971 | esac | 
 | 19972 |  | 
 | 19973 | lt_prog_compiler_wl_CXX= | 
 | 19974 | lt_prog_compiler_pic_CXX= | 
 | 19975 | lt_prog_compiler_static_CXX= | 
 | 19976 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19977 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 19978 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19979 |  | 
 | 19980 |   # C++ specific cases for pic, static, wl, etc. | 
 | 19981 |   if test "$GXX" = yes; then | 
 | 19982 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 19983 |     lt_prog_compiler_static_CXX='-static' | 
 | 19984 |  | 
 | 19985 |     case $host_os in | 
 | 19986 |     aix*) | 
 | 19987 |       # All AIX code is PIC. | 
 | 19988 |       if test "$host_cpu" = ia64; then | 
 | 19989 | 	# AIX 5 now supports IA64 processor | 
 | 19990 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 19991 |       fi | 
 | 19992 |       ;; | 
 | 19993 |     amigaos*) | 
 | 19994 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 19995 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 19996 |       # like `-m68040'. | 
 | 19997 |       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 19998 |       ;; | 
 | 19999 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 20000 |       # PIC is the default for these OSes. | 
 | 20001 |       ;; | 
 | 20002 |     mingw* | os2* | pw32*) | 
 | 20003 |       # This hack is so that the source file can tell whether it is being | 
 | 20004 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 20005 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 20006 |       ;; | 
 | 20007 |     darwin* | rhapsody*) | 
 | 20008 |       # PIC is the default on this platform | 
 | 20009 |       # Common symbols not allowed in MH_DYLIB files | 
 | 20010 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 20011 |       ;; | 
 | 20012 |     *djgpp*) | 
 | 20013 |       # DJGPP does not support shared libraries at all | 
 | 20014 |       lt_prog_compiler_pic_CXX= | 
 | 20015 |       ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20016 |     interix3*) | 
 | 20017 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 20018 |       # Instead, we relocate shared libraries at runtime. | 
 | 20019 |       ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20020 |     sysv4*MP*) | 
 | 20021 |       if test -d /usr/nec; then | 
 | 20022 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 20023 |       fi | 
 | 20024 |       ;; | 
 | 20025 |     hpux*) | 
 | 20026 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 20027 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20028 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20029 |       hppa*64*|ia64*) | 
 | 20030 | 	;; | 
 | 20031 |       *) | 
 | 20032 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 20033 | 	;; | 
 | 20034 |       esac | 
 | 20035 |       ;; | 
 | 20036 |     *) | 
 | 20037 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 20038 |       ;; | 
 | 20039 |     esac | 
 | 20040 |   else | 
 | 20041 |     case $host_os in | 
 | 20042 |       aix4* | aix5*) | 
 | 20043 | 	# All AIX code is PIC. | 
 | 20044 | 	if test "$host_cpu" = ia64; then | 
 | 20045 | 	  # AIX 5 now supports IA64 processor | 
 | 20046 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 20047 | 	else | 
 | 20048 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 20049 | 	fi | 
 | 20050 | 	;; | 
 | 20051 |       chorus*) | 
 | 20052 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20053 | 	cxch68*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20054 | 	  # Green Hills C++ Compiler | 
 | 20055 | 	  # _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" | 
 | 20056 | 	  ;; | 
 | 20057 | 	esac | 
 | 20058 | 	;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20059 |        darwin*) | 
 | 20060 |          # PIC is the default on this platform | 
 | 20061 |          # Common symbols not allowed in MH_DYLIB files | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20062 |          case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20063 |            xlc*) | 
 | 20064 |            lt_prog_compiler_pic_CXX='-qnocommon' | 
 | 20065 |            lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20066 |            ;; | 
 | 20067 |          esac | 
 | 20068 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20069 |       dgux*) | 
 | 20070 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20071 | 	  ec++*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20072 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 20073 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20074 | 	  ghcx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20075 | 	    # Green Hills C++ Compiler | 
 | 20076 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 20077 | 	    ;; | 
 | 20078 | 	  *) | 
 | 20079 | 	    ;; | 
 | 20080 | 	esac | 
 | 20081 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20082 |       freebsd* | kfreebsd*-gnu | dragonfly*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20083 | 	# FreeBSD uses GNU C++ | 
 | 20084 | 	;; | 
 | 20085 |       hpux9* | hpux10* | hpux11*) | 
 | 20086 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20087 | 	  CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20088 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20089 | 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20090 | 	    if test "$host_cpu" != ia64; then | 
 | 20091 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 20092 | 	    fi | 
 | 20093 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20094 | 	  aCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20095 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20096 | 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
 | 20097 | 	    case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20098 | 	    hppa*64*|ia64*) | 
 | 20099 | 	      # +Z the default | 
 | 20100 | 	      ;; | 
 | 20101 | 	    *) | 
 | 20102 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 20103 | 	      ;; | 
 | 20104 | 	    esac | 
 | 20105 | 	    ;; | 
 | 20106 | 	  *) | 
 | 20107 | 	    ;; | 
 | 20108 | 	esac | 
 | 20109 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20110 |       interix*) | 
 | 20111 | 	# This is c89, which is MS Visual C++ (no shared libs) | 
 | 20112 | 	# Anyone wants to do a port? | 
 | 20113 | 	;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20114 |       irix5* | irix6* | nonstopux*) | 
 | 20115 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20116 | 	  CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20117 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20118 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 20119 | 	    # CC pic flag -KPIC is the default. | 
 | 20120 | 	    ;; | 
 | 20121 | 	  *) | 
 | 20122 | 	    ;; | 
 | 20123 | 	esac | 
 | 20124 | 	;; | 
 | 20125 |       linux*) | 
 | 20126 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20127 | 	  KCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20128 | 	    # KAI C++ Compiler | 
 | 20129 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 20130 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 20131 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20132 | 	  icpc* | ecpc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20133 | 	    # Intel C++ | 
 | 20134 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20135 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 20136 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 20137 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20138 | 	  pgCC*) | 
 | 20139 | 	    # Portland Group C++ compiler. | 
 | 20140 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20141 | 	    lt_prog_compiler_pic_CXX='-fpic' | 
 | 20142 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 20143 | 	    ;; | 
 | 20144 | 	  cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20145 | 	    # Compaq C++ | 
 | 20146 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 20147 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 20148 | 	    lt_prog_compiler_pic_CXX= | 
 | 20149 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 20150 | 	    ;; | 
 | 20151 | 	  *) | 
 | 20152 | 	    ;; | 
 | 20153 | 	esac | 
 | 20154 | 	;; | 
 | 20155 |       lynxos*) | 
 | 20156 | 	;; | 
 | 20157 |       m88k*) | 
 | 20158 | 	;; | 
 | 20159 |       mvs*) | 
 | 20160 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20161 | 	  cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20162 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 20163 | 	    ;; | 
 | 20164 | 	  *) | 
 | 20165 | 	    ;; | 
 | 20166 | 	esac | 
 | 20167 | 	;; | 
 | 20168 |       netbsd*) | 
 | 20169 | 	;; | 
 | 20170 |       osf3* | osf4* | osf5*) | 
 | 20171 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20172 | 	  KCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20173 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 20174 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20175 | 	  RCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20176 | 	    # Rational C++ 2.4.1 | 
 | 20177 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 20178 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20179 | 	  cxx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20180 | 	    # Digital/Compaq C++ | 
 | 20181 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20182 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 20183 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 20184 | 	    lt_prog_compiler_pic_CXX= | 
 | 20185 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 20186 | 	    ;; | 
 | 20187 | 	  *) | 
 | 20188 | 	    ;; | 
 | 20189 | 	esac | 
 | 20190 | 	;; | 
 | 20191 |       psos*) | 
 | 20192 | 	;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20193 |       solaris*) | 
 | 20194 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20195 | 	  CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20196 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 20197 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 20198 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 20199 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 20200 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20201 | 	  gcx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20202 | 	    # Green Hills C++ Compiler | 
 | 20203 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 20204 | 	    ;; | 
 | 20205 | 	  *) | 
 | 20206 | 	    ;; | 
 | 20207 | 	esac | 
 | 20208 | 	;; | 
 | 20209 |       sunos4*) | 
 | 20210 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20211 | 	  CC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20212 | 	    # Sun C++ 4.x | 
 | 20213 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 20214 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 20215 | 	    ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20216 | 	  lcc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20217 | 	    # Lucid | 
 | 20218 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 20219 | 	    ;; | 
 | 20220 | 	  *) | 
 | 20221 | 	    ;; | 
 | 20222 | 	esac | 
 | 20223 | 	;; | 
 | 20224 |       tandem*) | 
 | 20225 | 	case $cc_basename in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20226 | 	  NCC*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20227 | 	    # NonStop-UX NCC 3.20 | 
 | 20228 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 20229 | 	    ;; | 
 | 20230 | 	  *) | 
 | 20231 | 	    ;; | 
 | 20232 | 	esac | 
 | 20233 | 	;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20234 |       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 20235 | 	case $cc_basename in | 
 | 20236 | 	  CC*) | 
 | 20237 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 20238 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 20239 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 20240 | 	    ;; | 
 | 20241 | 	esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20242 | 	;; | 
 | 20243 |       vxworks*) | 
 | 20244 | 	;; | 
 | 20245 |       *) | 
 | 20246 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 20247 | 	;; | 
 | 20248 |     esac | 
 | 20249 |   fi | 
 | 20250 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20251 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | 
 | 20252 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20253 |  | 
 | 20254 | # | 
 | 20255 | # Check to make sure the PIC flag actually works. | 
 | 20256 | # | 
 | 20257 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20258 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20259 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
 | 20260 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20261 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | 
 | 20262 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20263 | else | 
 | 20264 |   lt_prog_compiler_pic_works_CXX=no | 
 | 20265 |   ac_outfile=conftest.$ac_objext | 
 | 20266 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 20267 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 20268 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 20269 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 20270 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 20271 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 20272 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 20273 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20274 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20275 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 20276 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20277 |    (eval echo "\"\$as_me:20277: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20278 |    (eval "$lt_compile" 2>conftest.err) | 
 | 20279 |    ac_status=$? | 
 | 20280 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20281 |    echo "$as_me:20281: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20282 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 20283 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20284 |      # So say no if there are warnings other than the usual output. | 
 | 20285 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 20286 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 20287 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20288 |        lt_prog_compiler_pic_works_CXX=yes | 
 | 20289 |      fi | 
 | 20290 |    fi | 
 | 20291 |    $rm conftest* | 
 | 20292 |  | 
 | 20293 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20294 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | 
 | 20295 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20296 |  | 
 | 20297 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | 
 | 20298 |     case $lt_prog_compiler_pic_CXX in | 
 | 20299 |      "" | " "*) ;; | 
 | 20300 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 20301 |      esac | 
 | 20302 | else | 
 | 20303 |     lt_prog_compiler_pic_CXX= | 
 | 20304 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 20305 | fi | 
 | 20306 |  | 
 | 20307 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20308 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20309 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 20310 |   *djgpp*) | 
 | 20311 |     lt_prog_compiler_pic_CXX= | 
 | 20312 |     ;; | 
 | 20313 |   *) | 
 | 20314 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 20315 |     ;; | 
 | 20316 | esac | 
 | 20317 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20318 | # | 
 | 20319 | # Check to make sure the static flag actually works. | 
 | 20320 | # | 
 | 20321 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | 
 | 20322 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 20323 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | 
 | 20324 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | 
 | 20325 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20326 | else | 
 | 20327 |   lt_prog_compiler_static_works_CXX=no | 
 | 20328 |    save_LDFLAGS="$LDFLAGS" | 
 | 20329 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 20330 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 20331 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 20332 |      # The linker can only warn and ignore the option if not recognized | 
 | 20333 |      # So say no if there are warnings | 
 | 20334 |      if test -s conftest.err; then | 
 | 20335 |        # Append any errors to the config.log. | 
 | 20336 |        cat conftest.err 1>&5 | 
 | 20337 |        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 
 | 20338 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 20339 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 20340 |          lt_prog_compiler_static_works_CXX=yes | 
 | 20341 |        fi | 
 | 20342 |      else | 
 | 20343 |        lt_prog_compiler_static_works_CXX=yes | 
 | 20344 |      fi | 
 | 20345 |    fi | 
 | 20346 |    $rm conftest* | 
 | 20347 |    LDFLAGS="$save_LDFLAGS" | 
 | 20348 |  | 
 | 20349 | fi | 
 | 20350 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | 
 | 20351 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | 
 | 20352 |  | 
 | 20353 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | 
 | 20354 |     : | 
 | 20355 | else | 
 | 20356 |     lt_prog_compiler_static_CXX= | 
 | 20357 | fi | 
 | 20358 |  | 
 | 20359 |  | 
 | 20360 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 20361 | 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] | 20362 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 
 | 20363 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 20364 | else | 
 | 20365 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 20366 |    $rm -r conftest 2>/dev/null | 
 | 20367 |    mkdir conftest | 
 | 20368 |    cd conftest | 
 | 20369 |    mkdir out | 
 | 20370 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 20371 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20372 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 20373 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 20374 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 20375 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 20376 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 20377 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20378 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20379 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 20380 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20381 |    (eval echo "\"\$as_me:20381: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20382 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 20383 |    ac_status=$? | 
 | 20384 |    cat out/conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20385 |    echo "$as_me:20385: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20386 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 20387 |    then | 
 | 20388 |      # The compiler can only warn and ignore the option if not recognized | 
 | 20389 |      # So say no if there are warnings | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20390 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 
 | 20391 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 20392 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20393 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 20394 |      fi | 
 | 20395 |    fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20396 |    chmod u+w . 2>&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20397 |    $rm conftest* | 
 | 20398 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 20399 |    # template instantiation | 
 | 20400 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 20401 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20402 |    cd .. | 
 | 20403 |    rmdir conftest | 
 | 20404 |    $rm conftest* | 
 | 20405 |  | 
 | 20406 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20407 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 20408 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20409 |  | 
 | 20410 |  | 
 | 20411 | hard_links="nottested" | 
 | 20412 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 20413 |   # do not overwrite the value of need_locks provided by the user | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20414 |   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 20415 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20416 |   hard_links=yes | 
 | 20417 |   $rm conftest* | 
 | 20418 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 20419 |   touch conftest.a | 
 | 20420 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 20421 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20422 |   { echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 20423 | echo "${ECHO_T}$hard_links" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20424 |   if test "$hard_links" = no; then | 
 | 20425 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 20426 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 20427 |     need_locks=warn | 
 | 20428 |   fi | 
 | 20429 | else | 
 | 20430 |   need_locks=no | 
 | 20431 | fi | 
 | 20432 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20433 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 20434 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20435 |  | 
 | 20436 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 20437 |   case $host_os in | 
 | 20438 |   aix4* | aix5*) | 
 | 20439 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 20440 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 20441 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 20442 |       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' | 
 | 20443 |     else | 
 | 20444 |       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' | 
 | 20445 |     fi | 
 | 20446 |     ;; | 
 | 20447 |   pw32*) | 
 | 20448 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
 | 20449 |   ;; | 
 | 20450 |   cygwin* | mingw*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20451 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20452 |   ;; | 
 | 20453 |   *) | 
 | 20454 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 20455 |   ;; | 
 | 20456 |   esac | 
 | 20457 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20458 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | 
 | 20459 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20460 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 20461 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20462 | # | 
 | 20463 | # Do we need to explicitly link libc? | 
 | 20464 | # | 
 | 20465 | case "x$archive_cmds_need_lc_CXX" in | 
 | 20466 | x|xyes) | 
 | 20467 |   # Assume -lc should be added | 
 | 20468 |   archive_cmds_need_lc_CXX=yes | 
 | 20469 |  | 
 | 20470 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 20471 |     case $archive_cmds_CXX in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20472 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20473 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 20474 |       ;; | 
 | 20475 |     '$CC '*) | 
 | 20476 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 20477 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 20478 |       # to ld, don't add -lc before -lgcc. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20479 |       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 20480 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20481 |       $rm conftest* | 
 | 20482 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 20483 |  | 
 | 20484 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 20485 |   (eval $ac_compile) 2>&5 | 
 | 20486 |   ac_status=$? | 
 | 20487 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20488 |   (exit $ac_status); } 2>conftest.err; then | 
 | 20489 |         soname=conftest | 
 | 20490 |         lib=conftest | 
 | 20491 |         libobjs=conftest.$ac_objext | 
 | 20492 |         deplibs= | 
 | 20493 |         wl=$lt_prog_compiler_wl_CXX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20494 | 	pic_flag=$lt_prog_compiler_pic_CXX | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20495 |         compiler_flags=-v | 
 | 20496 |         linker_flags=-v | 
 | 20497 |         verstring= | 
 | 20498 |         output_objdir=. | 
 | 20499 |         libname=conftest | 
 | 20500 |         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 20501 |         allow_undefined_flag_CXX= | 
 | 20502 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 20503 |   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 20504 |   ac_status=$? | 
 | 20505 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 20506 |   (exit $ac_status); } | 
 | 20507 |         then | 
 | 20508 | 	  archive_cmds_need_lc_CXX=no | 
 | 20509 |         else | 
 | 20510 | 	  archive_cmds_need_lc_CXX=yes | 
 | 20511 |         fi | 
 | 20512 |         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 20513 |       else | 
 | 20514 |         cat conftest.err 1>&5 | 
 | 20515 |       fi | 
 | 20516 |       $rm conftest* | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20517 |       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | 
 | 20518 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20519 |       ;; | 
 | 20520 |     esac | 
 | 20521 |   fi | 
 | 20522 |   ;; | 
 | 20523 | esac | 
 | 20524 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20525 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 20526 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20527 | library_names_spec= | 
 | 20528 | libname_spec='lib$name' | 
 | 20529 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20530 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20531 | postinstall_cmds= | 
 | 20532 | postuninstall_cmds= | 
 | 20533 | finish_cmds= | 
 | 20534 | finish_eval= | 
 | 20535 | shlibpath_var= | 
 | 20536 | shlibpath_overrides_runpath=unknown | 
 | 20537 | version_type=none | 
 | 20538 | dynamic_linker="$host_os ld.so" | 
 | 20539 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 20540 | if test "$GCC" = yes; then | 
 | 20541 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 20542 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 20543 |     # if the path contains ";" then we assume it to be the separator | 
 | 20544 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 20545 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 20546 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 20547 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 20548 |   else | 
 | 20549 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 20550 |   fi | 
 | 20551 | else | 
 | 20552 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 20553 | fi | 
 | 20554 | need_lib_prefix=unknown | 
 | 20555 | hardcode_into_libs=no | 
 | 20556 |  | 
 | 20557 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 20558 | # flags to be left without arguments | 
 | 20559 | need_version=unknown | 
 | 20560 |  | 
 | 20561 | case $host_os in | 
 | 20562 | aix3*) | 
 | 20563 |   version_type=linux | 
 | 20564 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 20565 |   shlibpath_var=LIBPATH | 
 | 20566 |  | 
 | 20567 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 20568 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20569 |   ;; | 
 | 20570 |  | 
 | 20571 | aix4* | aix5*) | 
 | 20572 |   version_type=linux | 
 | 20573 |   need_lib_prefix=no | 
 | 20574 |   need_version=no | 
 | 20575 |   hardcode_into_libs=yes | 
 | 20576 |   if test "$host_cpu" = ia64; then | 
 | 20577 |     # AIX 5 supports IA64 | 
 | 20578 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 20579 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20580 |   else | 
 | 20581 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 20582 |     # for dependence libraries.  The import file would start with | 
 | 20583 |     # the line `#! .'.  This would cause the generated library to | 
 | 20584 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 20585 |     # development snapshots of GCC prior to 3.0. | 
 | 20586 |     case $host_os in | 
 | 20587 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 20588 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 20589 | 	   echo ' yes ' | 
 | 20590 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 20591 | 	: | 
 | 20592 |       else | 
 | 20593 | 	can_build_shared=no | 
 | 20594 |       fi | 
 | 20595 |       ;; | 
 | 20596 |     esac | 
 | 20597 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 20598 |     # soname into executable. Probably we can add versioning support to | 
 | 20599 |     # collect2, so additional links can be useful in future. | 
 | 20600 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 20601 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 20602 |       # instead of lib<name>.a to let people know that these are not | 
 | 20603 |       # typical AIX shared libraries. | 
 | 20604 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20605 |     else | 
 | 20606 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 20607 |       # and later when we are not doing run time linking. | 
 | 20608 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 20609 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20610 |     fi | 
 | 20611 |     shlibpath_var=LIBPATH | 
 | 20612 |   fi | 
 | 20613 |   ;; | 
 | 20614 |  | 
 | 20615 | amigaos*) | 
 | 20616 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 20617 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20618 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20619 |   ;; | 
 | 20620 |  | 
 | 20621 | beos*) | 
 | 20622 |   library_names_spec='${libname}${shared_ext}' | 
 | 20623 |   dynamic_linker="$host_os ld.so" | 
 | 20624 |   shlibpath_var=LIBRARY_PATH | 
 | 20625 |   ;; | 
 | 20626 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20627 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20628 |   version_type=linux | 
 | 20629 |   need_version=no | 
 | 20630 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20631 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20632 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 20633 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20634 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 20635 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 20636 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 20637 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 20638 |   # libtool to hard-code these into programs | 
 | 20639 |   ;; | 
 | 20640 |  | 
 | 20641 | cygwin* | mingw* | pw32*) | 
 | 20642 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20643 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20644 |   need_version=no | 
 | 20645 |   need_lib_prefix=no | 
 | 20646 |  | 
 | 20647 |   case $GCC,$host_os in | 
 | 20648 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 20649 |     library_names_spec='$libname.dll.a' | 
 | 20650 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20651 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 20652 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 20653 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 20654 |       test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20655 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 20656 |       chmod a+x \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20657 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 20658 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20659 |        $rm \$dlpath' | 
 | 20660 |     shlibpath_overrides_runpath=yes | 
 | 20661 |  | 
 | 20662 |     case $host_os in | 
 | 20663 |     cygwin*) | 
 | 20664 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 20665 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20666 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20667 |       ;; | 
 | 20668 |     mingw*) | 
 | 20669 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 20670 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 20671 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 20672 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 20673 |         # It is most probably a Windows format PATH printed by | 
 | 20674 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 20675 |         # path with ; separators, and with drive letters. We can handle the | 
 | 20676 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 20677 |         # especially as we might pass files found there to a mingw objdump, | 
 | 20678 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 20679 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 20680 |       else | 
 | 20681 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 20682 |       fi | 
 | 20683 |       ;; | 
 | 20684 |     pw32*) | 
 | 20685 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20686 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20687 |       ;; | 
 | 20688 |     esac | 
 | 20689 |     ;; | 
 | 20690 |  | 
 | 20691 |   *) | 
 | 20692 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 20693 |     ;; | 
 | 20694 |   esac | 
 | 20695 |   dynamic_linker='Win32 ld.exe' | 
 | 20696 |   # FIXME: first we should search . and the directory the executable is in | 
 | 20697 |   shlibpath_var=PATH | 
 | 20698 |   ;; | 
 | 20699 |  | 
 | 20700 | darwin* | rhapsody*) | 
 | 20701 |   dynamic_linker="$host_os dyld" | 
 | 20702 |   version_type=darwin | 
 | 20703 |   need_lib_prefix=no | 
 | 20704 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20705 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20706 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 20707 |   shlibpath_overrides_runpath=yes | 
 | 20708 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20709 |   shrext_cmds='.dylib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20710 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20711 |   if test "$GCC" = yes; then | 
 | 20712 |     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"` | 
 | 20713 |   else | 
 | 20714 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20715 |   fi | 
 | 20716 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 20717 |   ;; | 
 | 20718 |  | 
 | 20719 | dgux*) | 
 | 20720 |   version_type=linux | 
 | 20721 |   need_lib_prefix=no | 
 | 20722 |   need_version=no | 
 | 20723 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 20724 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20725 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20726 |   ;; | 
 | 20727 |  | 
 | 20728 | freebsd1*) | 
 | 20729 |   dynamic_linker=no | 
 | 20730 |   ;; | 
 | 20731 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20732 | kfreebsd*-gnu) | 
 | 20733 |   version_type=linux | 
 | 20734 |   need_lib_prefix=no | 
 | 20735 |   need_version=no | 
 | 20736 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20737 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20738 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20739 |   shlibpath_overrides_runpath=no | 
 | 20740 |   hardcode_into_libs=yes | 
 | 20741 |   dynamic_linker='GNU ld.so' | 
 | 20742 |   ;; | 
 | 20743 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20744 | freebsd* | dragonfly*) | 
 | 20745 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 20746 |   # versioning mechanism, adjust this. | 
 | 20747 |   if test -x /usr/bin/objformat; then | 
 | 20748 |     objformat=`/usr/bin/objformat` | 
 | 20749 |   else | 
 | 20750 |     case $host_os in | 
 | 20751 |     freebsd[123]*) objformat=aout ;; | 
 | 20752 |     *) objformat=elf ;; | 
 | 20753 |     esac | 
 | 20754 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20755 |   version_type=freebsd-$objformat | 
 | 20756 |   case $version_type in | 
 | 20757 |     freebsd-elf*) | 
 | 20758 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20759 |       need_version=no | 
 | 20760 |       need_lib_prefix=no | 
 | 20761 |       ;; | 
 | 20762 |     freebsd-*) | 
 | 20763 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 20764 |       need_version=yes | 
 | 20765 |       ;; | 
 | 20766 |   esac | 
 | 20767 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20768 |   case $host_os in | 
 | 20769 |   freebsd2*) | 
 | 20770 |     shlibpath_overrides_runpath=yes | 
 | 20771 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20772 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20773 |     shlibpath_overrides_runpath=yes | 
 | 20774 |     hardcode_into_libs=yes | 
 | 20775 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20776 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 20777 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20778 |     shlibpath_overrides_runpath=no | 
 | 20779 |     hardcode_into_libs=yes | 
 | 20780 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20781 |   freebsd*) # from 4.6 on | 
 | 20782 |     shlibpath_overrides_runpath=yes | 
 | 20783 |     hardcode_into_libs=yes | 
 | 20784 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20785 |   esac | 
 | 20786 |   ;; | 
 | 20787 |  | 
 | 20788 | gnu*) | 
 | 20789 |   version_type=linux | 
 | 20790 |   need_lib_prefix=no | 
 | 20791 |   need_version=no | 
 | 20792 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 20793 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20794 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20795 |   hardcode_into_libs=yes | 
 | 20796 |   ;; | 
 | 20797 |  | 
 | 20798 | hpux9* | hpux10* | hpux11*) | 
 | 20799 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 20800 |   # link against other versions. | 
 | 20801 |   version_type=sunos | 
 | 20802 |   need_lib_prefix=no | 
 | 20803 |   need_version=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20804 |   case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20805 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20806 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20807 |     hardcode_into_libs=yes | 
 | 20808 |     dynamic_linker="$host_os dld.so" | 
 | 20809 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 20810 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20811 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20812 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20813 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 20814 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 20815 |     else | 
 | 20816 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 20817 |     fi | 
 | 20818 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20819 |     ;; | 
 | 20820 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20821 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20822 |      hardcode_into_libs=yes | 
 | 20823 |      dynamic_linker="$host_os dld.sl" | 
 | 20824 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 20825 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 20826 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20827 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20828 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 20829 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 20830 |      ;; | 
 | 20831 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20832 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20833 |     dynamic_linker="$host_os dld.sl" | 
 | 20834 |     shlibpath_var=SHLIB_PATH | 
 | 20835 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 20836 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20837 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20838 |     ;; | 
 | 20839 |   esac | 
 | 20840 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 20841 |   postinstall_cmds='chmod 555 $lib' | 
 | 20842 |   ;; | 
 | 20843 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20844 | interix3*) | 
 | 20845 |   version_type=linux | 
 | 20846 |   need_lib_prefix=no | 
 | 20847 |   need_version=no | 
 | 20848 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20849 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20850 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 20851 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20852 |   shlibpath_overrides_runpath=no | 
 | 20853 |   hardcode_into_libs=yes | 
 | 20854 |   ;; | 
 | 20855 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20856 | irix5* | irix6* | nonstopux*) | 
 | 20857 |   case $host_os in | 
 | 20858 |     nonstopux*) version_type=nonstopux ;; | 
 | 20859 |     *) | 
 | 20860 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 20861 | 		version_type=linux | 
 | 20862 | 	else | 
 | 20863 | 		version_type=irix | 
 | 20864 | 	fi ;; | 
 | 20865 |   esac | 
 | 20866 |   need_lib_prefix=no | 
 | 20867 |   need_version=no | 
 | 20868 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20869 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 20870 |   case $host_os in | 
 | 20871 |   irix5* | nonstopux*) | 
 | 20872 |     libsuff= shlibsuff= | 
 | 20873 |     ;; | 
 | 20874 |   *) | 
 | 20875 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 20876 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 20877 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 20878 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 20879 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 20880 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 20881 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 20882 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 20883 |     esac | 
 | 20884 |     ;; | 
 | 20885 |   esac | 
 | 20886 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 20887 |   shlibpath_overrides_runpath=no | 
 | 20888 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 20889 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 20890 |   hardcode_into_libs=yes | 
 | 20891 |   ;; | 
 | 20892 |  | 
 | 20893 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 20894 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 20895 |   dynamic_linker=no | 
 | 20896 |   ;; | 
 | 20897 |  | 
 | 20898 | # This must be Linux ELF. | 
 | 20899 | linux*) | 
 | 20900 |   version_type=linux | 
 | 20901 |   need_lib_prefix=no | 
 | 20902 |   need_version=no | 
 | 20903 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20904 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20905 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 20906 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20907 |   shlibpath_overrides_runpath=no | 
 | 20908 |   # This implies no fast_install, which is unacceptable. | 
 | 20909 |   # Some rework will be needed to allow for fast_install | 
 | 20910 |   # before this can be enabled. | 
 | 20911 |   hardcode_into_libs=yes | 
 | 20912 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20913 |   # Append ld.so.conf contents to the search path | 
 | 20914 |   if test -f /etc/ld.so.conf; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20915 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20916 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 20917 |   fi | 
 | 20918 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20919 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 20920 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 20921 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 20922 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 20923 |   # people can always --disable-shared, the test was removed, and we | 
 | 20924 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 20925 |   dynamic_linker='GNU/Linux ld.so' | 
 | 20926 |   ;; | 
 | 20927 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20928 | knetbsd*-gnu) | 
 | 20929 |   version_type=linux | 
 | 20930 |   need_lib_prefix=no | 
 | 20931 |   need_version=no | 
 | 20932 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 20933 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20934 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20935 |   shlibpath_overrides_runpath=no | 
 | 20936 |   hardcode_into_libs=yes | 
 | 20937 |   dynamic_linker='GNU ld.so' | 
 | 20938 |   ;; | 
 | 20939 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20940 | netbsd*) | 
 | 20941 |   version_type=sunos | 
 | 20942 |   need_lib_prefix=no | 
 | 20943 |   need_version=no | 
 | 20944 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 20945 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20946 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20947 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 20948 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20949 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20950 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20951 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 20952 |   fi | 
 | 20953 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20954 |   shlibpath_overrides_runpath=yes | 
 | 20955 |   hardcode_into_libs=yes | 
 | 20956 |   ;; | 
 | 20957 |  | 
 | 20958 | newsos6) | 
 | 20959 |   version_type=linux | 
 | 20960 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20961 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20962 |   shlibpath_overrides_runpath=yes | 
 | 20963 |   ;; | 
 | 20964 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20965 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20966 |   version_type=linux | 
 | 20967 |   need_lib_prefix=no | 
 | 20968 |   need_version=no | 
 | 20969 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 20970 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 20971 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20972 |   shlibpath_overrides_runpath=yes | 
 | 20973 |   ;; | 
 | 20974 |  | 
 | 20975 | openbsd*) | 
 | 20976 |   version_type=sunos | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20977 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20978 |   need_lib_prefix=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20979 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 20980 |   case $host_os in | 
 | 20981 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
 | 20982 |     *)                         need_version=no  ;; | 
 | 20983 |   esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20984 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 20985 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 20986 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 20987 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 20988 |     case $host_os in | 
 | 20989 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 20990 | 	shlibpath_overrides_runpath=no | 
 | 20991 | 	;; | 
 | 20992 |       *) | 
 | 20993 | 	shlibpath_overrides_runpath=yes | 
 | 20994 | 	;; | 
 | 20995 |       esac | 
 | 20996 |   else | 
 | 20997 |     shlibpath_overrides_runpath=yes | 
 | 20998 |   fi | 
 | 20999 |   ;; | 
 | 21000 |  | 
 | 21001 | os2*) | 
 | 21002 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21003 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21004 |   need_lib_prefix=no | 
 | 21005 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 21006 |   dynamic_linker='OS/2 ld.exe' | 
 | 21007 |   shlibpath_var=LIBPATH | 
 | 21008 |   ;; | 
 | 21009 |  | 
 | 21010 | osf3* | osf4* | osf5*) | 
 | 21011 |   version_type=osf | 
 | 21012 |   need_lib_prefix=no | 
 | 21013 |   need_version=no | 
 | 21014 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 21015 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 21016 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21017 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 21018 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 21019 |   ;; | 
 | 21020 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21021 | solaris*) | 
 | 21022 |   version_type=linux | 
 | 21023 |   need_lib_prefix=no | 
 | 21024 |   need_version=no | 
 | 21025 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 21026 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 21027 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21028 |   shlibpath_overrides_runpath=yes | 
 | 21029 |   hardcode_into_libs=yes | 
 | 21030 |   # ldd complains unless libraries are executable | 
 | 21031 |   postinstall_cmds='chmod +x $lib' | 
 | 21032 |   ;; | 
 | 21033 |  | 
 | 21034 | sunos4*) | 
 | 21035 |   version_type=sunos | 
 | 21036 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 21037 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 21038 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21039 |   shlibpath_overrides_runpath=yes | 
 | 21040 |   if test "$with_gnu_ld" = yes; then | 
 | 21041 |     need_lib_prefix=no | 
 | 21042 |   fi | 
 | 21043 |   need_version=yes | 
 | 21044 |   ;; | 
 | 21045 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21046 | sysv4 | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21047 |   version_type=linux | 
 | 21048 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 21049 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 21050 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21051 |   case $host_vendor in | 
 | 21052 |     sni) | 
 | 21053 |       shlibpath_overrides_runpath=no | 
 | 21054 |       need_lib_prefix=no | 
 | 21055 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 21056 |       runpath_var=LD_RUN_PATH | 
 | 21057 |       ;; | 
 | 21058 |     siemens) | 
 | 21059 |       need_lib_prefix=no | 
 | 21060 |       ;; | 
 | 21061 |     motorola) | 
 | 21062 |       need_lib_prefix=no | 
 | 21063 |       need_version=no | 
 | 21064 |       shlibpath_overrides_runpath=no | 
 | 21065 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 21066 |       ;; | 
 | 21067 |   esac | 
 | 21068 |   ;; | 
 | 21069 |  | 
 | 21070 | sysv4*MP*) | 
 | 21071 |   if test -d /usr/nec ;then | 
 | 21072 |     version_type=linux | 
 | 21073 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 21074 |     soname_spec='$libname${shared_ext}.$major' | 
 | 21075 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 21076 |   fi | 
 | 21077 |   ;; | 
 | 21078 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 21080 |   version_type=freebsd-elf | 
 | 21081 |   need_lib_prefix=no | 
 | 21082 |   need_version=no | 
 | 21083 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 21084 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 21085 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21086 |   hardcode_into_libs=yes | 
 | 21087 |   if test "$with_gnu_ld" = yes; then | 
 | 21088 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 21089 |     shlibpath_overrides_runpath=no | 
 | 21090 |   else | 
 | 21091 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 21092 |     shlibpath_overrides_runpath=yes | 
 | 21093 |     case $host_os in | 
 | 21094 |       sco3.2v5*) | 
 | 21095 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 21096 | 	;; | 
 | 21097 |     esac | 
 | 21098 |   fi | 
 | 21099 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 21100 |   ;; | 
 | 21101 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21102 | uts4*) | 
 | 21103 |   version_type=linux | 
 | 21104 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 21105 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 21106 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 21107 |   ;; | 
 | 21108 |  | 
 | 21109 | *) | 
 | 21110 |   dynamic_linker=no | 
 | 21111 |   ;; | 
 | 21112 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21113 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 21114 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21115 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 21116 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21117 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 21118 | if test "$GCC" = yes; then | 
 | 21119 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 21120 | fi | 
 | 21121 |  | 
 | 21122 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 21123 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21124 | hardcode_action_CXX= | 
 | 21125 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | 
 | 21126 |    test -n "$runpath_var_CXX" || \ | 
 | 21127 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 21128 |  | 
 | 21129 |   # We can hardcode non-existant directories. | 
 | 21130 |   if test "$hardcode_direct_CXX" != no && | 
 | 21131 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 21132 |      # have to relink, otherwise we might link with an installed library | 
 | 21133 |      # when we should be linking with a yet-to-be-installed one | 
 | 21134 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 21135 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 21136 |     # Linking always hardcodes the temporary library directory. | 
 | 21137 |     hardcode_action_CXX=relink | 
 | 21138 |   else | 
 | 21139 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 21140 |     hardcode_action_CXX=immediate | 
 | 21141 |   fi | 
 | 21142 | else | 
 | 21143 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 21144 |   # directories. | 
 | 21145 |   hardcode_action_CXX=unsupported | 
 | 21146 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21147 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | 
 | 21148 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21149 |  | 
 | 21150 | if test "$hardcode_action_CXX" = relink; then | 
 | 21151 |   # Fast installation is not supported | 
 | 21152 |   enable_fast_install=no | 
 | 21153 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 21154 |      test "$enable_shared" = no; then | 
 | 21155 |   # Fast installation is not necessary | 
 | 21156 |   enable_fast_install=needless | 
 | 21157 | fi | 
 | 21158 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21159 |  | 
 | 21160 | # The else clause should only fire when bootstrapping the | 
 | 21161 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 21162 | # with your package, and you will get complaints that there are | 
 | 21163 | # no rules to generate ltmain.sh. | 
 | 21164 | if test -f "$ltmain"; then | 
 | 21165 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 21166 |   # without removal of \ escapes. | 
 | 21167 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 21168 |     setopt NO_GLOB_SUBST | 
 | 21169 |   fi | 
 | 21170 |   # Now quote all the things that may contain metacharacters while being | 
 | 21171 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 21172 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21173 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21174 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21175 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 21176 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 21177 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 21178 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 21179 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 21180 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 21181 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 21182 |     compiler_CXX \ | 
 | 21183 |     CC_CXX \ | 
 | 21184 |     LD_CXX \ | 
 | 21185 |     lt_prog_compiler_wl_CXX \ | 
 | 21186 |     lt_prog_compiler_pic_CXX \ | 
 | 21187 |     lt_prog_compiler_static_CXX \ | 
 | 21188 |     lt_prog_compiler_no_builtin_flag_CXX \ | 
 | 21189 |     export_dynamic_flag_spec_CXX \ | 
 | 21190 |     thread_safe_flag_spec_CXX \ | 
 | 21191 |     whole_archive_flag_spec_CXX \ | 
 | 21192 |     enable_shared_with_static_runtimes_CXX \ | 
 | 21193 |     old_archive_cmds_CXX \ | 
 | 21194 |     old_archive_from_new_cmds_CXX \ | 
 | 21195 |     predep_objects_CXX \ | 
 | 21196 |     postdep_objects_CXX \ | 
 | 21197 |     predeps_CXX \ | 
 | 21198 |     postdeps_CXX \ | 
 | 21199 |     compiler_lib_search_path_CXX \ | 
 | 21200 |     archive_cmds_CXX \ | 
 | 21201 |     archive_expsym_cmds_CXX \ | 
 | 21202 |     postinstall_cmds_CXX \ | 
 | 21203 |     postuninstall_cmds_CXX \ | 
 | 21204 |     old_archive_from_expsyms_cmds_CXX \ | 
 | 21205 |     allow_undefined_flag_CXX \ | 
 | 21206 |     no_undefined_flag_CXX \ | 
 | 21207 |     export_symbols_cmds_CXX \ | 
 | 21208 |     hardcode_libdir_flag_spec_CXX \ | 
 | 21209 |     hardcode_libdir_flag_spec_ld_CXX \ | 
 | 21210 |     hardcode_libdir_separator_CXX \ | 
 | 21211 |     hardcode_automatic_CXX \ | 
 | 21212 |     module_cmds_CXX \ | 
 | 21213 |     module_expsym_cmds_CXX \ | 
 | 21214 |     lt_cv_prog_compiler_c_o_CXX \ | 
 | 21215 |     exclude_expsyms_CXX \ | 
 | 21216 |     include_expsyms_CXX; do | 
 | 21217 |  | 
 | 21218 |     case $var in | 
 | 21219 |     old_archive_cmds_CXX | \ | 
 | 21220 |     old_archive_from_new_cmds_CXX | \ | 
 | 21221 |     archive_cmds_CXX | \ | 
 | 21222 |     archive_expsym_cmds_CXX | \ | 
 | 21223 |     module_cmds_CXX | \ | 
 | 21224 |     module_expsym_cmds_CXX | \ | 
 | 21225 |     old_archive_from_expsyms_cmds_CXX | \ | 
 | 21226 |     export_symbols_cmds_CXX | \ | 
 | 21227 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 21228 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 21229 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 21230 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 21231 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21232 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21233 |       ;; | 
 | 21234 |     *) | 
 | 21235 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 21236 |       ;; | 
 | 21237 |     esac | 
 | 21238 |   done | 
 | 21239 |  | 
 | 21240 |   case $lt_echo in | 
 | 21241 |   *'\$0 --fallback-echo"') | 
 | 21242 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 21243 |     ;; | 
 | 21244 |   esac | 
 | 21245 |  | 
 | 21246 | cfgfile="$ofile" | 
 | 21247 |  | 
 | 21248 |   cat <<__EOF__ >> "$cfgfile" | 
 | 21249 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 21250 |  | 
 | 21251 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 21252 |  | 
 | 21253 | # Shell to use when invoking shell scripts. | 
 | 21254 | SHELL=$lt_SHELL | 
 | 21255 |  | 
 | 21256 | # Whether or not to build shared libraries. | 
 | 21257 | build_libtool_libs=$enable_shared | 
 | 21258 |  | 
 | 21259 | # Whether or not to build static libraries. | 
 | 21260 | build_old_libs=$enable_static | 
 | 21261 |  | 
 | 21262 | # Whether or not to add -lc for building shared libraries. | 
 | 21263 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 21264 |  | 
 | 21265 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 21266 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 21267 |  | 
 | 21268 | # Whether or not to optimize for fast installation. | 
 | 21269 | fast_install=$enable_fast_install | 
 | 21270 |  | 
 | 21271 | # The host system. | 
 | 21272 | host_alias=$host_alias | 
 | 21273 | host=$host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21274 | host_os=$host_os | 
 | 21275 |  | 
 | 21276 | # The build system. | 
 | 21277 | build_alias=$build_alias | 
 | 21278 | build=$build | 
 | 21279 | build_os=$build_os | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21280 |  | 
 | 21281 | # An echo program that does not interpret backslashes. | 
 | 21282 | echo=$lt_echo | 
 | 21283 |  | 
 | 21284 | # The archiver. | 
 | 21285 | AR=$lt_AR | 
 | 21286 | AR_FLAGS=$lt_AR_FLAGS | 
 | 21287 |  | 
 | 21288 | # A C compiler. | 
 | 21289 | LTCC=$lt_LTCC | 
 | 21290 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21291 | # LTCC compiler flags. | 
 | 21292 | LTCFLAGS=$lt_LTCFLAGS | 
 | 21293 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21294 | # A language-specific compiler. | 
 | 21295 | CC=$lt_compiler_CXX | 
 | 21296 |  | 
 | 21297 | # Is the compiler the GNU C compiler? | 
 | 21298 | with_gcc=$GCC_CXX | 
 | 21299 |  | 
 | 21300 | # An ERE matcher. | 
 | 21301 | EGREP=$lt_EGREP | 
 | 21302 |  | 
 | 21303 | # The linker used to build libraries. | 
 | 21304 | LD=$lt_LD_CXX | 
 | 21305 |  | 
 | 21306 | # Whether we need hard or soft links. | 
 | 21307 | LN_S=$lt_LN_S | 
 | 21308 |  | 
 | 21309 | # A BSD-compatible nm program. | 
 | 21310 | NM=$lt_NM | 
 | 21311 |  | 
 | 21312 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21313 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21314 |  | 
 | 21315 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 21316 | MAGIC_CMD=$MAGIC_CMD | 
 | 21317 |  | 
 | 21318 | # Used on cygwin: DLL creation program. | 
 | 21319 | DLLTOOL="$DLLTOOL" | 
 | 21320 |  | 
 | 21321 | # Used on cygwin: object dumper. | 
 | 21322 | OBJDUMP="$OBJDUMP" | 
 | 21323 |  | 
 | 21324 | # Used on cygwin: assembler. | 
 | 21325 | AS="$AS" | 
 | 21326 |  | 
 | 21327 | # The name of the directory that contains temporary libtool files. | 
 | 21328 | objdir=$objdir | 
 | 21329 |  | 
 | 21330 | # How to create reloadable object files. | 
 | 21331 | reload_flag=$lt_reload_flag | 
 | 21332 | reload_cmds=$lt_reload_cmds | 
 | 21333 |  | 
 | 21334 | # How to pass a linker flag through the compiler. | 
 | 21335 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 21336 |  | 
 | 21337 | # Object file suffix (normally "o"). | 
 | 21338 | objext="$ac_objext" | 
 | 21339 |  | 
 | 21340 | # Old archive suffix (normally "a"). | 
 | 21341 | libext="$libext" | 
 | 21342 |  | 
 | 21343 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21344 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21345 |  | 
 | 21346 | # Executable file suffix (normally ""). | 
 | 21347 | exeext="$exeext" | 
 | 21348 |  | 
 | 21349 | # Additional compiler flags for building library objects. | 
 | 21350 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 21351 | pic_mode=$pic_mode | 
 | 21352 |  | 
 | 21353 | # What is the maximum length of a command? | 
 | 21354 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 21355 |  | 
 | 21356 | # Does compiler simultaneously support -c and -o options? | 
 | 21357 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 21358 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21359 | # Must we lock files when doing compilation? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21360 | need_locks=$lt_need_locks | 
 | 21361 |  | 
 | 21362 | # Do we need the lib prefix for modules? | 
 | 21363 | need_lib_prefix=$need_lib_prefix | 
 | 21364 |  | 
 | 21365 | # Do we need a version for libraries? | 
 | 21366 | need_version=$need_version | 
 | 21367 |  | 
 | 21368 | # Whether dlopen is supported. | 
 | 21369 | dlopen_support=$enable_dlopen | 
 | 21370 |  | 
 | 21371 | # Whether dlopen of programs is supported. | 
 | 21372 | dlopen_self=$enable_dlopen_self | 
 | 21373 |  | 
 | 21374 | # Whether dlopen of statically linked programs is supported. | 
 | 21375 | dlopen_self_static=$enable_dlopen_self_static | 
 | 21376 |  | 
 | 21377 | # Compiler flag to prevent dynamic linking. | 
 | 21378 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 21379 |  | 
 | 21380 | # Compiler flag to turn off builtin functions. | 
 | 21381 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 21382 |  | 
 | 21383 | # Compiler flag to allow reflexive dlopens. | 
 | 21384 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 21385 |  | 
 | 21386 | # Compiler flag to generate shared objects directly from archives. | 
 | 21387 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 21388 |  | 
 | 21389 | # Compiler flag to generate thread-safe objects. | 
 | 21390 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | 
 | 21391 |  | 
 | 21392 | # Library versioning type. | 
 | 21393 | version_type=$version_type | 
 | 21394 |  | 
 | 21395 | # Format of library name prefix. | 
 | 21396 | libname_spec=$lt_libname_spec | 
 | 21397 |  | 
 | 21398 | # List of archive names.  First name is the real one, the rest are links. | 
 | 21399 | # The last name is the one that the linker finds with -lNAME. | 
 | 21400 | library_names_spec=$lt_library_names_spec | 
 | 21401 |  | 
 | 21402 | # The coded name of the library, if different from the real name. | 
 | 21403 | soname_spec=$lt_soname_spec | 
 | 21404 |  | 
 | 21405 | # Commands used to build and install an old-style archive. | 
 | 21406 | RANLIB=$lt_RANLIB | 
 | 21407 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 21408 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 21409 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 21410 |  | 
 | 21411 | # Create an old-style archive from a shared archive. | 
 | 21412 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 21413 |  | 
 | 21414 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 21415 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 21416 |  | 
 | 21417 | # Commands used to build and install a shared archive. | 
 | 21418 | archive_cmds=$lt_archive_cmds_CXX | 
 | 21419 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 21420 | postinstall_cmds=$lt_postinstall_cmds | 
 | 21421 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 21422 |  | 
 | 21423 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 21424 | module_cmds=$lt_module_cmds_CXX | 
 | 21425 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 21426 |  | 
 | 21427 | # Commands to strip libraries. | 
 | 21428 | old_striplib=$lt_old_striplib | 
 | 21429 | striplib=$lt_striplib | 
 | 21430 |  | 
 | 21431 | # Dependencies to place before the objects being linked to create a | 
 | 21432 | # shared library. | 
 | 21433 | predep_objects=$lt_predep_objects_CXX | 
 | 21434 |  | 
 | 21435 | # Dependencies to place after the objects being linked to create a | 
 | 21436 | # shared library. | 
 | 21437 | postdep_objects=$lt_postdep_objects_CXX | 
 | 21438 |  | 
 | 21439 | # Dependencies to place before the objects being linked to create a | 
 | 21440 | # shared library. | 
 | 21441 | predeps=$lt_predeps_CXX | 
 | 21442 |  | 
 | 21443 | # Dependencies to place after the objects being linked to create a | 
 | 21444 | # shared library. | 
 | 21445 | postdeps=$lt_postdeps_CXX | 
 | 21446 |  | 
 | 21447 | # The library search path used internally by the compiler when linking | 
 | 21448 | # a shared library. | 
 | 21449 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 21450 |  | 
 | 21451 | # Method to check whether dependent libraries are shared objects. | 
 | 21452 | deplibs_check_method=$lt_deplibs_check_method | 
 | 21453 |  | 
 | 21454 | # Command to use when deplibs_check_method == file_magic. | 
 | 21455 | file_magic_cmd=$lt_file_magic_cmd | 
 | 21456 |  | 
 | 21457 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 21458 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 21459 |  | 
 | 21460 | # Flag that forces no undefined symbols. | 
 | 21461 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 21462 |  | 
 | 21463 | # Commands used to finish a libtool library installation in a directory. | 
 | 21464 | finish_cmds=$lt_finish_cmds | 
 | 21465 |  | 
 | 21466 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 21467 | finish_eval=$lt_finish_eval | 
 | 21468 |  | 
 | 21469 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 21470 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 21471 |  | 
 | 21472 | # Transform the output of nm in a proper C declaration | 
 | 21473 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 21474 |  | 
 | 21475 | # Transform the output of nm in a C name address pair | 
 | 21476 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 21477 |  | 
 | 21478 | # This is the shared library runtime path variable. | 
 | 21479 | runpath_var=$runpath_var | 
 | 21480 |  | 
 | 21481 | # This is the shared library path variable. | 
 | 21482 | shlibpath_var=$shlibpath_var | 
 | 21483 |  | 
 | 21484 | # Is shlibpath searched before the hard-coded library search path? | 
 | 21485 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 21486 |  | 
 | 21487 | # How to hardcode a shared library path into an executable. | 
 | 21488 | hardcode_action=$hardcode_action_CXX | 
 | 21489 |  | 
 | 21490 | # Whether we should hardcode library paths into libraries. | 
 | 21491 | hardcode_into_libs=$hardcode_into_libs | 
 | 21492 |  | 
 | 21493 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 21494 | # This must work even if \$libdir does not exist. | 
 | 21495 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 21496 |  | 
 | 21497 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 21498 | # a binary during linking. This must work even if \$libdir does | 
 | 21499 | # not exist. | 
 | 21500 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
 | 21501 |  | 
 | 21502 | # Whether we need a single -rpath flag with a separated argument. | 
 | 21503 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 21504 |  | 
 | 21505 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 21506 | # resulting binary. | 
 | 21507 | hardcode_direct=$hardcode_direct_CXX | 
 | 21508 |  | 
 | 21509 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 21510 | # resulting binary. | 
 | 21511 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 21512 |  | 
 | 21513 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 21514 | # the resulting binary. | 
 | 21515 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 21516 |  | 
 | 21517 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 21518 | # and all subsequent libraries and executables linked against it. | 
 | 21519 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 21520 |  | 
 | 21521 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 21522 | # restored at relink time. | 
 | 21523 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 21524 |  | 
 | 21525 | # Whether libtool must link a program against all its dependency libraries. | 
 | 21526 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 21527 |  | 
 | 21528 | # Compile-time system search path for libraries | 
 | 21529 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 21530 |  | 
 | 21531 | # Run-time system search path for libraries | 
 | 21532 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 21533 |  | 
 | 21534 | # Fix the shell variable \$srcfile for the compiler. | 
 | 21535 | fix_srcfile_path="$fix_srcfile_path_CXX" | 
 | 21536 |  | 
 | 21537 | # Set to yes if exported symbols are required. | 
 | 21538 | always_export_symbols=$always_export_symbols_CXX | 
 | 21539 |  | 
 | 21540 | # The commands to list exported symbols. | 
 | 21541 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 21542 |  | 
 | 21543 | # The commands to extract the exported symbol list from a shared archive. | 
 | 21544 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 21545 |  | 
 | 21546 | # Symbols that should not be listed in the preloaded symbols. | 
 | 21547 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 21548 |  | 
 | 21549 | # Symbols that must always be exported. | 
 | 21550 | include_expsyms=$lt_include_expsyms_CXX | 
 | 21551 |  | 
 | 21552 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 21553 |  | 
 | 21554 | __EOF__ | 
 | 21555 |  | 
 | 21556 |  | 
 | 21557 | else | 
 | 21558 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 21559 |   # `config.status --recheck' to rerun these tests and create the | 
 | 21560 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21561 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 21562 |   if test -f "$ltmain_in"; then | 
 | 21563 |     test -f Makefile && make "$ltmain" | 
 | 21564 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21565 | fi | 
 | 21566 |  | 
 | 21567 |  | 
 | 21568 | ac_ext=c | 
 | 21569 | ac_cpp='$CPP $CPPFLAGS' | 
 | 21570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 21571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 21573 |  | 
 | 21574 | CC=$lt_save_CC | 
 | 21575 | LDCXX=$LD | 
 | 21576 | LD=$lt_save_LD | 
 | 21577 | GCC=$lt_save_GCC | 
 | 21578 | with_gnu_ldcxx=$with_gnu_ld | 
 | 21579 | with_gnu_ld=$lt_save_with_gnu_ld | 
 | 21580 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 21581 | lt_cv_path_LD=$lt_save_path_LD | 
 | 21582 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 21583 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 21584 |  | 
 | 21585 | 	else | 
 | 21586 | 	  tagname="" | 
 | 21587 | 	fi | 
 | 21588 | 	;; | 
 | 21589 |  | 
 | 21590 |       F77) | 
 | 21591 | 	if test -n "$F77" && test "X$F77" != "Xno"; then | 
 | 21592 |  | 
 | 21593 | ac_ext=f | 
 | 21594 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | 
 | 21595 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 21596 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | 
 | 21597 |  | 
 | 21598 |  | 
 | 21599 | archive_cmds_need_lc_F77=no | 
 | 21600 | allow_undefined_flag_F77= | 
 | 21601 | always_export_symbols_F77=no | 
 | 21602 | archive_expsym_cmds_F77= | 
 | 21603 | export_dynamic_flag_spec_F77= | 
 | 21604 | hardcode_direct_F77=no | 
 | 21605 | hardcode_libdir_flag_spec_F77= | 
 | 21606 | hardcode_libdir_flag_spec_ld_F77= | 
 | 21607 | hardcode_libdir_separator_F77= | 
 | 21608 | hardcode_minus_L_F77=no | 
 | 21609 | hardcode_automatic_F77=no | 
 | 21610 | module_cmds_F77= | 
 | 21611 | module_expsym_cmds_F77= | 
 | 21612 | link_all_deplibs_F77=unknown | 
 | 21613 | old_archive_cmds_F77=$old_archive_cmds | 
 | 21614 | no_undefined_flag_F77= | 
 | 21615 | whole_archive_flag_spec_F77= | 
 | 21616 | enable_shared_with_static_runtimes_F77=no | 
 | 21617 |  | 
 | 21618 | # Source file extension for f77 test sources. | 
 | 21619 | ac_ext=f | 
 | 21620 |  | 
 | 21621 | # Object file extension for compiled f77 test sources. | 
 | 21622 | objext=o | 
 | 21623 | objext_F77=$objext | 
 | 21624 |  | 
 | 21625 | # Code to be used in simple compile tests | 
 | 21626 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" | 
 | 21627 |  | 
 | 21628 | # Code to be used in simple link tests | 
 | 21629 | lt_simple_link_test_code="      program t\n      end\n" | 
 | 21630 |  | 
 | 21631 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 21632 |  | 
 | 21633 | # If no C compiler was specified, use CC. | 
 | 21634 | LTCC=${LTCC-"$CC"} | 
 | 21635 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21636 | # If no C compiler flags were specified, use CFLAGS. | 
 | 21637 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 21638 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21639 | # Allow CC to be a program name with arguments. | 
 | 21640 | compiler=$CC | 
 | 21641 |  | 
 | 21642 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21643 | # save warnings/boilerplate of simple test code | 
 | 21644 | ac_outfile=conftest.$ac_objext | 
 | 21645 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 21646 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 21647 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 21648 | $rm conftest* | 
 | 21649 |  | 
 | 21650 | ac_outfile=conftest.$ac_objext | 
 | 21651 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 21652 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 21653 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 21654 | $rm conftest* | 
 | 21655 |  | 
 | 21656 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21657 | # Allow CC to be a program name with arguments. | 
 | 21658 | lt_save_CC="$CC" | 
 | 21659 | CC=${F77-"f77"} | 
 | 21660 | compiler=$CC | 
 | 21661 | compiler_F77=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21662 | for cc_temp in $compiler""; do | 
 | 21663 |   case $cc_temp in | 
 | 21664 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 21665 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 21666 |     \-*) ;; | 
 | 21667 |     *) break;; | 
 | 21668 |   esac | 
 | 21669 | done | 
 | 21670 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21671 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21672 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21673 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 
 | 21674 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | 
 | 21675 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 
 | 21676 | echo "${ECHO_T}$can_build_shared" >&6; } | 
 | 21677 |  | 
 | 21678 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 
 | 21679 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21680 | test "$can_build_shared" = "no" && enable_shared=no | 
 | 21681 |  | 
 | 21682 | # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 21683 | # are all built from PIC. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21684 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21685 | aix3*) | 
 | 21686 |   test "$enable_shared" = yes && enable_static=no | 
 | 21687 |   if test -n "$RANLIB"; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21688 |     archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21689 |     postinstall_cmds='$RANLIB $lib' | 
 | 21690 |   fi | 
 | 21691 |   ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21692 | aix4* | aix5*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21693 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 21694 |     test "$enable_shared" = yes && enable_static=no | 
 | 21695 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21696 |   ;; | 
 | 21697 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21698 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | 
 | 21699 | echo "${ECHO_T}$enable_shared" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21700 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21701 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | 
 | 21702 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21703 | # Make sure either enable_shared or enable_static is yes. | 
 | 21704 | test "$enable_shared" = yes || enable_static=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21705 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | 
 | 21706 | echo "${ECHO_T}$enable_static" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21707 |  | 
 | 21708 | GCC_F77="$G77" | 
 | 21709 | LD_F77="$LD" | 
 | 21710 |  | 
 | 21711 | lt_prog_compiler_wl_F77= | 
 | 21712 | lt_prog_compiler_pic_F77= | 
 | 21713 | lt_prog_compiler_static_F77= | 
 | 21714 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21715 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 21716 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21717 |  | 
 | 21718 |   if test "$GCC" = yes; then | 
 | 21719 |     lt_prog_compiler_wl_F77='-Wl,' | 
 | 21720 |     lt_prog_compiler_static_F77='-static' | 
 | 21721 |  | 
 | 21722 |     case $host_os in | 
 | 21723 |       aix*) | 
 | 21724 |       # All AIX code is PIC. | 
 | 21725 |       if test "$host_cpu" = ia64; then | 
 | 21726 | 	# AIX 5 now supports IA64 processor | 
 | 21727 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 21728 |       fi | 
 | 21729 |       ;; | 
 | 21730 |  | 
 | 21731 |     amigaos*) | 
 | 21732 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 21733 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 21734 |       # like `-m68040'. | 
 | 21735 |       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | 
 | 21736 |       ;; | 
 | 21737 |  | 
 | 21738 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 21739 |       # PIC is the default for these OSes. | 
 | 21740 |       ;; | 
 | 21741 |  | 
 | 21742 |     mingw* | pw32* | os2*) | 
 | 21743 |       # This hack is so that the source file can tell whether it is being | 
 | 21744 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21745 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 21746 |       ;; | 
 | 21747 |  | 
 | 21748 |     darwin* | rhapsody*) | 
 | 21749 |       # PIC is the default on this platform | 
 | 21750 |       # Common symbols not allowed in MH_DYLIB files | 
 | 21751 |       lt_prog_compiler_pic_F77='-fno-common' | 
 | 21752 |       ;; | 
 | 21753 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21754 |     interix3*) | 
 | 21755 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 21756 |       # Instead, we relocate shared libraries at runtime. | 
 | 21757 |       ;; | 
 | 21758 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21759 |     msdosdjgpp*) | 
 | 21760 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 21761 |       # on systems that don't support them. | 
 | 21762 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 21763 |       enable_shared=no | 
 | 21764 |       ;; | 
 | 21765 |  | 
 | 21766 |     sysv4*MP*) | 
 | 21767 |       if test -d /usr/nec; then | 
 | 21768 | 	lt_prog_compiler_pic_F77=-Kconform_pic | 
 | 21769 |       fi | 
 | 21770 |       ;; | 
 | 21771 |  | 
 | 21772 |     hpux*) | 
 | 21773 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21774 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21775 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21776 |       hppa*64*|ia64*) | 
 | 21777 | 	# +Z the default | 
 | 21778 | 	;; | 
 | 21779 |       *) | 
 | 21780 | 	lt_prog_compiler_pic_F77='-fPIC' | 
 | 21781 | 	;; | 
 | 21782 |       esac | 
 | 21783 |       ;; | 
 | 21784 |  | 
 | 21785 |     *) | 
 | 21786 |       lt_prog_compiler_pic_F77='-fPIC' | 
 | 21787 |       ;; | 
 | 21788 |     esac | 
 | 21789 |   else | 
 | 21790 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 21791 |     case $host_os in | 
 | 21792 |     aix*) | 
 | 21793 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21794 |       if test "$host_cpu" = ia64; then | 
 | 21795 | 	# AIX 5 now supports IA64 processor | 
 | 21796 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 21797 |       else | 
 | 21798 | 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | 
 | 21799 |       fi | 
 | 21800 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21801 |       darwin*) | 
 | 21802 |         # PIC is the default on this platform | 
 | 21803 |         # Common symbols not allowed in MH_DYLIB files | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21804 |        case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21805 |          xlc*) | 
 | 21806 |          lt_prog_compiler_pic_F77='-qnocommon' | 
 | 21807 |          lt_prog_compiler_wl_F77='-Wl,' | 
 | 21808 |          ;; | 
 | 21809 |        esac | 
 | 21810 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21811 |  | 
 | 21812 |     mingw* | pw32* | os2*) | 
 | 21813 |       # This hack is so that the source file can tell whether it is being | 
 | 21814 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 21815 |       lt_prog_compiler_pic_F77='-DDLL_EXPORT' | 
 | 21816 |       ;; | 
 | 21817 |  | 
 | 21818 |     hpux9* | hpux10* | hpux11*) | 
 | 21819 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21820 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 21821 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21822 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21823 |       hppa*64*|ia64*) | 
 | 21824 | 	# +Z the default | 
 | 21825 | 	;; | 
 | 21826 |       *) | 
 | 21827 | 	lt_prog_compiler_pic_F77='+Z' | 
 | 21828 | 	;; | 
 | 21829 |       esac | 
 | 21830 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 21831 |       lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | 
 | 21832 |       ;; | 
 | 21833 |  | 
 | 21834 |     irix5* | irix6* | nonstopux*) | 
 | 21835 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21836 |       # PIC (with -KPIC) is the default. | 
 | 21837 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 21838 |       ;; | 
 | 21839 |  | 
 | 21840 |     newsos6) | 
 | 21841 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 21842 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 21843 |       ;; | 
 | 21844 |  | 
 | 21845 |     linux*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21846 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21847 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21848 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 21849 | 	lt_prog_compiler_pic_F77='-KPIC' | 
 | 21850 | 	lt_prog_compiler_static_F77='-static' | 
 | 21851 |         ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21852 |       pgcc* | pgf77* | pgf90* | pgf95*) | 
 | 21853 |         # Portland Group compilers (*not* the Pentium gcc compiler, | 
 | 21854 | 	# which looks to be a dead project) | 
 | 21855 | 	lt_prog_compiler_wl_F77='-Wl,' | 
 | 21856 | 	lt_prog_compiler_pic_F77='-fpic' | 
 | 21857 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 21858 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21859 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21860 |         lt_prog_compiler_wl_F77='-Wl,' | 
 | 21861 |         # All Alpha code is PIC. | 
 | 21862 |         lt_prog_compiler_static_F77='-non_shared' | 
 | 21863 |         ;; | 
 | 21864 |       esac | 
 | 21865 |       ;; | 
 | 21866 |  | 
 | 21867 |     osf3* | osf4* | osf5*) | 
 | 21868 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21869 |       # All OSF/1 code is PIC. | 
 | 21870 |       lt_prog_compiler_static_F77='-non_shared' | 
 | 21871 |       ;; | 
 | 21872 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21873 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21874 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 21875 |       lt_prog_compiler_static_F77='-Bstatic' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21876 |       case $cc_basename in | 
 | 21877 |       f77* | f90* | f95*) | 
 | 21878 | 	lt_prog_compiler_wl_F77='-Qoption ld ';; | 
 | 21879 |       *) | 
 | 21880 | 	lt_prog_compiler_wl_F77='-Wl,';; | 
 | 21881 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21882 |       ;; | 
 | 21883 |  | 
 | 21884 |     sunos4*) | 
 | 21885 |       lt_prog_compiler_wl_F77='-Qoption ld ' | 
 | 21886 |       lt_prog_compiler_pic_F77='-PIC' | 
 | 21887 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 21888 |       ;; | 
 | 21889 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21890 |     sysv4 | sysv4.2uw2* | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21891 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21892 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 21893 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 21894 |       ;; | 
 | 21895 |  | 
 | 21896 |     sysv4*MP*) | 
 | 21897 |       if test -d /usr/nec ;then | 
 | 21898 | 	lt_prog_compiler_pic_F77='-Kconform_pic' | 
 | 21899 | 	lt_prog_compiler_static_F77='-Bstatic' | 
 | 21900 |       fi | 
 | 21901 |       ;; | 
 | 21902 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21903 |     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 21904 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21905 |       lt_prog_compiler_pic_F77='-KPIC' | 
 | 21906 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 21907 |       ;; | 
 | 21908 |  | 
 | 21909 |     unicos*) | 
 | 21910 |       lt_prog_compiler_wl_F77='-Wl,' | 
 | 21911 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 21912 |       ;; | 
 | 21913 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21914 |     uts4*) | 
 | 21915 |       lt_prog_compiler_pic_F77='-pic' | 
 | 21916 |       lt_prog_compiler_static_F77='-Bstatic' | 
 | 21917 |       ;; | 
 | 21918 |  | 
 | 21919 |     *) | 
 | 21920 |       lt_prog_compiler_can_build_shared_F77=no | 
 | 21921 |       ;; | 
 | 21922 |     esac | 
 | 21923 |   fi | 
 | 21924 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21925 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | 
 | 21926 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21927 |  | 
 | 21928 | # | 
 | 21929 | # Check to make sure the PIC flag actually works. | 
 | 21930 | # | 
 | 21931 | if test -n "$lt_prog_compiler_pic_F77"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21932 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21933 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | 
 | 21934 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21935 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | 
 | 21936 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 21937 | else | 
 | 21938 |   lt_prog_compiler_pic_works_F77=no | 
 | 21939 |   ac_outfile=conftest.$ac_objext | 
 | 21940 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 21941 |    lt_compiler_flag="$lt_prog_compiler_pic_F77" | 
 | 21942 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 21943 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 21944 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 21945 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 21946 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 21947 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21948 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21949 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 21950 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21951 |    (eval echo "\"\$as_me:21951: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21952 |    (eval "$lt_compile" 2>conftest.err) | 
 | 21953 |    ac_status=$? | 
 | 21954 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21955 |    echo "$as_me:21955: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21956 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 21957 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21958 |      # So say no if there are warnings other than the usual output. | 
 | 21959 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 21960 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 21961 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21962 |        lt_prog_compiler_pic_works_F77=yes | 
 | 21963 |      fi | 
 | 21964 |    fi | 
 | 21965 |    $rm conftest* | 
 | 21966 |  | 
 | 21967 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21968 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | 
 | 21969 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21970 |  | 
 | 21971 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | 
 | 21972 |     case $lt_prog_compiler_pic_F77 in | 
 | 21973 |      "" | " "*) ;; | 
 | 21974 |      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | 
 | 21975 |      esac | 
 | 21976 | else | 
 | 21977 |     lt_prog_compiler_pic_F77= | 
 | 21978 |      lt_prog_compiler_can_build_shared_F77=no | 
 | 21979 | fi | 
 | 21980 |  | 
 | 21981 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21982 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21983 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 21984 |   *djgpp*) | 
 | 21985 |     lt_prog_compiler_pic_F77= | 
 | 21986 |     ;; | 
 | 21987 |   *) | 
 | 21988 |     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | 
 | 21989 |     ;; | 
 | 21990 | esac | 
 | 21991 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21992 | # | 
 | 21993 | # Check to make sure the static flag actually works. | 
 | 21994 | # | 
 | 21995 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | 
 | 21996 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 21997 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | 
 | 21998 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | 
 | 21999 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22000 | else | 
 | 22001 |   lt_prog_compiler_static_works_F77=no | 
 | 22002 |    save_LDFLAGS="$LDFLAGS" | 
 | 22003 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 22004 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 22005 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 22006 |      # The linker can only warn and ignore the option if not recognized | 
 | 22007 |      # So say no if there are warnings | 
 | 22008 |      if test -s conftest.err; then | 
 | 22009 |        # Append any errors to the config.log. | 
 | 22010 |        cat conftest.err 1>&5 | 
 | 22011 |        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 
 | 22012 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 22013 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 22014 |          lt_prog_compiler_static_works_F77=yes | 
 | 22015 |        fi | 
 | 22016 |      else | 
 | 22017 |        lt_prog_compiler_static_works_F77=yes | 
 | 22018 |      fi | 
 | 22019 |    fi | 
 | 22020 |    $rm conftest* | 
 | 22021 |    LDFLAGS="$save_LDFLAGS" | 
 | 22022 |  | 
 | 22023 | fi | 
 | 22024 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | 
 | 22025 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | 
 | 22026 |  | 
 | 22027 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | 
 | 22028 |     : | 
 | 22029 | else | 
 | 22030 |     lt_prog_compiler_static_F77= | 
 | 22031 | fi | 
 | 22032 |  | 
 | 22033 |  | 
 | 22034 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 22035 | 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] | 22036 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 
 | 22037 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 22038 | else | 
 | 22039 |   lt_cv_prog_compiler_c_o_F77=no | 
 | 22040 |    $rm -r conftest 2>/dev/null | 
 | 22041 |    mkdir conftest | 
 | 22042 |    cd conftest | 
 | 22043 |    mkdir out | 
 | 22044 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 22045 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22046 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 22047 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 22048 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 22049 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 22050 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 22051 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22052 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22053 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 22054 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 22055 |    (eval echo "\"\$as_me:22055: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22056 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 22057 |    ac_status=$? | 
 | 22058 |    cat out/conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 22059 |    echo "$as_me:22059: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22060 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 22061 |    then | 
 | 22062 |      # The compiler can only warn and ignore the option if not recognized | 
 | 22063 |      # So say no if there are warnings | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22064 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 
 | 22065 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 22066 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22067 |        lt_cv_prog_compiler_c_o_F77=yes | 
 | 22068 |      fi | 
 | 22069 |    fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22070 |    chmod u+w . 2>&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22071 |    $rm conftest* | 
 | 22072 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 22073 |    # template instantiation | 
 | 22074 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 22075 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22076 |    cd .. | 
 | 22077 |    rmdir conftest | 
 | 22078 |    $rm conftest* | 
 | 22079 |  | 
 | 22080 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22081 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | 
 | 22082 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22083 |  | 
 | 22084 |  | 
 | 22085 | hard_links="nottested" | 
 | 22086 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | 
 | 22087 |   # do not overwrite the value of need_locks provided by the user | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22088 |   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 22089 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22090 |   hard_links=yes | 
 | 22091 |   $rm conftest* | 
 | 22092 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 22093 |   touch conftest.a | 
 | 22094 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 22095 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22096 |   { echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 22097 | echo "${ECHO_T}$hard_links" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22098 |   if test "$hard_links" = no; then | 
 | 22099 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 22100 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 22101 |     need_locks=warn | 
 | 22102 |   fi | 
 | 22103 | else | 
 | 22104 |   need_locks=no | 
 | 22105 | fi | 
 | 22106 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22107 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 22108 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22109 |  | 
 | 22110 |   runpath_var= | 
 | 22111 |   allow_undefined_flag_F77= | 
 | 22112 |   enable_shared_with_static_runtimes_F77=no | 
 | 22113 |   archive_cmds_F77= | 
 | 22114 |   archive_expsym_cmds_F77= | 
 | 22115 |   old_archive_From_new_cmds_F77= | 
 | 22116 |   old_archive_from_expsyms_cmds_F77= | 
 | 22117 |   export_dynamic_flag_spec_F77= | 
 | 22118 |   whole_archive_flag_spec_F77= | 
 | 22119 |   thread_safe_flag_spec_F77= | 
 | 22120 |   hardcode_libdir_flag_spec_F77= | 
 | 22121 |   hardcode_libdir_flag_spec_ld_F77= | 
 | 22122 |   hardcode_libdir_separator_F77= | 
 | 22123 |   hardcode_direct_F77=no | 
 | 22124 |   hardcode_minus_L_F77=no | 
 | 22125 |   hardcode_shlibpath_var_F77=unsupported | 
 | 22126 |   link_all_deplibs_F77=unknown | 
 | 22127 |   hardcode_automatic_F77=no | 
 | 22128 |   module_cmds_F77= | 
 | 22129 |   module_expsym_cmds_F77= | 
 | 22130 |   always_export_symbols_F77=no | 
 | 22131 |   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 22132 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 22133 |   # included in the symbol list | 
 | 22134 |   include_expsyms_F77= | 
 | 22135 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 22136 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 22137 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 22138 |   # as well as any symbol that contains `d'. | 
 | 22139 |   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | 
 | 22140 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 22141 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 22142 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 22143 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 22144 |   # preloaded symbol tables. | 
 | 22145 |   extract_expsyms_cmds= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22146 |   # Just being paranoid about ensuring that cc_basename is set. | 
 | 22147 |   for cc_temp in $compiler""; do | 
 | 22148 |   case $cc_temp in | 
 | 22149 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 22150 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 22151 |     \-*) ;; | 
 | 22152 |     *) break;; | 
 | 22153 |   esac | 
 | 22154 | done | 
 | 22155 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22156 |  | 
 | 22157 |   case $host_os in | 
 | 22158 |   cygwin* | mingw* | pw32*) | 
 | 22159 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 22160 |     # When not using gcc, we currently assume that we are using | 
 | 22161 |     # Microsoft Visual C++. | 
 | 22162 |     if test "$GCC" != yes; then | 
 | 22163 |       with_gnu_ld=no | 
 | 22164 |     fi | 
 | 22165 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22166 |   interix*) | 
 | 22167 |     # we just hope/assume this is gcc and not c89 (= MSVC++) | 
 | 22168 |     with_gnu_ld=yes | 
 | 22169 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22170 |   openbsd*) | 
 | 22171 |     with_gnu_ld=no | 
 | 22172 |     ;; | 
 | 22173 |   esac | 
 | 22174 |  | 
 | 22175 |   ld_shlibs_F77=yes | 
 | 22176 |   if test "$with_gnu_ld" = yes; then | 
 | 22177 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 22178 |     wlarc='${wl}' | 
 | 22179 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22180 |     # Set some defaults for GNU ld with shared library support. These | 
 | 22181 |     # are reset later if shared libraries are not supported. Putting them | 
 | 22182 |     # here allows them to be overridden if necessary. | 
 | 22183 |     runpath_var=LD_RUN_PATH | 
 | 22184 |     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | 
 | 22185 |     export_dynamic_flag_spec_F77='${wl}--export-dynamic' | 
 | 22186 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 22187 |     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 22188 | 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 22189 |       else | 
 | 22190 |   	whole_archive_flag_spec_F77= | 
 | 22191 |     fi | 
 | 22192 |     supports_anon_versioning=no | 
 | 22193 |     case `$LD -v 2>/dev/null` in | 
 | 22194 |       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 22195 |       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 22196 |       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 22197 |       *\ 2.11.*) ;; # other 2.11 versions | 
 | 22198 |       *) supports_anon_versioning=yes ;; | 
 | 22199 |     esac | 
 | 22200 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22201 |     # See if GNU ld supports shared libraries. | 
 | 22202 |     case $host_os in | 
 | 22203 |     aix3* | aix4* | aix5*) | 
 | 22204 |       # On AIX/PPC, the GNU linker is very broken | 
 | 22205 |       if test "$host_cpu" != ia64; then | 
 | 22206 | 	ld_shlibs_F77=no | 
 | 22207 | 	cat <<EOF 1>&2 | 
 | 22208 |  | 
 | 22209 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 22210 | *** to be unable to reliably create shared libraries on AIX. | 
 | 22211 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 22212 | *** really care for shared libraries, you may want to modify your PATH | 
 | 22213 | *** so that a non-GNU linker is found, and then restart. | 
 | 22214 |  | 
 | 22215 | EOF | 
 | 22216 |       fi | 
 | 22217 |       ;; | 
 | 22218 |  | 
 | 22219 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22220 |       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22221 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22222 |       hardcode_minus_L_F77=yes | 
 | 22223 |  | 
 | 22224 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 22225 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 22226 |       # to version 4, is to share data among multiple programs linked | 
 | 22227 |       # with the same dynamic library.  Since this doesn't match the | 
 | 22228 |       # behavior of shared libraries on other platforms, we can't use | 
 | 22229 |       # them. | 
 | 22230 |       ld_shlibs_F77=no | 
 | 22231 |       ;; | 
 | 22232 |  | 
 | 22233 |     beos*) | 
 | 22234 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 22235 | 	allow_undefined_flag_F77=unsupported | 
 | 22236 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 22237 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 22238 | 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 22239 |       else | 
 | 22240 | 	ld_shlibs_F77=no | 
 | 22241 |       fi | 
 | 22242 |       ;; | 
 | 22243 |  | 
 | 22244 |     cygwin* | mingw* | pw32*) | 
 | 22245 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | 
 | 22246 |       # as there is no search path for DLLs. | 
 | 22247 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22248 |       allow_undefined_flag_F77=unsupported | 
 | 22249 |       always_export_symbols_F77=no | 
 | 22250 |       enable_shared_with_static_runtimes_F77=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22251 |       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22252 |  | 
 | 22253 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22254 |         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22255 | 	# If the export-symbols file already is a .def file (1st line | 
 | 22256 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 22257 | 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 22258 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 22259 | 	else | 
 | 22260 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 22261 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22262 | 	fi~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22263 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22264 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22265 | 	ld_shlibs_F77=no | 
 | 22266 |       fi | 
 | 22267 |       ;; | 
 | 22268 |  | 
 | 22269 |     interix3*) | 
 | 22270 |       hardcode_direct_F77=no | 
 | 22271 |       hardcode_shlibpath_var_F77=no | 
 | 22272 |       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 22273 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 22274 |       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 22275 |       # Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 22276 |       # default) and relocated if they conflict, which is a slow very memory | 
 | 22277 |       # consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 22278 |       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 22279 |       # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 22280 |       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 22281 |       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 22282 |       ;; | 
 | 22283 |  | 
 | 22284 |     linux*) | 
 | 22285 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 22286 | 	tmp_addflag= | 
 | 22287 | 	case $cc_basename,$host_cpu in | 
 | 22288 | 	pgcc*)				# Portland Group C compiler | 
 | 22289 | 	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 22290 | 	  tmp_addflag=' $pic_flag' | 
 | 22291 | 	  ;; | 
 | 22292 | 	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers | 
 | 22293 | 	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 22294 | 	  tmp_addflag=' $pic_flag -Mnomain' ;; | 
 | 22295 | 	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64 | 
 | 22296 | 	  tmp_addflag=' -i_dynamic' ;; | 
 | 22297 | 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
 | 22298 | 	  tmp_addflag=' -i_dynamic -nofor_main' ;; | 
 | 22299 | 	ifc* | ifort*)			# Intel Fortran compiler | 
 | 22300 | 	  tmp_addflag=' -nofor_main' ;; | 
 | 22301 | 	esac | 
 | 22302 | 	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 22303 |  | 
 | 22304 | 	if test $supports_anon_versioning = yes; then | 
 | 22305 | 	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 22306 |   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 22307 |   $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
 | 22308 | 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 22309 | 	fi | 
 | 22310 |       else | 
 | 22311 | 	ld_shlibs_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22312 |       fi | 
 | 22313 |       ;; | 
 | 22314 |  | 
 | 22315 |     netbsd*) | 
 | 22316 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22317 | 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 22318 | 	wlarc= | 
 | 22319 |       else | 
 | 22320 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 22321 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 22322 |       fi | 
 | 22323 |       ;; | 
 | 22324 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22325 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22326 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 22327 | 	ld_shlibs_F77=no | 
 | 22328 | 	cat <<EOF 1>&2 | 
 | 22329 |  | 
 | 22330 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 22331 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 22332 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 22333 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 22334 | *** your PATH or compiler configuration so that the native linker is | 
 | 22335 | *** used, and then restart. | 
 | 22336 |  | 
 | 22337 | EOF | 
 | 22338 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 22339 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 22340 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 22341 |       else | 
 | 22342 | 	ld_shlibs_F77=no | 
 | 22343 |       fi | 
 | 22344 |       ;; | 
 | 22345 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22346 |     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 22347 |       case `$LD -v 2>&1` in | 
 | 22348 |         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
 | 22349 | 	ld_shlibs_F77=no | 
 | 22350 | 	cat <<_LT_EOF 1>&2 | 
 | 22351 |  | 
 | 22352 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
 | 22353 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
 | 22354 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 22355 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
 | 22356 | *** your PATH or compiler configuration so that the native linker is | 
 | 22357 | *** used, and then restart. | 
 | 22358 |  | 
 | 22359 | _LT_EOF | 
 | 22360 | 	;; | 
 | 22361 | 	*) | 
 | 22362 | 	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 22363 | 	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | 
 | 22364 | 	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | 
 | 22365 | 	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | 
 | 22366 | 	  else | 
 | 22367 | 	    ld_shlibs_F77=no | 
 | 22368 | 	  fi | 
 | 22369 | 	;; | 
 | 22370 |       esac | 
 | 22371 |       ;; | 
 | 22372 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22373 |     sunos4*) | 
 | 22374 |       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22375 |       wlarc= | 
 | 22376 |       hardcode_direct_F77=yes | 
 | 22377 |       hardcode_shlibpath_var_F77=no | 
 | 22378 |       ;; | 
 | 22379 |  | 
 | 22380 |     *) | 
 | 22381 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 22382 | 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 22383 | 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 22384 |       else | 
 | 22385 | 	ld_shlibs_F77=no | 
 | 22386 |       fi | 
 | 22387 |       ;; | 
 | 22388 |     esac | 
 | 22389 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22390 |     if test "$ld_shlibs_F77" = no; then | 
 | 22391 |       runpath_var= | 
 | 22392 |       hardcode_libdir_flag_spec_F77= | 
 | 22393 |       export_dynamic_flag_spec_F77= | 
 | 22394 |       whole_archive_flag_spec_F77= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22395 |     fi | 
 | 22396 |   else | 
 | 22397 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 22398 |     case $host_os in | 
 | 22399 |     aix3*) | 
 | 22400 |       allow_undefined_flag_F77=unsupported | 
 | 22401 |       always_export_symbols_F77=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22402 |       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22403 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 22404 |       # are no directories specified by -L. | 
 | 22405 |       hardcode_minus_L_F77=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22406 |       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22407 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 22408 | 	# broken collect2. | 
 | 22409 | 	hardcode_direct_F77=unsupported | 
 | 22410 |       fi | 
 | 22411 |       ;; | 
 | 22412 |  | 
 | 22413 |     aix4* | aix5*) | 
 | 22414 |       if test "$host_cpu" = ia64; then | 
 | 22415 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 22416 | 	# have to do anything special. | 
 | 22417 | 	aix_use_runtimelinking=no | 
 | 22418 | 	exp_sym_flag='-Bexport' | 
 | 22419 | 	no_entry_flag="" | 
 | 22420 |       else | 
 | 22421 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 22422 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 22423 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 22424 | 	  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' | 
 | 22425 | 	else | 
 | 22426 | 	  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' | 
 | 22427 | 	fi | 
 | 22428 | 	aix_use_runtimelinking=no | 
 | 22429 |  | 
 | 22430 | 	# Test if we are trying to use run time linking or normal | 
 | 22431 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 22432 | 	# need to do runtime linking. | 
 | 22433 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 22434 | 	  for ld_flag in $LDFLAGS; do | 
 | 22435 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 22436 |   	    aix_use_runtimelinking=yes | 
 | 22437 |   	    break | 
 | 22438 |   	  fi | 
 | 22439 | 	  done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22440 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22441 | 	esac | 
 | 22442 |  | 
 | 22443 | 	exp_sym_flag='-bexport' | 
 | 22444 | 	no_entry_flag='-bnoentry' | 
 | 22445 |       fi | 
 | 22446 |  | 
 | 22447 |       # When large executables or shared objects are built, AIX ld can | 
 | 22448 |       # have problems creating the table of contents.  If linking a library | 
 | 22449 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 22450 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 22451 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 22452 |  | 
 | 22453 |       archive_cmds_F77='' | 
 | 22454 |       hardcode_direct_F77=yes | 
 | 22455 |       hardcode_libdir_separator_F77=':' | 
 | 22456 |       link_all_deplibs_F77=yes | 
 | 22457 |  | 
 | 22458 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | 	case $host_os in aix4.[012]|aix4.[012].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22460 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 22461 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 22462 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 22463 | 	  if test -f "$collect2name" && \ | 
 | 22464 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 22465 | 	  then | 
 | 22466 |   	  # We have reworked collect2 | 
 | 22467 |   	  hardcode_direct_F77=yes | 
 | 22468 | 	  else | 
 | 22469 |   	  # We have old collect2 | 
 | 22470 |   	  hardcode_direct_F77=unsupported | 
 | 22471 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 22472 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 22473 |   	  # to unsupported forces relinking | 
 | 22474 |   	  hardcode_minus_L_F77=yes | 
 | 22475 |   	  hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22476 |   	  hardcode_libdir_separator_F77= | 
 | 22477 | 	  fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22478 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22479 | 	esac | 
 | 22480 | 	shared_flag='-shared' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22481 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 22482 | 	  shared_flag="$shared_flag "'${wl}-G' | 
 | 22483 | 	fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22484 |       else | 
 | 22485 | 	# not using gcc | 
 | 22486 | 	if test "$host_cpu" = ia64; then | 
 | 22487 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 22488 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 22489 | 	  shared_flag='-G' | 
 | 22490 | 	else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22491 | 	  if test "$aix_use_runtimelinking" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22492 | 	    shared_flag='${wl}-G' | 
 | 22493 | 	  else | 
 | 22494 | 	    shared_flag='${wl}-bM:SRE' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22495 | 	  fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22496 | 	fi | 
 | 22497 |       fi | 
 | 22498 |  | 
 | 22499 |       # It seems that -bexpall does not export symbols beginning with | 
 | 22500 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 22501 |       always_export_symbols_F77=yes | 
 | 22502 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 22503 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 22504 | 	# -berok will link without error, but may produce a broken library. | 
 | 22505 | 	allow_undefined_flag_F77='-berok' | 
 | 22506 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 22507 |        cat >conftest.$ac_ext <<_ACEOF | 
 | 22508 |       program main | 
 | 22509 |  | 
 | 22510 |       end | 
 | 22511 | _ACEOF | 
 | 22512 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22513 | if { (ac_try="$ac_link" | 
 | 22514 | case "(($ac_try" in | 
 | 22515 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22516 |   *) ac_try_echo=$ac_try;; | 
 | 22517 | esac | 
 | 22518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22519 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22520 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22521 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22522 |   rm -f conftest.er1 | 
 | 22523 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22524 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22525 |   (exit $ac_status); } && | 
 | 22526 | 	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 
 | 22527 |   { (case "(($ac_try" in | 
 | 22528 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22529 |   *) ac_try_echo=$ac_try;; | 
 | 22530 | esac | 
 | 22531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22532 |   (eval "$ac_try") 2>&5 | 
 | 22533 |   ac_status=$? | 
 | 22534 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22535 |   (exit $ac_status); }; } && | 
 | 22536 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 22537 |   { (case "(($ac_try" in | 
 | 22538 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22539 |   *) ac_try_echo=$ac_try;; | 
 | 22540 | esac | 
 | 22541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22542 |   (eval "$ac_try") 2>&5 | 
 | 22543 |   ac_status=$? | 
 | 22544 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22545 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22546 |  | 
 | 22547 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 22548 | }'` | 
 | 22549 | # Check for a 64-bit object if we didn't find anything. | 
 | 22550 | 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; } | 
 | 22551 | }'`; fi | 
 | 22552 | else | 
 | 22553 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22554 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22555 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22556 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22557 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22558 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22559 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22560 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22561 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 22562 |  | 
 | 22563 |        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22564 | 	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22565 |        else | 
 | 22566 | 	if test "$host_cpu" = ia64; then | 
 | 22567 | 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 
 | 22568 | 	  allow_undefined_flag_F77="-z nodefs" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22569 | 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22570 | 	else | 
 | 22571 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 22572 | 	 cat >conftest.$ac_ext <<_ACEOF | 
 | 22573 |       program main | 
 | 22574 |  | 
 | 22575 |       end | 
 | 22576 | _ACEOF | 
 | 22577 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22578 | if { (ac_try="$ac_link" | 
 | 22579 | case "(($ac_try" in | 
 | 22580 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22581 |   *) ac_try_echo=$ac_try;; | 
 | 22582 | esac | 
 | 22583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22584 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22585 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22586 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 22587 |   rm -f conftest.er1 | 
 | 22588 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22589 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22590 |   (exit $ac_status); } && | 
 | 22591 | 	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 
 | 22592 |   { (case "(($ac_try" in | 
 | 22593 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22594 |   *) ac_try_echo=$ac_try;; | 
 | 22595 | esac | 
 | 22596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22597 |   (eval "$ac_try") 2>&5 | 
 | 22598 |   ac_status=$? | 
 | 22599 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22600 |   (exit $ac_status); }; } && | 
 | 22601 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 22602 |   { (case "(($ac_try" in | 
 | 22603 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 22604 |   *) ac_try_echo=$ac_try;; | 
 | 22605 | esac | 
 | 22606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 22607 |   (eval "$ac_try") 2>&5 | 
 | 22608 |   ac_status=$? | 
 | 22609 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 22610 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22611 |  | 
 | 22612 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 22613 | }'` | 
 | 22614 | # Check for a 64-bit object if we didn't find anything. | 
 | 22615 | 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; } | 
 | 22616 | }'`; fi | 
 | 22617 | else | 
 | 22618 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22619 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 22620 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22621 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22622 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22623 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22624 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22625 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22626 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 22627 |  | 
 | 22628 | 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 22629 | 	  # Warning - without using the other run time loading flags, | 
 | 22630 | 	  # -berok will link without error, but may produce a broken library. | 
 | 22631 | 	  no_undefined_flag_F77=' ${wl}-bernotok' | 
 | 22632 | 	  allow_undefined_flag_F77=' ${wl}-berok' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22633 | 	  # Exported symbols can be pulled into shared objects from archives | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22634 | 	  whole_archive_flag_spec_F77='$convenience' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22635 | 	  archive_cmds_need_lc_F77=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22636 | 	  # This is similar to how AIX traditionally builds its shared libraries. | 
 | 22637 | 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22638 | 	fi | 
 | 22639 |       fi | 
 | 22640 |       ;; | 
 | 22641 |  | 
 | 22642 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22643 |       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22644 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22645 |       hardcode_minus_L_F77=yes | 
 | 22646 |       # see comment about different semantics on the GNU ld section | 
 | 22647 |       ld_shlibs_F77=no | 
 | 22648 |       ;; | 
 | 22649 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22650 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22651 |       export_dynamic_flag_spec_F77=-rdynamic | 
 | 22652 |       ;; | 
 | 22653 |  | 
 | 22654 |     cygwin* | mingw* | pw32*) | 
 | 22655 |       # When not using gcc, we currently assume that we are using | 
 | 22656 |       # Microsoft Visual C++. | 
 | 22657 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 22658 |       # no search path for DLLs. | 
 | 22659 |       hardcode_libdir_flag_spec_F77=' ' | 
 | 22660 |       allow_undefined_flag_F77=unsupported | 
 | 22661 |       # Tell ltmain to make .lib files, not .a files. | 
 | 22662 |       libext=lib | 
 | 22663 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22664 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22665 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22666 |       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22667 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 22668 |       old_archive_From_new_cmds_F77='true' | 
 | 22669 |       # FIXME: Should let the user specify the lib program. | 
 | 22670 |       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22671 |       fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22672 |       enable_shared_with_static_runtimes_F77=yes | 
 | 22673 |       ;; | 
 | 22674 |  | 
 | 22675 |     darwin* | rhapsody*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22676 |       case $host_os in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22677 |         rhapsody* | darwin1.[012]) | 
 | 22678 |          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | 
 | 22679 |          ;; | 
 | 22680 |        *) # Darwin 1.3 on | 
 | 22681 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 22682 |            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 22683 |          else | 
 | 22684 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 22685 |              10.[012]) | 
 | 22686 |                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 22687 |                ;; | 
 | 22688 |              10.*) | 
 | 22689 |                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | 
 | 22690 |                ;; | 
 | 22691 |            esac | 
 | 22692 |          fi | 
 | 22693 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22694 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22695 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22696 |       hardcode_direct_F77=no | 
 | 22697 |       hardcode_automatic_F77=yes | 
 | 22698 |       hardcode_shlibpath_var_F77=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22699 |       whole_archive_flag_spec_F77='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22700 |       link_all_deplibs_F77=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22701 |     if test "$GCC" = yes ; then | 
 | 22702 |     	output_verbose_link_cmd='echo' | 
 | 22703 |         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 22704 |       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22705 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22706 |       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 22707 |       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22708 |     else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22709 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22710 |         xlc*) | 
 | 22711 |          output_verbose_link_cmd='echo' | 
 | 22712 |          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 22713 |          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22714 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22715 |          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 22716 |           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22717 |           ;; | 
 | 22718 |        *) | 
 | 22719 |          ld_shlibs_F77=no | 
 | 22720 |           ;; | 
 | 22721 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22722 |     fi | 
 | 22723 |       ;; | 
 | 22724 |  | 
 | 22725 |     dgux*) | 
 | 22726 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22727 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22728 |       hardcode_shlibpath_var_F77=no | 
 | 22729 |       ;; | 
 | 22730 |  | 
 | 22731 |     freebsd1*) | 
 | 22732 |       ld_shlibs_F77=no | 
 | 22733 |       ;; | 
 | 22734 |  | 
 | 22735 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 22736 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 22737 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 22738 |     # extra space). | 
 | 22739 |     freebsd2.2*) | 
 | 22740 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 22741 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 22742 |       hardcode_direct_F77=yes | 
 | 22743 |       hardcode_shlibpath_var_F77=no | 
 | 22744 |       ;; | 
 | 22745 |  | 
 | 22746 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 22747 |     freebsd2*) | 
 | 22748 |       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22749 |       hardcode_direct_F77=yes | 
 | 22750 |       hardcode_minus_L_F77=yes | 
 | 22751 |       hardcode_shlibpath_var_F77=no | 
 | 22752 |       ;; | 
 | 22753 |  | 
 | 22754 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22755 |     freebsd* | kfreebsd*-gnu | dragonfly*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22756 |       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22757 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 22758 |       hardcode_direct_F77=yes | 
 | 22759 |       hardcode_shlibpath_var_F77=no | 
 | 22760 |       ;; | 
 | 22761 |  | 
 | 22762 |     hpux9*) | 
 | 22763 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22764 | 	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22765 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22766 | 	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22767 |       fi | 
 | 22768 |       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 22769 |       hardcode_libdir_separator_F77=: | 
 | 22770 |       hardcode_direct_F77=yes | 
 | 22771 |  | 
 | 22772 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 22773 |       # but as the default location of the library. | 
 | 22774 |       hardcode_minus_L_F77=yes | 
 | 22775 |       export_dynamic_flag_spec_F77='${wl}-E' | 
 | 22776 |       ;; | 
 | 22777 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22778 |     hpux10*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22779 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22780 | 	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22781 |       else | 
 | 22782 | 	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 22783 |       fi | 
 | 22784 |       if test "$with_gnu_ld" = no; then | 
 | 22785 | 	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 22786 | 	hardcode_libdir_separator_F77=: | 
 | 22787 |  | 
 | 22788 | 	hardcode_direct_F77=yes | 
 | 22789 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 22790 |  | 
 | 22791 | 	# hardcode_minus_L: Not really in the search PATH, | 
 | 22792 | 	# but as the default location of the library. | 
 | 22793 | 	hardcode_minus_L_F77=yes | 
 | 22794 |       fi | 
 | 22795 |       ;; | 
 | 22796 |  | 
 | 22797 |     hpux11*) | 
 | 22798 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 22799 | 	case $host_cpu in | 
 | 22800 | 	hppa*64*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22801 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22802 | 	  ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22803 | 	ia64*) | 
 | 22804 | 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22805 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22806 | 	*) | 
 | 22807 | 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22808 | 	  ;; | 
 | 22809 | 	esac | 
 | 22810 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22811 | 	case $host_cpu in | 
 | 22812 | 	hppa*64*) | 
 | 22813 | 	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22814 | 	  ;; | 
 | 22815 | 	ia64*) | 
 | 22816 | 	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22817 | 	  ;; | 
 | 22818 | 	*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22819 | 	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22820 | 	  ;; | 
 | 22821 | 	esac | 
 | 22822 |       fi | 
 | 22823 |       if test "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22824 | 	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | 
 | 22825 | 	hardcode_libdir_separator_F77=: | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22826 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22827 | 	case $host_cpu in | 
 | 22828 | 	hppa*64*|ia64*) | 
 | 22829 | 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 
 | 22830 | 	  hardcode_direct_F77=no | 
 | 22831 | 	  hardcode_shlibpath_var_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22832 | 	  ;; | 
 | 22833 | 	*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22834 | 	  hardcode_direct_F77=yes | 
 | 22835 | 	  export_dynamic_flag_spec_F77='${wl}-E' | 
 | 22836 |  | 
 | 22837 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 22838 | 	  # but as the default location of the library. | 
 | 22839 | 	  hardcode_minus_L_F77=yes | 
 | 22840 | 	  ;; | 
 | 22841 | 	esac | 
 | 22842 |       fi | 
 | 22843 |       ;; | 
 | 22844 |  | 
 | 22845 |     irix5* | irix6* | nonstopux*) | 
 | 22846 |       if test "$GCC" = yes; then | 
 | 22847 | 	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' | 
 | 22848 |       else | 
 | 22849 | 	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' | 
 | 22850 | 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | 
 | 22851 |       fi | 
 | 22852 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 22853 |       hardcode_libdir_separator_F77=: | 
 | 22854 |       link_all_deplibs_F77=yes | 
 | 22855 |       ;; | 
 | 22856 |  | 
 | 22857 |     netbsd*) | 
 | 22858 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 22859 | 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 22860 |       else | 
 | 22861 | 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 22862 |       fi | 
 | 22863 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 22864 |       hardcode_direct_F77=yes | 
 | 22865 |       hardcode_shlibpath_var_F77=no | 
 | 22866 |       ;; | 
 | 22867 |  | 
 | 22868 |     newsos6) | 
 | 22869 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22870 |       hardcode_direct_F77=yes | 
 | 22871 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 22872 |       hardcode_libdir_separator_F77=: | 
 | 22873 |       hardcode_shlibpath_var_F77=no | 
 | 22874 |       ;; | 
 | 22875 |  | 
 | 22876 |     openbsd*) | 
 | 22877 |       hardcode_direct_F77=yes | 
 | 22878 |       hardcode_shlibpath_var_F77=no | 
 | 22879 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 22880 | 	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22881 | 	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22882 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 22883 | 	export_dynamic_flag_spec_F77='${wl}-E' | 
 | 22884 |       else | 
 | 22885 |        case $host_os in | 
 | 22886 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 22887 | 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 22888 | 	   hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 22889 | 	   ;; | 
 | 22890 | 	 *) | 
 | 22891 | 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22892 | 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | 
 | 22893 | 	   ;; | 
 | 22894 |        esac | 
 | 22895 |       fi | 
 | 22896 |       ;; | 
 | 22897 |  | 
 | 22898 |     os2*) | 
 | 22899 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22900 |       hardcode_minus_L_F77=yes | 
 | 22901 |       allow_undefined_flag_F77=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22902 |       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22903 |       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 22904 |       ;; | 
 | 22905 |  | 
 | 22906 |     osf3*) | 
 | 22907 |       if test "$GCC" = yes; then | 
 | 22908 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22909 | 	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' | 
 | 22910 |       else | 
 | 22911 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 22912 | 	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' | 
 | 22913 |       fi | 
 | 22914 |       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 22915 |       hardcode_libdir_separator_F77=: | 
 | 22916 |       ;; | 
 | 22917 |  | 
 | 22918 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 22919 |       if test "$GCC" = yes; then | 
 | 22920 | 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | 
 | 22921 | 	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' | 
 | 22922 | 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | 
 | 22923 |       else | 
 | 22924 | 	allow_undefined_flag_F77=' -expect_unresolved \*' | 
 | 22925 | 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22926 | 	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~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22927 | 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22928 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22929 | 	# Both c and cxx compiler support -rpath directly | 
 | 22930 | 	hardcode_libdir_flag_spec_F77='-rpath $libdir' | 
 | 22931 |       fi | 
 | 22932 |       hardcode_libdir_separator_F77=: | 
 | 22933 |       ;; | 
 | 22934 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22935 |     solaris*) | 
 | 22936 |       no_undefined_flag_F77=' -z text' | 
 | 22937 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22938 | 	wlarc='${wl}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22939 | 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22940 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22941 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22942 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22943 | 	wlarc='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22944 | 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22945 | 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 22946 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22947 |       fi | 
 | 22948 |       hardcode_libdir_flag_spec_F77='-R$libdir' | 
 | 22949 |       hardcode_shlibpath_var_F77=no | 
 | 22950 |       case $host_os in | 
 | 22951 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22952 |       *) | 
 | 22953 |  	# The compiler driver will combine linker options so we | 
 | 22954 |  	# cannot just pass the convience library names through | 
 | 22955 |  	# without $wl, iff we do not link with $LD. | 
 | 22956 |  	# Luckily, gcc supports the same syntax we need for Sun Studio. | 
 | 22957 |  	# Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 22958 |  	case $wlarc in | 
 | 22959 |  	'') | 
 | 22960 |  	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | 
 | 22961 |  	*) | 
 | 22962 |  	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | 
 | 22963 |  	esac ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22964 |       esac | 
 | 22965 |       link_all_deplibs_F77=yes | 
 | 22966 |       ;; | 
 | 22967 |  | 
 | 22968 |     sunos4*) | 
 | 22969 |       if test "x$host_vendor" = xsequent; then | 
 | 22970 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 22971 | 	# files that make .init and .fini sections work. | 
 | 22972 | 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 22973 |       else | 
 | 22974 | 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 22975 |       fi | 
 | 22976 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 22977 |       hardcode_direct_F77=yes | 
 | 22978 |       hardcode_minus_L_F77=yes | 
 | 22979 |       hardcode_shlibpath_var_F77=no | 
 | 22980 |       ;; | 
 | 22981 |  | 
 | 22982 |     sysv4) | 
 | 22983 |       case $host_vendor in | 
 | 22984 | 	sni) | 
 | 22985 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22986 | 	  hardcode_direct_F77=yes # is this really true??? | 
 | 22987 | 	;; | 
 | 22988 | 	siemens) | 
 | 22989 | 	  ## LD is ld it makes a PLAMLIB | 
 | 22990 | 	  ## CC just makes a GrossModule. | 
 | 22991 | 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 22992 | 	  reload_cmds_F77='$CC -r -o $output$reload_objs' | 
 | 22993 | 	  hardcode_direct_F77=no | 
 | 22994 |         ;; | 
 | 22995 | 	motorola) | 
 | 22996 | 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 22997 | 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | 
 | 22998 | 	;; | 
 | 22999 |       esac | 
 | 23000 |       runpath_var='LD_RUN_PATH' | 
 | 23001 |       hardcode_shlibpath_var_F77=no | 
 | 23002 |       ;; | 
 | 23003 |  | 
 | 23004 |     sysv4.3*) | 
 | 23005 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 23006 |       hardcode_shlibpath_var_F77=no | 
 | 23007 |       export_dynamic_flag_spec_F77='-Bexport' | 
 | 23008 |       ;; | 
 | 23009 |  | 
 | 23010 |     sysv4*MP*) | 
 | 23011 |       if test -d /usr/nec; then | 
 | 23012 | 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 23013 | 	hardcode_shlibpath_var_F77=no | 
 | 23014 | 	runpath_var=LD_RUN_PATH | 
 | 23015 | 	hardcode_runpath_var=yes | 
 | 23016 | 	ld_shlibs_F77=yes | 
 | 23017 |       fi | 
 | 23018 |       ;; | 
 | 23019 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23020 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 
 | 23021 |       no_undefined_flag_F77='${wl}-z,text' | 
 | 23022 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23023 |       hardcode_shlibpath_var_F77=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23024 |       runpath_var='LD_RUN_PATH' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23025 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23026 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23027 | 	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23028 | 	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23029 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23030 | 	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23031 | 	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23032 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23033 |       ;; | 
 | 23034 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23035 |     sysv5* | sco3.2v5* | sco5v6*) | 
 | 23036 |       # Note: We can NOT use -z defs as we might desire, because we do not | 
 | 23037 |       # link with -lc, and that would cause any symbols used from libc to | 
 | 23038 |       # always be unresolved, which means just about no library would | 
 | 23039 |       # ever link correctly.  If we're not using GNU ld we use -z text | 
 | 23040 |       # though, which does catch some bad symbols but isn't as heavy-handed | 
 | 23041 |       # as -z defs. | 
 | 23042 |       no_undefined_flag_F77='${wl}-z,text' | 
 | 23043 |       allow_undefined_flag_F77='${wl}-z,nodefs' | 
 | 23044 |       archive_cmds_need_lc_F77=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23045 |       hardcode_shlibpath_var_F77=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23046 |       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 
 | 23047 |       hardcode_libdir_separator_F77=':' | 
 | 23048 |       link_all_deplibs_F77=yes | 
 | 23049 |       export_dynamic_flag_spec_F77='${wl}-Bexport' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23050 |       runpath_var='LD_RUN_PATH' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23051 |  | 
 | 23052 |       if test "$GCC" = yes; then | 
 | 23053 | 	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23054 | 	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23055 |       else | 
 | 23056 | 	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23057 | 	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 23058 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23059 |       ;; | 
 | 23060 |  | 
 | 23061 |     uts4*) | 
 | 23062 |       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 23063 |       hardcode_libdir_flag_spec_F77='-L$libdir' | 
 | 23064 |       hardcode_shlibpath_var_F77=no | 
 | 23065 |       ;; | 
 | 23066 |  | 
 | 23067 |     *) | 
 | 23068 |       ld_shlibs_F77=no | 
 | 23069 |       ;; | 
 | 23070 |     esac | 
 | 23071 |   fi | 
 | 23072 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23073 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | 
 | 23074 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23075 | test "$ld_shlibs_F77" = no && can_build_shared=no | 
 | 23076 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23077 | # | 
 | 23078 | # Do we need to explicitly link libc? | 
 | 23079 | # | 
 | 23080 | case "x$archive_cmds_need_lc_F77" in | 
 | 23081 | x|xyes) | 
 | 23082 |   # Assume -lc should be added | 
 | 23083 |   archive_cmds_need_lc_F77=yes | 
 | 23084 |  | 
 | 23085 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 23086 |     case $archive_cmds_F77 in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23087 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23088 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 23089 |       ;; | 
 | 23090 |     '$CC '*) | 
 | 23091 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 23092 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 23093 |       # to ld, don't add -lc before -lgcc. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23094 |       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 23095 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23096 |       $rm conftest* | 
 | 23097 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 23098 |  | 
 | 23099 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 23100 |   (eval $ac_compile) 2>&5 | 
 | 23101 |   ac_status=$? | 
 | 23102 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23103 |   (exit $ac_status); } 2>conftest.err; then | 
 | 23104 |         soname=conftest | 
 | 23105 |         lib=conftest | 
 | 23106 |         libobjs=conftest.$ac_objext | 
 | 23107 |         deplibs= | 
 | 23108 |         wl=$lt_prog_compiler_wl_F77 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23109 | 	pic_flag=$lt_prog_compiler_pic_F77 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23110 |         compiler_flags=-v | 
 | 23111 |         linker_flags=-v | 
 | 23112 |         verstring= | 
 | 23113 |         output_objdir=. | 
 | 23114 |         libname=conftest | 
 | 23115 |         lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | 
 | 23116 |         allow_undefined_flag_F77= | 
 | 23117 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 23118 |   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 23119 |   ac_status=$? | 
 | 23120 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 23121 |   (exit $ac_status); } | 
 | 23122 |         then | 
 | 23123 | 	  archive_cmds_need_lc_F77=no | 
 | 23124 |         else | 
 | 23125 | 	  archive_cmds_need_lc_F77=yes | 
 | 23126 |         fi | 
 | 23127 |         allow_undefined_flag_F77=$lt_save_allow_undefined_flag | 
 | 23128 |       else | 
 | 23129 |         cat conftest.err 1>&5 | 
 | 23130 |       fi | 
 | 23131 |       $rm conftest* | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23132 |       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | 
 | 23133 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23134 |       ;; | 
 | 23135 |     esac | 
 | 23136 |   fi | 
 | 23137 |   ;; | 
 | 23138 | esac | 
 | 23139 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23140 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 23141 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23142 | library_names_spec= | 
 | 23143 | libname_spec='lib$name' | 
 | 23144 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23145 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23146 | postinstall_cmds= | 
 | 23147 | postuninstall_cmds= | 
 | 23148 | finish_cmds= | 
 | 23149 | finish_eval= | 
 | 23150 | shlibpath_var= | 
 | 23151 | shlibpath_overrides_runpath=unknown | 
 | 23152 | version_type=none | 
 | 23153 | dynamic_linker="$host_os ld.so" | 
 | 23154 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 23155 | if test "$GCC" = yes; then | 
 | 23156 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 23157 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 23158 |     # if the path contains ";" then we assume it to be the separator | 
 | 23159 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 23160 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 23161 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 23162 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 23163 |   else | 
 | 23164 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 23165 |   fi | 
 | 23166 | else | 
 | 23167 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 23168 | fi | 
 | 23169 | need_lib_prefix=unknown | 
 | 23170 | hardcode_into_libs=no | 
 | 23171 |  | 
 | 23172 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 23173 | # flags to be left without arguments | 
 | 23174 | need_version=unknown | 
 | 23175 |  | 
 | 23176 | case $host_os in | 
 | 23177 | aix3*) | 
 | 23178 |   version_type=linux | 
 | 23179 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 23180 |   shlibpath_var=LIBPATH | 
 | 23181 |  | 
 | 23182 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 23183 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23184 |   ;; | 
 | 23185 |  | 
 | 23186 | aix4* | aix5*) | 
 | 23187 |   version_type=linux | 
 | 23188 |   need_lib_prefix=no | 
 | 23189 |   need_version=no | 
 | 23190 |   hardcode_into_libs=yes | 
 | 23191 |   if test "$host_cpu" = ia64; then | 
 | 23192 |     # AIX 5 supports IA64 | 
 | 23193 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 23194 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 23195 |   else | 
 | 23196 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 23197 |     # for dependence libraries.  The import file would start with | 
 | 23198 |     # the line `#! .'.  This would cause the generated library to | 
 | 23199 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 23200 |     # development snapshots of GCC prior to 3.0. | 
 | 23201 |     case $host_os in | 
 | 23202 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 23203 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 23204 | 	   echo ' yes ' | 
 | 23205 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 23206 | 	: | 
 | 23207 |       else | 
 | 23208 | 	can_build_shared=no | 
 | 23209 |       fi | 
 | 23210 |       ;; | 
 | 23211 |     esac | 
 | 23212 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 23213 |     # soname into executable. Probably we can add versioning support to | 
 | 23214 |     # collect2, so additional links can be useful in future. | 
 | 23215 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 23216 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 23217 |       # instead of lib<name>.a to let people know that these are not | 
 | 23218 |       # typical AIX shared libraries. | 
 | 23219 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23220 |     else | 
 | 23221 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 23222 |       # and later when we are not doing run time linking. | 
 | 23223 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 23224 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23225 |     fi | 
 | 23226 |     shlibpath_var=LIBPATH | 
 | 23227 |   fi | 
 | 23228 |   ;; | 
 | 23229 |  | 
 | 23230 | amigaos*) | 
 | 23231 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 23232 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23233 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23234 |   ;; | 
 | 23235 |  | 
 | 23236 | beos*) | 
 | 23237 |   library_names_spec='${libname}${shared_ext}' | 
 | 23238 |   dynamic_linker="$host_os ld.so" | 
 | 23239 |   shlibpath_var=LIBRARY_PATH | 
 | 23240 |   ;; | 
 | 23241 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23242 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23243 |   version_type=linux | 
 | 23244 |   need_version=no | 
 | 23245 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23246 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23247 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 23248 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23249 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 23250 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 23251 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 23252 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 23253 |   # libtool to hard-code these into programs | 
 | 23254 |   ;; | 
 | 23255 |  | 
 | 23256 | cygwin* | mingw* | pw32*) | 
 | 23257 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23258 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23259 |   need_version=no | 
 | 23260 |   need_lib_prefix=no | 
 | 23261 |  | 
 | 23262 |   case $GCC,$host_os in | 
 | 23263 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 23264 |     library_names_spec='$libname.dll.a' | 
 | 23265 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23266 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 23267 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 23268 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 23269 |       test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23270 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 23271 |       chmod a+x \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23272 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 23273 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23274 |        $rm \$dlpath' | 
 | 23275 |     shlibpath_overrides_runpath=yes | 
 | 23276 |  | 
 | 23277 |     case $host_os in | 
 | 23278 |     cygwin*) | 
 | 23279 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 23280 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23281 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23282 |       ;; | 
 | 23283 |     mingw*) | 
 | 23284 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 23285 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 23286 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 23287 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 23288 |         # It is most probably a Windows format PATH printed by | 
 | 23289 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 23290 |         # path with ; separators, and with drive letters. We can handle the | 
 | 23291 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 23292 |         # especially as we might pass files found there to a mingw objdump, | 
 | 23293 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 23294 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 23295 |       else | 
 | 23296 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 23297 |       fi | 
 | 23298 |       ;; | 
 | 23299 |     pw32*) | 
 | 23300 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23301 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23302 |       ;; | 
 | 23303 |     esac | 
 | 23304 |     ;; | 
 | 23305 |  | 
 | 23306 |   *) | 
 | 23307 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 23308 |     ;; | 
 | 23309 |   esac | 
 | 23310 |   dynamic_linker='Win32 ld.exe' | 
 | 23311 |   # FIXME: first we should search . and the directory the executable is in | 
 | 23312 |   shlibpath_var=PATH | 
 | 23313 |   ;; | 
 | 23314 |  | 
 | 23315 | darwin* | rhapsody*) | 
 | 23316 |   dynamic_linker="$host_os dyld" | 
 | 23317 |   version_type=darwin | 
 | 23318 |   need_lib_prefix=no | 
 | 23319 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23320 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23321 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 23322 |   shlibpath_overrides_runpath=yes | 
 | 23323 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23324 |   shrext_cmds='.dylib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23325 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23326 |   if test "$GCC" = yes; then | 
 | 23327 |     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"` | 
 | 23328 |   else | 
 | 23329 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23330 |   fi | 
 | 23331 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 23332 |   ;; | 
 | 23333 |  | 
 | 23334 | dgux*) | 
 | 23335 |   version_type=linux | 
 | 23336 |   need_lib_prefix=no | 
 | 23337 |   need_version=no | 
 | 23338 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 23339 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23340 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23341 |   ;; | 
 | 23342 |  | 
 | 23343 | freebsd1*) | 
 | 23344 |   dynamic_linker=no | 
 | 23345 |   ;; | 
 | 23346 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23347 | kfreebsd*-gnu) | 
 | 23348 |   version_type=linux | 
 | 23349 |   need_lib_prefix=no | 
 | 23350 |   need_version=no | 
 | 23351 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 23352 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23353 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23354 |   shlibpath_overrides_runpath=no | 
 | 23355 |   hardcode_into_libs=yes | 
 | 23356 |   dynamic_linker='GNU ld.so' | 
 | 23357 |   ;; | 
 | 23358 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23359 | freebsd* | dragonfly*) | 
 | 23360 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 23361 |   # versioning mechanism, adjust this. | 
 | 23362 |   if test -x /usr/bin/objformat; then | 
 | 23363 |     objformat=`/usr/bin/objformat` | 
 | 23364 |   else | 
 | 23365 |     case $host_os in | 
 | 23366 |     freebsd[123]*) objformat=aout ;; | 
 | 23367 |     *) objformat=elf ;; | 
 | 23368 |     esac | 
 | 23369 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23370 |   version_type=freebsd-$objformat | 
 | 23371 |   case $version_type in | 
 | 23372 |     freebsd-elf*) | 
 | 23373 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 23374 |       need_version=no | 
 | 23375 |       need_lib_prefix=no | 
 | 23376 |       ;; | 
 | 23377 |     freebsd-*) | 
 | 23378 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 23379 |       need_version=yes | 
 | 23380 |       ;; | 
 | 23381 |   esac | 
 | 23382 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23383 |   case $host_os in | 
 | 23384 |   freebsd2*) | 
 | 23385 |     shlibpath_overrides_runpath=yes | 
 | 23386 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23387 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23388 |     shlibpath_overrides_runpath=yes | 
 | 23389 |     hardcode_into_libs=yes | 
 | 23390 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23391 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 23392 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23393 |     shlibpath_overrides_runpath=no | 
 | 23394 |     hardcode_into_libs=yes | 
 | 23395 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23396 |   freebsd*) # from 4.6 on | 
 | 23397 |     shlibpath_overrides_runpath=yes | 
 | 23398 |     hardcode_into_libs=yes | 
 | 23399 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23400 |   esac | 
 | 23401 |   ;; | 
 | 23402 |  | 
 | 23403 | gnu*) | 
 | 23404 |   version_type=linux | 
 | 23405 |   need_lib_prefix=no | 
 | 23406 |   need_version=no | 
 | 23407 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 23408 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23409 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23410 |   hardcode_into_libs=yes | 
 | 23411 |   ;; | 
 | 23412 |  | 
 | 23413 | hpux9* | hpux10* | hpux11*) | 
 | 23414 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 23415 |   # link against other versions. | 
 | 23416 |   version_type=sunos | 
 | 23417 |   need_lib_prefix=no | 
 | 23418 |   need_version=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23419 |   case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23420 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23421 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23422 |     hardcode_into_libs=yes | 
 | 23423 |     dynamic_linker="$host_os dld.so" | 
 | 23424 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 23425 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 23426 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23427 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23428 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 23429 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 23430 |     else | 
 | 23431 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 23432 |     fi | 
 | 23433 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 23434 |     ;; | 
 | 23435 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23436 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23437 |      hardcode_into_libs=yes | 
 | 23438 |      dynamic_linker="$host_os dld.sl" | 
 | 23439 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 23440 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 23441 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23442 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23443 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 23444 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 23445 |      ;; | 
 | 23446 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23447 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23448 |     dynamic_linker="$host_os dld.sl" | 
 | 23449 |     shlibpath_var=SHLIB_PATH | 
 | 23450 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 23451 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23452 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23453 |     ;; | 
 | 23454 |   esac | 
 | 23455 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 23456 |   postinstall_cmds='chmod 555 $lib' | 
 | 23457 |   ;; | 
 | 23458 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23459 | interix3*) | 
 | 23460 |   version_type=linux | 
 | 23461 |   need_lib_prefix=no | 
 | 23462 |   need_version=no | 
 | 23463 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 23464 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23465 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 23466 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23467 |   shlibpath_overrides_runpath=no | 
 | 23468 |   hardcode_into_libs=yes | 
 | 23469 |   ;; | 
 | 23470 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23471 | irix5* | irix6* | nonstopux*) | 
 | 23472 |   case $host_os in | 
 | 23473 |     nonstopux*) version_type=nonstopux ;; | 
 | 23474 |     *) | 
 | 23475 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 23476 | 		version_type=linux | 
 | 23477 | 	else | 
 | 23478 | 		version_type=irix | 
 | 23479 | 	fi ;; | 
 | 23480 |   esac | 
 | 23481 |   need_lib_prefix=no | 
 | 23482 |   need_version=no | 
 | 23483 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23484 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 23485 |   case $host_os in | 
 | 23486 |   irix5* | nonstopux*) | 
 | 23487 |     libsuff= shlibsuff= | 
 | 23488 |     ;; | 
 | 23489 |   *) | 
 | 23490 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 23491 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 23492 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 23493 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 23494 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 23495 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 23496 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 23497 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 23498 |     esac | 
 | 23499 |     ;; | 
 | 23500 |   esac | 
 | 23501 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 23502 |   shlibpath_overrides_runpath=no | 
 | 23503 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 23504 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 23505 |   hardcode_into_libs=yes | 
 | 23506 |   ;; | 
 | 23507 |  | 
 | 23508 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 23509 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 23510 |   dynamic_linker=no | 
 | 23511 |   ;; | 
 | 23512 |  | 
 | 23513 | # This must be Linux ELF. | 
 | 23514 | linux*) | 
 | 23515 |   version_type=linux | 
 | 23516 |   need_lib_prefix=no | 
 | 23517 |   need_version=no | 
 | 23518 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23519 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23520 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 23521 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23522 |   shlibpath_overrides_runpath=no | 
 | 23523 |   # This implies no fast_install, which is unacceptable. | 
 | 23524 |   # Some rework will be needed to allow for fast_install | 
 | 23525 |   # before this can be enabled. | 
 | 23526 |   hardcode_into_libs=yes | 
 | 23527 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23528 |   # Append ld.so.conf contents to the search path | 
 | 23529 |   if test -f /etc/ld.so.conf; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23530 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23531 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 23532 |   fi | 
 | 23533 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23534 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 23535 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 23536 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 23537 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 23538 |   # people can always --disable-shared, the test was removed, and we | 
 | 23539 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 23540 |   dynamic_linker='GNU/Linux ld.so' | 
 | 23541 |   ;; | 
 | 23542 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23543 | knetbsd*-gnu) | 
 | 23544 |   version_type=linux | 
 | 23545 |   need_lib_prefix=no | 
 | 23546 |   need_version=no | 
 | 23547 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 23548 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23549 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23550 |   shlibpath_overrides_runpath=no | 
 | 23551 |   hardcode_into_libs=yes | 
 | 23552 |   dynamic_linker='GNU ld.so' | 
 | 23553 |   ;; | 
 | 23554 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23555 | netbsd*) | 
 | 23556 |   version_type=sunos | 
 | 23557 |   need_lib_prefix=no | 
 | 23558 |   need_version=no | 
 | 23559 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 23560 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 23561 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 23562 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 23563 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23564 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23565 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23566 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 23567 |   fi | 
 | 23568 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23569 |   shlibpath_overrides_runpath=yes | 
 | 23570 |   hardcode_into_libs=yes | 
 | 23571 |   ;; | 
 | 23572 |  | 
 | 23573 | newsos6) | 
 | 23574 |   version_type=linux | 
 | 23575 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23576 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23577 |   shlibpath_overrides_runpath=yes | 
 | 23578 |   ;; | 
 | 23579 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23580 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23581 |   version_type=linux | 
 | 23582 |   need_lib_prefix=no | 
 | 23583 |   need_version=no | 
 | 23584 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23585 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23586 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23587 |   shlibpath_overrides_runpath=yes | 
 | 23588 |   ;; | 
 | 23589 |  | 
 | 23590 | openbsd*) | 
 | 23591 |   version_type=sunos | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23592 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23593 |   need_lib_prefix=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23594 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 23595 |   case $host_os in | 
 | 23596 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
 | 23597 |     *)                         need_version=no  ;; | 
 | 23598 |   esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23599 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 23600 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 23601 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23602 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 23603 |     case $host_os in | 
 | 23604 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 23605 | 	shlibpath_overrides_runpath=no | 
 | 23606 | 	;; | 
 | 23607 |       *) | 
 | 23608 | 	shlibpath_overrides_runpath=yes | 
 | 23609 | 	;; | 
 | 23610 |       esac | 
 | 23611 |   else | 
 | 23612 |     shlibpath_overrides_runpath=yes | 
 | 23613 |   fi | 
 | 23614 |   ;; | 
 | 23615 |  | 
 | 23616 | os2*) | 
 | 23617 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23618 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23619 |   need_lib_prefix=no | 
 | 23620 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 23621 |   dynamic_linker='OS/2 ld.exe' | 
 | 23622 |   shlibpath_var=LIBPATH | 
 | 23623 |   ;; | 
 | 23624 |  | 
 | 23625 | osf3* | osf4* | osf5*) | 
 | 23626 |   version_type=osf | 
 | 23627 |   need_lib_prefix=no | 
 | 23628 |   need_version=no | 
 | 23629 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23630 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23631 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23632 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 23633 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 23634 |   ;; | 
 | 23635 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23636 | solaris*) | 
 | 23637 |   version_type=linux | 
 | 23638 |   need_lib_prefix=no | 
 | 23639 |   need_version=no | 
 | 23640 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23641 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23642 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23643 |   shlibpath_overrides_runpath=yes | 
 | 23644 |   hardcode_into_libs=yes | 
 | 23645 |   # ldd complains unless libraries are executable | 
 | 23646 |   postinstall_cmds='chmod +x $lib' | 
 | 23647 |   ;; | 
 | 23648 |  | 
 | 23649 | sunos4*) | 
 | 23650 |   version_type=sunos | 
 | 23651 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 23652 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 23653 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23654 |   shlibpath_overrides_runpath=yes | 
 | 23655 |   if test "$with_gnu_ld" = yes; then | 
 | 23656 |     need_lib_prefix=no | 
 | 23657 |   fi | 
 | 23658 |   need_version=yes | 
 | 23659 |   ;; | 
 | 23660 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23661 | sysv4 | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23662 |   version_type=linux | 
 | 23663 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23664 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23665 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23666 |   case $host_vendor in | 
 | 23667 |     sni) | 
 | 23668 |       shlibpath_overrides_runpath=no | 
 | 23669 |       need_lib_prefix=no | 
 | 23670 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 23671 |       runpath_var=LD_RUN_PATH | 
 | 23672 |       ;; | 
 | 23673 |     siemens) | 
 | 23674 |       need_lib_prefix=no | 
 | 23675 |       ;; | 
 | 23676 |     motorola) | 
 | 23677 |       need_lib_prefix=no | 
 | 23678 |       need_version=no | 
 | 23679 |       shlibpath_overrides_runpath=no | 
 | 23680 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 23681 |       ;; | 
 | 23682 |   esac | 
 | 23683 |   ;; | 
 | 23684 |  | 
 | 23685 | sysv4*MP*) | 
 | 23686 |   if test -d /usr/nec ;then | 
 | 23687 |     version_type=linux | 
 | 23688 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 23689 |     soname_spec='$libname${shared_ext}.$major' | 
 | 23690 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 23691 |   fi | 
 | 23692 |   ;; | 
 | 23693 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23694 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 23695 |   version_type=freebsd-elf | 
 | 23696 |   need_lib_prefix=no | 
 | 23697 |   need_version=no | 
 | 23698 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 23699 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23700 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23701 |   hardcode_into_libs=yes | 
 | 23702 |   if test "$with_gnu_ld" = yes; then | 
 | 23703 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 23704 |     shlibpath_overrides_runpath=no | 
 | 23705 |   else | 
 | 23706 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 23707 |     shlibpath_overrides_runpath=yes | 
 | 23708 |     case $host_os in | 
 | 23709 |       sco3.2v5*) | 
 | 23710 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 23711 | 	;; | 
 | 23712 |     esac | 
 | 23713 |   fi | 
 | 23714 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 23715 |   ;; | 
 | 23716 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23717 | uts4*) | 
 | 23718 |   version_type=linux | 
 | 23719 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 23720 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 23721 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 23722 |   ;; | 
 | 23723 |  | 
 | 23724 | *) | 
 | 23725 |   dynamic_linker=no | 
 | 23726 |   ;; | 
 | 23727 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23728 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 23729 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23730 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 23731 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23732 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 23733 | if test "$GCC" = yes; then | 
 | 23734 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 23735 | fi | 
 | 23736 |  | 
 | 23737 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 23738 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23739 | hardcode_action_F77= | 
 | 23740 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | 
 | 23741 |    test -n "$runpath_var_F77" || \ | 
 | 23742 |    test "X$hardcode_automatic_F77" = "Xyes" ; then | 
 | 23743 |  | 
 | 23744 |   # We can hardcode non-existant directories. | 
 | 23745 |   if test "$hardcode_direct_F77" != no && | 
 | 23746 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 23747 |      # have to relink, otherwise we might link with an installed library | 
 | 23748 |      # when we should be linking with a yet-to-be-installed one | 
 | 23749 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | 
 | 23750 |      test "$hardcode_minus_L_F77" != no; then | 
 | 23751 |     # Linking always hardcodes the temporary library directory. | 
 | 23752 |     hardcode_action_F77=relink | 
 | 23753 |   else | 
 | 23754 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 23755 |     hardcode_action_F77=immediate | 
 | 23756 |   fi | 
 | 23757 | else | 
 | 23758 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 23759 |   # directories. | 
 | 23760 |   hardcode_action_F77=unsupported | 
 | 23761 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23762 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | 
 | 23763 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23764 |  | 
 | 23765 | if test "$hardcode_action_F77" = relink; then | 
 | 23766 |   # Fast installation is not supported | 
 | 23767 |   enable_fast_install=no | 
 | 23768 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 23769 |      test "$enable_shared" = no; then | 
 | 23770 |   # Fast installation is not necessary | 
 | 23771 |   enable_fast_install=needless | 
 | 23772 | fi | 
 | 23773 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23774 |  | 
 | 23775 | # The else clause should only fire when bootstrapping the | 
 | 23776 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 23777 | # with your package, and you will get complaints that there are | 
 | 23778 | # no rules to generate ltmain.sh. | 
 | 23779 | if test -f "$ltmain"; then | 
 | 23780 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 23781 |   # without removal of \ escapes. | 
 | 23782 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 23783 |     setopt NO_GLOB_SUBST | 
 | 23784 |   fi | 
 | 23785 |   # Now quote all the things that may contain metacharacters while being | 
 | 23786 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 23787 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23788 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23789 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23790 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 23791 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 23792 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 23793 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 23794 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 23795 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 23796 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 23797 |     compiler_F77 \ | 
 | 23798 |     CC_F77 \ | 
 | 23799 |     LD_F77 \ | 
 | 23800 |     lt_prog_compiler_wl_F77 \ | 
 | 23801 |     lt_prog_compiler_pic_F77 \ | 
 | 23802 |     lt_prog_compiler_static_F77 \ | 
 | 23803 |     lt_prog_compiler_no_builtin_flag_F77 \ | 
 | 23804 |     export_dynamic_flag_spec_F77 \ | 
 | 23805 |     thread_safe_flag_spec_F77 \ | 
 | 23806 |     whole_archive_flag_spec_F77 \ | 
 | 23807 |     enable_shared_with_static_runtimes_F77 \ | 
 | 23808 |     old_archive_cmds_F77 \ | 
 | 23809 |     old_archive_from_new_cmds_F77 \ | 
 | 23810 |     predep_objects_F77 \ | 
 | 23811 |     postdep_objects_F77 \ | 
 | 23812 |     predeps_F77 \ | 
 | 23813 |     postdeps_F77 \ | 
 | 23814 |     compiler_lib_search_path_F77 \ | 
 | 23815 |     archive_cmds_F77 \ | 
 | 23816 |     archive_expsym_cmds_F77 \ | 
 | 23817 |     postinstall_cmds_F77 \ | 
 | 23818 |     postuninstall_cmds_F77 \ | 
 | 23819 |     old_archive_from_expsyms_cmds_F77 \ | 
 | 23820 |     allow_undefined_flag_F77 \ | 
 | 23821 |     no_undefined_flag_F77 \ | 
 | 23822 |     export_symbols_cmds_F77 \ | 
 | 23823 |     hardcode_libdir_flag_spec_F77 \ | 
 | 23824 |     hardcode_libdir_flag_spec_ld_F77 \ | 
 | 23825 |     hardcode_libdir_separator_F77 \ | 
 | 23826 |     hardcode_automatic_F77 \ | 
 | 23827 |     module_cmds_F77 \ | 
 | 23828 |     module_expsym_cmds_F77 \ | 
 | 23829 |     lt_cv_prog_compiler_c_o_F77 \ | 
 | 23830 |     exclude_expsyms_F77 \ | 
 | 23831 |     include_expsyms_F77; do | 
 | 23832 |  | 
 | 23833 |     case $var in | 
 | 23834 |     old_archive_cmds_F77 | \ | 
 | 23835 |     old_archive_from_new_cmds_F77 | \ | 
 | 23836 |     archive_cmds_F77 | \ | 
 | 23837 |     archive_expsym_cmds_F77 | \ | 
 | 23838 |     module_cmds_F77 | \ | 
 | 23839 |     module_expsym_cmds_F77 | \ | 
 | 23840 |     old_archive_from_expsyms_cmds_F77 | \ | 
 | 23841 |     export_symbols_cmds_F77 | \ | 
 | 23842 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 23843 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 23844 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 23845 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 23846 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23847 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23848 |       ;; | 
 | 23849 |     *) | 
 | 23850 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 23851 |       ;; | 
 | 23852 |     esac | 
 | 23853 |   done | 
 | 23854 |  | 
 | 23855 |   case $lt_echo in | 
 | 23856 |   *'\$0 --fallback-echo"') | 
 | 23857 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 23858 |     ;; | 
 | 23859 |   esac | 
 | 23860 |  | 
 | 23861 | cfgfile="$ofile" | 
 | 23862 |  | 
 | 23863 |   cat <<__EOF__ >> "$cfgfile" | 
 | 23864 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 23865 |  | 
 | 23866 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 23867 |  | 
 | 23868 | # Shell to use when invoking shell scripts. | 
 | 23869 | SHELL=$lt_SHELL | 
 | 23870 |  | 
 | 23871 | # Whether or not to build shared libraries. | 
 | 23872 | build_libtool_libs=$enable_shared | 
 | 23873 |  | 
 | 23874 | # Whether or not to build static libraries. | 
 | 23875 | build_old_libs=$enable_static | 
 | 23876 |  | 
 | 23877 | # Whether or not to add -lc for building shared libraries. | 
 | 23878 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | 
 | 23879 |  | 
 | 23880 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 23881 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | 
 | 23882 |  | 
 | 23883 | # Whether or not to optimize for fast installation. | 
 | 23884 | fast_install=$enable_fast_install | 
 | 23885 |  | 
 | 23886 | # The host system. | 
 | 23887 | host_alias=$host_alias | 
 | 23888 | host=$host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23889 | host_os=$host_os | 
 | 23890 |  | 
 | 23891 | # The build system. | 
 | 23892 | build_alias=$build_alias | 
 | 23893 | build=$build | 
 | 23894 | build_os=$build_os | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23895 |  | 
 | 23896 | # An echo program that does not interpret backslashes. | 
 | 23897 | echo=$lt_echo | 
 | 23898 |  | 
 | 23899 | # The archiver. | 
 | 23900 | AR=$lt_AR | 
 | 23901 | AR_FLAGS=$lt_AR_FLAGS | 
 | 23902 |  | 
 | 23903 | # A C compiler. | 
 | 23904 | LTCC=$lt_LTCC | 
 | 23905 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23906 | # LTCC compiler flags. | 
 | 23907 | LTCFLAGS=$lt_LTCFLAGS | 
 | 23908 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23909 | # A language-specific compiler. | 
 | 23910 | CC=$lt_compiler_F77 | 
 | 23911 |  | 
 | 23912 | # Is the compiler the GNU C compiler? | 
 | 23913 | with_gcc=$GCC_F77 | 
 | 23914 |  | 
 | 23915 | # An ERE matcher. | 
 | 23916 | EGREP=$lt_EGREP | 
 | 23917 |  | 
 | 23918 | # The linker used to build libraries. | 
 | 23919 | LD=$lt_LD_F77 | 
 | 23920 |  | 
 | 23921 | # Whether we need hard or soft links. | 
 | 23922 | LN_S=$lt_LN_S | 
 | 23923 |  | 
 | 23924 | # A BSD-compatible nm program. | 
 | 23925 | NM=$lt_NM | 
 | 23926 |  | 
 | 23927 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23928 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23929 |  | 
 | 23930 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 23931 | MAGIC_CMD=$MAGIC_CMD | 
 | 23932 |  | 
 | 23933 | # Used on cygwin: DLL creation program. | 
 | 23934 | DLLTOOL="$DLLTOOL" | 
 | 23935 |  | 
 | 23936 | # Used on cygwin: object dumper. | 
 | 23937 | OBJDUMP="$OBJDUMP" | 
 | 23938 |  | 
 | 23939 | # Used on cygwin: assembler. | 
 | 23940 | AS="$AS" | 
 | 23941 |  | 
 | 23942 | # The name of the directory that contains temporary libtool files. | 
 | 23943 | objdir=$objdir | 
 | 23944 |  | 
 | 23945 | # How to create reloadable object files. | 
 | 23946 | reload_flag=$lt_reload_flag | 
 | 23947 | reload_cmds=$lt_reload_cmds | 
 | 23948 |  | 
 | 23949 | # How to pass a linker flag through the compiler. | 
 | 23950 | wl=$lt_lt_prog_compiler_wl_F77 | 
 | 23951 |  | 
 | 23952 | # Object file suffix (normally "o"). | 
 | 23953 | objext="$ac_objext" | 
 | 23954 |  | 
 | 23955 | # Old archive suffix (normally "a"). | 
 | 23956 | libext="$libext" | 
 | 23957 |  | 
 | 23958 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23959 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23960 |  | 
 | 23961 | # Executable file suffix (normally ""). | 
 | 23962 | exeext="$exeext" | 
 | 23963 |  | 
 | 23964 | # Additional compiler flags for building library objects. | 
 | 23965 | pic_flag=$lt_lt_prog_compiler_pic_F77 | 
 | 23966 | pic_mode=$pic_mode | 
 | 23967 |  | 
 | 23968 | # What is the maximum length of a command? | 
 | 23969 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 23970 |  | 
 | 23971 | # Does compiler simultaneously support -c and -o options? | 
 | 23972 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | 
 | 23973 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23974 | # Must we lock files when doing compilation? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23975 | need_locks=$lt_need_locks | 
 | 23976 |  | 
 | 23977 | # Do we need the lib prefix for modules? | 
 | 23978 | need_lib_prefix=$need_lib_prefix | 
 | 23979 |  | 
 | 23980 | # Do we need a version for libraries? | 
 | 23981 | need_version=$need_version | 
 | 23982 |  | 
 | 23983 | # Whether dlopen is supported. | 
 | 23984 | dlopen_support=$enable_dlopen | 
 | 23985 |  | 
 | 23986 | # Whether dlopen of programs is supported. | 
 | 23987 | dlopen_self=$enable_dlopen_self | 
 | 23988 |  | 
 | 23989 | # Whether dlopen of statically linked programs is supported. | 
 | 23990 | dlopen_self_static=$enable_dlopen_self_static | 
 | 23991 |  | 
 | 23992 | # Compiler flag to prevent dynamic linking. | 
 | 23993 | link_static_flag=$lt_lt_prog_compiler_static_F77 | 
 | 23994 |  | 
 | 23995 | # Compiler flag to turn off builtin functions. | 
 | 23996 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | 
 | 23997 |  | 
 | 23998 | # Compiler flag to allow reflexive dlopens. | 
 | 23999 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | 
 | 24000 |  | 
 | 24001 | # Compiler flag to generate shared objects directly from archives. | 
 | 24002 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | 
 | 24003 |  | 
 | 24004 | # Compiler flag to generate thread-safe objects. | 
 | 24005 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | 
 | 24006 |  | 
 | 24007 | # Library versioning type. | 
 | 24008 | version_type=$version_type | 
 | 24009 |  | 
 | 24010 | # Format of library name prefix. | 
 | 24011 | libname_spec=$lt_libname_spec | 
 | 24012 |  | 
 | 24013 | # List of archive names.  First name is the real one, the rest are links. | 
 | 24014 | # The last name is the one that the linker finds with -lNAME. | 
 | 24015 | library_names_spec=$lt_library_names_spec | 
 | 24016 |  | 
 | 24017 | # The coded name of the library, if different from the real name. | 
 | 24018 | soname_spec=$lt_soname_spec | 
 | 24019 |  | 
 | 24020 | # Commands used to build and install an old-style archive. | 
 | 24021 | RANLIB=$lt_RANLIB | 
 | 24022 | old_archive_cmds=$lt_old_archive_cmds_F77 | 
 | 24023 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 24024 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 24025 |  | 
 | 24026 | # Create an old-style archive from a shared archive. | 
 | 24027 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | 
 | 24028 |  | 
 | 24029 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 24030 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | 
 | 24031 |  | 
 | 24032 | # Commands used to build and install a shared archive. | 
 | 24033 | archive_cmds=$lt_archive_cmds_F77 | 
 | 24034 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | 
 | 24035 | postinstall_cmds=$lt_postinstall_cmds | 
 | 24036 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 24037 |  | 
 | 24038 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 24039 | module_cmds=$lt_module_cmds_F77 | 
 | 24040 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | 
 | 24041 |  | 
 | 24042 | # Commands to strip libraries. | 
 | 24043 | old_striplib=$lt_old_striplib | 
 | 24044 | striplib=$lt_striplib | 
 | 24045 |  | 
 | 24046 | # Dependencies to place before the objects being linked to create a | 
 | 24047 | # shared library. | 
 | 24048 | predep_objects=$lt_predep_objects_F77 | 
 | 24049 |  | 
 | 24050 | # Dependencies to place after the objects being linked to create a | 
 | 24051 | # shared library. | 
 | 24052 | postdep_objects=$lt_postdep_objects_F77 | 
 | 24053 |  | 
 | 24054 | # Dependencies to place before the objects being linked to create a | 
 | 24055 | # shared library. | 
 | 24056 | predeps=$lt_predeps_F77 | 
 | 24057 |  | 
 | 24058 | # Dependencies to place after the objects being linked to create a | 
 | 24059 | # shared library. | 
 | 24060 | postdeps=$lt_postdeps_F77 | 
 | 24061 |  | 
 | 24062 | # The library search path used internally by the compiler when linking | 
 | 24063 | # a shared library. | 
 | 24064 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | 
 | 24065 |  | 
 | 24066 | # Method to check whether dependent libraries are shared objects. | 
 | 24067 | deplibs_check_method=$lt_deplibs_check_method | 
 | 24068 |  | 
 | 24069 | # Command to use when deplibs_check_method == file_magic. | 
 | 24070 | file_magic_cmd=$lt_file_magic_cmd | 
 | 24071 |  | 
 | 24072 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 24073 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | 
 | 24074 |  | 
 | 24075 | # Flag that forces no undefined symbols. | 
 | 24076 | no_undefined_flag=$lt_no_undefined_flag_F77 | 
 | 24077 |  | 
 | 24078 | # Commands used to finish a libtool library installation in a directory. | 
 | 24079 | finish_cmds=$lt_finish_cmds | 
 | 24080 |  | 
 | 24081 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 24082 | finish_eval=$lt_finish_eval | 
 | 24083 |  | 
 | 24084 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 24085 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 24086 |  | 
 | 24087 | # Transform the output of nm in a proper C declaration | 
 | 24088 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 24089 |  | 
 | 24090 | # Transform the output of nm in a C name address pair | 
 | 24091 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 24092 |  | 
 | 24093 | # This is the shared library runtime path variable. | 
 | 24094 | runpath_var=$runpath_var | 
 | 24095 |  | 
 | 24096 | # This is the shared library path variable. | 
 | 24097 | shlibpath_var=$shlibpath_var | 
 | 24098 |  | 
 | 24099 | # Is shlibpath searched before the hard-coded library search path? | 
 | 24100 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 24101 |  | 
 | 24102 | # How to hardcode a shared library path into an executable. | 
 | 24103 | hardcode_action=$hardcode_action_F77 | 
 | 24104 |  | 
 | 24105 | # Whether we should hardcode library paths into libraries. | 
 | 24106 | hardcode_into_libs=$hardcode_into_libs | 
 | 24107 |  | 
 | 24108 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 24109 | # This must work even if \$libdir does not exist. | 
 | 24110 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | 
 | 24111 |  | 
 | 24112 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 24113 | # a binary during linking. This must work even if \$libdir does | 
 | 24114 | # not exist. | 
 | 24115 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | 
 | 24116 |  | 
 | 24117 | # Whether we need a single -rpath flag with a separated argument. | 
 | 24118 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | 
 | 24119 |  | 
 | 24120 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 24121 | # resulting binary. | 
 | 24122 | hardcode_direct=$hardcode_direct_F77 | 
 | 24123 |  | 
 | 24124 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 24125 | # resulting binary. | 
 | 24126 | hardcode_minus_L=$hardcode_minus_L_F77 | 
 | 24127 |  | 
 | 24128 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 24129 | # the resulting binary. | 
 | 24130 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | 
 | 24131 |  | 
 | 24132 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 24133 | # and all subsequent libraries and executables linked against it. | 
 | 24134 | hardcode_automatic=$hardcode_automatic_F77 | 
 | 24135 |  | 
 | 24136 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 24137 | # restored at relink time. | 
 | 24138 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 24139 |  | 
 | 24140 | # Whether libtool must link a program against all its dependency libraries. | 
 | 24141 | link_all_deplibs=$link_all_deplibs_F77 | 
 | 24142 |  | 
 | 24143 | # Compile-time system search path for libraries | 
 | 24144 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 24145 |  | 
 | 24146 | # Run-time system search path for libraries | 
 | 24147 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 24148 |  | 
 | 24149 | # Fix the shell variable \$srcfile for the compiler. | 
 | 24150 | fix_srcfile_path="$fix_srcfile_path_F77" | 
 | 24151 |  | 
 | 24152 | # Set to yes if exported symbols are required. | 
 | 24153 | always_export_symbols=$always_export_symbols_F77 | 
 | 24154 |  | 
 | 24155 | # The commands to list exported symbols. | 
 | 24156 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | 
 | 24157 |  | 
 | 24158 | # The commands to extract the exported symbol list from a shared archive. | 
 | 24159 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 24160 |  | 
 | 24161 | # Symbols that should not be listed in the preloaded symbols. | 
 | 24162 | exclude_expsyms=$lt_exclude_expsyms_F77 | 
 | 24163 |  | 
 | 24164 | # Symbols that must always be exported. | 
 | 24165 | include_expsyms=$lt_include_expsyms_F77 | 
 | 24166 |  | 
 | 24167 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 24168 |  | 
 | 24169 | __EOF__ | 
 | 24170 |  | 
 | 24171 |  | 
 | 24172 | else | 
 | 24173 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 24174 |   # `config.status --recheck' to rerun these tests and create the | 
 | 24175 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24176 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 24177 |   if test -f "$ltmain_in"; then | 
 | 24178 |     test -f Makefile && make "$ltmain" | 
 | 24179 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24180 | fi | 
 | 24181 |  | 
 | 24182 |  | 
 | 24183 | ac_ext=c | 
 | 24184 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 24188 |  | 
 | 24189 | CC="$lt_save_CC" | 
 | 24190 |  | 
 | 24191 | 	else | 
 | 24192 | 	  tagname="" | 
 | 24193 | 	fi | 
 | 24194 | 	;; | 
 | 24195 |  | 
 | 24196 |       GCJ) | 
 | 24197 | 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24198 | 	  ac_ext=c | 
 | 24199 | ac_cpp='$CPP $CPPFLAGS' | 
 | 24200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 24201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 24202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24203 |  | 
 | 24204 |  | 
 | 24205 | # Source file extension for Java test sources. | 
 | 24206 | ac_ext=java | 
 | 24207 |  | 
 | 24208 | # Object file extension for compiled Java test sources. | 
 | 24209 | objext=o | 
 | 24210 | objext_GCJ=$objext | 
 | 24211 |  | 
 | 24212 | # Code to be used in simple compile tests | 
 | 24213 | lt_simple_compile_test_code="class foo {}\n" | 
 | 24214 |  | 
 | 24215 | # Code to be used in simple link tests | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24216 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24217 |  | 
 | 24218 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 24219 |  | 
 | 24220 | # If no C compiler was specified, use CC. | 
 | 24221 | LTCC=${LTCC-"$CC"} | 
 | 24222 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24223 | # If no C compiler flags were specified, use CFLAGS. | 
 | 24224 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 24225 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24226 | # Allow CC to be a program name with arguments. | 
 | 24227 | compiler=$CC | 
 | 24228 |  | 
 | 24229 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24230 | # save warnings/boilerplate of simple test code | 
 | 24231 | ac_outfile=conftest.$ac_objext | 
 | 24232 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 24233 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 24234 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 24235 | $rm conftest* | 
 | 24236 |  | 
 | 24237 | ac_outfile=conftest.$ac_objext | 
 | 24238 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 24239 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 24240 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 24241 | $rm conftest* | 
 | 24242 |  | 
 | 24243 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24244 | # Allow CC to be a program name with arguments. | 
 | 24245 | lt_save_CC="$CC" | 
 | 24246 | CC=${GCJ-"gcj"} | 
 | 24247 | compiler=$CC | 
 | 24248 | compiler_GCJ=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24249 | for cc_temp in $compiler""; do | 
 | 24250 |   case $cc_temp in | 
 | 24251 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 24252 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 24253 |     \-*) ;; | 
 | 24254 |     *) break;; | 
 | 24255 |   esac | 
 | 24256 | done | 
 | 24257 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
 | 24258 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24259 |  | 
 | 24260 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 
 | 24261 | archive_cmds_need_lc_GCJ=no | 
 | 24262 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24263 | old_archive_cmds_GCJ=$old_archive_cmds | 
 | 24264 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24265 |  | 
 | 24266 | lt_prog_compiler_no_builtin_flag_GCJ= | 
 | 24267 |  | 
 | 24268 | if test "$GCC" = yes; then | 
 | 24269 |   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | 
 | 24270 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24271 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24272 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
 | 24273 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24274 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 
 | 24275 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24276 | else | 
 | 24277 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 24278 |   ac_outfile=conftest.$ac_objext | 
 | 24279 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 24280 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 24281 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 24282 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 24283 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 24284 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 24285 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 24286 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24287 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24288 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 24289 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24290 |    (eval echo "\"\$as_me:24290: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24291 |    (eval "$lt_compile" 2>conftest.err) | 
 | 24292 |    ac_status=$? | 
 | 24293 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24294 |    echo "$as_me:24294: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24295 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 24296 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24297 |      # So say no if there are warnings other than the usual output. | 
 | 24298 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 24299 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 24300 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24301 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 24302 |      fi | 
 | 24303 |    fi | 
 | 24304 |    $rm conftest* | 
 | 24305 |  | 
 | 24306 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24307 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 24308 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24309 |  | 
 | 24310 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 24311 |     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | 
 | 24312 | else | 
 | 24313 |     : | 
 | 24314 | fi | 
 | 24315 |  | 
 | 24316 | fi | 
 | 24317 |  | 
 | 24318 | lt_prog_compiler_wl_GCJ= | 
 | 24319 | lt_prog_compiler_pic_GCJ= | 
 | 24320 | lt_prog_compiler_static_GCJ= | 
 | 24321 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24322 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 
 | 24323 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24324 |  | 
 | 24325 |   if test "$GCC" = yes; then | 
 | 24326 |     lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24327 |     lt_prog_compiler_static_GCJ='-static' | 
 | 24328 |  | 
 | 24329 |     case $host_os in | 
 | 24330 |       aix*) | 
 | 24331 |       # All AIX code is PIC. | 
 | 24332 |       if test "$host_cpu" = ia64; then | 
 | 24333 | 	# AIX 5 now supports IA64 processor | 
 | 24334 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24335 |       fi | 
 | 24336 |       ;; | 
 | 24337 |  | 
 | 24338 |     amigaos*) | 
 | 24339 |       # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 24340 |       # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 24341 |       # like `-m68040'. | 
 | 24342 |       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | 
 | 24343 |       ;; | 
 | 24344 |  | 
 | 24345 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 24346 |       # PIC is the default for these OSes. | 
 | 24347 |       ;; | 
 | 24348 |  | 
 | 24349 |     mingw* | pw32* | os2*) | 
 | 24350 |       # This hack is so that the source file can tell whether it is being | 
 | 24351 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 24352 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 24353 |       ;; | 
 | 24354 |  | 
 | 24355 |     darwin* | rhapsody*) | 
 | 24356 |       # PIC is the default on this platform | 
 | 24357 |       # Common symbols not allowed in MH_DYLIB files | 
 | 24358 |       lt_prog_compiler_pic_GCJ='-fno-common' | 
 | 24359 |       ;; | 
 | 24360 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24361 |     interix3*) | 
 | 24362 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 24363 |       # Instead, we relocate shared libraries at runtime. | 
 | 24364 |       ;; | 
 | 24365 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24366 |     msdosdjgpp*) | 
 | 24367 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 24368 |       # on systems that don't support them. | 
 | 24369 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 24370 |       enable_shared=no | 
 | 24371 |       ;; | 
 | 24372 |  | 
 | 24373 |     sysv4*MP*) | 
 | 24374 |       if test -d /usr/nec; then | 
 | 24375 | 	lt_prog_compiler_pic_GCJ=-Kconform_pic | 
 | 24376 |       fi | 
 | 24377 |       ;; | 
 | 24378 |  | 
 | 24379 |     hpux*) | 
 | 24380 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 24381 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24382 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24383 |       hppa*64*|ia64*) | 
 | 24384 | 	# +Z the default | 
 | 24385 | 	;; | 
 | 24386 |       *) | 
 | 24387 | 	lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 24388 | 	;; | 
 | 24389 |       esac | 
 | 24390 |       ;; | 
 | 24391 |  | 
 | 24392 |     *) | 
 | 24393 |       lt_prog_compiler_pic_GCJ='-fPIC' | 
 | 24394 |       ;; | 
 | 24395 |     esac | 
 | 24396 |   else | 
 | 24397 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 24398 |     case $host_os in | 
 | 24399 |     aix*) | 
 | 24400 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24401 |       if test "$host_cpu" = ia64; then | 
 | 24402 | 	# AIX 5 now supports IA64 processor | 
 | 24403 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24404 |       else | 
 | 24405 | 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | 
 | 24406 |       fi | 
 | 24407 |       ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24408 |       darwin*) | 
 | 24409 |         # PIC is the default on this platform | 
 | 24410 |         # Common symbols not allowed in MH_DYLIB files | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24411 |        case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24412 |          xlc*) | 
 | 24413 |          lt_prog_compiler_pic_GCJ='-qnocommon' | 
 | 24414 |          lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24415 |          ;; | 
 | 24416 |        esac | 
 | 24417 |        ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24418 |  | 
 | 24419 |     mingw* | pw32* | os2*) | 
 | 24420 |       # This hack is so that the source file can tell whether it is being | 
 | 24421 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 24422 |       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | 
 | 24423 |       ;; | 
 | 24424 |  | 
 | 24425 |     hpux9* | hpux10* | hpux11*) | 
 | 24426 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24427 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 24428 |       # not for PA HP-UX. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24429 |       case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24430 |       hppa*64*|ia64*) | 
 | 24431 | 	# +Z the default | 
 | 24432 | 	;; | 
 | 24433 |       *) | 
 | 24434 | 	lt_prog_compiler_pic_GCJ='+Z' | 
 | 24435 | 	;; | 
 | 24436 |       esac | 
 | 24437 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 24438 |       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | 
 | 24439 |       ;; | 
 | 24440 |  | 
 | 24441 |     irix5* | irix6* | nonstopux*) | 
 | 24442 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24443 |       # PIC (with -KPIC) is the default. | 
 | 24444 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 24445 |       ;; | 
 | 24446 |  | 
 | 24447 |     newsos6) | 
 | 24448 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 24449 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24450 |       ;; | 
 | 24451 |  | 
 | 24452 |     linux*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24453 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24454 |       icc* | ecc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24455 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24456 | 	lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 24457 | 	lt_prog_compiler_static_GCJ='-static' | 
 | 24458 |         ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24459 |       pgcc* | pgf77* | pgf90* | pgf95*) | 
 | 24460 |         # Portland Group compilers (*not* the Pentium gcc compiler, | 
 | 24461 | 	# which looks to be a dead project) | 
 | 24462 | 	lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24463 | 	lt_prog_compiler_pic_GCJ='-fpic' | 
 | 24464 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24465 |         ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24466 |       ccc*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24467 |         lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24468 |         # All Alpha code is PIC. | 
 | 24469 |         lt_prog_compiler_static_GCJ='-non_shared' | 
 | 24470 |         ;; | 
 | 24471 |       esac | 
 | 24472 |       ;; | 
 | 24473 |  | 
 | 24474 |     osf3* | osf4* | osf5*) | 
 | 24475 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24476 |       # All OSF/1 code is PIC. | 
 | 24477 |       lt_prog_compiler_static_GCJ='-non_shared' | 
 | 24478 |       ;; | 
 | 24479 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24480 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24481 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 24482 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24483 |       case $cc_basename in | 
 | 24484 |       f77* | f90* | f95*) | 
 | 24485 | 	lt_prog_compiler_wl_GCJ='-Qoption ld ';; | 
 | 24486 |       *) | 
 | 24487 | 	lt_prog_compiler_wl_GCJ='-Wl,';; | 
 | 24488 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24489 |       ;; | 
 | 24490 |  | 
 | 24491 |     sunos4*) | 
 | 24492 |       lt_prog_compiler_wl_GCJ='-Qoption ld ' | 
 | 24493 |       lt_prog_compiler_pic_GCJ='-PIC' | 
 | 24494 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24495 |       ;; | 
 | 24496 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24497 |     sysv4 | sysv4.2uw2* | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24498 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24499 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 24500 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24501 |       ;; | 
 | 24502 |  | 
 | 24503 |     sysv4*MP*) | 
 | 24504 |       if test -d /usr/nec ;then | 
 | 24505 | 	lt_prog_compiler_pic_GCJ='-Kconform_pic' | 
 | 24506 | 	lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24507 |       fi | 
 | 24508 |       ;; | 
 | 24509 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24510 |     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 24511 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24512 |       lt_prog_compiler_pic_GCJ='-KPIC' | 
 | 24513 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24514 |       ;; | 
 | 24515 |  | 
 | 24516 |     unicos*) | 
 | 24517 |       lt_prog_compiler_wl_GCJ='-Wl,' | 
 | 24518 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 24519 |       ;; | 
 | 24520 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24521 |     uts4*) | 
 | 24522 |       lt_prog_compiler_pic_GCJ='-pic' | 
 | 24523 |       lt_prog_compiler_static_GCJ='-Bstatic' | 
 | 24524 |       ;; | 
 | 24525 |  | 
 | 24526 |     *) | 
 | 24527 |       lt_prog_compiler_can_build_shared_GCJ=no | 
 | 24528 |       ;; | 
 | 24529 |     esac | 
 | 24530 |   fi | 
 | 24531 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24532 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | 
 | 24533 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24534 |  | 
 | 24535 | # | 
 | 24536 | # Check to make sure the PIC flag actually works. | 
 | 24537 | # | 
 | 24538 | if test -n "$lt_prog_compiler_pic_GCJ"; then | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24539 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24540 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | 
 | 24541 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24542 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | 
 | 24543 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24544 | else | 
 | 24545 |   lt_prog_compiler_pic_works_GCJ=no | 
 | 24546 |   ac_outfile=conftest.$ac_objext | 
 | 24547 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 24548 |    lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | 
 | 24549 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 24550 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 24551 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 24552 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 24553 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 24554 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24555 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24556 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 24557 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24558 |    (eval echo "\"\$as_me:24558: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24559 |    (eval "$lt_compile" 2>conftest.err) | 
 | 24560 |    ac_status=$? | 
 | 24561 |    cat conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24562 |    echo "$as_me:24562: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24563 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 24564 |      # The compiler can only warn and ignore the option if not recognized | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24565 |      # So say no if there are warnings other than the usual output. | 
 | 24566 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 
 | 24567 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 24568 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24569 |        lt_prog_compiler_pic_works_GCJ=yes | 
 | 24570 |      fi | 
 | 24571 |    fi | 
 | 24572 |    $rm conftest* | 
 | 24573 |  | 
 | 24574 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24575 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | 
 | 24576 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24577 |  | 
 | 24578 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | 
 | 24579 |     case $lt_prog_compiler_pic_GCJ in | 
 | 24580 |      "" | " "*) ;; | 
 | 24581 |      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | 
 | 24582 |      esac | 
 | 24583 | else | 
 | 24584 |     lt_prog_compiler_pic_GCJ= | 
 | 24585 |      lt_prog_compiler_can_build_shared_GCJ=no | 
 | 24586 | fi | 
 | 24587 |  | 
 | 24588 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24589 | case $host_os in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24590 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 24591 |   *djgpp*) | 
 | 24592 |     lt_prog_compiler_pic_GCJ= | 
 | 24593 |     ;; | 
 | 24594 |   *) | 
 | 24595 |     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | 
 | 24596 |     ;; | 
 | 24597 | esac | 
 | 24598 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24599 | # | 
 | 24600 | # Check to make sure the static flag actually works. | 
 | 24601 | # | 
 | 24602 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | 
 | 24603 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 24604 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | 
 | 24605 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | 
 | 24606 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24607 | else | 
 | 24608 |   lt_prog_compiler_static_works_GCJ=no | 
 | 24609 |    save_LDFLAGS="$LDFLAGS" | 
 | 24610 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 24611 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 24612 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 24613 |      # The linker can only warn and ignore the option if not recognized | 
 | 24614 |      # So say no if there are warnings | 
 | 24615 |      if test -s conftest.err; then | 
 | 24616 |        # Append any errors to the config.log. | 
 | 24617 |        cat conftest.err 1>&5 | 
 | 24618 |        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 
 | 24619 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 24620 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 24621 |          lt_prog_compiler_static_works_GCJ=yes | 
 | 24622 |        fi | 
 | 24623 |      else | 
 | 24624 |        lt_prog_compiler_static_works_GCJ=yes | 
 | 24625 |      fi | 
 | 24626 |    fi | 
 | 24627 |    $rm conftest* | 
 | 24628 |    LDFLAGS="$save_LDFLAGS" | 
 | 24629 |  | 
 | 24630 | fi | 
 | 24631 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | 
 | 24632 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | 
 | 24633 |  | 
 | 24634 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | 
 | 24635 |     : | 
 | 24636 | else | 
 | 24637 |     lt_prog_compiler_static_GCJ= | 
 | 24638 | fi | 
 | 24639 |  | 
 | 24640 |  | 
 | 24641 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 24642 | 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] | 24643 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 
 | 24644 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 24645 | else | 
 | 24646 |   lt_cv_prog_compiler_c_o_GCJ=no | 
 | 24647 |    $rm -r conftest 2>/dev/null | 
 | 24648 |    mkdir conftest | 
 | 24649 |    cd conftest | 
 | 24650 |    mkdir out | 
 | 24651 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 24652 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24653 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 24654 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 24655 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 24656 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 24657 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 24658 |    lt_compile=`echo "$ac_compile" | $SED \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24659 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24660 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 24661 |    -e 's:$: $lt_compiler_flag:'` | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24662 |    (eval echo "\"\$as_me:24662: $lt_compile\"" >&5) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24663 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 24664 |    ac_status=$? | 
 | 24665 |    cat out/conftest.err >&5 | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 24666 |    echo "$as_me:24666: \$? = $ac_status" >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24667 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 24668 |    then | 
 | 24669 |      # The compiler can only warn and ignore the option if not recognized | 
 | 24670 |      # So say no if there are warnings | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24671 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 
 | 24672 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 24673 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24674 |        lt_cv_prog_compiler_c_o_GCJ=yes | 
 | 24675 |      fi | 
 | 24676 |    fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24677 |    chmod u+w . 2>&5 | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24678 |    $rm conftest* | 
 | 24679 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 24680 |    # template instantiation | 
 | 24681 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 
 | 24682 |    $rm out/* && rmdir out | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24683 |    cd .. | 
 | 24684 |    rmdir conftest | 
 | 24685 |    $rm conftest* | 
 | 24686 |  | 
 | 24687 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24688 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | 
 | 24689 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24690 |  | 
 | 24691 |  | 
 | 24692 | hard_links="nottested" | 
 | 24693 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | 
 | 24694 |   # do not overwrite the value of need_locks provided by the user | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24695 |   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 
 | 24696 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24697 |   hard_links=yes | 
 | 24698 |   $rm conftest* | 
 | 24699 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 24700 |   touch conftest.a | 
 | 24701 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 24702 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24703 |   { echo "$as_me:$LINENO: result: $hard_links" >&5 | 
 | 24704 | echo "${ECHO_T}$hard_links" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24705 |   if test "$hard_links" = no; then | 
 | 24706 |     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 24707 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 24708 |     need_locks=warn | 
 | 24709 |   fi | 
 | 24710 | else | 
 | 24711 |   need_locks=no | 
 | 24712 | fi | 
 | 24713 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24714 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 24715 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24716 |  | 
 | 24717 |   runpath_var= | 
 | 24718 |   allow_undefined_flag_GCJ= | 
 | 24719 |   enable_shared_with_static_runtimes_GCJ=no | 
 | 24720 |   archive_cmds_GCJ= | 
 | 24721 |   archive_expsym_cmds_GCJ= | 
 | 24722 |   old_archive_From_new_cmds_GCJ= | 
 | 24723 |   old_archive_from_expsyms_cmds_GCJ= | 
 | 24724 |   export_dynamic_flag_spec_GCJ= | 
 | 24725 |   whole_archive_flag_spec_GCJ= | 
 | 24726 |   thread_safe_flag_spec_GCJ= | 
 | 24727 |   hardcode_libdir_flag_spec_GCJ= | 
 | 24728 |   hardcode_libdir_flag_spec_ld_GCJ= | 
 | 24729 |   hardcode_libdir_separator_GCJ= | 
 | 24730 |   hardcode_direct_GCJ=no | 
 | 24731 |   hardcode_minus_L_GCJ=no | 
 | 24732 |   hardcode_shlibpath_var_GCJ=unsupported | 
 | 24733 |   link_all_deplibs_GCJ=unknown | 
 | 24734 |   hardcode_automatic_GCJ=no | 
 | 24735 |   module_cmds_GCJ= | 
 | 24736 |   module_expsym_cmds_GCJ= | 
 | 24737 |   always_export_symbols_GCJ=no | 
 | 24738 |   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 24739 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 24740 |   # included in the symbol list | 
 | 24741 |   include_expsyms_GCJ= | 
 | 24742 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 24743 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 24744 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 24745 |   # as well as any symbol that contains `d'. | 
 | 24746 |   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | 
 | 24747 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 24748 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 24749 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 24750 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 24751 |   # preloaded symbol tables. | 
 | 24752 |   extract_expsyms_cmds= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24753 |   # Just being paranoid about ensuring that cc_basename is set. | 
 | 24754 |   for cc_temp in $compiler""; do | 
 | 24755 |   case $cc_temp in | 
 | 24756 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 24757 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 24758 |     \-*) ;; | 
 | 24759 |     *) break;; | 
 | 24760 |   esac | 
 | 24761 | done | 
 | 24762 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24763 |  | 
 | 24764 |   case $host_os in | 
 | 24765 |   cygwin* | mingw* | pw32*) | 
 | 24766 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 24767 |     # When not using gcc, we currently assume that we are using | 
 | 24768 |     # Microsoft Visual C++. | 
 | 24769 |     if test "$GCC" != yes; then | 
 | 24770 |       with_gnu_ld=no | 
 | 24771 |     fi | 
 | 24772 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24773 |   interix*) | 
 | 24774 |     # we just hope/assume this is gcc and not c89 (= MSVC++) | 
 | 24775 |     with_gnu_ld=yes | 
 | 24776 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24777 |   openbsd*) | 
 | 24778 |     with_gnu_ld=no | 
 | 24779 |     ;; | 
 | 24780 |   esac | 
 | 24781 |  | 
 | 24782 |   ld_shlibs_GCJ=yes | 
 | 24783 |   if test "$with_gnu_ld" = yes; then | 
 | 24784 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 24785 |     wlarc='${wl}' | 
 | 24786 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24787 |     # Set some defaults for GNU ld with shared library support. These | 
 | 24788 |     # are reset later if shared libraries are not supported. Putting them | 
 | 24789 |     # here allows them to be overridden if necessary. | 
 | 24790 |     runpath_var=LD_RUN_PATH | 
 | 24791 |     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | 
 | 24792 |     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | 
 | 24793 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 24794 |     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 
 | 24795 | 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 24796 |       else | 
 | 24797 |   	whole_archive_flag_spec_GCJ= | 
 | 24798 |     fi | 
 | 24799 |     supports_anon_versioning=no | 
 | 24800 |     case `$LD -v 2>/dev/null` in | 
 | 24801 |       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 24802 |       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 24803 |       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 24804 |       *\ 2.11.*) ;; # other 2.11 versions | 
 | 24805 |       *) supports_anon_versioning=yes ;; | 
 | 24806 |     esac | 
 | 24807 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24808 |     # See if GNU ld supports shared libraries. | 
 | 24809 |     case $host_os in | 
 | 24810 |     aix3* | aix4* | aix5*) | 
 | 24811 |       # On AIX/PPC, the GNU linker is very broken | 
 | 24812 |       if test "$host_cpu" != ia64; then | 
 | 24813 | 	ld_shlibs_GCJ=no | 
 | 24814 | 	cat <<EOF 1>&2 | 
 | 24815 |  | 
 | 24816 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 
 | 24817 | *** to be unable to reliably create shared libraries on AIX. | 
 | 24818 | *** Therefore, libtool is disabling shared libraries support.  If you | 
 | 24819 | *** really care for shared libraries, you may want to modify your PATH | 
 | 24820 | *** so that a non-GNU linker is found, and then restart. | 
 | 24821 |  | 
 | 24822 | EOF | 
 | 24823 |       fi | 
 | 24824 |       ;; | 
 | 24825 |  | 
 | 24826 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24827 |       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24828 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 24829 |       hardcode_minus_L_GCJ=yes | 
 | 24830 |  | 
 | 24831 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 
 | 24832 |       # that the semantics of dynamic libraries on AmigaOS, at least up | 
 | 24833 |       # to version 4, is to share data among multiple programs linked | 
 | 24834 |       # with the same dynamic library.  Since this doesn't match the | 
 | 24835 |       # behavior of shared libraries on other platforms, we can't use | 
 | 24836 |       # them. | 
 | 24837 |       ld_shlibs_GCJ=no | 
 | 24838 |       ;; | 
 | 24839 |  | 
 | 24840 |     beos*) | 
 | 24841 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 24842 | 	allow_undefined_flag_GCJ=unsupported | 
 | 24843 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 24844 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 24845 | 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 24846 |       else | 
 | 24847 | 	ld_shlibs_GCJ=no | 
 | 24848 |       fi | 
 | 24849 |       ;; | 
 | 24850 |  | 
 | 24851 |     cygwin* | mingw* | pw32*) | 
 | 24852 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | 
 | 24853 |       # as there is no search path for DLLs. | 
 | 24854 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 24855 |       allow_undefined_flag_GCJ=unsupported | 
 | 24856 |       always_export_symbols_GCJ=no | 
 | 24857 |       enable_shared_with_static_runtimes_GCJ=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24858 |       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24859 |  | 
 | 24860 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24861 |         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24862 | 	# If the export-symbols file already is a .def file (1st line | 
 | 24863 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 24864 | 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 24865 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 24866 | 	else | 
 | 24867 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 24868 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24869 | 	fi~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24870 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24871 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24872 | 	ld_shlibs_GCJ=no | 
 | 24873 |       fi | 
 | 24874 |       ;; | 
 | 24875 |  | 
 | 24876 |     interix3*) | 
 | 24877 |       hardcode_direct_GCJ=no | 
 | 24878 |       hardcode_shlibpath_var_GCJ=no | 
 | 24879 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 24880 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 24881 |       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 24882 |       # Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 24883 |       # default) and relocated if they conflict, which is a slow very memory | 
 | 24884 |       # consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 24885 |       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 24886 |       # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 24887 |       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 24888 |       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 24889 |       ;; | 
 | 24890 |  | 
 | 24891 |     linux*) | 
 | 24892 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 24893 | 	tmp_addflag= | 
 | 24894 | 	case $cc_basename,$host_cpu in | 
 | 24895 | 	pgcc*)				# Portland Group C compiler | 
 | 24896 | 	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 24897 | 	  tmp_addflag=' $pic_flag' | 
 | 24898 | 	  ;; | 
 | 24899 | 	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers | 
 | 24900 | 	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | 
 | 24901 | 	  tmp_addflag=' $pic_flag -Mnomain' ;; | 
 | 24902 | 	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64 | 
 | 24903 | 	  tmp_addflag=' -i_dynamic' ;; | 
 | 24904 | 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
 | 24905 | 	  tmp_addflag=' -i_dynamic -nofor_main' ;; | 
 | 24906 | 	ifc* | ifort*)			# Intel Fortran compiler | 
 | 24907 | 	  tmp_addflag=' -nofor_main' ;; | 
 | 24908 | 	esac | 
 | 24909 | 	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 24910 |  | 
 | 24911 | 	if test $supports_anon_versioning = yes; then | 
 | 24912 | 	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 24913 |   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 24914 |   $echo "local: *; };" >> $output_objdir/$libname.ver~ | 
 | 24915 | 	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 24916 | 	fi | 
 | 24917 |       else | 
 | 24918 | 	ld_shlibs_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24919 |       fi | 
 | 24920 |       ;; | 
 | 24921 |  | 
 | 24922 |     netbsd*) | 
 | 24923 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 24924 | 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 24925 | 	wlarc= | 
 | 24926 |       else | 
 | 24927 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 24928 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 24929 |       fi | 
 | 24930 |       ;; | 
 | 24931 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24932 |     solaris*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24933 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 
 | 24934 | 	ld_shlibs_GCJ=no | 
 | 24935 | 	cat <<EOF 1>&2 | 
 | 24936 |  | 
 | 24937 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 24938 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 24939 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 24940 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 24941 | *** your PATH or compiler configuration so that the native linker is | 
 | 24942 | *** used, and then restart. | 
 | 24943 |  | 
 | 24944 | EOF | 
 | 24945 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 24946 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 24947 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 24948 |       else | 
 | 24949 | 	ld_shlibs_GCJ=no | 
 | 24950 |       fi | 
 | 24951 |       ;; | 
 | 24952 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24953 |     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 24954 |       case `$LD -v 2>&1` in | 
 | 24955 |         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
 | 24956 | 	ld_shlibs_GCJ=no | 
 | 24957 | 	cat <<_LT_EOF 1>&2 | 
 | 24958 |  | 
 | 24959 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
 | 24960 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
 | 24961 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 24962 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
 | 24963 | *** your PATH or compiler configuration so that the native linker is | 
 | 24964 | *** used, and then restart. | 
 | 24965 |  | 
 | 24966 | _LT_EOF | 
 | 24967 | 	;; | 
 | 24968 | 	*) | 
 | 24969 | 	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 24970 | 	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | 
 | 24971 | 	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | 
 | 24972 | 	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | 
 | 24973 | 	  else | 
 | 24974 | 	    ld_shlibs_GCJ=no | 
 | 24975 | 	  fi | 
 | 24976 | 	;; | 
 | 24977 |       esac | 
 | 24978 |       ;; | 
 | 24979 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24980 |     sunos4*) | 
 | 24981 |       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 24982 |       wlarc= | 
 | 24983 |       hardcode_direct_GCJ=yes | 
 | 24984 |       hardcode_shlibpath_var_GCJ=no | 
 | 24985 |       ;; | 
 | 24986 |  | 
 | 24987 |     *) | 
 | 24988 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 
 | 24989 | 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 24990 | 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 24991 |       else | 
 | 24992 | 	ld_shlibs_GCJ=no | 
 | 24993 |       fi | 
 | 24994 |       ;; | 
 | 24995 |     esac | 
 | 24996 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24997 |     if test "$ld_shlibs_GCJ" = no; then | 
 | 24998 |       runpath_var= | 
 | 24999 |       hardcode_libdir_flag_spec_GCJ= | 
 | 25000 |       export_dynamic_flag_spec_GCJ= | 
 | 25001 |       whole_archive_flag_spec_GCJ= | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25002 |     fi | 
 | 25003 |   else | 
 | 25004 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 25005 |     case $host_os in | 
 | 25006 |     aix3*) | 
 | 25007 |       allow_undefined_flag_GCJ=unsupported | 
 | 25008 |       always_export_symbols_GCJ=yes | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25009 |       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25010 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 25011 |       # are no directories specified by -L. | 
 | 25012 |       hardcode_minus_L_GCJ=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25013 |       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25014 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 25015 | 	# broken collect2. | 
 | 25016 | 	hardcode_direct_GCJ=unsupported | 
 | 25017 |       fi | 
 | 25018 |       ;; | 
 | 25019 |  | 
 | 25020 |     aix4* | aix5*) | 
 | 25021 |       if test "$host_cpu" = ia64; then | 
 | 25022 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 25023 | 	# have to do anything special. | 
 | 25024 | 	aix_use_runtimelinking=no | 
 | 25025 | 	exp_sym_flag='-Bexport' | 
 | 25026 | 	no_entry_flag="" | 
 | 25027 |       else | 
 | 25028 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 25029 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
 | 25030 | 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 
 | 25031 | 	  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' | 
 | 25032 | 	else | 
 | 25033 | 	  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' | 
 | 25034 | 	fi | 
 | 25035 | 	aix_use_runtimelinking=no | 
 | 25036 |  | 
 | 25037 | 	# Test if we are trying to use run time linking or normal | 
 | 25038 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 25039 | 	# need to do runtime linking. | 
 | 25040 | 	case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 
 | 25041 | 	  for ld_flag in $LDFLAGS; do | 
 | 25042 |   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 25043 |   	    aix_use_runtimelinking=yes | 
 | 25044 |   	    break | 
 | 25045 |   	  fi | 
 | 25046 | 	  done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25047 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25048 | 	esac | 
 | 25049 |  | 
 | 25050 | 	exp_sym_flag='-bexport' | 
 | 25051 | 	no_entry_flag='-bnoentry' | 
 | 25052 |       fi | 
 | 25053 |  | 
 | 25054 |       # When large executables or shared objects are built, AIX ld can | 
 | 25055 |       # have problems creating the table of contents.  If linking a library | 
 | 25056 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 25057 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 25058 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 25059 |  | 
 | 25060 |       archive_cmds_GCJ='' | 
 | 25061 |       hardcode_direct_GCJ=yes | 
 | 25062 |       hardcode_libdir_separator_GCJ=':' | 
 | 25063 |       link_all_deplibs_GCJ=yes | 
 | 25064 |  | 
 | 25065 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25066 | 	case $host_os in aix4.[012]|aix4.[012].*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25067 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 25068 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 25069 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 25070 | 	  if test -f "$collect2name" && \ | 
 | 25071 |   	   strings "$collect2name" | grep resolve_lib_name >/dev/null | 
 | 25072 | 	  then | 
 | 25073 |   	  # We have reworked collect2 | 
 | 25074 |   	  hardcode_direct_GCJ=yes | 
 | 25075 | 	  else | 
 | 25076 |   	  # We have old collect2 | 
 | 25077 |   	  hardcode_direct_GCJ=unsupported | 
 | 25078 |   	  # It fails to find uninstalled libraries when the uninstalled | 
 | 25079 |   	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 25080 |   	  # to unsupported forces relinking | 
 | 25081 |   	  hardcode_minus_L_GCJ=yes | 
 | 25082 |   	  hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25083 |   	  hardcode_libdir_separator_GCJ= | 
 | 25084 | 	  fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25085 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25086 | 	esac | 
 | 25087 | 	shared_flag='-shared' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25088 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 25089 | 	  shared_flag="$shared_flag "'${wl}-G' | 
 | 25090 | 	fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25091 |       else | 
 | 25092 | 	# not using gcc | 
 | 25093 | 	if test "$host_cpu" = ia64; then | 
 | 25094 |   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 25095 |   	# chokes on -Wl,-G. The following line is correct: | 
 | 25096 | 	  shared_flag='-G' | 
 | 25097 | 	else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25098 | 	  if test "$aix_use_runtimelinking" = yes; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25099 | 	    shared_flag='${wl}-G' | 
 | 25100 | 	  else | 
 | 25101 | 	    shared_flag='${wl}-bM:SRE' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25102 | 	  fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25103 | 	fi | 
 | 25104 |       fi | 
 | 25105 |  | 
 | 25106 |       # It seems that -bexpall does not export symbols beginning with | 
 | 25107 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 25108 |       always_export_symbols_GCJ=yes | 
 | 25109 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 25110 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 25111 | 	# -berok will link without error, but may produce a broken library. | 
 | 25112 | 	allow_undefined_flag_GCJ='-berok' | 
 | 25113 |        # Determine the default libpath from the value encoded in an empty executable. | 
 | 25114 |        cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25115 | /* confdefs.h.  */ | 
 | 25116 | _ACEOF | 
 | 25117 | cat confdefs.h >>conftest.$ac_ext | 
 | 25118 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25119 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25120 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25121 | int | 
 | 25122 | main () | 
 | 25123 | { | 
 | 25124 |  | 
 | 25125 |   ; | 
 | 25126 |   return 0; | 
 | 25127 | } | 
 | 25128 | _ACEOF | 
 | 25129 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25130 | if { (ac_try="$ac_link" | 
 | 25131 | case "(($ac_try" in | 
 | 25132 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25133 |   *) ac_try_echo=$ac_try;; | 
 | 25134 | esac | 
 | 25135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25136 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25137 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25138 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25139 |   rm -f conftest.er1 | 
 | 25140 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25141 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25142 |   (exit $ac_status); } && | 
 | 25143 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 25144 |   { (case "(($ac_try" in | 
 | 25145 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25146 |   *) ac_try_echo=$ac_try;; | 
 | 25147 | esac | 
 | 25148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25149 |   (eval "$ac_try") 2>&5 | 
 | 25150 |   ac_status=$? | 
 | 25151 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25152 |   (exit $ac_status); }; } && | 
 | 25153 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25154 |   { (case "(($ac_try" in | 
 | 25155 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25156 |   *) ac_try_echo=$ac_try;; | 
 | 25157 | esac | 
 | 25158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25159 |   (eval "$ac_try") 2>&5 | 
 | 25160 |   ac_status=$? | 
 | 25161 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25162 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25163 |  | 
 | 25164 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 25165 | }'` | 
 | 25166 | # Check for a 64-bit object if we didn't find anything. | 
 | 25167 | 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; } | 
 | 25168 | }'`; fi | 
 | 25169 | else | 
 | 25170 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25171 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25172 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25173 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25174 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25175 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25176 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25177 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25178 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 25179 |  | 
 | 25180 |        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25181 | 	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25182 |        else | 
 | 25183 | 	if test "$host_cpu" = ia64; then | 
 | 25184 | 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 
 | 25185 | 	  allow_undefined_flag_GCJ="-z nodefs" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25186 | 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25187 | 	else | 
 | 25188 | 	 # Determine the default libpath from the value encoded in an empty executable. | 
 | 25189 | 	 cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25190 | /* confdefs.h.  */ | 
 | 25191 | _ACEOF | 
 | 25192 | cat confdefs.h >>conftest.$ac_ext | 
 | 25193 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 25194 | /* end confdefs.h.  */ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25195 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25196 | int | 
 | 25197 | main () | 
 | 25198 | { | 
 | 25199 |  | 
 | 25200 |   ; | 
 | 25201 |   return 0; | 
 | 25202 | } | 
 | 25203 | _ACEOF | 
 | 25204 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25205 | if { (ac_try="$ac_link" | 
 | 25206 | case "(($ac_try" in | 
 | 25207 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25208 |   *) ac_try_echo=$ac_try;; | 
 | 25209 | esac | 
 | 25210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25211 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25212 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25213 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 25214 |   rm -f conftest.er1 | 
 | 25215 |   cat conftest.err >&5 | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25216 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25217 |   (exit $ac_status); } && | 
 | 25218 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 25219 |   { (case "(($ac_try" in | 
 | 25220 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25221 |   *) ac_try_echo=$ac_try;; | 
 | 25222 | esac | 
 | 25223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25224 |   (eval "$ac_try") 2>&5 | 
 | 25225 |   ac_status=$? | 
 | 25226 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25227 |   (exit $ac_status); }; } && | 
 | 25228 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 25229 |   { (case "(($ac_try" in | 
 | 25230 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25231 |   *) ac_try_echo=$ac_try;; | 
 | 25232 | esac | 
 | 25233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 25234 |   (eval "$ac_try") 2>&5 | 
 | 25235 |   ac_status=$? | 
 | 25236 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25237 |   (exit $ac_status); }; }; then | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25238 |  | 
 | 25239 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; } | 
 | 25240 | }'` | 
 | 25241 | # Check for a 64-bit object if we didn't find anything. | 
 | 25242 | 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; } | 
 | 25243 | }'`; fi | 
 | 25244 | else | 
 | 25245 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25246 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 25247 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25248 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25249 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25250 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25251 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25252 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25253 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
 | 25254 |  | 
 | 25255 | 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 25256 | 	  # Warning - without using the other run time loading flags, | 
 | 25257 | 	  # -berok will link without error, but may produce a broken library. | 
 | 25258 | 	  no_undefined_flag_GCJ=' ${wl}-bernotok' | 
 | 25259 | 	  allow_undefined_flag_GCJ=' ${wl}-berok' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25260 | 	  # Exported symbols can be pulled into shared objects from archives | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25261 | 	  whole_archive_flag_spec_GCJ='$convenience' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25262 | 	  archive_cmds_need_lc_GCJ=yes | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25263 | 	  # This is similar to how AIX traditionally builds its shared libraries. | 
 | 25264 | 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25265 | 	fi | 
 | 25266 |       fi | 
 | 25267 |       ;; | 
 | 25268 |  | 
 | 25269 |     amigaos*) | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25270 |       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25271 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25272 |       hardcode_minus_L_GCJ=yes | 
 | 25273 |       # see comment about different semantics on the GNU ld section | 
 | 25274 |       ld_shlibs_GCJ=no | 
 | 25275 |       ;; | 
 | 25276 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25277 |     bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25278 |       export_dynamic_flag_spec_GCJ=-rdynamic | 
 | 25279 |       ;; | 
 | 25280 |  | 
 | 25281 |     cygwin* | mingw* | pw32*) | 
 | 25282 |       # When not using gcc, we currently assume that we are using | 
 | 25283 |       # Microsoft Visual C++. | 
 | 25284 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 25285 |       # no search path for DLLs. | 
 | 25286 |       hardcode_libdir_flag_spec_GCJ=' ' | 
 | 25287 |       allow_undefined_flag_GCJ=unsupported | 
 | 25288 |       # Tell ltmain to make .lib files, not .a files. | 
 | 25289 |       libext=lib | 
 | 25290 |       # Tell ltmain to make .dll files, not .so files. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25291 |       shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25292 |       # FIXME: Setting linknames here is a bad hack. | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25293 |       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25294 |       # The linker will automatically build a .lib file if we build a DLL. | 
 | 25295 |       old_archive_From_new_cmds_GCJ='true' | 
 | 25296 |       # FIXME: Should let the user specify the lib program. | 
 | 25297 |       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25298 |       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25299 |       enable_shared_with_static_runtimes_GCJ=yes | 
 | 25300 |       ;; | 
 | 25301 |  | 
 | 25302 |     darwin* | rhapsody*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25303 |       case $host_os in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25304 |         rhapsody* | darwin1.[012]) | 
 | 25305 |          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | 
 | 25306 |          ;; | 
 | 25307 |        *) # Darwin 1.3 on | 
 | 25308 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 
 | 25309 |            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 25310 |          else | 
 | 25311 |            case ${MACOSX_DEPLOYMENT_TARGET} in | 
 | 25312 |              10.[012]) | 
 | 25313 |                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 
 | 25314 |                ;; | 
 | 25315 |              10.*) | 
 | 25316 |                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | 
 | 25317 |                ;; | 
 | 25318 |            esac | 
 | 25319 |          fi | 
 | 25320 |          ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25321 |       esac | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25322 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25323 |       hardcode_direct_GCJ=no | 
 | 25324 |       hardcode_automatic_GCJ=yes | 
 | 25325 |       hardcode_shlibpath_var_GCJ=unsupported | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25326 |       whole_archive_flag_spec_GCJ='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25327 |       link_all_deplibs_GCJ=yes | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25328 |     if test "$GCC" = yes ; then | 
 | 25329 |     	output_verbose_link_cmd='echo' | 
 | 25330 |         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 
 | 25331 |       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25332 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25333 |       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 25334 |       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25335 |     else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25336 |       case $cc_basename in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25337 |         xlc*) | 
 | 25338 |          output_verbose_link_cmd='echo' | 
 | 25339 |          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | 
 | 25340 |          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25341 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25342 |          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 25343 |           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25344 |           ;; | 
 | 25345 |        *) | 
 | 25346 |          ld_shlibs_GCJ=no | 
 | 25347 |           ;; | 
 | 25348 |       esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25349 |     fi | 
 | 25350 |       ;; | 
 | 25351 |  | 
 | 25352 |     dgux*) | 
 | 25353 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25354 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25355 |       hardcode_shlibpath_var_GCJ=no | 
 | 25356 |       ;; | 
 | 25357 |  | 
 | 25358 |     freebsd1*) | 
 | 25359 |       ld_shlibs_GCJ=no | 
 | 25360 |       ;; | 
 | 25361 |  | 
 | 25362 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 25363 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 25364 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 25365 |     # extra space). | 
 | 25366 |     freebsd2.2*) | 
 | 25367 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 25368 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 25369 |       hardcode_direct_GCJ=yes | 
 | 25370 |       hardcode_shlibpath_var_GCJ=no | 
 | 25371 |       ;; | 
 | 25372 |  | 
 | 25373 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
 | 25374 |     freebsd2*) | 
 | 25375 |       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 25376 |       hardcode_direct_GCJ=yes | 
 | 25377 |       hardcode_minus_L_GCJ=yes | 
 | 25378 |       hardcode_shlibpath_var_GCJ=no | 
 | 25379 |       ;; | 
 | 25380 |  | 
 | 25381 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25382 |     freebsd* | kfreebsd*-gnu | dragonfly*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25383 |       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25384 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 25385 |       hardcode_direct_GCJ=yes | 
 | 25386 |       hardcode_shlibpath_var_GCJ=no | 
 | 25387 |       ;; | 
 | 25388 |  | 
 | 25389 |     hpux9*) | 
 | 25390 |       if test "$GCC" = yes; then | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25391 | 	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25392 |       else | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25393 | 	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25394 |       fi | 
 | 25395 |       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 25396 |       hardcode_libdir_separator_GCJ=: | 
 | 25397 |       hardcode_direct_GCJ=yes | 
 | 25398 |  | 
 | 25399 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 25400 |       # but as the default location of the library. | 
 | 25401 |       hardcode_minus_L_GCJ=yes | 
 | 25402 |       export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 25403 |       ;; | 
 | 25404 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25405 |     hpux10*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25406 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25407 | 	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25408 |       else | 
 | 25409 | 	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 25410 |       fi | 
 | 25411 |       if test "$with_gnu_ld" = no; then | 
 | 25412 | 	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 25413 | 	hardcode_libdir_separator_GCJ=: | 
 | 25414 |  | 
 | 25415 | 	hardcode_direct_GCJ=yes | 
 | 25416 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 25417 |  | 
 | 25418 | 	# hardcode_minus_L: Not really in the search PATH, | 
 | 25419 | 	# but as the default location of the library. | 
 | 25420 | 	hardcode_minus_L_GCJ=yes | 
 | 25421 |       fi | 
 | 25422 |       ;; | 
 | 25423 |  | 
 | 25424 |     hpux11*) | 
 | 25425 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 
 | 25426 | 	case $host_cpu in | 
 | 25427 | 	hppa*64*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25428 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25429 | 	  ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25430 | 	ia64*) | 
 | 25431 | 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25432 | 	  ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25433 | 	*) | 
 | 25434 | 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25435 | 	  ;; | 
 | 25436 | 	esac | 
 | 25437 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25438 | 	case $host_cpu in | 
 | 25439 | 	hppa*64*) | 
 | 25440 | 	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25441 | 	  ;; | 
 | 25442 | 	ia64*) | 
 | 25443 | 	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25444 | 	  ;; | 
 | 25445 | 	*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25446 | 	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25447 | 	  ;; | 
 | 25448 | 	esac | 
 | 25449 |       fi | 
 | 25450 |       if test "$with_gnu_ld" = no; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25451 | 	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | 
 | 25452 | 	hardcode_libdir_separator_GCJ=: | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25453 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25454 | 	case $host_cpu in | 
 | 25455 | 	hppa*64*|ia64*) | 
 | 25456 | 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 
 | 25457 | 	  hardcode_direct_GCJ=no | 
 | 25458 | 	  hardcode_shlibpath_var_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25459 | 	  ;; | 
 | 25460 | 	*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25461 | 	  hardcode_direct_GCJ=yes | 
 | 25462 | 	  export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 25463 |  | 
 | 25464 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 25465 | 	  # but as the default location of the library. | 
 | 25466 | 	  hardcode_minus_L_GCJ=yes | 
 | 25467 | 	  ;; | 
 | 25468 | 	esac | 
 | 25469 |       fi | 
 | 25470 |       ;; | 
 | 25471 |  | 
 | 25472 |     irix5* | irix6* | nonstopux*) | 
 | 25473 |       if test "$GCC" = yes; then | 
 | 25474 | 	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' | 
 | 25475 |       else | 
 | 25476 | 	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' | 
 | 25477 | 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | 
 | 25478 |       fi | 
 | 25479 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 25480 |       hardcode_libdir_separator_GCJ=: | 
 | 25481 |       link_all_deplibs_GCJ=yes | 
 | 25482 |       ;; | 
 | 25483 |  | 
 | 25484 |     netbsd*) | 
 | 25485 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 25486 | 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 25487 |       else | 
 | 25488 | 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 25489 |       fi | 
 | 25490 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 25491 |       hardcode_direct_GCJ=yes | 
 | 25492 |       hardcode_shlibpath_var_GCJ=no | 
 | 25493 |       ;; | 
 | 25494 |  | 
 | 25495 |     newsos6) | 
 | 25496 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25497 |       hardcode_direct_GCJ=yes | 
 | 25498 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 25499 |       hardcode_libdir_separator_GCJ=: | 
 | 25500 |       hardcode_shlibpath_var_GCJ=no | 
 | 25501 |       ;; | 
 | 25502 |  | 
 | 25503 |     openbsd*) | 
 | 25504 |       hardcode_direct_GCJ=yes | 
 | 25505 |       hardcode_shlibpath_var_GCJ=no | 
 | 25506 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 25507 | 	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25508 | 	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25509 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 25510 | 	export_dynamic_flag_spec_GCJ='${wl}-E' | 
 | 25511 |       else | 
 | 25512 |        case $host_os in | 
 | 25513 | 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 25514 | 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 25515 | 	   hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 25516 | 	   ;; | 
 | 25517 | 	 *) | 
 | 25518 | 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25519 | 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | 
 | 25520 | 	   ;; | 
 | 25521 |        esac | 
 | 25522 |       fi | 
 | 25523 |       ;; | 
 | 25524 |  | 
 | 25525 |     os2*) | 
 | 25526 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25527 |       hardcode_minus_L_GCJ=yes | 
 | 25528 |       allow_undefined_flag_GCJ=unsupported | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25529 |       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25530 |       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 25531 |       ;; | 
 | 25532 |  | 
 | 25533 |     osf3*) | 
 | 25534 |       if test "$GCC" = yes; then | 
 | 25535 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 25536 | 	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' | 
 | 25537 |       else | 
 | 25538 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 25539 | 	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' | 
 | 25540 |       fi | 
 | 25541 |       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 25542 |       hardcode_libdir_separator_GCJ=: | 
 | 25543 |       ;; | 
 | 25544 |  | 
 | 25545 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 25546 |       if test "$GCC" = yes; then | 
 | 25547 | 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | 
 | 25548 | 	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' | 
 | 25549 | 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | 
 | 25550 |       else | 
 | 25551 | 	allow_undefined_flag_GCJ=' -expect_unresolved \*' | 
 | 25552 | 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25553 | 	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~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25554 | 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25555 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25556 | 	# Both c and cxx compiler support -rpath directly | 
 | 25557 | 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | 
 | 25558 |       fi | 
 | 25559 |       hardcode_libdir_separator_GCJ=: | 
 | 25560 |       ;; | 
 | 25561 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25562 |     solaris*) | 
 | 25563 |       no_undefined_flag_GCJ=' -z text' | 
 | 25564 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25565 | 	wlarc='${wl}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25566 | 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25567 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 25568 | 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25569 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25570 | 	wlarc='' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25571 | 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25572 | 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 
 | 25573 |   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25574 |       fi | 
 | 25575 |       hardcode_libdir_flag_spec_GCJ='-R$libdir' | 
 | 25576 |       hardcode_shlibpath_var_GCJ=no | 
 | 25577 |       case $host_os in | 
 | 25578 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25579 |       *) | 
 | 25580 |  	# The compiler driver will combine linker options so we | 
 | 25581 |  	# cannot just pass the convience library names through | 
 | 25582 |  	# without $wl, iff we do not link with $LD. | 
 | 25583 |  	# Luckily, gcc supports the same syntax we need for Sun Studio. | 
 | 25584 |  	# Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 25585 |  	case $wlarc in | 
 | 25586 |  	'') | 
 | 25587 |  	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | 
 | 25588 |  	*) | 
 | 25589 |  	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | 
 | 25590 |  	esac ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25591 |       esac | 
 | 25592 |       link_all_deplibs_GCJ=yes | 
 | 25593 |       ;; | 
 | 25594 |  | 
 | 25595 |     sunos4*) | 
 | 25596 |       if test "x$host_vendor" = xsequent; then | 
 | 25597 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 25598 | 	# files that make .init and .fini sections work. | 
 | 25599 | 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25600 |       else | 
 | 25601 | 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 25602 |       fi | 
 | 25603 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25604 |       hardcode_direct_GCJ=yes | 
 | 25605 |       hardcode_minus_L_GCJ=yes | 
 | 25606 |       hardcode_shlibpath_var_GCJ=no | 
 | 25607 |       ;; | 
 | 25608 |  | 
 | 25609 |     sysv4) | 
 | 25610 |       case $host_vendor in | 
 | 25611 | 	sni) | 
 | 25612 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25613 | 	  hardcode_direct_GCJ=yes # is this really true??? | 
 | 25614 | 	;; | 
 | 25615 | 	siemens) | 
 | 25616 | 	  ## LD is ld it makes a PLAMLIB | 
 | 25617 | 	  ## CC just makes a GrossModule. | 
 | 25618 | 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 25619 | 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs' | 
 | 25620 | 	  hardcode_direct_GCJ=no | 
 | 25621 |         ;; | 
 | 25622 | 	motorola) | 
 | 25623 | 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25624 | 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | 
 | 25625 | 	;; | 
 | 25626 |       esac | 
 | 25627 |       runpath_var='LD_RUN_PATH' | 
 | 25628 |       hardcode_shlibpath_var_GCJ=no | 
 | 25629 |       ;; | 
 | 25630 |  | 
 | 25631 |     sysv4.3*) | 
 | 25632 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25633 |       hardcode_shlibpath_var_GCJ=no | 
 | 25634 |       export_dynamic_flag_spec_GCJ='-Bexport' | 
 | 25635 |       ;; | 
 | 25636 |  | 
 | 25637 |     sysv4*MP*) | 
 | 25638 |       if test -d /usr/nec; then | 
 | 25639 | 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25640 | 	hardcode_shlibpath_var_GCJ=no | 
 | 25641 | 	runpath_var=LD_RUN_PATH | 
 | 25642 | 	hardcode_runpath_var=yes | 
 | 25643 | 	ld_shlibs_GCJ=yes | 
 | 25644 |       fi | 
 | 25645 |       ;; | 
 | 25646 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25647 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 
 | 25648 |       no_undefined_flag_GCJ='${wl}-z,text' | 
 | 25649 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25650 |       hardcode_shlibpath_var_GCJ=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25651 |       runpath_var='LD_RUN_PATH' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25652 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25653 |       if test "$GCC" = yes; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25654 | 	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25655 | 	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25656 |       else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25657 | 	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25658 | 	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25659 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25660 |       ;; | 
 | 25661 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25662 |     sysv5* | sco3.2v5* | sco5v6*) | 
 | 25663 |       # Note: We can NOT use -z defs as we might desire, because we do not | 
 | 25664 |       # link with -lc, and that would cause any symbols used from libc to | 
 | 25665 |       # always be unresolved, which means just about no library would | 
 | 25666 |       # ever link correctly.  If we're not using GNU ld we use -z text | 
 | 25667 |       # though, which does catch some bad symbols but isn't as heavy-handed | 
 | 25668 |       # as -z defs. | 
 | 25669 |       no_undefined_flag_GCJ='${wl}-z,text' | 
 | 25670 |       allow_undefined_flag_GCJ='${wl}-z,nodefs' | 
 | 25671 |       archive_cmds_need_lc_GCJ=no | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25672 |       hardcode_shlibpath_var_GCJ=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25673 |       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 
 | 25674 |       hardcode_libdir_separator_GCJ=':' | 
 | 25675 |       link_all_deplibs_GCJ=yes | 
 | 25676 |       export_dynamic_flag_spec_GCJ='${wl}-Bexport' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25677 |       runpath_var='LD_RUN_PATH' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25678 |  | 
 | 25679 |       if test "$GCC" = yes; then | 
 | 25680 | 	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25681 | 	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25682 |       else | 
 | 25683 | 	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25684 | 	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 25685 |       fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25686 |       ;; | 
 | 25687 |  | 
 | 25688 |     uts4*) | 
 | 25689 |       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 25690 |       hardcode_libdir_flag_spec_GCJ='-L$libdir' | 
 | 25691 |       hardcode_shlibpath_var_GCJ=no | 
 | 25692 |       ;; | 
 | 25693 |  | 
 | 25694 |     *) | 
 | 25695 |       ld_shlibs_GCJ=no | 
 | 25696 |       ;; | 
 | 25697 |     esac | 
 | 25698 |   fi | 
 | 25699 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25700 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | 
 | 25701 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25702 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 
 | 25703 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25704 | # | 
 | 25705 | # Do we need to explicitly link libc? | 
 | 25706 | # | 
 | 25707 | case "x$archive_cmds_need_lc_GCJ" in | 
 | 25708 | x|xyes) | 
 | 25709 |   # Assume -lc should be added | 
 | 25710 |   archive_cmds_need_lc_GCJ=yes | 
 | 25711 |  | 
 | 25712 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 25713 |     case $archive_cmds_GCJ in | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25714 |     *'~'*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25715 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 25716 |       ;; | 
 | 25717 |     '$CC '*) | 
 | 25718 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 25719 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 25720 |       # to ld, don't add -lc before -lgcc. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25721 |       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 
 | 25722 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25723 |       $rm conftest* | 
 | 25724 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 25725 |  | 
 | 25726 |       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
 | 25727 |   (eval $ac_compile) 2>&5 | 
 | 25728 |   ac_status=$? | 
 | 25729 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25730 |   (exit $ac_status); } 2>conftest.err; then | 
 | 25731 |         soname=conftest | 
 | 25732 |         lib=conftest | 
 | 25733 |         libobjs=conftest.$ac_objext | 
 | 25734 |         deplibs= | 
 | 25735 |         wl=$lt_prog_compiler_wl_GCJ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25736 | 	pic_flag=$lt_prog_compiler_pic_GCJ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25737 |         compiler_flags=-v | 
 | 25738 |         linker_flags=-v | 
 | 25739 |         verstring= | 
 | 25740 |         output_objdir=. | 
 | 25741 |         libname=conftest | 
 | 25742 |         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | 
 | 25743 |         allow_undefined_flag_GCJ= | 
 | 25744 |         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 
 | 25745 |   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 25746 |   ac_status=$? | 
 | 25747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 25748 |   (exit $ac_status); } | 
 | 25749 |         then | 
 | 25750 | 	  archive_cmds_need_lc_GCJ=no | 
 | 25751 |         else | 
 | 25752 | 	  archive_cmds_need_lc_GCJ=yes | 
 | 25753 |         fi | 
 | 25754 |         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | 
 | 25755 |       else | 
 | 25756 |         cat conftest.err 1>&5 | 
 | 25757 |       fi | 
 | 25758 |       $rm conftest* | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25759 |       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | 
 | 25760 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25761 |       ;; | 
 | 25762 |     esac | 
 | 25763 |   fi | 
 | 25764 |   ;; | 
 | 25765 | esac | 
 | 25766 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25767 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 
 | 25768 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25769 | library_names_spec= | 
 | 25770 | libname_spec='lib$name' | 
 | 25771 | soname_spec= | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25772 | shrext_cmds=".so" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25773 | postinstall_cmds= | 
 | 25774 | postuninstall_cmds= | 
 | 25775 | finish_cmds= | 
 | 25776 | finish_eval= | 
 | 25777 | shlibpath_var= | 
 | 25778 | shlibpath_overrides_runpath=unknown | 
 | 25779 | version_type=none | 
 | 25780 | dynamic_linker="$host_os ld.so" | 
 | 25781 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 25782 | if test "$GCC" = yes; then | 
 | 25783 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 25784 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | 
 | 25785 |     # if the path contains ";" then we assume it to be the separator | 
 | 25786 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 25787 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 25788 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
 | 25789 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 25790 |   else | 
 | 25791 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 25792 |   fi | 
 | 25793 | else | 
 | 25794 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 25795 | fi | 
 | 25796 | need_lib_prefix=unknown | 
 | 25797 | hardcode_into_libs=no | 
 | 25798 |  | 
 | 25799 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 25800 | # flags to be left without arguments | 
 | 25801 | need_version=unknown | 
 | 25802 |  | 
 | 25803 | case $host_os in | 
 | 25804 | aix3*) | 
 | 25805 |   version_type=linux | 
 | 25806 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 25807 |   shlibpath_var=LIBPATH | 
 | 25808 |  | 
 | 25809 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 25810 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 25811 |   ;; | 
 | 25812 |  | 
 | 25813 | aix4* | aix5*) | 
 | 25814 |   version_type=linux | 
 | 25815 |   need_lib_prefix=no | 
 | 25816 |   need_version=no | 
 | 25817 |   hardcode_into_libs=yes | 
 | 25818 |   if test "$host_cpu" = ia64; then | 
 | 25819 |     # AIX 5 supports IA64 | 
 | 25820 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 25821 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 25822 |   else | 
 | 25823 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 25824 |     # for dependence libraries.  The import file would start with | 
 | 25825 |     # the line `#! .'.  This would cause the generated library to | 
 | 25826 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 25827 |     # development snapshots of GCC prior to 3.0. | 
 | 25828 |     case $host_os in | 
 | 25829 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 25830 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 25831 | 	   echo ' yes ' | 
 | 25832 | 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 
 | 25833 | 	: | 
 | 25834 |       else | 
 | 25835 | 	can_build_shared=no | 
 | 25836 |       fi | 
 | 25837 |       ;; | 
 | 25838 |     esac | 
 | 25839 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 25840 |     # soname into executable. Probably we can add versioning support to | 
 | 25841 |     # collect2, so additional links can be useful in future. | 
 | 25842 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 25843 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 25844 |       # instead of lib<name>.a to let people know that these are not | 
 | 25845 |       # typical AIX shared libraries. | 
 | 25846 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 25847 |     else | 
 | 25848 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 25849 |       # and later when we are not doing run time linking. | 
 | 25850 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 25851 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 25852 |     fi | 
 | 25853 |     shlibpath_var=LIBPATH | 
 | 25854 |   fi | 
 | 25855 |   ;; | 
 | 25856 |  | 
 | 25857 | amigaos*) | 
 | 25858 |   library_names_spec='$libname.ixlibrary $libname.a' | 
 | 25859 |   # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25860 |   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25861 |   ;; | 
 | 25862 |  | 
 | 25863 | beos*) | 
 | 25864 |   library_names_spec='${libname}${shared_ext}' | 
 | 25865 |   dynamic_linker="$host_os ld.so" | 
 | 25866 |   shlibpath_var=LIBRARY_PATH | 
 | 25867 |   ;; | 
 | 25868 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25869 | bsdi[45]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25870 |   version_type=linux | 
 | 25871 |   need_version=no | 
 | 25872 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 25873 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 25874 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 25875 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 25876 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 25877 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 25878 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 25879 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 25880 |   # libtool to hard-code these into programs | 
 | 25881 |   ;; | 
 | 25882 |  | 
 | 25883 | cygwin* | mingw* | pw32*) | 
 | 25884 |   version_type=windows | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25885 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25886 |   need_version=no | 
 | 25887 |   need_lib_prefix=no | 
 | 25888 |  | 
 | 25889 |   case $GCC,$host_os in | 
 | 25890 |   yes,cygwin* | yes,mingw* | yes,pw32*) | 
 | 25891 |     library_names_spec='$libname.dll.a' | 
 | 25892 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25893 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 25894 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 
 | 25895 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 25896 |       test -d \$dldir || mkdir -p \$dldir~ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25897 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 25898 |       chmod a+x \$dldir/$dlname' | 
| Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25899 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 25900 |       dlpath=$dir/\$dldll~ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25901 |        $rm \$dlpath' | 
 | 25902 |     shlibpath_overrides_runpath=yes | 
 | 25903 |  | 
 | 25904 |     case $host_os in | 
 | 25905 |     cygwin*) | 
 | 25906 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 25907 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25908 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25909 |       ;; | 
 | 25910 |     mingw*) | 
 | 25911 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 25912 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 25913 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 
 | 25914 |       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 
 | 25915 |         # It is most probably a Windows format PATH printed by | 
 | 25916 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search | 
 | 25917 |         # path with ; separators, and with drive letters. We can handle the | 
 | 25918 |         # drive letters (cygwin fileutils understands them), so leave them, | 
 | 25919 |         # especially as we might pass files found there to a mingw objdump, | 
 | 25920 |         # which wouldn't understand a cygwinified path. Ahh. | 
 | 25921 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 25922 |       else | 
 | 25923 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"` | 
 | 25924 |       fi | 
 | 25925 |       ;; | 
 | 25926 |     pw32*) | 
 | 25927 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25928 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25929 |       ;; | 
 | 25930 |     esac | 
 | 25931 |     ;; | 
 | 25932 |  | 
 | 25933 |   *) | 
 | 25934 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
 | 25935 |     ;; | 
 | 25936 |   esac | 
 | 25937 |   dynamic_linker='Win32 ld.exe' | 
 | 25938 |   # FIXME: first we should search . and the directory the executable is in | 
 | 25939 |   shlibpath_var=PATH | 
 | 25940 |   ;; | 
 | 25941 |  | 
 | 25942 | darwin* | rhapsody*) | 
 | 25943 |   dynamic_linker="$host_os dyld" | 
 | 25944 |   version_type=darwin | 
 | 25945 |   need_lib_prefix=no | 
 | 25946 |   need_version=no | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25947 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25948 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 25949 |   shlibpath_overrides_runpath=yes | 
 | 25950 |   shlibpath_var=DYLD_LIBRARY_PATH | 
| Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25951 |   shrext_cmds='.dylib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25952 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25953 |   if test "$GCC" = yes; then | 
 | 25954 |     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"` | 
 | 25955 |   else | 
 | 25956 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25957 |   fi | 
 | 25958 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 25959 |   ;; | 
 | 25960 |  | 
 | 25961 | dgux*) | 
 | 25962 |   version_type=linux | 
 | 25963 |   need_lib_prefix=no | 
 | 25964 |   need_version=no | 
 | 25965 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 25966 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 25967 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 25968 |   ;; | 
 | 25969 |  | 
 | 25970 | freebsd1*) | 
 | 25971 |   dynamic_linker=no | 
 | 25972 |   ;; | 
 | 25973 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25974 | kfreebsd*-gnu) | 
 | 25975 |   version_type=linux | 
 | 25976 |   need_lib_prefix=no | 
 | 25977 |   need_version=no | 
 | 25978 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 25979 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 25980 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 25981 |   shlibpath_overrides_runpath=no | 
 | 25982 |   hardcode_into_libs=yes | 
 | 25983 |   dynamic_linker='GNU ld.so' | 
 | 25984 |   ;; | 
 | 25985 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25986 | freebsd* | dragonfly*) | 
 | 25987 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 25988 |   # versioning mechanism, adjust this. | 
 | 25989 |   if test -x /usr/bin/objformat; then | 
 | 25990 |     objformat=`/usr/bin/objformat` | 
 | 25991 |   else | 
 | 25992 |     case $host_os in | 
 | 25993 |     freebsd[123]*) objformat=aout ;; | 
 | 25994 |     *) objformat=elf ;; | 
 | 25995 |     esac | 
 | 25996 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25997 |   version_type=freebsd-$objformat | 
 | 25998 |   case $version_type in | 
 | 25999 |     freebsd-elf*) | 
 | 26000 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 26001 |       need_version=no | 
 | 26002 |       need_lib_prefix=no | 
 | 26003 |       ;; | 
 | 26004 |     freebsd-*) | 
 | 26005 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 26006 |       need_version=yes | 
 | 26007 |       ;; | 
 | 26008 |   esac | 
 | 26009 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26010 |   case $host_os in | 
 | 26011 |   freebsd2*) | 
 | 26012 |     shlibpath_overrides_runpath=yes | 
 | 26013 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26014 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26015 |     shlibpath_overrides_runpath=yes | 
 | 26016 |     hardcode_into_libs=yes | 
 | 26017 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26018 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 26019 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26020 |     shlibpath_overrides_runpath=no | 
 | 26021 |     hardcode_into_libs=yes | 
 | 26022 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26023 |   freebsd*) # from 4.6 on | 
 | 26024 |     shlibpath_overrides_runpath=yes | 
 | 26025 |     hardcode_into_libs=yes | 
 | 26026 |     ;; | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26027 |   esac | 
 | 26028 |   ;; | 
 | 26029 |  | 
 | 26030 | gnu*) | 
 | 26031 |   version_type=linux | 
 | 26032 |   need_lib_prefix=no | 
 | 26033 |   need_version=no | 
 | 26034 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 26035 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26036 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26037 |   hardcode_into_libs=yes | 
 | 26038 |   ;; | 
 | 26039 |  | 
 | 26040 | hpux9* | hpux10* | hpux11*) | 
 | 26041 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 26042 |   # link against other versions. | 
 | 26043 |   version_type=sunos | 
 | 26044 |   need_lib_prefix=no | 
 | 26045 |   need_version=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26046 |   case $host_cpu in | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26047 |   ia64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26048 |     shrext_cmds='.so' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26049 |     hardcode_into_libs=yes | 
 | 26050 |     dynamic_linker="$host_os dld.so" | 
 | 26051 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 26052 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 26053 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26054 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26055 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 26056 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 26057 |     else | 
 | 26058 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 26059 |     fi | 
 | 26060 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 26061 |     ;; | 
 | 26062 |    hppa*64*) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26063 |      shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26064 |      hardcode_into_libs=yes | 
 | 26065 |      dynamic_linker="$host_os dld.sl" | 
 | 26066 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 26067 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 26068 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26069 |      soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26070 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 26071 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 26072 |      ;; | 
 | 26073 |    *) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26074 |     shrext_cmds='.sl' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26075 |     dynamic_linker="$host_os dld.sl" | 
 | 26076 |     shlibpath_var=SHLIB_PATH | 
 | 26077 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 26078 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26079 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26080 |     ;; | 
 | 26081 |   esac | 
 | 26082 |   # HP-UX runs *really* slowly unless shared libraries are mode 555. | 
 | 26083 |   postinstall_cmds='chmod 555 $lib' | 
 | 26084 |   ;; | 
 | 26085 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26086 | interix3*) | 
 | 26087 |   version_type=linux | 
 | 26088 |   need_lib_prefix=no | 
 | 26089 |   need_version=no | 
 | 26090 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 26091 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26092 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 26093 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26094 |   shlibpath_overrides_runpath=no | 
 | 26095 |   hardcode_into_libs=yes | 
 | 26096 |   ;; | 
 | 26097 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26098 | irix5* | irix6* | nonstopux*) | 
 | 26099 |   case $host_os in | 
 | 26100 |     nonstopux*) version_type=nonstopux ;; | 
 | 26101 |     *) | 
 | 26102 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 26103 | 		version_type=linux | 
 | 26104 | 	else | 
 | 26105 | 		version_type=irix | 
 | 26106 | 	fi ;; | 
 | 26107 |   esac | 
 | 26108 |   need_lib_prefix=no | 
 | 26109 |   need_version=no | 
 | 26110 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26111 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 26112 |   case $host_os in | 
 | 26113 |   irix5* | nonstopux*) | 
 | 26114 |     libsuff= shlibsuff= | 
 | 26115 |     ;; | 
 | 26116 |   *) | 
 | 26117 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 26118 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 26119 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 26120 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 26121 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 26122 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 26123 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 26124 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 26125 |     esac | 
 | 26126 |     ;; | 
 | 26127 |   esac | 
 | 26128 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 26129 |   shlibpath_overrides_runpath=no | 
 | 26130 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 26131 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 26132 |   hardcode_into_libs=yes | 
 | 26133 |   ;; | 
 | 26134 |  | 
 | 26135 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 26136 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 26137 |   dynamic_linker=no | 
 | 26138 |   ;; | 
 | 26139 |  | 
 | 26140 | # This must be Linux ELF. | 
 | 26141 | linux*) | 
 | 26142 |   version_type=linux | 
 | 26143 |   need_lib_prefix=no | 
 | 26144 |   need_version=no | 
 | 26145 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26146 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26147 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 26148 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26149 |   shlibpath_overrides_runpath=no | 
 | 26150 |   # This implies no fast_install, which is unacceptable. | 
 | 26151 |   # Some rework will be needed to allow for fast_install | 
 | 26152 |   # before this can be enabled. | 
 | 26153 |   hardcode_into_libs=yes | 
 | 26154 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26155 |   # Append ld.so.conf contents to the search path | 
 | 26156 |   if test -f /etc/ld.so.conf; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26157 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26158 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 
 | 26159 |   fi | 
 | 26160 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26161 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 26162 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 26163 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 26164 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 26165 |   # people can always --disable-shared, the test was removed, and we | 
 | 26166 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 26167 |   dynamic_linker='GNU/Linux ld.so' | 
 | 26168 |   ;; | 
 | 26169 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26170 | knetbsd*-gnu) | 
 | 26171 |   version_type=linux | 
 | 26172 |   need_lib_prefix=no | 
 | 26173 |   need_version=no | 
 | 26174 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 26175 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26176 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26177 |   shlibpath_overrides_runpath=no | 
 | 26178 |   hardcode_into_libs=yes | 
 | 26179 |   dynamic_linker='GNU ld.so' | 
 | 26180 |   ;; | 
 | 26181 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26182 | netbsd*) | 
 | 26183 |   version_type=sunos | 
 | 26184 |   need_lib_prefix=no | 
 | 26185 |   need_version=no | 
 | 26186 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 
 | 26187 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 26188 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 26189 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 26190 |   else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26191 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26192 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26193 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 26194 |   fi | 
 | 26195 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26196 |   shlibpath_overrides_runpath=yes | 
 | 26197 |   hardcode_into_libs=yes | 
 | 26198 |   ;; | 
 | 26199 |  | 
 | 26200 | newsos6) | 
 | 26201 |   version_type=linux | 
 | 26202 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26203 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26204 |   shlibpath_overrides_runpath=yes | 
 | 26205 |   ;; | 
 | 26206 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26207 | nto-qnx*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26208 |   version_type=linux | 
 | 26209 |   need_lib_prefix=no | 
 | 26210 |   need_version=no | 
 | 26211 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26212 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26213 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26214 |   shlibpath_overrides_runpath=yes | 
 | 26215 |   ;; | 
 | 26216 |  | 
 | 26217 | openbsd*) | 
 | 26218 |   version_type=sunos | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26219 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26220 |   need_lib_prefix=no | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26221 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 26222 |   case $host_os in | 
 | 26223 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 
 | 26224 |     *)                         need_version=no  ;; | 
 | 26225 |   esac | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26226 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 26227 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 26228 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26229 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 26230 |     case $host_os in | 
 | 26231 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 26232 | 	shlibpath_overrides_runpath=no | 
 | 26233 | 	;; | 
 | 26234 |       *) | 
 | 26235 | 	shlibpath_overrides_runpath=yes | 
 | 26236 | 	;; | 
 | 26237 |       esac | 
 | 26238 |   else | 
 | 26239 |     shlibpath_overrides_runpath=yes | 
 | 26240 |   fi | 
 | 26241 |   ;; | 
 | 26242 |  | 
 | 26243 | os2*) | 
 | 26244 |   libname_spec='$name' | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26245 |   shrext_cmds=".dll" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26246 |   need_lib_prefix=no | 
 | 26247 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 26248 |   dynamic_linker='OS/2 ld.exe' | 
 | 26249 |   shlibpath_var=LIBPATH | 
 | 26250 |   ;; | 
 | 26251 |  | 
 | 26252 | osf3* | osf4* | osf5*) | 
 | 26253 |   version_type=osf | 
 | 26254 |   need_lib_prefix=no | 
 | 26255 |   need_version=no | 
 | 26256 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26257 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26258 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26259 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 26260 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 26261 |   ;; | 
 | 26262 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26263 | solaris*) | 
 | 26264 |   version_type=linux | 
 | 26265 |   need_lib_prefix=no | 
 | 26266 |   need_version=no | 
 | 26267 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26268 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26269 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26270 |   shlibpath_overrides_runpath=yes | 
 | 26271 |   hardcode_into_libs=yes | 
 | 26272 |   # ldd complains unless libraries are executable | 
 | 26273 |   postinstall_cmds='chmod +x $lib' | 
 | 26274 |   ;; | 
 | 26275 |  | 
 | 26276 | sunos4*) | 
 | 26277 |   version_type=sunos | 
 | 26278 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 26279 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 26280 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26281 |   shlibpath_overrides_runpath=yes | 
 | 26282 |   if test "$with_gnu_ld" = yes; then | 
 | 26283 |     need_lib_prefix=no | 
 | 26284 |   fi | 
 | 26285 |   need_version=yes | 
 | 26286 |   ;; | 
 | 26287 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26288 | sysv4 | sysv4.3*) | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26289 |   version_type=linux | 
 | 26290 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26291 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26292 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26293 |   case $host_vendor in | 
 | 26294 |     sni) | 
 | 26295 |       shlibpath_overrides_runpath=no | 
 | 26296 |       need_lib_prefix=no | 
 | 26297 |       export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 26298 |       runpath_var=LD_RUN_PATH | 
 | 26299 |       ;; | 
 | 26300 |     siemens) | 
 | 26301 |       need_lib_prefix=no | 
 | 26302 |       ;; | 
 | 26303 |     motorola) | 
 | 26304 |       need_lib_prefix=no | 
 | 26305 |       need_version=no | 
 | 26306 |       shlibpath_overrides_runpath=no | 
 | 26307 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 26308 |       ;; | 
 | 26309 |   esac | 
 | 26310 |   ;; | 
 | 26311 |  | 
 | 26312 | sysv4*MP*) | 
 | 26313 |   if test -d /usr/nec ;then | 
 | 26314 |     version_type=linux | 
 | 26315 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 26316 |     soname_spec='$libname${shared_ext}.$major' | 
 | 26317 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 26318 |   fi | 
 | 26319 |   ;; | 
 | 26320 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26321 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 26322 |   version_type=freebsd-elf | 
 | 26323 |   need_lib_prefix=no | 
 | 26324 |   need_version=no | 
 | 26325 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 26326 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26327 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26328 |   hardcode_into_libs=yes | 
 | 26329 |   if test "$with_gnu_ld" = yes; then | 
 | 26330 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 26331 |     shlibpath_overrides_runpath=no | 
 | 26332 |   else | 
 | 26333 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 26334 |     shlibpath_overrides_runpath=yes | 
 | 26335 |     case $host_os in | 
 | 26336 |       sco3.2v5*) | 
 | 26337 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 26338 | 	;; | 
 | 26339 |     esac | 
 | 26340 |   fi | 
 | 26341 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 26342 |   ;; | 
 | 26343 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26344 | uts4*) | 
 | 26345 |   version_type=linux | 
 | 26346 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 26347 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 26348 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 26349 |   ;; | 
 | 26350 |  | 
 | 26351 | *) | 
 | 26352 |   dynamic_linker=no | 
 | 26353 |   ;; | 
 | 26354 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26355 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | 
 | 26356 | echo "${ECHO_T}$dynamic_linker" >&6; } | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26357 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 26358 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26359 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 26360 | if test "$GCC" = yes; then | 
 | 26361 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 26362 | fi | 
 | 26363 |  | 
 | 26364 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 
 | 26365 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26366 | hardcode_action_GCJ= | 
 | 26367 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | 
 | 26368 |    test -n "$runpath_var_GCJ" || \ | 
 | 26369 |    test "X$hardcode_automatic_GCJ" = "Xyes" ; then | 
 | 26370 |  | 
 | 26371 |   # We can hardcode non-existant directories. | 
 | 26372 |   if test "$hardcode_direct_GCJ" != no && | 
 | 26373 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 26374 |      # have to relink, otherwise we might link with an installed library | 
 | 26375 |      # when we should be linking with a yet-to-be-installed one | 
 | 26376 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | 
 | 26377 |      test "$hardcode_minus_L_GCJ" != no; then | 
 | 26378 |     # Linking always hardcodes the temporary library directory. | 
 | 26379 |     hardcode_action_GCJ=relink | 
 | 26380 |   else | 
 | 26381 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 26382 |     hardcode_action_GCJ=immediate | 
 | 26383 |   fi | 
 | 26384 | else | 
 | 26385 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 26386 |   # directories. | 
 | 26387 |   hardcode_action_GCJ=unsupported | 
 | 26388 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26389 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | 
 | 26390 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26391 |  | 
 | 26392 | if test "$hardcode_action_GCJ" = relink; then | 
 | 26393 |   # Fast installation is not supported | 
 | 26394 |   enable_fast_install=no | 
 | 26395 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 26396 |      test "$enable_shared" = no; then | 
 | 26397 |   # Fast installation is not necessary | 
 | 26398 |   enable_fast_install=needless | 
 | 26399 | fi | 
 | 26400 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26401 |  | 
 | 26402 | # The else clause should only fire when bootstrapping the | 
 | 26403 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 26404 | # with your package, and you will get complaints that there are | 
 | 26405 | # no rules to generate ltmain.sh. | 
 | 26406 | if test -f "$ltmain"; then | 
 | 26407 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 26408 |   # without removal of \ escapes. | 
 | 26409 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 26410 |     setopt NO_GLOB_SUBST | 
 | 26411 |   fi | 
 | 26412 |   # Now quote all the things that may contain metacharacters while being | 
 | 26413 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 26414 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26415 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26416 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26417 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 26418 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 26419 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 26420 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 26421 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 26422 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 26423 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 26424 |     compiler_GCJ \ | 
 | 26425 |     CC_GCJ \ | 
 | 26426 |     LD_GCJ \ | 
 | 26427 |     lt_prog_compiler_wl_GCJ \ | 
 | 26428 |     lt_prog_compiler_pic_GCJ \ | 
 | 26429 |     lt_prog_compiler_static_GCJ \ | 
 | 26430 |     lt_prog_compiler_no_builtin_flag_GCJ \ | 
 | 26431 |     export_dynamic_flag_spec_GCJ \ | 
 | 26432 |     thread_safe_flag_spec_GCJ \ | 
 | 26433 |     whole_archive_flag_spec_GCJ \ | 
 | 26434 |     enable_shared_with_static_runtimes_GCJ \ | 
 | 26435 |     old_archive_cmds_GCJ \ | 
 | 26436 |     old_archive_from_new_cmds_GCJ \ | 
 | 26437 |     predep_objects_GCJ \ | 
 | 26438 |     postdep_objects_GCJ \ | 
 | 26439 |     predeps_GCJ \ | 
 | 26440 |     postdeps_GCJ \ | 
 | 26441 |     compiler_lib_search_path_GCJ \ | 
 | 26442 |     archive_cmds_GCJ \ | 
 | 26443 |     archive_expsym_cmds_GCJ \ | 
 | 26444 |     postinstall_cmds_GCJ \ | 
 | 26445 |     postuninstall_cmds_GCJ \ | 
 | 26446 |     old_archive_from_expsyms_cmds_GCJ \ | 
 | 26447 |     allow_undefined_flag_GCJ \ | 
 | 26448 |     no_undefined_flag_GCJ \ | 
 | 26449 |     export_symbols_cmds_GCJ \ | 
 | 26450 |     hardcode_libdir_flag_spec_GCJ \ | 
 | 26451 |     hardcode_libdir_flag_spec_ld_GCJ \ | 
 | 26452 |     hardcode_libdir_separator_GCJ \ | 
 | 26453 |     hardcode_automatic_GCJ \ | 
 | 26454 |     module_cmds_GCJ \ | 
 | 26455 |     module_expsym_cmds_GCJ \ | 
 | 26456 |     lt_cv_prog_compiler_c_o_GCJ \ | 
 | 26457 |     exclude_expsyms_GCJ \ | 
 | 26458 |     include_expsyms_GCJ; do | 
 | 26459 |  | 
 | 26460 |     case $var in | 
 | 26461 |     old_archive_cmds_GCJ | \ | 
 | 26462 |     old_archive_from_new_cmds_GCJ | \ | 
 | 26463 |     archive_cmds_GCJ | \ | 
 | 26464 |     archive_expsym_cmds_GCJ | \ | 
 | 26465 |     module_cmds_GCJ | \ | 
 | 26466 |     module_expsym_cmds_GCJ | \ | 
 | 26467 |     old_archive_from_expsyms_cmds_GCJ | \ | 
 | 26468 |     export_symbols_cmds_GCJ | \ | 
 | 26469 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 26470 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 26471 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 26472 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 26473 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26474 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26475 |       ;; | 
 | 26476 |     *) | 
 | 26477 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 26478 |       ;; | 
 | 26479 |     esac | 
 | 26480 |   done | 
 | 26481 |  | 
 | 26482 |   case $lt_echo in | 
 | 26483 |   *'\$0 --fallback-echo"') | 
 | 26484 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 26485 |     ;; | 
 | 26486 |   esac | 
 | 26487 |  | 
 | 26488 | cfgfile="$ofile" | 
 | 26489 |  | 
 | 26490 |   cat <<__EOF__ >> "$cfgfile" | 
 | 26491 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 26492 |  | 
 | 26493 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 26494 |  | 
 | 26495 | # Shell to use when invoking shell scripts. | 
 | 26496 | SHELL=$lt_SHELL | 
 | 26497 |  | 
 | 26498 | # Whether or not to build shared libraries. | 
 | 26499 | build_libtool_libs=$enable_shared | 
 | 26500 |  | 
 | 26501 | # Whether or not to build static libraries. | 
 | 26502 | build_old_libs=$enable_static | 
 | 26503 |  | 
 | 26504 | # Whether or not to add -lc for building shared libraries. | 
 | 26505 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | 
 | 26506 |  | 
 | 26507 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 26508 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | 
 | 26509 |  | 
 | 26510 | # Whether or not to optimize for fast installation. | 
 | 26511 | fast_install=$enable_fast_install | 
 | 26512 |  | 
 | 26513 | # The host system. | 
 | 26514 | host_alias=$host_alias | 
 | 26515 | host=$host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26516 | host_os=$host_os | 
 | 26517 |  | 
 | 26518 | # The build system. | 
 | 26519 | build_alias=$build_alias | 
 | 26520 | build=$build | 
 | 26521 | build_os=$build_os | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26522 |  | 
 | 26523 | # An echo program that does not interpret backslashes. | 
 | 26524 | echo=$lt_echo | 
 | 26525 |  | 
 | 26526 | # The archiver. | 
 | 26527 | AR=$lt_AR | 
 | 26528 | AR_FLAGS=$lt_AR_FLAGS | 
 | 26529 |  | 
 | 26530 | # A C compiler. | 
 | 26531 | LTCC=$lt_LTCC | 
 | 26532 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26533 | # LTCC compiler flags. | 
 | 26534 | LTCFLAGS=$lt_LTCFLAGS | 
 | 26535 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26536 | # A language-specific compiler. | 
 | 26537 | CC=$lt_compiler_GCJ | 
 | 26538 |  | 
 | 26539 | # Is the compiler the GNU C compiler? | 
 | 26540 | with_gcc=$GCC_GCJ | 
 | 26541 |  | 
 | 26542 | # An ERE matcher. | 
 | 26543 | EGREP=$lt_EGREP | 
 | 26544 |  | 
 | 26545 | # The linker used to build libraries. | 
 | 26546 | LD=$lt_LD_GCJ | 
 | 26547 |  | 
 | 26548 | # Whether we need hard or soft links. | 
 | 26549 | LN_S=$lt_LN_S | 
 | 26550 |  | 
 | 26551 | # A BSD-compatible nm program. | 
 | 26552 | NM=$lt_NM | 
 | 26553 |  | 
 | 26554 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26555 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26556 |  | 
 | 26557 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 26558 | MAGIC_CMD=$MAGIC_CMD | 
 | 26559 |  | 
 | 26560 | # Used on cygwin: DLL creation program. | 
 | 26561 | DLLTOOL="$DLLTOOL" | 
 | 26562 |  | 
 | 26563 | # Used on cygwin: object dumper. | 
 | 26564 | OBJDUMP="$OBJDUMP" | 
 | 26565 |  | 
 | 26566 | # Used on cygwin: assembler. | 
 | 26567 | AS="$AS" | 
 | 26568 |  | 
 | 26569 | # The name of the directory that contains temporary libtool files. | 
 | 26570 | objdir=$objdir | 
 | 26571 |  | 
 | 26572 | # How to create reloadable object files. | 
 | 26573 | reload_flag=$lt_reload_flag | 
 | 26574 | reload_cmds=$lt_reload_cmds | 
 | 26575 |  | 
 | 26576 | # How to pass a linker flag through the compiler. | 
 | 26577 | wl=$lt_lt_prog_compiler_wl_GCJ | 
 | 26578 |  | 
 | 26579 | # Object file suffix (normally "o"). | 
 | 26580 | objext="$ac_objext" | 
 | 26581 |  | 
 | 26582 | # Old archive suffix (normally "a"). | 
 | 26583 | libext="$libext" | 
 | 26584 |  | 
 | 26585 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26586 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26587 |  | 
 | 26588 | # Executable file suffix (normally ""). | 
 | 26589 | exeext="$exeext" | 
 | 26590 |  | 
 | 26591 | # Additional compiler flags for building library objects. | 
 | 26592 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | 
 | 26593 | pic_mode=$pic_mode | 
 | 26594 |  | 
 | 26595 | # What is the maximum length of a command? | 
 | 26596 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 26597 |  | 
 | 26598 | # Does compiler simultaneously support -c and -o options? | 
 | 26599 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | 
 | 26600 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26601 | # Must we lock files when doing compilation? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26602 | need_locks=$lt_need_locks | 
 | 26603 |  | 
 | 26604 | # Do we need the lib prefix for modules? | 
 | 26605 | need_lib_prefix=$need_lib_prefix | 
 | 26606 |  | 
 | 26607 | # Do we need a version for libraries? | 
 | 26608 | need_version=$need_version | 
 | 26609 |  | 
 | 26610 | # Whether dlopen is supported. | 
 | 26611 | dlopen_support=$enable_dlopen | 
 | 26612 |  | 
 | 26613 | # Whether dlopen of programs is supported. | 
 | 26614 | dlopen_self=$enable_dlopen_self | 
 | 26615 |  | 
 | 26616 | # Whether dlopen of statically linked programs is supported. | 
 | 26617 | dlopen_self_static=$enable_dlopen_self_static | 
 | 26618 |  | 
 | 26619 | # Compiler flag to prevent dynamic linking. | 
 | 26620 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | 
 | 26621 |  | 
 | 26622 | # Compiler flag to turn off builtin functions. | 
 | 26623 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | 
 | 26624 |  | 
 | 26625 | # Compiler flag to allow reflexive dlopens. | 
 | 26626 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | 
 | 26627 |  | 
 | 26628 | # Compiler flag to generate shared objects directly from archives. | 
 | 26629 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | 
 | 26630 |  | 
 | 26631 | # Compiler flag to generate thread-safe objects. | 
 | 26632 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | 
 | 26633 |  | 
 | 26634 | # Library versioning type. | 
 | 26635 | version_type=$version_type | 
 | 26636 |  | 
 | 26637 | # Format of library name prefix. | 
 | 26638 | libname_spec=$lt_libname_spec | 
 | 26639 |  | 
 | 26640 | # List of archive names.  First name is the real one, the rest are links. | 
 | 26641 | # The last name is the one that the linker finds with -lNAME. | 
 | 26642 | library_names_spec=$lt_library_names_spec | 
 | 26643 |  | 
 | 26644 | # The coded name of the library, if different from the real name. | 
 | 26645 | soname_spec=$lt_soname_spec | 
 | 26646 |  | 
 | 26647 | # Commands used to build and install an old-style archive. | 
 | 26648 | RANLIB=$lt_RANLIB | 
 | 26649 | old_archive_cmds=$lt_old_archive_cmds_GCJ | 
 | 26650 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 26651 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 26652 |  | 
 | 26653 | # Create an old-style archive from a shared archive. | 
 | 26654 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | 
 | 26655 |  | 
 | 26656 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 26657 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | 
 | 26658 |  | 
 | 26659 | # Commands used to build and install a shared archive. | 
 | 26660 | archive_cmds=$lt_archive_cmds_GCJ | 
 | 26661 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | 
 | 26662 | postinstall_cmds=$lt_postinstall_cmds | 
 | 26663 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 26664 |  | 
 | 26665 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 26666 | module_cmds=$lt_module_cmds_GCJ | 
 | 26667 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | 
 | 26668 |  | 
 | 26669 | # Commands to strip libraries. | 
 | 26670 | old_striplib=$lt_old_striplib | 
 | 26671 | striplib=$lt_striplib | 
 | 26672 |  | 
 | 26673 | # Dependencies to place before the objects being linked to create a | 
 | 26674 | # shared library. | 
 | 26675 | predep_objects=$lt_predep_objects_GCJ | 
 | 26676 |  | 
 | 26677 | # Dependencies to place after the objects being linked to create a | 
 | 26678 | # shared library. | 
 | 26679 | postdep_objects=$lt_postdep_objects_GCJ | 
 | 26680 |  | 
 | 26681 | # Dependencies to place before the objects being linked to create a | 
 | 26682 | # shared library. | 
 | 26683 | predeps=$lt_predeps_GCJ | 
 | 26684 |  | 
 | 26685 | # Dependencies to place after the objects being linked to create a | 
 | 26686 | # shared library. | 
 | 26687 | postdeps=$lt_postdeps_GCJ | 
 | 26688 |  | 
 | 26689 | # The library search path used internally by the compiler when linking | 
 | 26690 | # a shared library. | 
 | 26691 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | 
 | 26692 |  | 
 | 26693 | # Method to check whether dependent libraries are shared objects. | 
 | 26694 | deplibs_check_method=$lt_deplibs_check_method | 
 | 26695 |  | 
 | 26696 | # Command to use when deplibs_check_method == file_magic. | 
 | 26697 | file_magic_cmd=$lt_file_magic_cmd | 
 | 26698 |  | 
 | 26699 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 26700 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | 
 | 26701 |  | 
 | 26702 | # Flag that forces no undefined symbols. | 
 | 26703 | no_undefined_flag=$lt_no_undefined_flag_GCJ | 
 | 26704 |  | 
 | 26705 | # Commands used to finish a libtool library installation in a directory. | 
 | 26706 | finish_cmds=$lt_finish_cmds | 
 | 26707 |  | 
 | 26708 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 26709 | finish_eval=$lt_finish_eval | 
 | 26710 |  | 
 | 26711 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 26712 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 26713 |  | 
 | 26714 | # Transform the output of nm in a proper C declaration | 
 | 26715 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 26716 |  | 
 | 26717 | # Transform the output of nm in a C name address pair | 
 | 26718 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 26719 |  | 
 | 26720 | # This is the shared library runtime path variable. | 
 | 26721 | runpath_var=$runpath_var | 
 | 26722 |  | 
 | 26723 | # This is the shared library path variable. | 
 | 26724 | shlibpath_var=$shlibpath_var | 
 | 26725 |  | 
 | 26726 | # Is shlibpath searched before the hard-coded library search path? | 
 | 26727 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 26728 |  | 
 | 26729 | # How to hardcode a shared library path into an executable. | 
 | 26730 | hardcode_action=$hardcode_action_GCJ | 
 | 26731 |  | 
 | 26732 | # Whether we should hardcode library paths into libraries. | 
 | 26733 | hardcode_into_libs=$hardcode_into_libs | 
 | 26734 |  | 
 | 26735 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 26736 | # This must work even if \$libdir does not exist. | 
 | 26737 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | 
 | 26738 |  | 
 | 26739 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 26740 | # a binary during linking. This must work even if \$libdir does | 
 | 26741 | # not exist. | 
 | 26742 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | 
 | 26743 |  | 
 | 26744 | # Whether we need a single -rpath flag with a separated argument. | 
 | 26745 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | 
 | 26746 |  | 
 | 26747 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 26748 | # resulting binary. | 
 | 26749 | hardcode_direct=$hardcode_direct_GCJ | 
 | 26750 |  | 
 | 26751 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 26752 | # resulting binary. | 
 | 26753 | hardcode_minus_L=$hardcode_minus_L_GCJ | 
 | 26754 |  | 
 | 26755 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 26756 | # the resulting binary. | 
 | 26757 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | 
 | 26758 |  | 
 | 26759 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 26760 | # and all subsequent libraries and executables linked against it. | 
 | 26761 | hardcode_automatic=$hardcode_automatic_GCJ | 
 | 26762 |  | 
 | 26763 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 26764 | # restored at relink time. | 
 | 26765 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 26766 |  | 
 | 26767 | # Whether libtool must link a program against all its dependency libraries. | 
 | 26768 | link_all_deplibs=$link_all_deplibs_GCJ | 
 | 26769 |  | 
 | 26770 | # Compile-time system search path for libraries | 
 | 26771 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 26772 |  | 
 | 26773 | # Run-time system search path for libraries | 
 | 26774 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 26775 |  | 
 | 26776 | # Fix the shell variable \$srcfile for the compiler. | 
 | 26777 | fix_srcfile_path="$fix_srcfile_path_GCJ" | 
 | 26778 |  | 
 | 26779 | # Set to yes if exported symbols are required. | 
 | 26780 | always_export_symbols=$always_export_symbols_GCJ | 
 | 26781 |  | 
 | 26782 | # The commands to list exported symbols. | 
 | 26783 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | 
 | 26784 |  | 
 | 26785 | # The commands to extract the exported symbol list from a shared archive. | 
 | 26786 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 26787 |  | 
 | 26788 | # Symbols that should not be listed in the preloaded symbols. | 
 | 26789 | exclude_expsyms=$lt_exclude_expsyms_GCJ | 
 | 26790 |  | 
 | 26791 | # Symbols that must always be exported. | 
 | 26792 | include_expsyms=$lt_include_expsyms_GCJ | 
 | 26793 |  | 
 | 26794 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 26795 |  | 
 | 26796 | __EOF__ | 
 | 26797 |  | 
 | 26798 |  | 
 | 26799 | else | 
 | 26800 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 26801 |   # `config.status --recheck' to rerun these tests and create the | 
 | 26802 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26803 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 26804 |   if test -f "$ltmain_in"; then | 
 | 26805 |     test -f Makefile && make "$ltmain" | 
 | 26806 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26807 | fi | 
 | 26808 |  | 
 | 26809 |  | 
 | 26810 | ac_ext=c | 
 | 26811 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26815 |  | 
 | 26816 | CC="$lt_save_CC" | 
 | 26817 |  | 
 | 26818 | 	else | 
 | 26819 | 	  tagname="" | 
 | 26820 | 	fi | 
 | 26821 | 	;; | 
 | 26822 |  | 
 | 26823 |       RC) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26824 | 	ac_ext=c | 
 | 26825 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26829 |  | 
 | 26830 |  | 
 | 26831 | # Source file extension for RC test sources. | 
 | 26832 | ac_ext=rc | 
 | 26833 |  | 
 | 26834 | # Object file extension for compiled RC test sources. | 
 | 26835 | objext=o | 
 | 26836 | objext_RC=$objext | 
 | 26837 |  | 
 | 26838 | # Code to be used in simple compile tests | 
 | 26839 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | 
 | 26840 |  | 
 | 26841 | # Code to be used in simple link tests | 
 | 26842 | lt_simple_link_test_code="$lt_simple_compile_test_code" | 
 | 26843 |  | 
 | 26844 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 26845 |  | 
 | 26846 | # If no C compiler was specified, use CC. | 
 | 26847 | LTCC=${LTCC-"$CC"} | 
 | 26848 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26849 | # If no C compiler flags were specified, use CFLAGS. | 
 | 26850 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 26851 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26852 | # Allow CC to be a program name with arguments. | 
 | 26853 | compiler=$CC | 
 | 26854 |  | 
 | 26855 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26856 | # save warnings/boilerplate of simple test code | 
 | 26857 | ac_outfile=conftest.$ac_objext | 
 | 26858 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 26859 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 26860 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 26861 | $rm conftest* | 
 | 26862 |  | 
 | 26863 | ac_outfile=conftest.$ac_objext | 
 | 26864 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 26865 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 26866 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 26867 | $rm conftest* | 
 | 26868 |  | 
 | 26869 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26870 | # Allow CC to be a program name with arguments. | 
 | 26871 | lt_save_CC="$CC" | 
 | 26872 | CC=${RC-"windres"} | 
 | 26873 | compiler=$CC | 
 | 26874 | compiler_RC=$CC | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26875 | for cc_temp in $compiler""; do | 
 | 26876 |   case $cc_temp in | 
 | 26877 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 26878 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 26879 |     \-*) ;; | 
 | 26880 |     *) break;; | 
 | 26881 |   esac | 
 | 26882 | done | 
 | 26883 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 
 | 26884 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26885 | lt_cv_prog_compiler_c_o_RC=yes | 
 | 26886 |  | 
 | 26887 | # The else clause should only fire when bootstrapping the | 
 | 26888 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 
 | 26889 | # with your package, and you will get complaints that there are | 
 | 26890 | # no rules to generate ltmain.sh. | 
 | 26891 | if test -f "$ltmain"; then | 
 | 26892 |   # See if we are running on zsh, and set the options which allow our commands through | 
 | 26893 |   # without removal of \ escapes. | 
 | 26894 |   if test -n "${ZSH_VERSION+set}" ; then | 
 | 26895 |     setopt NO_GLOB_SUBST | 
 | 26896 |   fi | 
 | 26897 |   # Now quote all the things that may contain metacharacters while being | 
 | 26898 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the | 
 | 26899 |   # variables and quote the copies for generation of the libtool script. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26900 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26901 |     SED SHELL STRIP \ | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26902 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 
 | 26903 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 
 | 26904 |     deplibs_check_method reload_flag reload_cmds need_locks \ | 
 | 26905 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 
 | 26906 |     lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 26907 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | 
 | 26908 |     old_postinstall_cmds old_postuninstall_cmds \ | 
 | 26909 |     compiler_RC \ | 
 | 26910 |     CC_RC \ | 
 | 26911 |     LD_RC \ | 
 | 26912 |     lt_prog_compiler_wl_RC \ | 
 | 26913 |     lt_prog_compiler_pic_RC \ | 
 | 26914 |     lt_prog_compiler_static_RC \ | 
 | 26915 |     lt_prog_compiler_no_builtin_flag_RC \ | 
 | 26916 |     export_dynamic_flag_spec_RC \ | 
 | 26917 |     thread_safe_flag_spec_RC \ | 
 | 26918 |     whole_archive_flag_spec_RC \ | 
 | 26919 |     enable_shared_with_static_runtimes_RC \ | 
 | 26920 |     old_archive_cmds_RC \ | 
 | 26921 |     old_archive_from_new_cmds_RC \ | 
 | 26922 |     predep_objects_RC \ | 
 | 26923 |     postdep_objects_RC \ | 
 | 26924 |     predeps_RC \ | 
 | 26925 |     postdeps_RC \ | 
 | 26926 |     compiler_lib_search_path_RC \ | 
 | 26927 |     archive_cmds_RC \ | 
 | 26928 |     archive_expsym_cmds_RC \ | 
 | 26929 |     postinstall_cmds_RC \ | 
 | 26930 |     postuninstall_cmds_RC \ | 
 | 26931 |     old_archive_from_expsyms_cmds_RC \ | 
 | 26932 |     allow_undefined_flag_RC \ | 
 | 26933 |     no_undefined_flag_RC \ | 
 | 26934 |     export_symbols_cmds_RC \ | 
 | 26935 |     hardcode_libdir_flag_spec_RC \ | 
 | 26936 |     hardcode_libdir_flag_spec_ld_RC \ | 
 | 26937 |     hardcode_libdir_separator_RC \ | 
 | 26938 |     hardcode_automatic_RC \ | 
 | 26939 |     module_cmds_RC \ | 
 | 26940 |     module_expsym_cmds_RC \ | 
 | 26941 |     lt_cv_prog_compiler_c_o_RC \ | 
 | 26942 |     exclude_expsyms_RC \ | 
 | 26943 |     include_expsyms_RC; do | 
 | 26944 |  | 
 | 26945 |     case $var in | 
 | 26946 |     old_archive_cmds_RC | \ | 
 | 26947 |     old_archive_from_new_cmds_RC | \ | 
 | 26948 |     archive_cmds_RC | \ | 
 | 26949 |     archive_expsym_cmds_RC | \ | 
 | 26950 |     module_cmds_RC | \ | 
 | 26951 |     module_expsym_cmds_RC | \ | 
 | 26952 |     old_archive_from_expsyms_cmds_RC | \ | 
 | 26953 |     export_symbols_cmds_RC | \ | 
 | 26954 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 
 | 26955 |     postinstall_cmds | postuninstall_cmds | \ | 
 | 26956 |     old_postinstall_cmds | old_postuninstall_cmds | \ | 
 | 26957 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | 
 | 26958 |       # Double-quote double-evaled strings. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26959 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26960 |       ;; | 
 | 26961 |     *) | 
 | 26962 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | 
 | 26963 |       ;; | 
 | 26964 |     esac | 
 | 26965 |   done | 
 | 26966 |  | 
 | 26967 |   case $lt_echo in | 
 | 26968 |   *'\$0 --fallback-echo"') | 
 | 26969 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | 
 | 26970 |     ;; | 
 | 26971 |   esac | 
 | 26972 |  | 
 | 26973 | cfgfile="$ofile" | 
 | 26974 |  | 
 | 26975 |   cat <<__EOF__ >> "$cfgfile" | 
 | 26976 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | 
 | 26977 |  | 
 | 26978 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 26979 |  | 
 | 26980 | # Shell to use when invoking shell scripts. | 
 | 26981 | SHELL=$lt_SHELL | 
 | 26982 |  | 
 | 26983 | # Whether or not to build shared libraries. | 
 | 26984 | build_libtool_libs=$enable_shared | 
 | 26985 |  | 
 | 26986 | # Whether or not to build static libraries. | 
 | 26987 | build_old_libs=$enable_static | 
 | 26988 |  | 
 | 26989 | # Whether or not to add -lc for building shared libraries. | 
 | 26990 | build_libtool_need_lc=$archive_cmds_need_lc_RC | 
 | 26991 |  | 
 | 26992 | # Whether or not to disallow shared libs when runtime libs are static | 
 | 26993 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | 
 | 26994 |  | 
 | 26995 | # Whether or not to optimize for fast installation. | 
 | 26996 | fast_install=$enable_fast_install | 
 | 26997 |  | 
 | 26998 | # The host system. | 
 | 26999 | host_alias=$host_alias | 
 | 27000 | host=$host | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27001 | host_os=$host_os | 
 | 27002 |  | 
 | 27003 | # The build system. | 
 | 27004 | build_alias=$build_alias | 
 | 27005 | build=$build | 
 | 27006 | build_os=$build_os | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27007 |  | 
 | 27008 | # An echo program that does not interpret backslashes. | 
 | 27009 | echo=$lt_echo | 
 | 27010 |  | 
 | 27011 | # The archiver. | 
 | 27012 | AR=$lt_AR | 
 | 27013 | AR_FLAGS=$lt_AR_FLAGS | 
 | 27014 |  | 
 | 27015 | # A C compiler. | 
 | 27016 | LTCC=$lt_LTCC | 
 | 27017 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27018 | # LTCC compiler flags. | 
 | 27019 | LTCFLAGS=$lt_LTCFLAGS | 
 | 27020 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27021 | # A language-specific compiler. | 
 | 27022 | CC=$lt_compiler_RC | 
 | 27023 |  | 
 | 27024 | # Is the compiler the GNU C compiler? | 
 | 27025 | with_gcc=$GCC_RC | 
 | 27026 |  | 
 | 27027 | # An ERE matcher. | 
 | 27028 | EGREP=$lt_EGREP | 
 | 27029 |  | 
 | 27030 | # The linker used to build libraries. | 
 | 27031 | LD=$lt_LD_RC | 
 | 27032 |  | 
 | 27033 | # Whether we need hard or soft links. | 
 | 27034 | LN_S=$lt_LN_S | 
 | 27035 |  | 
 | 27036 | # A BSD-compatible nm program. | 
 | 27037 | NM=$lt_NM | 
 | 27038 |  | 
 | 27039 | # A symbol stripping program | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27040 | STRIP=$lt_STRIP | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27041 |  | 
 | 27042 | # Used to examine libraries when file_magic_cmd begins "file" | 
 | 27043 | MAGIC_CMD=$MAGIC_CMD | 
 | 27044 |  | 
 | 27045 | # Used on cygwin: DLL creation program. | 
 | 27046 | DLLTOOL="$DLLTOOL" | 
 | 27047 |  | 
 | 27048 | # Used on cygwin: object dumper. | 
 | 27049 | OBJDUMP="$OBJDUMP" | 
 | 27050 |  | 
 | 27051 | # Used on cygwin: assembler. | 
 | 27052 | AS="$AS" | 
 | 27053 |  | 
 | 27054 | # The name of the directory that contains temporary libtool files. | 
 | 27055 | objdir=$objdir | 
 | 27056 |  | 
 | 27057 | # How to create reloadable object files. | 
 | 27058 | reload_flag=$lt_reload_flag | 
 | 27059 | reload_cmds=$lt_reload_cmds | 
 | 27060 |  | 
 | 27061 | # How to pass a linker flag through the compiler. | 
 | 27062 | wl=$lt_lt_prog_compiler_wl_RC | 
 | 27063 |  | 
 | 27064 | # Object file suffix (normally "o"). | 
 | 27065 | objext="$ac_objext" | 
 | 27066 |  | 
 | 27067 | # Old archive suffix (normally "a"). | 
 | 27068 | libext="$libext" | 
 | 27069 |  | 
 | 27070 | # Shared library suffix (normally ".so"). | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27071 | shrext_cmds='$shrext_cmds' | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27072 |  | 
 | 27073 | # Executable file suffix (normally ""). | 
 | 27074 | exeext="$exeext" | 
 | 27075 |  | 
 | 27076 | # Additional compiler flags for building library objects. | 
 | 27077 | pic_flag=$lt_lt_prog_compiler_pic_RC | 
 | 27078 | pic_mode=$pic_mode | 
 | 27079 |  | 
 | 27080 | # What is the maximum length of a command? | 
 | 27081 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 27082 |  | 
 | 27083 | # Does compiler simultaneously support -c and -o options? | 
 | 27084 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | 
 | 27085 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27086 | # Must we lock files when doing compilation? | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27087 | need_locks=$lt_need_locks | 
 | 27088 |  | 
 | 27089 | # Do we need the lib prefix for modules? | 
 | 27090 | need_lib_prefix=$need_lib_prefix | 
 | 27091 |  | 
 | 27092 | # Do we need a version for libraries? | 
 | 27093 | need_version=$need_version | 
 | 27094 |  | 
 | 27095 | # Whether dlopen is supported. | 
 | 27096 | dlopen_support=$enable_dlopen | 
 | 27097 |  | 
 | 27098 | # Whether dlopen of programs is supported. | 
 | 27099 | dlopen_self=$enable_dlopen_self | 
 | 27100 |  | 
 | 27101 | # Whether dlopen of statically linked programs is supported. | 
 | 27102 | dlopen_self_static=$enable_dlopen_self_static | 
 | 27103 |  | 
 | 27104 | # Compiler flag to prevent dynamic linking. | 
 | 27105 | link_static_flag=$lt_lt_prog_compiler_static_RC | 
 | 27106 |  | 
 | 27107 | # Compiler flag to turn off builtin functions. | 
 | 27108 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | 
 | 27109 |  | 
 | 27110 | # Compiler flag to allow reflexive dlopens. | 
 | 27111 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | 
 | 27112 |  | 
 | 27113 | # Compiler flag to generate shared objects directly from archives. | 
 | 27114 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | 
 | 27115 |  | 
 | 27116 | # Compiler flag to generate thread-safe objects. | 
 | 27117 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | 
 | 27118 |  | 
 | 27119 | # Library versioning type. | 
 | 27120 | version_type=$version_type | 
 | 27121 |  | 
 | 27122 | # Format of library name prefix. | 
 | 27123 | libname_spec=$lt_libname_spec | 
 | 27124 |  | 
 | 27125 | # List of archive names.  First name is the real one, the rest are links. | 
 | 27126 | # The last name is the one that the linker finds with -lNAME. | 
 | 27127 | library_names_spec=$lt_library_names_spec | 
 | 27128 |  | 
 | 27129 | # The coded name of the library, if different from the real name. | 
 | 27130 | soname_spec=$lt_soname_spec | 
 | 27131 |  | 
 | 27132 | # Commands used to build and install an old-style archive. | 
 | 27133 | RANLIB=$lt_RANLIB | 
 | 27134 | old_archive_cmds=$lt_old_archive_cmds_RC | 
 | 27135 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 27136 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 27137 |  | 
 | 27138 | # Create an old-style archive from a shared archive. | 
 | 27139 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | 
 | 27140 |  | 
 | 27141 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 27142 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | 
 | 27143 |  | 
 | 27144 | # Commands used to build and install a shared archive. | 
 | 27145 | archive_cmds=$lt_archive_cmds_RC | 
 | 27146 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | 
 | 27147 | postinstall_cmds=$lt_postinstall_cmds | 
 | 27148 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 27149 |  | 
 | 27150 | # Commands used to build a loadable module (assumed same as above if empty) | 
 | 27151 | module_cmds=$lt_module_cmds_RC | 
 | 27152 | module_expsym_cmds=$lt_module_expsym_cmds_RC | 
 | 27153 |  | 
 | 27154 | # Commands to strip libraries. | 
 | 27155 | old_striplib=$lt_old_striplib | 
 | 27156 | striplib=$lt_striplib | 
 | 27157 |  | 
 | 27158 | # Dependencies to place before the objects being linked to create a | 
 | 27159 | # shared library. | 
 | 27160 | predep_objects=$lt_predep_objects_RC | 
 | 27161 |  | 
 | 27162 | # Dependencies to place after the objects being linked to create a | 
 | 27163 | # shared library. | 
 | 27164 | postdep_objects=$lt_postdep_objects_RC | 
 | 27165 |  | 
 | 27166 | # Dependencies to place before the objects being linked to create a | 
 | 27167 | # shared library. | 
 | 27168 | predeps=$lt_predeps_RC | 
 | 27169 |  | 
 | 27170 | # Dependencies to place after the objects being linked to create a | 
 | 27171 | # shared library. | 
 | 27172 | postdeps=$lt_postdeps_RC | 
 | 27173 |  | 
 | 27174 | # The library search path used internally by the compiler when linking | 
 | 27175 | # a shared library. | 
 | 27176 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | 
 | 27177 |  | 
 | 27178 | # Method to check whether dependent libraries are shared objects. | 
 | 27179 | deplibs_check_method=$lt_deplibs_check_method | 
 | 27180 |  | 
 | 27181 | # Command to use when deplibs_check_method == file_magic. | 
 | 27182 | file_magic_cmd=$lt_file_magic_cmd | 
 | 27183 |  | 
 | 27184 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 27185 | allow_undefined_flag=$lt_allow_undefined_flag_RC | 
 | 27186 |  | 
 | 27187 | # Flag that forces no undefined symbols. | 
 | 27188 | no_undefined_flag=$lt_no_undefined_flag_RC | 
 | 27189 |  | 
 | 27190 | # Commands used to finish a libtool library installation in a directory. | 
 | 27191 | finish_cmds=$lt_finish_cmds | 
 | 27192 |  | 
 | 27193 | # Same as above, but a single script fragment to be evaled but not shown. | 
 | 27194 | finish_eval=$lt_finish_eval | 
 | 27195 |  | 
 | 27196 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 27197 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 27198 |  | 
 | 27199 | # Transform the output of nm in a proper C declaration | 
 | 27200 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 27201 |  | 
 | 27202 | # Transform the output of nm in a C name address pair | 
 | 27203 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 27204 |  | 
 | 27205 | # This is the shared library runtime path variable. | 
 | 27206 | runpath_var=$runpath_var | 
 | 27207 |  | 
 | 27208 | # This is the shared library path variable. | 
 | 27209 | shlibpath_var=$shlibpath_var | 
 | 27210 |  | 
 | 27211 | # Is shlibpath searched before the hard-coded library search path? | 
 | 27212 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 27213 |  | 
 | 27214 | # How to hardcode a shared library path into an executable. | 
 | 27215 | hardcode_action=$hardcode_action_RC | 
 | 27216 |  | 
 | 27217 | # Whether we should hardcode library paths into libraries. | 
 | 27218 | hardcode_into_libs=$hardcode_into_libs | 
 | 27219 |  | 
 | 27220 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 27221 | # This must work even if \$libdir does not exist. | 
 | 27222 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | 
 | 27223 |  | 
 | 27224 | # If ld is used when linking, flag to hardcode \$libdir into | 
 | 27225 | # a binary during linking. This must work even if \$libdir does | 
 | 27226 | # not exist. | 
 | 27227 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | 
 | 27228 |  | 
 | 27229 | # Whether we need a single -rpath flag with a separated argument. | 
 | 27230 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | 
 | 27231 |  | 
 | 27232 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | 
 | 27233 | # resulting binary. | 
 | 27234 | hardcode_direct=$hardcode_direct_RC | 
 | 27235 |  | 
 | 27236 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | 
 | 27237 | # resulting binary. | 
 | 27238 | hardcode_minus_L=$hardcode_minus_L_RC | 
 | 27239 |  | 
 | 27240 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | 
 | 27241 | # the resulting binary. | 
 | 27242 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | 
 | 27243 |  | 
 | 27244 | # Set to yes if building a shared library automatically hardcodes DIR into the library | 
 | 27245 | # and all subsequent libraries and executables linked against it. | 
 | 27246 | hardcode_automatic=$hardcode_automatic_RC | 
 | 27247 |  | 
 | 27248 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 27249 | # restored at relink time. | 
 | 27250 | variables_saved_for_relink="$variables_saved_for_relink" | 
 | 27251 |  | 
 | 27252 | # Whether libtool must link a program against all its dependency libraries. | 
 | 27253 | link_all_deplibs=$link_all_deplibs_RC | 
 | 27254 |  | 
 | 27255 | # Compile-time system search path for libraries | 
 | 27256 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 27257 |  | 
 | 27258 | # Run-time system search path for libraries | 
 | 27259 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 27260 |  | 
 | 27261 | # Fix the shell variable \$srcfile for the compiler. | 
 | 27262 | fix_srcfile_path="$fix_srcfile_path_RC" | 
 | 27263 |  | 
 | 27264 | # Set to yes if exported symbols are required. | 
 | 27265 | always_export_symbols=$always_export_symbols_RC | 
 | 27266 |  | 
 | 27267 | # The commands to list exported symbols. | 
 | 27268 | export_symbols_cmds=$lt_export_symbols_cmds_RC | 
 | 27269 |  | 
 | 27270 | # The commands to extract the exported symbol list from a shared archive. | 
 | 27271 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 27272 |  | 
 | 27273 | # Symbols that should not be listed in the preloaded symbols. | 
 | 27274 | exclude_expsyms=$lt_exclude_expsyms_RC | 
 | 27275 |  | 
 | 27276 | # Symbols that must always be exported. | 
 | 27277 | include_expsyms=$lt_include_expsyms_RC | 
 | 27278 |  | 
 | 27279 | # ### END LIBTOOL TAG CONFIG: $tagname | 
 | 27280 |  | 
 | 27281 | __EOF__ | 
 | 27282 |  | 
 | 27283 |  | 
 | 27284 | else | 
 | 27285 |   # If there is no Makefile yet, we rely on a make rule to execute | 
 | 27286 |   # `config.status --recheck' to rerun these tests and create the | 
 | 27287 |   # libtool script then. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27288 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | 
 | 27289 |   if test -f "$ltmain_in"; then | 
 | 27290 |     test -f Makefile && make "$ltmain" | 
 | 27291 |   fi | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27292 | fi | 
 | 27293 |  | 
 | 27294 |  | 
 | 27295 | ac_ext=c | 
 | 27296 | ac_cpp='$CPP $CPPFLAGS' | 
 | 27297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 27298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 27299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 27300 |  | 
 | 27301 | CC="$lt_save_CC" | 
 | 27302 |  | 
 | 27303 | 	;; | 
 | 27304 |  | 
 | 27305 |       *) | 
 | 27306 | 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | 
 | 27307 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | 
 | 27308 |    { (exit 1); exit 1; }; } | 
 | 27309 | 	;; | 
 | 27310 |       esac | 
 | 27311 |  | 
 | 27312 |       # Append the new tag name to the list of available tags. | 
 | 27313 |       if test -n "$tagname" ; then | 
 | 27314 |       available_tags="$available_tags $tagname" | 
 | 27315 |     fi | 
 | 27316 |     fi | 
 | 27317 |   done | 
 | 27318 |   IFS="$lt_save_ifs" | 
 | 27319 |  | 
 | 27320 |   # Now substitute the updated list of available tags. | 
 | 27321 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | 
 | 27322 |     mv "${ofile}T" "$ofile" | 
 | 27323 |     chmod +x "$ofile" | 
 | 27324 |   else | 
 | 27325 |     rm -f "${ofile}T" | 
 | 27326 |     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | 
 | 27327 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | 
 | 27328 |    { (exit 1); exit 1; }; } | 
 | 27329 |   fi | 
 | 27330 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27331 |  | 
 | 27332 |  | 
 | 27333 |  | 
 | 27334 | # This can be used to rebuild libtool when needed | 
 | 27335 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | 
 | 27336 |  | 
 | 27337 | # Always use our own libtool. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27338 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27339 |  | 
 | 27340 | # Prevent multiple expansion | 
 | 27341 |  | 
 | 27342 |  | 
 | 27343 |  | 
| John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27344 |  | 
 | 27345 |  | 
 | 27346 |  | 
 | 27347 |  | 
 | 27348 |  | 
 | 27349 |  | 
 | 27350 |  | 
 | 27351 |  | 
 | 27352 |  | 
 | 27353 |  | 
 | 27354 |  | 
 | 27355 |  | 
 | 27356 |  | 
 | 27357 |  | 
 | 27358 |  | 
 | 27359 |  | 
 | 27360 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27361 |  | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27362 | if test "$lt_cv_dlopen_self" = "yes" ; then | 
 | 27363 |  | 
 | 27364 | cat >>confdefs.h <<\_ACEOF | 
 | 27365 | #define CAN_DLOPEN_SELF 1 | 
 | 27366 | _ACEOF | 
 | 27367 |  | 
 | 27368 | fi | 
 | 27369 |  | 
| Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27370 |  | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27371 | if test "$WITH_LLVMGCCDIR" = "default" ; then | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27372 |   LLVMGCC="llvm-gcc${EXEEXT}" | 
 | 27373 |   LLVMGXX="llvm-g++${EXEEXT}" | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27374 |   LLVMGCCCOMMAND="$LLVMGCC" | 
 | 27375 |   LLVMGXXCOMMAND="$LLVMGXX" | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27376 |   LLVMGCCCOMMAND=$LLVMGCCCOMMAND | 
 | 27377 |  | 
 | 27378 |   LLVMGXXCOMMAND=$LLVMGXXCOMMAND | 
 | 27379 |  | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27380 |   # Extract the first word of "$LLVMGCC", so it can be a program name with args. | 
 | 27381 | set dummy $LLVMGCC; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 27383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27384 | if test "${ac_cv_path_LLVMGCC+set}" = set; then | 
 | 27385 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27386 | else | 
 | 27387 |   case $LLVMGCC in | 
 | 27388 |   [\\/]* | ?:[\\/]*) | 
 | 27389 |   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. | 
 | 27390 |   ;; | 
 | 27391 |   *) | 
 | 27392 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 27393 | for as_dir in $PATH | 
 | 27394 | do | 
 | 27395 |   IFS=$as_save_IFS | 
 | 27396 |   test -z "$as_dir" && as_dir=. | 
 | 27397 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27398 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27399 |     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" | 
 | 27400 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 27401 |     break 2 | 
 | 27402 |   fi | 
 | 27403 | done | 
 | 27404 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27405 | IFS=$as_save_IFS | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27406 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27407 |   ;; | 
 | 27408 | esac | 
 | 27409 | fi | 
 | 27410 | LLVMGCC=$ac_cv_path_LLVMGCC | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27411 | if test -n "$LLVMGCC"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27412 |   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 | 
 | 27413 | echo "${ECHO_T}$LLVMGCC" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27414 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27415 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 27416 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27417 | fi | 
 | 27418 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27419 |  | 
| Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27420 |   # Extract the first word of "$LLVMGXX", so it can be a program name with args. | 
 | 27421 | set dummy $LLVMGXX; ac_word=$2 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
 | 27423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27424 | if test "${ac_cv_path_LLVMGXX+set}" = set; then | 
 | 27425 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27426 | else | 
 | 27427 |   case $LLVMGXX in | 
 | 27428 |   [\\/]* | ?:[\\/]*) | 
 | 27429 |   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. | 
 | 27430 |   ;; | 
 | 27431 |   *) | 
 | 27432 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 27433 | for as_dir in $PATH | 
 | 27434 | do | 
 | 27435 |   IFS=$as_save_IFS | 
 | 27436 |   test -z "$as_dir" && as_dir=. | 
 | 27437 |   for ac_exec_ext in '' $ac_executable_extensions; do | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27438 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27439 |     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" | 
 | 27440 |     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 27441 |     break 2 | 
 | 27442 |   fi | 
 | 27443 | done | 
 | 27444 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27445 | IFS=$as_save_IFS | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27446 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27447 |   ;; | 
 | 27448 | esac | 
 | 27449 | fi | 
 | 27450 | LLVMGXX=$ac_cv_path_LLVMGXX | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27451 | if test -n "$LLVMGXX"; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27452 |   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 | 
 | 27453 | echo "${ECHO_T}$LLVMGXX" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27454 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27455 |   { echo "$as_me:$LINENO: result: no" >&5 | 
 | 27456 | echo "${ECHO_T}no" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27457 | fi | 
 | 27458 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27459 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27460 | else | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27461 |   if test -z "$LLVMGCC"; then | 
 | 27462 |     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27463 |     LLVMGCCCOMMAND="$LLVMGCC" | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27464 |   fi | 
 | 27465 |   if test -z "$LLVMGXX"; then | 
 | 27466 |     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27467 |     LLVMGXXCOMMAND="$LLVMGXX" | 
| Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27468 |   fi | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27469 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27470 |   LLVMGCC=$LLVMGCC | 
 | 27471 |  | 
 | 27472 |   LLVMGXX=$LLVMGXX | 
 | 27473 |  | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27474 |   LLVMGCCCOMMAND=$LLVMGCCCOMMAND | 
 | 27475 |  | 
 | 27476 |   LLVMGXXCOMMAND=$LLVMGXXCOMMAND | 
 | 27477 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27478 | fi | 
 | 27479 |  | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27480 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27481 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 | 
 | 27482 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27483 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27484 | ICC=no | 
 | 27485 | IXX=no | 
 | 27486 | case $CC in | 
 | 27487 |   icc*|icpc*) | 
 | 27488 |     ICC=yes | 
 | 27489 |     IXX=yes | 
 | 27490 |     ;; | 
 | 27491 |    *) | 
 | 27492 |     ;; | 
 | 27493 | esac | 
 | 27494 |  | 
| Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27495 | if test "$GCC" != "yes" && test "$ICC" != "yes" | 
 | 27496 | then | 
 | 27497 |   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 | 
 | 27498 | echo "$as_me: error: gcc|icc required but not found" >&2;} | 
 | 27499 |    { (exit 1); exit 1; }; } | 
 | 27500 | fi | 
 | 27501 |  | 
 | 27502 | if test "$GXX" != "yes" && test "$IXX" != "yes" | 
 | 27503 | then | 
 | 27504 |   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 | 
 | 27505 | echo "$as_me: error: g++|icc required but not found" >&2;} | 
 | 27506 |    { (exit 1); exit 1; }; } | 
 | 27507 | fi | 
 | 27508 |  | 
| Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27509 | if test "$GCC" = "yes" | 
 | 27510 | then | 
| Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27511 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 27512 | #if !defined(__GNUC__) || __GNUC__ < 3 | 
 | 27513 | #error Unsupported GCC version | 
 | 27514 | #endif | 
 | 27515 |  | 
 | 27516 | _ACEOF | 
 | 27517 | rm -f conftest.$ac_objext | 
 | 27518 | if { (ac_try="$ac_compile" | 
 | 27519 | case "(($ac_try" in | 
 | 27520 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27521 |   *) ac_try_echo=$ac_try;; | 
 | 27522 | esac | 
 | 27523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27524 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 27525 |   ac_status=$? | 
 | 27526 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27527 |   rm -f conftest.er1 | 
 | 27528 |   cat conftest.err >&5 | 
 | 27529 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27530 |   (exit $ac_status); } && | 
 | 27531 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27532 |   { (case "(($ac_try" in | 
 | 27533 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27534 |   *) ac_try_echo=$ac_try;; | 
 | 27535 | esac | 
 | 27536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27537 |   (eval "$ac_try") 2>&5 | 
 | 27538 |   ac_status=$? | 
 | 27539 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27540 |   (exit $ac_status); }; } && | 
 | 27541 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 27542 |   { (case "(($ac_try" in | 
 | 27543 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27544 |   *) ac_try_echo=$ac_try;; | 
 | 27545 | esac | 
 | 27546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27547 |   (eval "$ac_try") 2>&5 | 
 | 27548 |   ac_status=$? | 
 | 27549 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27550 |   (exit $ac_status); }; }; then | 
| Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27551 |   : | 
 | 27552 | else | 
 | 27553 |   echo "$as_me: failed program was:" >&5 | 
 | 27554 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27555 |  | 
 | 27556 | 	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27557 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} | 
 | 27558 |    { (exit 1); exit 1; }; } | 
| Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27559 | fi | 
 | 27560 |  | 
 | 27561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27562 | fi | 
 | 27563 |  | 
 | 27564 | if test -z "$llvm_cv_gnu_make_command" | 
 | 27565 | then | 
 | 27566 |   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 | 
 | 27567 | echo "$as_me: error: GNU Make required but not found" >&2;} | 
 | 27568 |    { (exit 1); exit 1; }; } | 
 | 27569 | fi | 
 | 27570 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27571 | { echo "$as_me:$LINENO: result: ok" >&5 | 
 | 27572 | echo "${ECHO_T}ok" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27573 |  | 
| Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 27574 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 | 
 | 27575 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } | 
 | 27576 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` | 
 | 27577 |  | 
 | 27578 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` | 
 | 27579 |  | 
 | 27580 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 | 
 | 27581 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } | 
 | 27582 |  | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27583 |  | 
 | 27584 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27585 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 | 
 | 27586 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27587 | if test "${ac_cv_lib_m_sin+set}" = set; then | 
 | 27588 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27589 | else | 
 | 27590 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27591 | LIBS="-lm  $LIBS" | 
 | 27592 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27593 | /* confdefs.h.  */ | 
 | 27594 | _ACEOF | 
 | 27595 | cat confdefs.h >>conftest.$ac_ext | 
 | 27596 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27597 | /* end confdefs.h.  */ | 
 | 27598 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27599 | /* Override any GCC internal prototype to avoid an error. | 
 | 27600 |    Use char because int might match the return type of a GCC | 
 | 27601 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27602 | #ifdef __cplusplus | 
 | 27603 | extern "C" | 
 | 27604 | #endif | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27605 | char sin (); | 
 | 27606 | int | 
 | 27607 | main () | 
 | 27608 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27609 | return sin (); | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27610 |   ; | 
 | 27611 |   return 0; | 
 | 27612 | } | 
 | 27613 | _ACEOF | 
 | 27614 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27615 | if { (ac_try="$ac_link" | 
 | 27616 | case "(($ac_try" in | 
 | 27617 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27618 |   *) ac_try_echo=$ac_try;; | 
 | 27619 | esac | 
 | 27620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27621 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27622 |   ac_status=$? | 
 | 27623 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27624 |   rm -f conftest.er1 | 
 | 27625 |   cat conftest.err >&5 | 
 | 27626 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27627 |   (exit $ac_status); } && | 
 | 27628 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27629 |   { (case "(($ac_try" in | 
 | 27630 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27631 |   *) ac_try_echo=$ac_try;; | 
 | 27632 | esac | 
 | 27633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27634 |   (eval "$ac_try") 2>&5 | 
 | 27635 |   ac_status=$? | 
 | 27636 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27637 |   (exit $ac_status); }; } && | 
 | 27638 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27639 |   { (case "(($ac_try" in | 
 | 27640 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27641 |   *) ac_try_echo=$ac_try;; | 
 | 27642 | esac | 
 | 27643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27644 |   (eval "$ac_try") 2>&5 | 
 | 27645 |   ac_status=$? | 
 | 27646 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27647 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27648 |   ac_cv_lib_m_sin=yes | 
 | 27649 | else | 
 | 27650 |   echo "$as_me: failed program was:" >&5 | 
 | 27651 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27652 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27653 | 	ac_cv_lib_m_sin=no | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27654 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27655 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27656 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27657 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27658 | LIBS=$ac_check_lib_save_LIBS | 
 | 27659 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27660 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | 
 | 27661 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } | 
| Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27662 | if test $ac_cv_lib_m_sin = yes; then | 
 | 27663 |   cat >>confdefs.h <<_ACEOF | 
 | 27664 | #define HAVE_LIBM 1 | 
 | 27665 | _ACEOF | 
 | 27666 |  | 
 | 27667 |   LIBS="-lm $LIBS" | 
 | 27668 |  | 
 | 27669 | fi | 
 | 27670 |  | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27671 | if test "$llvm_cv_os_type" = "MingW" ; then | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27672 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27673 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 | 
 | 27674 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27675 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27676 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27677 | else | 
 | 27678 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27679 | LIBS="-limagehlp  $LIBS" | 
 | 27680 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27681 | /* confdefs.h.  */ | 
 | 27682 | _ACEOF | 
 | 27683 | cat confdefs.h >>conftest.$ac_ext | 
 | 27684 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27685 | /* end confdefs.h.  */ | 
 | 27686 |  | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27687 |  | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27688 | int | 
 | 27689 | main () | 
 | 27690 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27691 | return main (); | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27692 |   ; | 
 | 27693 |   return 0; | 
 | 27694 | } | 
 | 27695 | _ACEOF | 
 | 27696 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27697 | if { (ac_try="$ac_link" | 
 | 27698 | case "(($ac_try" in | 
 | 27699 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27700 |   *) ac_try_echo=$ac_try;; | 
 | 27701 | esac | 
 | 27702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27703 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27704 |   ac_status=$? | 
 | 27705 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27706 |   rm -f conftest.er1 | 
 | 27707 |   cat conftest.err >&5 | 
 | 27708 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27709 |   (exit $ac_status); } && | 
 | 27710 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27711 |   { (case "(($ac_try" in | 
 | 27712 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27713 |   *) ac_try_echo=$ac_try;; | 
 | 27714 | esac | 
 | 27715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27716 |   (eval "$ac_try") 2>&5 | 
 | 27717 |   ac_status=$? | 
 | 27718 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27719 |   (exit $ac_status); }; } && | 
 | 27720 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27721 |   { (case "(($ac_try" in | 
 | 27722 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27723 |   *) ac_try_echo=$ac_try;; | 
 | 27724 | esac | 
 | 27725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27726 |   (eval "$ac_try") 2>&5 | 
 | 27727 |   ac_status=$? | 
 | 27728 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27729 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27730 |   ac_cv_lib_imagehlp_main=yes | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27731 | else | 
 | 27732 |   echo "$as_me: failed program was:" >&5 | 
 | 27733 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27734 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27735 | 	ac_cv_lib_imagehlp_main=no | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27736 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27737 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27738 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27739 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27740 | LIBS=$ac_check_lib_save_LIBS | 
 | 27741 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27742 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 | 
 | 27743 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27744 | if test $ac_cv_lib_imagehlp_main = yes; then | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27745 |   cat >>confdefs.h <<_ACEOF | 
 | 27746 | #define HAVE_LIBIMAGEHLP 1 | 
 | 27747 | _ACEOF | 
 | 27748 |  | 
 | 27749 |   LIBS="-limagehlp $LIBS" | 
 | 27750 |  | 
 | 27751 | fi | 
 | 27752 |  | 
 | 27753 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27754 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 | 
 | 27755 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27756 | if test "${ac_cv_lib_psapi_main+set}" = set; then | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27757 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27758 | else | 
 | 27759 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27760 | LIBS="-lpsapi  $LIBS" | 
 | 27761 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27762 | /* confdefs.h.  */ | 
 | 27763 | _ACEOF | 
 | 27764 | cat confdefs.h >>conftest.$ac_ext | 
 | 27765 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27766 | /* end confdefs.h.  */ | 
 | 27767 |  | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27768 |  | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27769 | int | 
 | 27770 | main () | 
 | 27771 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27772 | return main (); | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27773 |   ; | 
 | 27774 |   return 0; | 
 | 27775 | } | 
 | 27776 | _ACEOF | 
 | 27777 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27778 | if { (ac_try="$ac_link" | 
 | 27779 | case "(($ac_try" in | 
 | 27780 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27781 |   *) ac_try_echo=$ac_try;; | 
 | 27782 | esac | 
 | 27783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27784 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27785 |   ac_status=$? | 
 | 27786 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27787 |   rm -f conftest.er1 | 
 | 27788 |   cat conftest.err >&5 | 
 | 27789 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27790 |   (exit $ac_status); } && | 
 | 27791 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27792 |   { (case "(($ac_try" in | 
 | 27793 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27794 |   *) ac_try_echo=$ac_try;; | 
 | 27795 | esac | 
 | 27796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27797 |   (eval "$ac_try") 2>&5 | 
 | 27798 |   ac_status=$? | 
 | 27799 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27800 |   (exit $ac_status); }; } && | 
 | 27801 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27802 |   { (case "(($ac_try" in | 
 | 27803 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27804 |   *) ac_try_echo=$ac_try;; | 
 | 27805 | esac | 
 | 27806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27807 |   (eval "$ac_try") 2>&5 | 
 | 27808 |   ac_status=$? | 
 | 27809 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27810 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27811 |   ac_cv_lib_psapi_main=yes | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27812 | else | 
 | 27813 |   echo "$as_me: failed program was:" >&5 | 
 | 27814 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27815 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27816 | 	ac_cv_lib_psapi_main=no | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27817 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27818 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27819 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27820 |       conftest$ac_exeext conftest.$ac_ext | 
 | 27821 | LIBS=$ac_check_lib_save_LIBS | 
 | 27822 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27823 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 | 
 | 27824 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } | 
| Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27825 | if test $ac_cv_lib_psapi_main = yes; then | 
| Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27826 |   cat >>confdefs.h <<_ACEOF | 
 | 27827 | #define HAVE_LIBPSAPI 1 | 
 | 27828 | _ACEOF | 
 | 27829 |  | 
 | 27830 |   LIBS="-lpsapi $LIBS" | 
 | 27831 |  | 
 | 27832 | fi | 
 | 27833 |  | 
 | 27834 | fi | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27835 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27836 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 | 
 | 27837 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27838 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 27839 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27840 | else | 
 | 27841 |   ac_func_search_save_LIBS=$LIBS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27842 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27843 | /* confdefs.h.  */ | 
 | 27844 | _ACEOF | 
 | 27845 | cat confdefs.h >>conftest.$ac_ext | 
 | 27846 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27847 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27848 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27849 | /* Override any GCC internal prototype to avoid an error. | 
 | 27850 |    Use char because int might match the return type of a GCC | 
 | 27851 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27852 | #ifdef __cplusplus | 
 | 27853 | extern "C" | 
 | 27854 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27855 | char dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27856 | int | 
 | 27857 | main () | 
 | 27858 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27859 | return dlopen (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27860 |   ; | 
 | 27861 |   return 0; | 
 | 27862 | } | 
 | 27863 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27864 | for ac_lib in '' dl; do | 
 | 27865 |   if test -z "$ac_lib"; then | 
 | 27866 |     ac_res="none required" | 
 | 27867 |   else | 
 | 27868 |     ac_res=-l$ac_lib | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27869 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27870 |   fi | 
 | 27871 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 27872 | if { (ac_try="$ac_link" | 
 | 27873 | case "(($ac_try" in | 
 | 27874 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27875 |   *) ac_try_echo=$ac_try;; | 
 | 27876 | esac | 
 | 27877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27878 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27879 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27880 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27881 |   rm -f conftest.er1 | 
 | 27882 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27883 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27884 |   (exit $ac_status); } && | 
 | 27885 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27886 |   { (case "(($ac_try" in | 
 | 27887 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27888 |   *) ac_try_echo=$ac_try;; | 
 | 27889 | esac | 
 | 27890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27891 |   (eval "$ac_try") 2>&5 | 
 | 27892 |   ac_status=$? | 
 | 27893 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27894 |   (exit $ac_status); }; } && | 
 | 27895 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 27896 |   { (case "(($ac_try" in | 
 | 27897 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27898 |   *) ac_try_echo=$ac_try;; | 
 | 27899 | esac | 
 | 27900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27901 |   (eval "$ac_try") 2>&5 | 
 | 27902 |   ac_status=$? | 
 | 27903 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 27904 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27905 |   ac_cv_search_dlopen=$ac_res | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27906 | else | 
 | 27907 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27908 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 27909 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27910 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27911 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27912 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27913 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27914 |       conftest$ac_exeext | 
 | 27915 |   if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 27916 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27917 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27918 | done | 
 | 27919 | if test "${ac_cv_search_dlopen+set}" = set; then | 
 | 27920 |   : | 
 | 27921 | else | 
 | 27922 |   ac_cv_search_dlopen=no | 
 | 27923 | fi | 
 | 27924 | rm conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27925 | LIBS=$ac_func_search_save_LIBS | 
 | 27926 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27927 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 | 
 | 27928 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | 
 | 27929 | ac_res=$ac_cv_search_dlopen | 
 | 27930 | if test "$ac_res" != no; then | 
 | 27931 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27932 |  | 
 | 27933 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27934 | #define HAVE_DLOPEN 1 | 
 | 27935 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27936 |  | 
 | 27937 | else | 
| Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27938 |   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 | 
 | 27939 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27940 | fi | 
 | 27941 |  | 
 | 27942 |  | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27943 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
 | 27944 |   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27945 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } | 
 | 27946 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27947 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 27948 | else | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27949 |   ac_func_search_save_LIBS=$LIBS | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27950 | cat >conftest.$ac_ext <<_ACEOF | 
 | 27951 | /* confdefs.h.  */ | 
 | 27952 | _ACEOF | 
 | 27953 | cat confdefs.h >>conftest.$ac_ext | 
 | 27954 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 27955 | /* end confdefs.h.  */ | 
 | 27956 |  | 
 | 27957 | /* Override any GCC internal prototype to avoid an error. | 
 | 27958 |    Use char because int might match the return type of a GCC | 
 | 27959 |    builtin and then its argument prototype would still apply.  */ | 
 | 27960 | #ifdef __cplusplus | 
 | 27961 | extern "C" | 
 | 27962 | #endif | 
 | 27963 | char ffi_call (); | 
 | 27964 | int | 
 | 27965 | main () | 
 | 27966 | { | 
 | 27967 | return ffi_call (); | 
 | 27968 |   ; | 
 | 27969 |   return 0; | 
 | 27970 | } | 
 | 27971 | _ACEOF | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27972 | for ac_lib in '' ffi; do | 
 | 27973 |   if test -z "$ac_lib"; then | 
 | 27974 |     ac_res="none required" | 
 | 27975 |   else | 
 | 27976 |     ac_res=-l$ac_lib | 
 | 27977 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 27978 |   fi | 
 | 27979 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27980 | if { (ac_try="$ac_link" | 
 | 27981 | case "(($ac_try" in | 
 | 27982 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27983 |   *) ac_try_echo=$ac_try;; | 
 | 27984 | esac | 
 | 27985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27986 |   (eval "$ac_link") 2>conftest.er1 | 
 | 27987 |   ac_status=$? | 
 | 27988 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 27989 |   rm -f conftest.er1 | 
 | 27990 |   cat conftest.err >&5 | 
 | 27991 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27992 |   (exit $ac_status); } && | 
 | 27993 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 27994 |   { (case "(($ac_try" in | 
 | 27995 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 27996 |   *) ac_try_echo=$ac_try;; | 
 | 27997 | esac | 
 | 27998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 27999 |   (eval "$ac_try") 2>&5 | 
 | 28000 |   ac_status=$? | 
 | 28001 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28002 |   (exit $ac_status); }; } && | 
 | 28003 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28004 |   { (case "(($ac_try" in | 
 | 28005 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28006 |   *) ac_try_echo=$ac_try;; | 
 | 28007 | esac | 
 | 28008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28009 |   (eval "$ac_try") 2>&5 | 
 | 28010 |   ac_status=$? | 
 | 28011 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28012 |   (exit $ac_status); }; }; then | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28013 |   ac_cv_search_ffi_call=$ac_res | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28014 | else | 
 | 28015 |   echo "$as_me: failed program was:" >&5 | 
 | 28016 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28017 |  | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28018 |  | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28019 | fi | 
 | 28020 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28021 | rm -f core conftest.err conftest.$ac_objext \ | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28022 |       conftest$ac_exeext | 
 | 28023 |   if test "${ac_cv_search_ffi_call+set}" = set; then | 
 | 28024 |   break | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28025 | fi | 
| Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 28026 | done | 
 | 28027 | if test "${ac_cv_search_ffi_call+set}" = set; then | 
 | 28028 |   : | 
 | 28029 | else | 
 | 28030 |   ac_cv_search_ffi_call=no | 
 | 28031 | fi | 
 | 28032 | rm conftest.$ac_ext | 
 | 28033 | LIBS=$ac_func_search_save_LIBS | 
 | 28034 | fi | 
 | 28035 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 | 
 | 28036 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } | 
 | 28037 | ac_res=$ac_cv_search_ffi_call | 
 | 28038 | if test "$ac_res" != no; then | 
 | 28039 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 28040 |  | 
 | 28041 | cat >>confdefs.h <<\_ACEOF | 
 | 28042 | #define HAVE_FFI_CALL 1 | 
 | 28043 | _ACEOF | 
 | 28044 |  | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28045 | else | 
 | 28046 |   { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 | 
 | 28047 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} | 
 | 28048 | fi | 
 | 28049 |  | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 28050 | fi | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 28051 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28052 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 | 
 | 28053 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28054 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 28055 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28056 | else | 
 | 28057 |   ac_func_search_save_LIBS=$LIBS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28058 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28059 | /* confdefs.h.  */ | 
 | 28060 | _ACEOF | 
 | 28061 | cat confdefs.h >>conftest.$ac_ext | 
 | 28062 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28063 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28064 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28065 | /* Override any GCC internal prototype to avoid an error. | 
 | 28066 |    Use char because int might match the return type of a GCC | 
 | 28067 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28068 | #ifdef __cplusplus | 
 | 28069 | extern "C" | 
 | 28070 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28071 | char mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28072 | int | 
 | 28073 | main () | 
 | 28074 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28075 | return mallinfo (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28076 |   ; | 
 | 28077 |   return 0; | 
 | 28078 | } | 
 | 28079 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28080 | for ac_lib in '' malloc; do | 
 | 28081 |   if test -z "$ac_lib"; then | 
 | 28082 |     ac_res="none required" | 
 | 28083 |   else | 
 | 28084 |     ac_res=-l$ac_lib | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28085 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28086 |   fi | 
 | 28087 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28088 | if { (ac_try="$ac_link" | 
 | 28089 | case "(($ac_try" in | 
 | 28090 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28091 |   *) ac_try_echo=$ac_try;; | 
 | 28092 | esac | 
 | 28093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28094 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28095 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28096 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28097 |   rm -f conftest.er1 | 
 | 28098 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28099 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28100 |   (exit $ac_status); } && | 
 | 28101 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28102 |   { (case "(($ac_try" in | 
 | 28103 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28104 |   *) ac_try_echo=$ac_try;; | 
 | 28105 | esac | 
 | 28106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28107 |   (eval "$ac_try") 2>&5 | 
 | 28108 |   ac_status=$? | 
 | 28109 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28110 |   (exit $ac_status); }; } && | 
 | 28111 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28112 |   { (case "(($ac_try" in | 
 | 28113 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28114 |   *) ac_try_echo=$ac_try;; | 
 | 28115 | esac | 
 | 28116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28117 |   (eval "$ac_try") 2>&5 | 
 | 28118 |   ac_status=$? | 
 | 28119 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28120 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28121 |   ac_cv_search_mallinfo=$ac_res | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28122 | else | 
 | 28123 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28124 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28125 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28126 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28127 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28128 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28129 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28130 |       conftest$ac_exeext | 
 | 28131 |   if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 28132 |   break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28133 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28134 | done | 
 | 28135 | if test "${ac_cv_search_mallinfo+set}" = set; then | 
 | 28136 |   : | 
 | 28137 | else | 
 | 28138 |   ac_cv_search_mallinfo=no | 
 | 28139 | fi | 
 | 28140 | rm conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28141 | LIBS=$ac_func_search_save_LIBS | 
 | 28142 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28143 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 | 
 | 28144 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } | 
 | 28145 | ac_res=$ac_cv_search_mallinfo | 
 | 28146 | if test "$ac_res" != no; then | 
 | 28147 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 28148 |  | 
 | 28149 | cat >>confdefs.h <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28150 | #define HAVE_MALLINFO 1 | 
 | 28151 | _ACEOF | 
 | 28152 |  | 
 | 28153 | fi | 
 | 28154 |  | 
 | 28155 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28156 | if test "$ENABLE_THREADS" -eq 1 ; then | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28157 |  | 
 | 28158 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 | 
 | 28159 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } | 
 | 28160 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28161 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28162 | else | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28163 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28164 | LIBS="-lpthread  $LIBS" | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28165 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28166 | /* confdefs.h.  */ | 
 | 28167 | _ACEOF | 
 | 28168 | cat confdefs.h >>conftest.$ac_ext | 
 | 28169 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28170 | /* end confdefs.h.  */ | 
 | 28171 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28172 | /* Override any GCC internal prototype to avoid an error. | 
 | 28173 |    Use char because int might match the return type of a GCC | 
 | 28174 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28175 | #ifdef __cplusplus | 
 | 28176 | extern "C" | 
 | 28177 | #endif | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28178 | char pthread_mutex_init (); | 
 | 28179 | int | 
 | 28180 | main () | 
 | 28181 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28182 | return pthread_mutex_init (); | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28183 |   ; | 
 | 28184 |   return 0; | 
 | 28185 | } | 
 | 28186 | _ACEOF | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28187 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28188 | if { (ac_try="$ac_link" | 
 | 28189 | case "(($ac_try" in | 
 | 28190 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28191 |   *) ac_try_echo=$ac_try;; | 
 | 28192 | esac | 
 | 28193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28194 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28195 |   ac_status=$? | 
 | 28196 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28197 |   rm -f conftest.er1 | 
 | 28198 |   cat conftest.err >&5 | 
 | 28199 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28200 |   (exit $ac_status); } && | 
 | 28201 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28202 |   { (case "(($ac_try" in | 
 | 28203 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28204 |   *) ac_try_echo=$ac_try;; | 
 | 28205 | esac | 
 | 28206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28207 |   (eval "$ac_try") 2>&5 | 
 | 28208 |   ac_status=$? | 
 | 28209 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28210 |   (exit $ac_status); }; } && | 
 | 28211 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28212 |   { (case "(($ac_try" in | 
 | 28213 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28214 |   *) ac_try_echo=$ac_try;; | 
 | 28215 | esac | 
 | 28216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28217 |   (eval "$ac_try") 2>&5 | 
 | 28218 |   ac_status=$? | 
 | 28219 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28220 |   (exit $ac_status); }; }; then | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28221 |   ac_cv_lib_pthread_pthread_mutex_init=yes | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28222 | else | 
 | 28223 |   echo "$as_me: failed program was:" >&5 | 
 | 28224 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28225 |  | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28226 | 	ac_cv_lib_pthread_pthread_mutex_init=no | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28227 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28228 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28229 | rm -f core conftest.err conftest.$ac_objext \ | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28230 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28231 | LIBS=$ac_check_lib_save_LIBS | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28232 | fi | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28233 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 | 
 | 28234 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } | 
 | 28235 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then | 
 | 28236 |   cat >>confdefs.h <<_ACEOF | 
 | 28237 | #define HAVE_LIBPTHREAD 1 | 
| Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 28238 | _ACEOF | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28239 |  | 
| Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 28240 |   LIBS="-lpthread $LIBS" | 
 | 28241 |  | 
| Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28242 | fi | 
 | 28243 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28244 |   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 | 
 | 28245 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28246 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 28247 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28248 | else | 
 | 28249 |   ac_func_search_save_LIBS=$LIBS | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28250 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28251 | /* confdefs.h.  */ | 
 | 28252 | _ACEOF | 
 | 28253 | cat confdefs.h >>conftest.$ac_ext | 
 | 28254 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28255 | /* end confdefs.h.  */ | 
 | 28256 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28257 | /* Override any GCC internal prototype to avoid an error. | 
 | 28258 |    Use char because int might match the return type of a GCC | 
 | 28259 |    builtin and then its argument prototype would still apply.  */ | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28260 | #ifdef __cplusplus | 
 | 28261 | extern "C" | 
 | 28262 | #endif | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28263 | char pthread_mutex_lock (); | 
 | 28264 | int | 
 | 28265 | main () | 
 | 28266 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28267 | return pthread_mutex_lock (); | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28268 |   ; | 
 | 28269 |   return 0; | 
 | 28270 | } | 
 | 28271 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28272 | for ac_lib in '' pthread; do | 
 | 28273 |   if test -z "$ac_lib"; then | 
 | 28274 |     ac_res="none required" | 
 | 28275 |   else | 
 | 28276 |     ac_res=-l$ac_lib | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28277 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28278 |   fi | 
 | 28279 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28280 | if { (ac_try="$ac_link" | 
 | 28281 | case "(($ac_try" in | 
 | 28282 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28283 |   *) ac_try_echo=$ac_try;; | 
 | 28284 | esac | 
 | 28285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28286 |   (eval "$ac_link") 2>conftest.er1 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28287 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28288 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28289 |   rm -f conftest.er1 | 
 | 28290 |   cat conftest.err >&5 | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28291 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28292 |   (exit $ac_status); } && | 
 | 28293 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28294 |   { (case "(($ac_try" in | 
 | 28295 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28296 |   *) ac_try_echo=$ac_try;; | 
 | 28297 | esac | 
 | 28298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28299 |   (eval "$ac_try") 2>&5 | 
 | 28300 |   ac_status=$? | 
 | 28301 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28302 |   (exit $ac_status); }; } && | 
 | 28303 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28304 |   { (case "(($ac_try" in | 
 | 28305 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28306 |   *) ac_try_echo=$ac_try;; | 
 | 28307 | esac | 
 | 28308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28309 |   (eval "$ac_try") 2>&5 | 
 | 28310 |   ac_status=$? | 
 | 28311 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28312 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28313 |   ac_cv_search_pthread_mutex_lock=$ac_res | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28314 | else | 
 | 28315 |   echo "$as_me: failed program was:" >&5 | 
 | 28316 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28317 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28318 |  | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28319 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28320 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28321 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28322 |       conftest$ac_exeext | 
 | 28323 |   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 28324 |   break | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28325 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28326 | done | 
 | 28327 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | 
 | 28328 |   : | 
 | 28329 | else | 
 | 28330 |   ac_cv_search_pthread_mutex_lock=no | 
 | 28331 | fi | 
 | 28332 | rm conftest.$ac_ext | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28333 | LIBS=$ac_func_search_save_LIBS | 
 | 28334 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28335 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 | 
 | 28336 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | 
 | 28337 | ac_res=$ac_cv_search_pthread_mutex_lock | 
 | 28338 | if test "$ac_res" != no; then | 
 | 28339 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28340 |  | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28341 | cat >>confdefs.h <<\_ACEOF | 
 | 28342 | #define HAVE_PTHREAD_MUTEX_LOCK 1 | 
 | 28343 | _ACEOF | 
 | 28344 |  | 
 | 28345 | fi | 
| Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28346 |  | 
| Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28347 |   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 | 
 | 28348 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } | 
 | 28349 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
 | 28350 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28351 | else | 
 | 28352 |   ac_func_search_save_LIBS=$LIBS | 
 | 28353 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28354 | /* confdefs.h.  */ | 
 | 28355 | _ACEOF | 
 | 28356 | cat confdefs.h >>conftest.$ac_ext | 
 | 28357 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28358 | /* end confdefs.h.  */ | 
 | 28359 |  | 
 | 28360 | /* Override any GCC internal prototype to avoid an error. | 
 | 28361 |    Use char because int might match the return type of a GCC | 
 | 28362 |    builtin and then its argument prototype would still apply.  */ | 
 | 28363 | #ifdef __cplusplus | 
 | 28364 | extern "C" | 
 | 28365 | #endif | 
 | 28366 | char pthread_rwlock_init (); | 
 | 28367 | int | 
 | 28368 | main () | 
 | 28369 | { | 
 | 28370 | return pthread_rwlock_init (); | 
 | 28371 |   ; | 
 | 28372 |   return 0; | 
 | 28373 | } | 
 | 28374 | _ACEOF | 
 | 28375 | for ac_lib in '' pthread; do | 
 | 28376 |   if test -z "$ac_lib"; then | 
 | 28377 |     ac_res="none required" | 
 | 28378 |   else | 
 | 28379 |     ac_res=-l$ac_lib | 
 | 28380 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 28381 |   fi | 
 | 28382 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28383 | if { (ac_try="$ac_link" | 
 | 28384 | case "(($ac_try" in | 
 | 28385 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28386 |   *) ac_try_echo=$ac_try;; | 
 | 28387 | esac | 
 | 28388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28389 |   (eval "$ac_link") 2>conftest.er1 | 
 | 28390 |   ac_status=$? | 
 | 28391 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28392 |   rm -f conftest.er1 | 
 | 28393 |   cat conftest.err >&5 | 
 | 28394 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28395 |   (exit $ac_status); } && | 
 | 28396 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28397 |   { (case "(($ac_try" in | 
 | 28398 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28399 |   *) ac_try_echo=$ac_try;; | 
 | 28400 | esac | 
 | 28401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28402 |   (eval "$ac_try") 2>&5 | 
 | 28403 |   ac_status=$? | 
 | 28404 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28405 |   (exit $ac_status); }; } && | 
 | 28406 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28407 |   { (case "(($ac_try" in | 
 | 28408 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28409 |   *) ac_try_echo=$ac_try;; | 
 | 28410 | esac | 
 | 28411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28412 |   (eval "$ac_try") 2>&5 | 
 | 28413 |   ac_status=$? | 
 | 28414 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28415 |   (exit $ac_status); }; }; then | 
 | 28416 |   ac_cv_search_pthread_rwlock_init=$ac_res | 
 | 28417 | else | 
 | 28418 |   echo "$as_me: failed program was:" >&5 | 
 | 28419 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28420 |  | 
 | 28421 |  | 
 | 28422 | fi | 
 | 28423 |  | 
 | 28424 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28425 |       conftest$ac_exeext | 
 | 28426 |   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
 | 28427 |   break | 
 | 28428 | fi | 
 | 28429 | done | 
 | 28430 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then | 
 | 28431 |   : | 
 | 28432 | else | 
 | 28433 |   ac_cv_search_pthread_rwlock_init=no | 
 | 28434 | fi | 
 | 28435 | rm conftest.$ac_ext | 
 | 28436 | LIBS=$ac_func_search_save_LIBS | 
 | 28437 | fi | 
 | 28438 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 | 
 | 28439 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } | 
 | 28440 | ac_res=$ac_cv_search_pthread_rwlock_init | 
 | 28441 | if test "$ac_res" != no; then | 
 | 28442 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 28443 |  | 
 | 28444 | cat >>confdefs.h <<\_ACEOF | 
 | 28445 | #define HAVE_PTHREAD_RWLOCK_INIT 1 | 
 | 28446 | _ACEOF | 
 | 28447 |  | 
 | 28448 | fi | 
 | 28449 |  | 
| Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28450 |   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 | 
 | 28451 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } | 
 | 28452 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
 | 28453 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28454 | else | 
 | 28455 |   ac_func_search_save_LIBS=$LIBS | 
 | 28456 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28457 | /* confdefs.h.  */ | 
 | 28458 | _ACEOF | 
 | 28459 | cat confdefs.h >>conftest.$ac_ext | 
 | 28460 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28461 | /* end confdefs.h.  */ | 
 | 28462 |  | 
 | 28463 | /* Override any GCC internal prototype to avoid an error. | 
 | 28464 |    Use char because int might match the return type of a GCC | 
 | 28465 |    builtin and then its argument prototype would still apply.  */ | 
 | 28466 | #ifdef __cplusplus | 
 | 28467 | extern "C" | 
 | 28468 | #endif | 
 | 28469 | char pthread_getspecific (); | 
 | 28470 | int | 
 | 28471 | main () | 
 | 28472 | { | 
 | 28473 | return pthread_getspecific (); | 
 | 28474 |   ; | 
 | 28475 |   return 0; | 
 | 28476 | } | 
 | 28477 | _ACEOF | 
 | 28478 | for ac_lib in '' pthread; do | 
 | 28479 |   if test -z "$ac_lib"; then | 
 | 28480 |     ac_res="none required" | 
 | 28481 |   else | 
 | 28482 |     ac_res=-l$ac_lib | 
 | 28483 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 28484 |   fi | 
 | 28485 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28486 | if { (ac_try="$ac_link" | 
 | 28487 | case "(($ac_try" in | 
 | 28488 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28489 |   *) ac_try_echo=$ac_try;; | 
 | 28490 | esac | 
 | 28491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28492 |   (eval "$ac_link") 2>conftest.er1 | 
 | 28493 |   ac_status=$? | 
 | 28494 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28495 |   rm -f conftest.er1 | 
 | 28496 |   cat conftest.err >&5 | 
 | 28497 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28498 |   (exit $ac_status); } && | 
 | 28499 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28500 |   { (case "(($ac_try" in | 
 | 28501 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28502 |   *) ac_try_echo=$ac_try;; | 
 | 28503 | esac | 
 | 28504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28505 |   (eval "$ac_try") 2>&5 | 
 | 28506 |   ac_status=$? | 
 | 28507 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28508 |   (exit $ac_status); }; } && | 
 | 28509 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28510 |   { (case "(($ac_try" in | 
 | 28511 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28512 |   *) ac_try_echo=$ac_try;; | 
 | 28513 | esac | 
 | 28514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28515 |   (eval "$ac_try") 2>&5 | 
 | 28516 |   ac_status=$? | 
 | 28517 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28518 |   (exit $ac_status); }; }; then | 
 | 28519 |   ac_cv_search_pthread_getspecific=$ac_res | 
 | 28520 | else | 
 | 28521 |   echo "$as_me: failed program was:" >&5 | 
 | 28522 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28523 |  | 
 | 28524 |  | 
 | 28525 | fi | 
 | 28526 |  | 
 | 28527 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28528 |       conftest$ac_exeext | 
 | 28529 |   if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
 | 28530 |   break | 
 | 28531 | fi | 
 | 28532 | done | 
 | 28533 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then | 
 | 28534 |   : | 
 | 28535 | else | 
 | 28536 |   ac_cv_search_pthread_getspecific=no | 
 | 28537 | fi | 
 | 28538 | rm conftest.$ac_ext | 
 | 28539 | LIBS=$ac_func_search_save_LIBS | 
 | 28540 | fi | 
 | 28541 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 | 
 | 28542 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } | 
 | 28543 | ac_res=$ac_cv_search_pthread_getspecific | 
 | 28544 | if test "$ac_res" != no; then | 
 | 28545 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 28546 |  | 
 | 28547 | cat >>confdefs.h <<\_ACEOF | 
 | 28548 | #define HAVE_PTHREAD_GETSPECIFIC 1 | 
 | 28549 | _ACEOF | 
 | 28550 |  | 
 | 28551 | fi | 
 | 28552 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28553 | fi | 
| Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28554 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28555 |  | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28556 | # Check whether --with-udis86 was given. | 
 | 28557 | if test "${with_udis86+set}" = set; then | 
 | 28558 |   withval=$with_udis86; | 
 | 28559 |       USE_UDIS86=1 | 
 | 28560 |  | 
 | 28561 |       case "$withval" in | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28562 |         /usr/lib|yes) ;; | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28563 |         *) LDFLAGS="$LDFLAGS -L${withval}" ;; | 
 | 28564 |       esac | 
 | 28565 |  | 
 | 28566 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 | 
 | 28567 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } | 
 | 28568 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then | 
 | 28569 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28570 | else | 
 | 28571 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28572 | LIBS="-ludis86  $LIBS" | 
 | 28573 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28574 | /* confdefs.h.  */ | 
 | 28575 | _ACEOF | 
 | 28576 | cat confdefs.h >>conftest.$ac_ext | 
 | 28577 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28578 | /* end confdefs.h.  */ | 
 | 28579 |  | 
 | 28580 | /* Override any GCC internal prototype to avoid an error. | 
 | 28581 |    Use char because int might match the return type of a GCC | 
 | 28582 |    builtin and then its argument prototype would still apply.  */ | 
 | 28583 | #ifdef __cplusplus | 
 | 28584 | extern "C" | 
 | 28585 | #endif | 
 | 28586 | char ud_init (); | 
 | 28587 | int | 
 | 28588 | main () | 
 | 28589 | { | 
 | 28590 | return ud_init (); | 
 | 28591 |   ; | 
 | 28592 |   return 0; | 
 | 28593 | } | 
 | 28594 | _ACEOF | 
 | 28595 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28596 | if { (ac_try="$ac_link" | 
 | 28597 | case "(($ac_try" in | 
 | 28598 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28599 |   *) ac_try_echo=$ac_try;; | 
 | 28600 | esac | 
 | 28601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28602 |   (eval "$ac_link") 2>conftest.er1 | 
 | 28603 |   ac_status=$? | 
 | 28604 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28605 |   rm -f conftest.er1 | 
 | 28606 |   cat conftest.err >&5 | 
 | 28607 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28608 |   (exit $ac_status); } && | 
 | 28609 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28610 |   { (case "(($ac_try" in | 
 | 28611 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28612 |   *) ac_try_echo=$ac_try;; | 
 | 28613 | esac | 
 | 28614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28615 |   (eval "$ac_try") 2>&5 | 
 | 28616 |   ac_status=$? | 
 | 28617 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28618 |   (exit $ac_status); }; } && | 
 | 28619 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28620 |   { (case "(($ac_try" in | 
 | 28621 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28622 |   *) ac_try_echo=$ac_try;; | 
 | 28623 | esac | 
 | 28624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28625 |   (eval "$ac_try") 2>&5 | 
 | 28626 |   ac_status=$? | 
 | 28627 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28628 |   (exit $ac_status); }; }; then | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28629 |   ac_cv_lib_udis86_ud_init=yes | 
 | 28630 | else | 
 | 28631 |   echo "$as_me: failed program was:" >&5 | 
 | 28632 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28633 |  | 
 | 28634 | 	ac_cv_lib_udis86_ud_init=no | 
 | 28635 | fi | 
 | 28636 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28637 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28638 |       conftest$ac_exeext conftest.$ac_ext | 
 | 28639 | LIBS=$ac_check_lib_save_LIBS | 
 | 28640 | fi | 
 | 28641 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 | 
 | 28642 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } | 
 | 28643 | if test $ac_cv_lib_udis86_ud_init = yes; then | 
 | 28644 |   cat >>confdefs.h <<_ACEOF | 
 | 28645 | #define HAVE_LIBUDIS86 1 | 
 | 28646 | _ACEOF | 
 | 28647 |  | 
 | 28648 |   LIBS="-ludis86 $LIBS" | 
 | 28649 |  | 
 | 28650 | else | 
 | 28651 |  | 
 | 28652 |         echo "Error! You need to have libudis86 around." | 
 | 28653 |         exit -1 | 
 | 28654 |  | 
 | 28655 | fi | 
 | 28656 |  | 
 | 28657 |  | 
 | 28658 | else | 
 | 28659 |   USE_UDIS86=0 | 
 | 28660 |  | 
 | 28661 | fi | 
 | 28662 |  | 
 | 28663 |  | 
 | 28664 | cat >>confdefs.h <<_ACEOF | 
 | 28665 | #define USE_UDIS86 $USE_UDIS86 | 
 | 28666 | _ACEOF | 
 | 28667 |  | 
 | 28668 |  | 
 | 28669 |  | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28670 | # Check whether --with-oprofile was given. | 
 | 28671 | if test "${with_oprofile+set}" = set; then | 
 | 28672 |   withval=$with_oprofile; | 
 | 28673 |       USE_OPROFILE=1 | 
 | 28674 |  | 
 | 28675 |       case "$withval" in | 
 | 28676 |         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28677 |         no) llvm_cv_oppath= | 
 | 28678 |             USE_OPROFILE=0 | 
 | 28679 |  ;; | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28680 |         *) llvm_cv_oppath="${withval}/lib/oprofile" | 
 | 28681 |            CPPFLAGS="-I${withval}/include";; | 
 | 28682 |       esac | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28683 |       if test -n "$llvm_cv_oppath" ; then | 
 | 28684 |         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" | 
 | 28685 |                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 | 
 | 28686 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } | 
 | 28687 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
 | 28688 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28689 | else | 
 | 28690 |   ac_func_search_save_LIBS=$LIBS | 
 | 28691 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28692 | /* confdefs.h.  */ | 
 | 28693 | _ACEOF | 
 | 28694 | cat confdefs.h >>conftest.$ac_ext | 
 | 28695 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28696 | /* end confdefs.h.  */ | 
 | 28697 |  | 
 | 28698 | /* Override any GCC internal prototype to avoid an error. | 
 | 28699 |    Use char because int might match the return type of a GCC | 
 | 28700 |    builtin and then its argument prototype would still apply.  */ | 
 | 28701 | #ifdef __cplusplus | 
 | 28702 | extern "C" | 
 | 28703 | #endif | 
 | 28704 | char bfd_init (); | 
 | 28705 | int | 
 | 28706 | main () | 
 | 28707 | { | 
 | 28708 | return bfd_init (); | 
 | 28709 |   ; | 
 | 28710 |   return 0; | 
 | 28711 | } | 
 | 28712 | _ACEOF | 
 | 28713 | for ac_lib in '' bfd; do | 
 | 28714 |   if test -z "$ac_lib"; then | 
 | 28715 |     ac_res="none required" | 
 | 28716 |   else | 
 | 28717 |     ac_res=-l$ac_lib | 
 | 28718 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 28719 |   fi | 
 | 28720 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28721 | if { (ac_try="$ac_link" | 
 | 28722 | case "(($ac_try" in | 
 | 28723 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28724 |   *) ac_try_echo=$ac_try;; | 
 | 28725 | esac | 
 | 28726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28727 |   (eval "$ac_link") 2>conftest.er1 | 
 | 28728 |   ac_status=$? | 
 | 28729 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28730 |   rm -f conftest.er1 | 
 | 28731 |   cat conftest.err >&5 | 
 | 28732 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28733 |   (exit $ac_status); } && | 
 | 28734 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28735 |   { (case "(($ac_try" in | 
 | 28736 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28737 |   *) ac_try_echo=$ac_try;; | 
 | 28738 | esac | 
 | 28739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28740 |   (eval "$ac_try") 2>&5 | 
 | 28741 |   ac_status=$? | 
 | 28742 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28743 |   (exit $ac_status); }; } && | 
 | 28744 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28745 |   { (case "(($ac_try" in | 
 | 28746 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28747 |   *) ac_try_echo=$ac_try;; | 
 | 28748 | esac | 
 | 28749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28750 |   (eval "$ac_try") 2>&5 | 
 | 28751 |   ac_status=$? | 
 | 28752 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28753 |   (exit $ac_status); }; }; then | 
 | 28754 |   ac_cv_search_bfd_init=$ac_res | 
 | 28755 | else | 
 | 28756 |   echo "$as_me: failed program was:" >&5 | 
 | 28757 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28758 |  | 
 | 28759 |  | 
 | 28760 | fi | 
 | 28761 |  | 
 | 28762 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28763 |       conftest$ac_exeext | 
 | 28764 |   if test "${ac_cv_search_bfd_init+set}" = set; then | 
 | 28765 |   break | 
 | 28766 | fi | 
 | 28767 | done | 
 | 28768 | if test "${ac_cv_search_bfd_init+set}" = set; then | 
 | 28769 |   : | 
 | 28770 | else | 
 | 28771 |   ac_cv_search_bfd_init=no | 
 | 28772 | fi | 
 | 28773 | rm conftest.$ac_ext | 
 | 28774 | LIBS=$ac_func_search_save_LIBS | 
 | 28775 | fi | 
 | 28776 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 | 
 | 28777 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } | 
 | 28778 | ac_res=$ac_cv_search_bfd_init | 
 | 28779 | if test "$ac_res" != no; then | 
 | 28780 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 28781 |  | 
 | 28782 | fi | 
 | 28783 |  | 
 | 28784 |         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28785 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } | 
 | 28786 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
 | 28787 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28788 | else | 
 | 28789 |   ac_func_search_save_LIBS=$LIBS | 
 | 28790 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28791 | /* confdefs.h.  */ | 
 | 28792 | _ACEOF | 
 | 28793 | cat confdefs.h >>conftest.$ac_ext | 
 | 28794 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28795 | /* end confdefs.h.  */ | 
 | 28796 |  | 
 | 28797 | /* Override any GCC internal prototype to avoid an error. | 
 | 28798 |    Use char because int might match the return type of a GCC | 
 | 28799 |    builtin and then its argument prototype would still apply.  */ | 
 | 28800 | #ifdef __cplusplus | 
 | 28801 | extern "C" | 
 | 28802 | #endif | 
 | 28803 | char op_open_agent (); | 
 | 28804 | int | 
 | 28805 | main () | 
 | 28806 | { | 
 | 28807 | return op_open_agent (); | 
 | 28808 |   ; | 
 | 28809 |   return 0; | 
 | 28810 | } | 
 | 28811 | _ACEOF | 
 | 28812 | for ac_lib in '' opagent; do | 
 | 28813 |   if test -z "$ac_lib"; then | 
 | 28814 |     ac_res="none required" | 
 | 28815 |   else | 
 | 28816 |     ac_res=-l$ac_lib | 
 | 28817 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 28818 |   fi | 
 | 28819 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 28820 | if { (ac_try="$ac_link" | 
 | 28821 | case "(($ac_try" in | 
 | 28822 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28823 |   *) ac_try_echo=$ac_try;; | 
 | 28824 | esac | 
 | 28825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28826 |   (eval "$ac_link") 2>conftest.er1 | 
 | 28827 |   ac_status=$? | 
 | 28828 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28829 |   rm -f conftest.er1 | 
 | 28830 |   cat conftest.err >&5 | 
 | 28831 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28832 |   (exit $ac_status); } && | 
 | 28833 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28834 |   { (case "(($ac_try" in | 
 | 28835 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28836 |   *) ac_try_echo=$ac_try;; | 
 | 28837 | esac | 
 | 28838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28839 |   (eval "$ac_try") 2>&5 | 
 | 28840 |   ac_status=$? | 
 | 28841 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28842 |   (exit $ac_status); }; } && | 
 | 28843 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 28844 |   { (case "(($ac_try" in | 
 | 28845 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28846 |   *) ac_try_echo=$ac_try;; | 
 | 28847 | esac | 
 | 28848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28849 |   (eval "$ac_try") 2>&5 | 
 | 28850 |   ac_status=$? | 
 | 28851 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28852 |   (exit $ac_status); }; }; then | 
 | 28853 |   ac_cv_search_op_open_agent=$ac_res | 
 | 28854 | else | 
 | 28855 |   echo "$as_me: failed program was:" >&5 | 
 | 28856 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28857 |  | 
 | 28858 |  | 
 | 28859 | fi | 
 | 28860 |  | 
 | 28861 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28862 |       conftest$ac_exeext | 
 | 28863 |   if test "${ac_cv_search_op_open_agent+set}" = set; then | 
 | 28864 |   break | 
 | 28865 | fi | 
 | 28866 | done | 
 | 28867 | if test "${ac_cv_search_op_open_agent+set}" = set; then | 
 | 28868 |   : | 
 | 28869 | else | 
 | 28870 |   ac_cv_search_op_open_agent=no | 
 | 28871 | fi | 
 | 28872 | rm conftest.$ac_ext | 
 | 28873 | LIBS=$ac_func_search_save_LIBS | 
 | 28874 | fi | 
 | 28875 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 | 
 | 28876 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } | 
 | 28877 | ac_res=$ac_cv_search_op_open_agent | 
 | 28878 | if test "$ac_res" != no; then | 
 | 28879 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 28880 |  | 
 | 28881 | else | 
 | 28882 |  | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28883 |           echo "Error! You need to have libopagent around." | 
 | 28884 |           exit -1 | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28885 |  | 
 | 28886 | fi | 
 | 28887 |  | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 28888 |         if test "${ac_cv_header_opagent_h+set}" = set; then | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28889 |   { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
 | 28890 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
 | 28891 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
 | 28892 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 28893 | fi | 
 | 28894 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
 | 28895 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
 | 28896 | else | 
 | 28897 |   # Is the header compilable? | 
 | 28898 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 | 
 | 28899 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } | 
 | 28900 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28901 | /* confdefs.h.  */ | 
 | 28902 | _ACEOF | 
 | 28903 | cat confdefs.h >>conftest.$ac_ext | 
 | 28904 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28905 | /* end confdefs.h.  */ | 
 | 28906 | $ac_includes_default | 
 | 28907 | #include <opagent.h> | 
 | 28908 | _ACEOF | 
 | 28909 | rm -f conftest.$ac_objext | 
 | 28910 | if { (ac_try="$ac_compile" | 
 | 28911 | case "(($ac_try" in | 
 | 28912 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28913 |   *) ac_try_echo=$ac_try;; | 
 | 28914 | esac | 
 | 28915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28916 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 28917 |   ac_status=$? | 
 | 28918 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28919 |   rm -f conftest.er1 | 
 | 28920 |   cat conftest.err >&5 | 
 | 28921 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28922 |   (exit $ac_status); } && | 
 | 28923 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 28924 |   { (case "(($ac_try" in | 
 | 28925 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28926 |   *) ac_try_echo=$ac_try;; | 
 | 28927 | esac | 
 | 28928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28929 |   (eval "$ac_try") 2>&5 | 
 | 28930 |   ac_status=$? | 
 | 28931 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28932 |   (exit $ac_status); }; } && | 
 | 28933 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 28934 |   { (case "(($ac_try" in | 
 | 28935 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28936 |   *) ac_try_echo=$ac_try;; | 
 | 28937 | esac | 
 | 28938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28939 |   (eval "$ac_try") 2>&5 | 
 | 28940 |   ac_status=$? | 
 | 28941 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28942 |   (exit $ac_status); }; }; then | 
 | 28943 |   ac_header_compiler=yes | 
 | 28944 | else | 
 | 28945 |   echo "$as_me: failed program was:" >&5 | 
 | 28946 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28947 |  | 
 | 28948 | 	ac_header_compiler=no | 
 | 28949 | fi | 
 | 28950 |  | 
 | 28951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 28952 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 28953 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
 | 28954 |  | 
 | 28955 | # Is the header present? | 
 | 28956 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 | 
 | 28957 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } | 
 | 28958 | cat >conftest.$ac_ext <<_ACEOF | 
 | 28959 | /* confdefs.h.  */ | 
 | 28960 | _ACEOF | 
 | 28961 | cat confdefs.h >>conftest.$ac_ext | 
 | 28962 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 28963 | /* end confdefs.h.  */ | 
 | 28964 | #include <opagent.h> | 
 | 28965 | _ACEOF | 
 | 28966 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 28967 | case "(($ac_try" in | 
 | 28968 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 28969 |   *) ac_try_echo=$ac_try;; | 
 | 28970 | esac | 
 | 28971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 28972 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 28973 |   ac_status=$? | 
 | 28974 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 28975 |   rm -f conftest.er1 | 
 | 28976 |   cat conftest.err >&5 | 
 | 28977 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 28978 |   (exit $ac_status); } >/dev/null; then | 
 | 28979 |   if test -s conftest.err; then | 
 | 28980 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 28981 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 28982 |   else | 
 | 28983 |     ac_cpp_err= | 
 | 28984 |   fi | 
 | 28985 | else | 
 | 28986 |   ac_cpp_err=yes | 
 | 28987 | fi | 
 | 28988 | if test -z "$ac_cpp_err"; then | 
 | 28989 |   ac_header_preproc=yes | 
 | 28990 | else | 
 | 28991 |   echo "$as_me: failed program was:" >&5 | 
 | 28992 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 28993 |  | 
 | 28994 |   ac_header_preproc=no | 
 | 28995 | fi | 
 | 28996 |  | 
 | 28997 | rm -f conftest.err conftest.$ac_ext | 
 | 28998 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 28999 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
 | 29000 |  | 
 | 29001 | # So?  What about this header? | 
 | 29002 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 29003 |   yes:no: ) | 
 | 29004 |     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 29005 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 29006 |     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 | 
 | 29007 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} | 
 | 29008 |     ac_header_preproc=yes | 
 | 29009 |     ;; | 
 | 29010 |   no:yes:* ) | 
 | 29011 |     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 | 
 | 29012 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} | 
 | 29013 |     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5 | 
 | 29014 | echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;} | 
 | 29015 |     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 | 
 | 29016 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} | 
 | 29017 |     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 29018 | echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 29019 |     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 | 
 | 29020 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} | 
 | 29021 |     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 | 
 | 29022 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} | 
 | 29023 |     ( cat <<\_ASBOX | 
 | 29024 | ## ----------------------------------- ## | 
 | 29025 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 29026 | ## ----------------------------------- ## | 
 | 29027 | _ASBOX | 
 | 29028 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 29029 |     ;; | 
 | 29030 | esac | 
 | 29031 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 | 
 | 29032 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } | 
 | 29033 | if test "${ac_cv_header_opagent_h+set}" = set; then | 
 | 29034 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29035 | else | 
 | 29036 |   ac_cv_header_opagent_h=$ac_header_preproc | 
 | 29037 | fi | 
 | 29038 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 | 
 | 29039 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } | 
 | 29040 |  | 
 | 29041 | fi | 
 | 29042 | if test $ac_cv_header_opagent_h = yes; then | 
 | 29043 |   : | 
 | 29044 | else | 
 | 29045 |  | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29046 |           echo "Error! You need to have opagent.h around." | 
 | 29047 |           exit -1 | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29048 |  | 
 | 29049 | fi | 
 | 29050 |  | 
 | 29051 |  | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29052 |       fi | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29053 |  | 
 | 29054 | else | 
 | 29055 |  | 
| Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 29056 |       USE_OPROFILE=0 | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 29057 |  | 
 | 29058 |  | 
 | 29059 | fi | 
 | 29060 |  | 
 | 29061 |  | 
 | 29062 | cat >>confdefs.h <<_ACEOF | 
 | 29063 | #define USE_OPROFILE $USE_OPROFILE | 
 | 29064 | _ACEOF | 
 | 29065 |  | 
 | 29066 |  | 
 | 29067 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29068 |  | 
 | 29069 |  | 
 | 29070 |  | 
 | 29071 |  | 
 | 29072 |  | 
 | 29073 | ac_header_dirent=no | 
 | 29074 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 29075 |   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29076 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | 
 | 29077 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | 
 | 29078 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29079 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29080 | else | 
 | 29081 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 29082 | /* confdefs.h.  */ | 
 | 29083 | _ACEOF | 
 | 29084 | cat confdefs.h >>conftest.$ac_ext | 
 | 29085 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29086 | /* end confdefs.h.  */ | 
 | 29087 | #include <sys/types.h> | 
 | 29088 | #include <$ac_hdr> | 
 | 29089 |  | 
 | 29090 | int | 
 | 29091 | main () | 
 | 29092 | { | 
 | 29093 | if ((DIR *) 0) | 
 | 29094 | return 0; | 
 | 29095 |   ; | 
 | 29096 |   return 0; | 
 | 29097 | } | 
 | 29098 | _ACEOF | 
 | 29099 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29100 | if { (ac_try="$ac_compile" | 
 | 29101 | case "(($ac_try" in | 
 | 29102 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29103 |   *) ac_try_echo=$ac_try;; | 
 | 29104 | esac | 
 | 29105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29106 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29107 |   ac_status=$? | 
 | 29108 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29109 |   rm -f conftest.er1 | 
 | 29110 |   cat conftest.err >&5 | 
 | 29111 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29112 |   (exit $ac_status); } && | 
 | 29113 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29114 |   { (case "(($ac_try" in | 
 | 29115 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29116 |   *) ac_try_echo=$ac_try;; | 
 | 29117 | esac | 
 | 29118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29119 |   (eval "$ac_try") 2>&5 | 
 | 29120 |   ac_status=$? | 
 | 29121 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29122 |   (exit $ac_status); }; } && | 
 | 29123 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29124 |   { (case "(($ac_try" in | 
 | 29125 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29126 |   *) ac_try_echo=$ac_try;; | 
 | 29127 | esac | 
 | 29128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29129 |   (eval "$ac_try") 2>&5 | 
 | 29130 |   ac_status=$? | 
 | 29131 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29132 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29133 |   eval "$as_ac_Header=yes" | 
 | 29134 | else | 
 | 29135 |   echo "$as_me: failed program was:" >&5 | 
 | 29136 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29137 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29138 | 	eval "$as_ac_Header=no" | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29139 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29140 |  | 
 | 29141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29142 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29143 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 29144 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 29145 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29146 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 29147 |   cat >>confdefs.h <<_ACEOF | 
 | 29148 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 29149 | _ACEOF | 
 | 29150 |  | 
 | 29151 | ac_header_dirent=$ac_hdr; break | 
 | 29152 | fi | 
 | 29153 |  | 
 | 29154 | done | 
 | 29155 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 29156 | if test $ac_header_dirent = dirent.h; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29157 |   { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 29158 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29159 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29160 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29161 | else | 
 | 29162 |   ac_func_search_save_LIBS=$LIBS | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29163 | cat >conftest.$ac_ext <<_ACEOF | 
 | 29164 | /* confdefs.h.  */ | 
 | 29165 | _ACEOF | 
 | 29166 | cat confdefs.h >>conftest.$ac_ext | 
 | 29167 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29168 | /* end confdefs.h.  */ | 
 | 29169 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29170 | /* Override any GCC internal prototype to avoid an error. | 
 | 29171 |    Use char because int might match the return type of a GCC | 
 | 29172 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29173 | #ifdef __cplusplus | 
 | 29174 | extern "C" | 
 | 29175 | #endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29176 | char opendir (); | 
 | 29177 | int | 
 | 29178 | main () | 
 | 29179 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29180 | return opendir (); | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29181 |   ; | 
 | 29182 |   return 0; | 
 | 29183 | } | 
 | 29184 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29185 | for ac_lib in '' dir; do | 
 | 29186 |   if test -z "$ac_lib"; then | 
 | 29187 |     ac_res="none required" | 
 | 29188 |   else | 
 | 29189 |     ac_res=-l$ac_lib | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29190 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29191 |   fi | 
 | 29192 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 29193 | if { (ac_try="$ac_link" | 
 | 29194 | case "(($ac_try" in | 
 | 29195 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29196 |   *) ac_try_echo=$ac_try;; | 
 | 29197 | esac | 
 | 29198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29199 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29200 |   ac_status=$? | 
 | 29201 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29202 |   rm -f conftest.er1 | 
 | 29203 |   cat conftest.err >&5 | 
 | 29204 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29205 |   (exit $ac_status); } && | 
 | 29206 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29207 |   { (case "(($ac_try" in | 
 | 29208 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29209 |   *) ac_try_echo=$ac_try;; | 
 | 29210 | esac | 
 | 29211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29212 |   (eval "$ac_try") 2>&5 | 
 | 29213 |   ac_status=$? | 
 | 29214 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29215 |   (exit $ac_status); }; } && | 
 | 29216 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 29217 |   { (case "(($ac_try" in | 
 | 29218 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29219 |   *) ac_try_echo=$ac_try;; | 
 | 29220 | esac | 
 | 29221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29222 |   (eval "$ac_try") 2>&5 | 
 | 29223 |   ac_status=$? | 
 | 29224 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29225 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29226 |   ac_cv_search_opendir=$ac_res | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29227 | else | 
 | 29228 |   echo "$as_me: failed program was:" >&5 | 
 | 29229 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29230 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29231 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29232 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29233 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29234 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29235 |       conftest$ac_exeext | 
 | 29236 |   if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29237 |   break | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29238 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29239 | done | 
 | 29240 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29241 |   : | 
 | 29242 | else | 
 | 29243 |   ac_cv_search_opendir=no | 
 | 29244 | fi | 
 | 29245 | rm conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29246 | LIBS=$ac_func_search_save_LIBS | 
 | 29247 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29248 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 29249 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
 | 29250 | ac_res=$ac_cv_search_opendir | 
 | 29251 | if test "$ac_res" != no; then | 
 | 29252 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29253 |  | 
 | 29254 | fi | 
 | 29255 |  | 
 | 29256 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29257 |   { echo "$as_me:$LINENO: checking for library containing opendir" >&5 | 
 | 29258 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29259 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29260 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29261 | else | 
 | 29262 |   ac_func_search_save_LIBS=$LIBS | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29263 | cat >conftest.$ac_ext <<_ACEOF | 
 | 29264 | /* confdefs.h.  */ | 
 | 29265 | _ACEOF | 
 | 29266 | cat confdefs.h >>conftest.$ac_ext | 
 | 29267 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29268 | /* end confdefs.h.  */ | 
 | 29269 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29270 | /* Override any GCC internal prototype to avoid an error. | 
 | 29271 |    Use char because int might match the return type of a GCC | 
 | 29272 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29273 | #ifdef __cplusplus | 
 | 29274 | extern "C" | 
 | 29275 | #endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29276 | char opendir (); | 
 | 29277 | int | 
 | 29278 | main () | 
 | 29279 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29280 | return opendir (); | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29281 |   ; | 
 | 29282 |   return 0; | 
 | 29283 | } | 
 | 29284 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29285 | for ac_lib in '' x; do | 
 | 29286 |   if test -z "$ac_lib"; then | 
 | 29287 |     ac_res="none required" | 
 | 29288 |   else | 
 | 29289 |     ac_res=-l$ac_lib | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29290 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29291 |   fi | 
 | 29292 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 29293 | if { (ac_try="$ac_link" | 
 | 29294 | case "(($ac_try" in | 
 | 29295 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29296 |   *) ac_try_echo=$ac_try;; | 
 | 29297 | esac | 
 | 29298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29299 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29300 |   ac_status=$? | 
 | 29301 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29302 |   rm -f conftest.er1 | 
 | 29303 |   cat conftest.err >&5 | 
 | 29304 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29305 |   (exit $ac_status); } && | 
 | 29306 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29307 |   { (case "(($ac_try" in | 
 | 29308 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29309 |   *) ac_try_echo=$ac_try;; | 
 | 29310 | esac | 
 | 29311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29312 |   (eval "$ac_try") 2>&5 | 
 | 29313 |   ac_status=$? | 
 | 29314 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29315 |   (exit $ac_status); }; } && | 
 | 29316 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 29317 |   { (case "(($ac_try" in | 
 | 29318 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29319 |   *) ac_try_echo=$ac_try;; | 
 | 29320 | esac | 
 | 29321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29322 |   (eval "$ac_try") 2>&5 | 
 | 29323 |   ac_status=$? | 
 | 29324 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29325 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29326 |   ac_cv_search_opendir=$ac_res | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29327 | else | 
 | 29328 |   echo "$as_me: failed program was:" >&5 | 
 | 29329 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29330 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29331 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29332 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29333 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29334 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29335 |       conftest$ac_exeext | 
 | 29336 |   if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29337 |   break | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29338 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29339 | done | 
 | 29340 | if test "${ac_cv_search_opendir+set}" = set; then | 
 | 29341 |   : | 
 | 29342 | else | 
 | 29343 |   ac_cv_search_opendir=no | 
 | 29344 | fi | 
 | 29345 | rm conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29346 | LIBS=$ac_func_search_save_LIBS | 
 | 29347 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29348 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | 
 | 29349 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | 
 | 29350 | ac_res=$ac_cv_search_opendir | 
 | 29351 | if test "$ac_res" != no; then | 
 | 29352 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29353 |  | 
 | 29354 | fi | 
 | 29355 |  | 
 | 29356 | fi | 
 | 29357 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29358 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 | 
 | 29359 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29360 | if test "${ac_cv_header_mmap_anon+set}" = set; then | 
 | 29361 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29362 | else | 
 | 29363 |    ac_ext=c | 
 | 29364 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29368 |  | 
 | 29369 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 29370 | /* confdefs.h.  */ | 
 | 29371 | _ACEOF | 
 | 29372 | cat confdefs.h >>conftest.$ac_ext | 
 | 29373 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29374 | /* end confdefs.h.  */ | 
 | 29375 | #include <sys/mman.h> | 
 | 29376 | #include <unistd.h> | 
 | 29377 | #include <fcntl.h> | 
 | 29378 | int | 
 | 29379 | main () | 
 | 29380 | { | 
 | 29381 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); | 
 | 29382 |   ; | 
 | 29383 |   return 0; | 
 | 29384 | } | 
 | 29385 | _ACEOF | 
 | 29386 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29387 | if { (ac_try="$ac_compile" | 
 | 29388 | case "(($ac_try" in | 
 | 29389 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29390 |   *) ac_try_echo=$ac_try;; | 
 | 29391 | esac | 
 | 29392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29393 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29394 |   ac_status=$? | 
 | 29395 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29396 |   rm -f conftest.er1 | 
 | 29397 |   cat conftest.err >&5 | 
 | 29398 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29399 |   (exit $ac_status); } && | 
 | 29400 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29401 |   { (case "(($ac_try" in | 
 | 29402 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29403 |   *) ac_try_echo=$ac_try;; | 
 | 29404 | esac | 
 | 29405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29406 |   (eval "$ac_try") 2>&5 | 
 | 29407 |   ac_status=$? | 
 | 29408 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29409 |   (exit $ac_status); }; } && | 
 | 29410 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29411 |   { (case "(($ac_try" in | 
 | 29412 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29413 |   *) ac_try_echo=$ac_try;; | 
 | 29414 | esac | 
 | 29415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29416 |   (eval "$ac_try") 2>&5 | 
 | 29417 |   ac_status=$? | 
 | 29418 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29419 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29420 |   ac_cv_header_mmap_anon=yes | 
 | 29421 | else | 
 | 29422 |   echo "$as_me: failed program was:" >&5 | 
 | 29423 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29424 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29425 | 	ac_cv_header_mmap_anon=no | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29426 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29427 |  | 
 | 29428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29429 |   ac_ext=c | 
 | 29430 | ac_cpp='$CPP $CPPFLAGS' | 
 | 29431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 29432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 29433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 29434 |  | 
 | 29435 |  | 
 | 29436 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29437 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 | 
 | 29438 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29439 | if test "$ac_cv_header_mmap_anon" = yes; then | 
 | 29440 |  | 
 | 29441 | cat >>confdefs.h <<\_ACEOF | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29442 | #define HAVE_MMAP_ANONYMOUS 1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29443 | _ACEOF | 
 | 29444 |  | 
 | 29445 | fi | 
 | 29446 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29447 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | 
 | 29448 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29449 | if test "${ac_cv_header_stat_broken+set}" = set; then | 
 | 29450 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29451 | else | 
 | 29452 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 29453 | /* confdefs.h.  */ | 
 | 29454 | _ACEOF | 
 | 29455 | cat confdefs.h >>conftest.$ac_ext | 
 | 29456 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29457 | /* end confdefs.h.  */ | 
 | 29458 | #include <sys/types.h> | 
 | 29459 | #include <sys/stat.h> | 
 | 29460 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29461 | #if defined S_ISBLK && defined S_IFDIR | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29462 | # if S_ISBLK (S_IFDIR) | 
 | 29463 | You lose. | 
 | 29464 | # endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29465 | #endif | 
 | 29466 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29467 | #if defined S_ISBLK && defined S_IFCHR | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29468 | # if S_ISBLK (S_IFCHR) | 
 | 29469 | You lose. | 
 | 29470 | # endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29471 | #endif | 
 | 29472 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29473 | #if defined S_ISLNK && defined S_IFREG | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29474 | # if S_ISLNK (S_IFREG) | 
 | 29475 | You lose. | 
 | 29476 | # endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29477 | #endif | 
 | 29478 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29479 | #if defined S_ISSOCK && defined S_IFREG | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29480 | # if S_ISSOCK (S_IFREG) | 
 | 29481 | You lose. | 
 | 29482 | # endif | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29483 | #endif | 
 | 29484 |  | 
 | 29485 | _ACEOF | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 29487 |   $EGREP "You lose" >/dev/null 2>&1; then | 
 | 29488 |   ac_cv_header_stat_broken=yes | 
| Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29489 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29490 |   ac_cv_header_stat_broken=no | 
| Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29491 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29492 | rm -f conftest* | 
| Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29493 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29494 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29495 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 | 
 | 29496 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29497 | if test $ac_cv_header_stat_broken = yes; then | 
 | 29498 |  | 
 | 29499 | cat >>confdefs.h <<\_ACEOF | 
 | 29500 | #define STAT_MACROS_BROKEN 1 | 
 | 29501 | _ACEOF | 
 | 29502 |  | 
 | 29503 | fi | 
 | 29504 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29505 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
 | 29506 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29507 | if test "${ac_cv_header_stdc+set}" = set; then | 
 | 29508 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29509 | else | 
 | 29510 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29511 | /* confdefs.h.  */ | 
 | 29512 | _ACEOF | 
 | 29513 | cat confdefs.h >>conftest.$ac_ext | 
 | 29514 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29515 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29516 | #include <stdlib.h> | 
 | 29517 | #include <stdarg.h> | 
 | 29518 | #include <string.h> | 
 | 29519 | #include <float.h> | 
 | 29520 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29521 | int | 
 | 29522 | main () | 
 | 29523 | { | 
 | 29524 |  | 
 | 29525 |   ; | 
 | 29526 |   return 0; | 
 | 29527 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29528 | _ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29529 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29530 | if { (ac_try="$ac_compile" | 
 | 29531 | case "(($ac_try" in | 
 | 29532 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29533 |   *) ac_try_echo=$ac_try;; | 
 | 29534 | esac | 
 | 29535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29536 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29537 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29538 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29539 |   rm -f conftest.er1 | 
 | 29540 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29541 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29542 |   (exit $ac_status); } && | 
 | 29543 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29544 |   { (case "(($ac_try" in | 
 | 29545 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29546 |   *) ac_try_echo=$ac_try;; | 
 | 29547 | esac | 
 | 29548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29549 |   (eval "$ac_try") 2>&5 | 
 | 29550 |   ac_status=$? | 
 | 29551 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29552 |   (exit $ac_status); }; } && | 
 | 29553 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29554 |   { (case "(($ac_try" in | 
 | 29555 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29556 |   *) ac_try_echo=$ac_try;; | 
 | 29557 | esac | 
 | 29558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29559 |   (eval "$ac_try") 2>&5 | 
 | 29560 |   ac_status=$? | 
 | 29561 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29562 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29563 |   ac_cv_header_stdc=yes | 
 | 29564 | else | 
 | 29565 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29566 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29567 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29568 | 	ac_cv_header_stdc=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29569 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29570 |  | 
 | 29571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29572 |  | 
 | 29573 | if test $ac_cv_header_stdc = yes; then | 
 | 29574 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 29575 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29576 | /* confdefs.h.  */ | 
 | 29577 | _ACEOF | 
 | 29578 | cat confdefs.h >>conftest.$ac_ext | 
 | 29579 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29580 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29581 | #include <string.h> | 
 | 29582 |  | 
 | 29583 | _ACEOF | 
 | 29584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29585 |   $EGREP "memchr" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29586 |   : | 
 | 29587 | else | 
 | 29588 |   ac_cv_header_stdc=no | 
 | 29589 | fi | 
 | 29590 | rm -f conftest* | 
 | 29591 |  | 
 | 29592 | fi | 
 | 29593 |  | 
 | 29594 | if test $ac_cv_header_stdc = yes; then | 
 | 29595 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 29596 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29597 | /* confdefs.h.  */ | 
 | 29598 | _ACEOF | 
 | 29599 | cat confdefs.h >>conftest.$ac_ext | 
 | 29600 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29601 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29602 | #include <stdlib.h> | 
 | 29603 |  | 
 | 29604 | _ACEOF | 
 | 29605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29606 |   $EGREP "free" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29607 |   : | 
 | 29608 | else | 
 | 29609 |   ac_cv_header_stdc=no | 
 | 29610 | fi | 
 | 29611 | rm -f conftest* | 
 | 29612 |  | 
 | 29613 | fi | 
 | 29614 |  | 
 | 29615 | if test $ac_cv_header_stdc = yes; then | 
 | 29616 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 29617 |   if test "$cross_compiling" = yes; then | 
 | 29618 |   : | 
 | 29619 | else | 
 | 29620 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29621 | /* confdefs.h.  */ | 
 | 29622 | _ACEOF | 
 | 29623 | cat confdefs.h >>conftest.$ac_ext | 
 | 29624 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29625 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29626 | #include <ctype.h> | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29627 | #include <stdlib.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29628 | #if ((' ' & 0x0FF) == 0x020) | 
 | 29629 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 29630 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 29631 | #else | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29632 | # define ISLOWER(c) \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29633 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 29634 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 29635 | 		     || ('s' <= (c) && (c) <= 'z')) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29636 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 29637 | #endif | 
 | 29638 |  | 
 | 29639 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 29640 | int | 
 | 29641 | main () | 
 | 29642 | { | 
 | 29643 |   int i; | 
 | 29644 |   for (i = 0; i < 256; i++) | 
 | 29645 |     if (XOR (islower (i), ISLOWER (i)) | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29646 | 	|| toupper (i) != TOUPPER (i)) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29647 |       return 2; | 
 | 29648 |   return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29649 | } | 
 | 29650 | _ACEOF | 
 | 29651 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29652 | if { (ac_try="$ac_link" | 
 | 29653 | case "(($ac_try" in | 
 | 29654 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29655 |   *) ac_try_echo=$ac_try;; | 
 | 29656 | esac | 
 | 29657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29658 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29659 |   ac_status=$? | 
 | 29660 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29661 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29662 |   { (case "(($ac_try" in | 
 | 29663 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29664 |   *) ac_try_echo=$ac_try;; | 
 | 29665 | esac | 
 | 29666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29667 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29668 |   ac_status=$? | 
 | 29669 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29670 |   (exit $ac_status); }; }; then | 
 | 29671 |   : | 
 | 29672 | else | 
 | 29673 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 29674 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29675 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29676 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29677 | ( exit $ac_status ) | 
 | 29678 | ac_cv_header_stdc=no | 
 | 29679 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 29681 | fi | 
 | 29682 |  | 
 | 29683 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29684 | fi | 
 | 29685 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29686 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
 | 29687 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29688 | if test $ac_cv_header_stdc = yes; then | 
 | 29689 |  | 
 | 29690 | cat >>confdefs.h <<\_ACEOF | 
 | 29691 | #define STDC_HEADERS 1 | 
 | 29692 | _ACEOF | 
 | 29693 |  | 
 | 29694 | fi | 
 | 29695 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29696 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
 | 29697 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29698 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | 
 | 29699 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29700 | else | 
 | 29701 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29702 | /* confdefs.h.  */ | 
 | 29703 | _ACEOF | 
 | 29704 | cat confdefs.h >>conftest.$ac_ext | 
 | 29705 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29706 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29707 | #include <sys/types.h> | 
 | 29708 | #include <sys/wait.h> | 
 | 29709 | #ifndef WEXITSTATUS | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29710 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29711 | #endif | 
 | 29712 | #ifndef WIFEXITED | 
 | 29713 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
 | 29714 | #endif | 
 | 29715 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29716 | int | 
 | 29717 | main () | 
 | 29718 | { | 
 | 29719 |   int s; | 
 | 29720 |   wait (&s); | 
 | 29721 |   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
 | 29722 |   ; | 
 | 29723 |   return 0; | 
 | 29724 | } | 
 | 29725 | _ACEOF | 
 | 29726 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29727 | if { (ac_try="$ac_compile" | 
 | 29728 | case "(($ac_try" in | 
 | 29729 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29730 |   *) ac_try_echo=$ac_try;; | 
 | 29731 | esac | 
 | 29732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29733 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29734 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29735 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29736 |   rm -f conftest.er1 | 
 | 29737 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29738 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29739 |   (exit $ac_status); } && | 
 | 29740 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29741 |   { (case "(($ac_try" in | 
 | 29742 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29743 |   *) ac_try_echo=$ac_try;; | 
 | 29744 | esac | 
 | 29745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29746 |   (eval "$ac_try") 2>&5 | 
 | 29747 |   ac_status=$? | 
 | 29748 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29749 |   (exit $ac_status); }; } && | 
 | 29750 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29751 |   { (case "(($ac_try" in | 
 | 29752 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29753 |   *) ac_try_echo=$ac_try;; | 
 | 29754 | esac | 
 | 29755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29756 |   (eval "$ac_try") 2>&5 | 
 | 29757 |   ac_status=$? | 
 | 29758 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29759 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29760 |   ac_cv_header_sys_wait_h=yes | 
 | 29761 | else | 
 | 29762 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29763 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29764 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29765 | 	ac_cv_header_sys_wait_h=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29766 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29767 |  | 
 | 29768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29769 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29770 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 
 | 29771 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29772 | if test $ac_cv_header_sys_wait_h = yes; then | 
 | 29773 |  | 
 | 29774 | cat >>confdefs.h <<\_ACEOF | 
 | 29775 | #define HAVE_SYS_WAIT_H 1 | 
 | 29776 | _ACEOF | 
 | 29777 |  | 
 | 29778 | fi | 
 | 29779 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29780 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | 
 | 29781 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29782 | if test "${ac_cv_header_time+set}" = set; then | 
 | 29783 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29784 | else | 
 | 29785 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 29786 | /* confdefs.h.  */ | 
 | 29787 | _ACEOF | 
 | 29788 | cat confdefs.h >>conftest.$ac_ext | 
 | 29789 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29790 | /* end confdefs.h.  */ | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29791 | #include <sys/types.h> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29792 | #include <sys/time.h> | 
 | 29793 | #include <time.h> | 
 | 29794 |  | 
 | 29795 | int | 
 | 29796 | main () | 
 | 29797 | { | 
 | 29798 | if ((struct tm *) 0) | 
 | 29799 | return 0; | 
 | 29800 |   ; | 
 | 29801 |   return 0; | 
 | 29802 | } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29803 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29804 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29805 | if { (ac_try="$ac_compile" | 
 | 29806 | case "(($ac_try" in | 
 | 29807 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29808 |   *) ac_try_echo=$ac_try;; | 
 | 29809 | esac | 
 | 29810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29811 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29812 |   ac_status=$? | 
 | 29813 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29814 |   rm -f conftest.er1 | 
 | 29815 |   cat conftest.err >&5 | 
 | 29816 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29817 |   (exit $ac_status); } && | 
 | 29818 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29819 |   { (case "(($ac_try" in | 
 | 29820 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29821 |   *) ac_try_echo=$ac_try;; | 
 | 29822 | esac | 
 | 29823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29824 |   (eval "$ac_try") 2>&5 | 
 | 29825 |   ac_status=$? | 
 | 29826 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29827 |   (exit $ac_status); }; } && | 
 | 29828 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29829 |   { (case "(($ac_try" in | 
 | 29830 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29831 |   *) ac_try_echo=$ac_try;; | 
 | 29832 | esac | 
 | 29833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29834 |   (eval "$ac_try") 2>&5 | 
 | 29835 |   ac_status=$? | 
 | 29836 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29837 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29838 |   ac_cv_header_time=yes | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29839 | else | 
 | 29840 |   echo "$as_me: failed program was:" >&5 | 
 | 29841 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29842 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29843 | 	ac_cv_header_time=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29844 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29845 |  | 
 | 29846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29847 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29848 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 
 | 29849 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29850 | if test $ac_cv_header_time = yes; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29851 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29852 | cat >>confdefs.h <<\_ACEOF | 
 | 29853 | #define TIME_WITH_SYS_TIME 1 | 
 | 29854 | _ACEOF | 
 | 29855 |  | 
 | 29856 | fi | 
 | 29857 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29858 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29859 |  | 
 | 29860 |  | 
 | 29861 |  | 
 | 29862 |  | 
 | 29863 |  | 
 | 29864 |  | 
 | 29865 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h | 
 | 29866 | do | 
 | 29867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 29869 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 29870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 29871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29872 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 29873 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29874 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 29875 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 29876 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29877 | else | 
 | 29878 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29879 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 29880 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29881 | cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29882 | /* confdefs.h.  */ | 
 | 29883 | _ACEOF | 
 | 29884 | cat confdefs.h >>conftest.$ac_ext | 
 | 29885 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29886 | /* end confdefs.h.  */ | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29887 | $ac_includes_default | 
 | 29888 | #include <$ac_header> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29889 | _ACEOF | 
 | 29890 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29891 | if { (ac_try="$ac_compile" | 
 | 29892 | case "(($ac_try" in | 
 | 29893 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29894 |   *) ac_try_echo=$ac_try;; | 
 | 29895 | esac | 
 | 29896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29897 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29898 |   ac_status=$? | 
 | 29899 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29900 |   rm -f conftest.er1 | 
 | 29901 |   cat conftest.err >&5 | 
 | 29902 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29903 |   (exit $ac_status); } && | 
 | 29904 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 29905 |   { (case "(($ac_try" in | 
 | 29906 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29907 |   *) ac_try_echo=$ac_try;; | 
 | 29908 | esac | 
 | 29909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29910 |   (eval "$ac_try") 2>&5 | 
 | 29911 |   ac_status=$? | 
 | 29912 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29913 |   (exit $ac_status); }; } && | 
 | 29914 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 29915 |   { (case "(($ac_try" in | 
 | 29916 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29917 |   *) ac_try_echo=$ac_try;; | 
 | 29918 | esac | 
 | 29919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29920 |   (eval "$ac_try") 2>&5 | 
 | 29921 |   ac_status=$? | 
 | 29922 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 29923 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29924 |   ac_header_compiler=yes | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29925 | else | 
 | 29926 |   echo "$as_me: failed program was:" >&5 | 
 | 29927 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29928 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29929 | 	ac_header_compiler=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29930 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29931 |  | 
 | 29932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 29933 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 29934 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29935 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29936 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29937 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 29938 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29939 | cat >conftest.$ac_ext <<_ACEOF | 
 | 29940 | /* confdefs.h.  */ | 
 | 29941 | _ACEOF | 
 | 29942 | cat confdefs.h >>conftest.$ac_ext | 
 | 29943 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 29944 | /* end confdefs.h.  */ | 
 | 29945 | #include <$ac_header> | 
 | 29946 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29947 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 29948 | case "(($ac_try" in | 
 | 29949 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 29950 |   *) ac_try_echo=$ac_try;; | 
 | 29951 | esac | 
 | 29952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 29953 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29954 |   ac_status=$? | 
 | 29955 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 29956 |   rm -f conftest.er1 | 
 | 29957 |   cat conftest.err >&5 | 
 | 29958 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29959 |   (exit $ac_status); } >/dev/null; then | 
 | 29960 |   if test -s conftest.err; then | 
 | 29961 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 29962 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 29963 |   else | 
 | 29964 |     ac_cpp_err= | 
 | 29965 |   fi | 
 | 29966 | else | 
 | 29967 |   ac_cpp_err=yes | 
 | 29968 | fi | 
 | 29969 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29970 |   ac_header_preproc=yes | 
 | 29971 | else | 
 | 29972 |   echo "$as_me: failed program was:" >&5 | 
 | 29973 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 29974 |  | 
 | 29975 |   ac_header_preproc=no | 
 | 29976 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29977 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29978 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29979 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 29980 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29981 |  | 
 | 29982 | # So?  What about this header? | 
 | 29983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 29984 |   yes:no: ) | 
 | 29985 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 29986 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 29987 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 29988 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 29989 |     ac_header_preproc=yes | 
 | 29990 |     ;; | 
 | 29991 |   no:yes:* ) | 
 | 29992 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 29993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 29994 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 29995 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 29996 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 29997 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 29998 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 29999 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30000 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30001 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30002 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30003 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30004 |     ( cat <<\_ASBOX | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30005 | ## ----------------------------------- ## | 
 | 30006 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30007 | ## ----------------------------------- ## | 
 | 30008 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30009 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30010 |     ;; | 
 | 30011 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30015 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30016 | else | 
 | 30017 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 30018 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30019 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30020 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30021 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30022 |  | 
 | 30023 | fi | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30024 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30025 |   cat >>confdefs.h <<_ACEOF | 
 | 30026 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30027 | _ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30028 |  | 
 | 30029 | fi | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30030 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30031 | done | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30032 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30033 |  | 
 | 30034 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30035 |  | 
 | 30036 |  | 
 | 30037 |  | 
 | 30038 |  | 
| Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30039 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30040 | do | 
 | 30041 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30043 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30045 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30046 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30047 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30048 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30049 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30050 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30051 | else | 
 | 30052 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30053 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30054 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30055 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30056 | /* confdefs.h.  */ | 
 | 30057 | _ACEOF | 
 | 30058 | cat confdefs.h >>conftest.$ac_ext | 
 | 30059 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30060 | /* end confdefs.h.  */ | 
 | 30061 | $ac_includes_default | 
 | 30062 | #include <$ac_header> | 
 | 30063 | _ACEOF | 
 | 30064 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30065 | if { (ac_try="$ac_compile" | 
 | 30066 | case "(($ac_try" in | 
 | 30067 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30068 |   *) ac_try_echo=$ac_try;; | 
 | 30069 | esac | 
 | 30070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30071 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30072 |   ac_status=$? | 
 | 30073 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30074 |   rm -f conftest.er1 | 
 | 30075 |   cat conftest.err >&5 | 
 | 30076 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30077 |   (exit $ac_status); } && | 
 | 30078 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30079 |   { (case "(($ac_try" in | 
 | 30080 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30081 |   *) ac_try_echo=$ac_try;; | 
 | 30082 | esac | 
 | 30083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30084 |   (eval "$ac_try") 2>&5 | 
 | 30085 |   ac_status=$? | 
 | 30086 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30087 |   (exit $ac_status); }; } && | 
 | 30088 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30089 |   { (case "(($ac_try" in | 
 | 30090 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30091 |   *) ac_try_echo=$ac_try;; | 
 | 30092 | esac | 
 | 30093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30094 |   (eval "$ac_try") 2>&5 | 
 | 30095 |   ac_status=$? | 
 | 30096 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30097 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30098 |   ac_header_compiler=yes | 
 | 30099 | else | 
 | 30100 |   echo "$as_me: failed program was:" >&5 | 
 | 30101 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30102 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30103 | 	ac_header_compiler=no | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30104 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30105 |  | 
 | 30106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30107 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30108 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30109 |  | 
 | 30110 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30111 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30113 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30114 | /* confdefs.h.  */ | 
 | 30115 | _ACEOF | 
 | 30116 | cat confdefs.h >>conftest.$ac_ext | 
 | 30117 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30118 | /* end confdefs.h.  */ | 
 | 30119 | #include <$ac_header> | 
 | 30120 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30121 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30122 | case "(($ac_try" in | 
 | 30123 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30124 |   *) ac_try_echo=$ac_try;; | 
 | 30125 | esac | 
 | 30126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30127 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30128 |   ac_status=$? | 
 | 30129 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30130 |   rm -f conftest.er1 | 
 | 30131 |   cat conftest.err >&5 | 
 | 30132 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30133 |   (exit $ac_status); } >/dev/null; then | 
 | 30134 |   if test -s conftest.err; then | 
 | 30135 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 30136 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 30137 |   else | 
 | 30138 |     ac_cpp_err= | 
 | 30139 |   fi | 
 | 30140 | else | 
 | 30141 |   ac_cpp_err=yes | 
 | 30142 | fi | 
 | 30143 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30144 |   ac_header_preproc=yes | 
 | 30145 | else | 
 | 30146 |   echo "$as_me: failed program was:" >&5 | 
 | 30147 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30148 |  | 
 | 30149 |   ac_header_preproc=no | 
 | 30150 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30151 |  | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30152 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30153 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30154 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30155 |  | 
 | 30156 | # So?  What about this header? | 
 | 30157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30158 |   yes:no: ) | 
 | 30159 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 30161 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 30163 |     ac_header_preproc=yes | 
 | 30164 |     ;; | 
 | 30165 |   no:yes:* ) | 
 | 30166 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 30168 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30169 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30170 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30172 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30173 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30174 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30176 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30178 |     ( cat <<\_ASBOX | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30179 | ## ----------------------------------- ## | 
 | 30180 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30181 | ## ----------------------------------- ## | 
 | 30182 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30183 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30184 |     ;; | 
 | 30185 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30186 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30188 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30189 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30190 | else | 
 | 30191 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 30192 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30193 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30194 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30195 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30196 |  | 
 | 30197 | fi | 
 | 30198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30199 |   cat >>confdefs.h <<_ACEOF | 
 | 30200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 30201 | _ACEOF | 
 | 30202 |  | 
 | 30203 | fi | 
 | 30204 |  | 
 | 30205 | done | 
 | 30206 |  | 
 | 30207 |  | 
| Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30208 |  | 
 | 30209 | for ac_header in utime.h windows.h | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30210 | do | 
 | 30211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 30212 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30213 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30216 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30217 | fi | 
 | 30218 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30219 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30220 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 30221 | else | 
 | 30222 |   # Is the header compilable? | 
 | 30223 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
 | 30225 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30226 | /* confdefs.h.  */ | 
 | 30227 | _ACEOF | 
 | 30228 | cat confdefs.h >>conftest.$ac_ext | 
 | 30229 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30230 | /* end confdefs.h.  */ | 
 | 30231 | $ac_includes_default | 
 | 30232 | #include <$ac_header> | 
 | 30233 | _ACEOF | 
 | 30234 | rm -f conftest.$ac_objext | 
 | 30235 | if { (ac_try="$ac_compile" | 
 | 30236 | case "(($ac_try" in | 
 | 30237 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30238 |   *) ac_try_echo=$ac_try;; | 
 | 30239 | esac | 
 | 30240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30241 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 30242 |   ac_status=$? | 
 | 30243 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30244 |   rm -f conftest.er1 | 
 | 30245 |   cat conftest.err >&5 | 
 | 30246 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30247 |   (exit $ac_status); } && | 
 | 30248 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30249 |   { (case "(($ac_try" in | 
 | 30250 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30251 |   *) ac_try_echo=$ac_try;; | 
 | 30252 | esac | 
 | 30253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30254 |   (eval "$ac_try") 2>&5 | 
 | 30255 |   ac_status=$? | 
 | 30256 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30257 |   (exit $ac_status); }; } && | 
 | 30258 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30259 |   { (case "(($ac_try" in | 
 | 30260 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30261 |   *) ac_try_echo=$ac_try;; | 
 | 30262 | esac | 
 | 30263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30264 |   (eval "$ac_try") 2>&5 | 
 | 30265 |   ac_status=$? | 
 | 30266 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30267 |   (exit $ac_status); }; }; then | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30268 |   ac_header_compiler=yes | 
 | 30269 | else | 
 | 30270 |   echo "$as_me: failed program was:" >&5 | 
 | 30271 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30272 |  | 
 | 30273 | 	ac_header_compiler=no | 
 | 30274 | fi | 
 | 30275 |  | 
 | 30276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30277 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30278 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
 | 30279 |  | 
 | 30280 | # Is the header present? | 
 | 30281 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
 | 30283 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30284 | /* confdefs.h.  */ | 
 | 30285 | _ACEOF | 
 | 30286 | cat confdefs.h >>conftest.$ac_ext | 
 | 30287 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30288 | /* end confdefs.h.  */ | 
 | 30289 | #include <$ac_header> | 
 | 30290 | _ACEOF | 
 | 30291 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30292 | case "(($ac_try" in | 
 | 30293 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30294 |   *) ac_try_echo=$ac_try;; | 
 | 30295 | esac | 
 | 30296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30297 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 30298 |   ac_status=$? | 
 | 30299 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30300 |   rm -f conftest.er1 | 
 | 30301 |   cat conftest.err >&5 | 
 | 30302 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30303 |   (exit $ac_status); } >/dev/null; then | 
 | 30304 |   if test -s conftest.err; then | 
 | 30305 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 30306 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 30307 |   else | 
 | 30308 |     ac_cpp_err= | 
 | 30309 |   fi | 
 | 30310 | else | 
 | 30311 |   ac_cpp_err=yes | 
 | 30312 | fi | 
 | 30313 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30314 |   ac_header_preproc=yes | 
 | 30315 | else | 
 | 30316 |   echo "$as_me: failed program was:" >&5 | 
 | 30317 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30318 |  | 
 | 30319 |   ac_header_preproc=no | 
 | 30320 | fi | 
 | 30321 |  | 
 | 30322 | rm -f conftest.err conftest.$ac_ext | 
 | 30323 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30324 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
 | 30325 |  | 
 | 30326 | # So?  What about this header? | 
 | 30327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30328 |   yes:no: ) | 
 | 30329 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 30331 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 30333 |     ac_header_preproc=yes | 
 | 30334 |     ;; | 
 | 30335 |   no:yes:* ) | 
 | 30336 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 30338 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30339 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30340 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30342 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30343 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30344 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30346 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 30348 |     ( cat <<\_ASBOX | 
 | 30349 | ## ----------------------------------- ## | 
 | 30350 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30351 | ## ----------------------------------- ## | 
 | 30352 | _ASBOX | 
 | 30353 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 30354 |     ;; | 
 | 30355 | esac | 
 | 30356 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30359 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30360 | else | 
 | 30361 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 30362 | fi | 
 | 30363 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30364 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30365 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 30366 |  | 
 | 30367 | fi | 
 | 30368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30369 |   cat >>confdefs.h <<_ACEOF | 
 | 30370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 30371 | _ACEOF | 
 | 30372 |  | 
 | 30373 | fi | 
 | 30374 |  | 
 | 30375 | done | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30376 |  | 
 | 30377 |  | 
 | 30378 |  | 
 | 30379 |  | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30380 |  | 
 | 30381 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30382 | do | 
 | 30383 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30384 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30385 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30386 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30387 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30388 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30389 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30390 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30391 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30392 | echo "${ECHO_T}$ac_res" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30393 | else | 
 | 30394 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30395 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30397 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30398 | /* confdefs.h.  */ | 
 | 30399 | _ACEOF | 
 | 30400 | cat confdefs.h >>conftest.$ac_ext | 
 | 30401 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30402 | /* end confdefs.h.  */ | 
 | 30403 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30404 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30405 | _ACEOF | 
 | 30406 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30407 | if { (ac_try="$ac_compile" | 
 | 30408 | case "(($ac_try" in | 
 | 30409 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30410 |   *) ac_try_echo=$ac_try;; | 
 | 30411 | esac | 
 | 30412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30413 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30414 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30415 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30416 |   rm -f conftest.er1 | 
 | 30417 |   cat conftest.err >&5 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30418 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30419 |   (exit $ac_status); } && | 
 | 30420 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30421 |   { (case "(($ac_try" in | 
 | 30422 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30423 |   *) ac_try_echo=$ac_try;; | 
 | 30424 | esac | 
 | 30425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30426 |   (eval "$ac_try") 2>&5 | 
 | 30427 |   ac_status=$? | 
 | 30428 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30429 |   (exit $ac_status); }; } && | 
 | 30430 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30431 |   { (case "(($ac_try" in | 
 | 30432 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30433 |   *) ac_try_echo=$ac_try;; | 
 | 30434 | esac | 
 | 30435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30436 |   (eval "$ac_try") 2>&5 | 
 | 30437 |   ac_status=$? | 
 | 30438 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30439 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30440 |   ac_header_compiler=yes | 
 | 30441 | else | 
 | 30442 |   echo "$as_me: failed program was:" >&5 | 
 | 30443 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30444 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30445 | 	ac_header_compiler=no | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30446 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30447 |  | 
 | 30448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30449 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30450 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30451 |  | 
 | 30452 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30453 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30454 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30455 | cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30456 | /* confdefs.h.  */ | 
 | 30457 | _ACEOF | 
 | 30458 | cat confdefs.h >>conftest.$ac_ext | 
 | 30459 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30460 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30461 | #include <$ac_header> | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30462 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30463 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30464 | case "(($ac_try" in | 
 | 30465 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30466 |   *) ac_try_echo=$ac_try;; | 
 | 30467 | esac | 
 | 30468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30469 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30470 |   ac_status=$? | 
 | 30471 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30472 |   rm -f conftest.er1 | 
 | 30473 |   cat conftest.err >&5 | 
 | 30474 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30475 |   (exit $ac_status); } >/dev/null; then | 
 | 30476 |   if test -s conftest.err; then | 
 | 30477 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 30478 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 30479 |   else | 
 | 30480 |     ac_cpp_err= | 
 | 30481 |   fi | 
 | 30482 | else | 
 | 30483 |   ac_cpp_err=yes | 
 | 30484 | fi | 
 | 30485 | if test -z "$ac_cpp_err"; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30486 |   ac_header_preproc=yes | 
 | 30487 | else | 
 | 30488 |   echo "$as_me: failed program was:" >&5 | 
 | 30489 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30490 |  | 
 | 30491 |   ac_header_preproc=no | 
 | 30492 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30493 |  | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30494 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30495 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30496 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30497 |  | 
 | 30498 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30500 |   yes:no: ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30501 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30502 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 30503 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30504 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30505 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30506 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30507 |   no:yes:* ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30508 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30509 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 30510 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30511 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30512 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30513 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30514 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30515 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30516 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30517 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30518 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30519 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30520 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30521 | ## ----------------------------------- ## | 
 | 30522 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30523 | ## ----------------------------------- ## | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30524 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30525 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30526 |     ;; | 
 | 30527 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30528 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30531 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30532 | else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30533 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30534 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30535 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30536 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30537 | echo "${ECHO_T}$ac_res" >&6; } | 
| Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30538 |  | 
 | 30539 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30541 |   cat >>confdefs.h <<_ACEOF | 
 | 30542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30543 | _ACEOF | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30544 |  | 
 | 30545 | fi | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30546 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30547 | done | 
 | 30548 |  | 
| John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30549 |  | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30550 |  | 
| Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30551 |  | 
| Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30552 |  | 
 | 30553 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30554 | do | 
 | 30555 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30557 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30559 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30560 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30561 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30562 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30563 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30564 | echo "${ECHO_T}$ac_res" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30565 | else | 
 | 30566 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30567 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30569 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30570 | /* confdefs.h.  */ | 
 | 30571 | _ACEOF | 
 | 30572 | cat confdefs.h >>conftest.$ac_ext | 
 | 30573 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30574 | /* end confdefs.h.  */ | 
 | 30575 | $ac_includes_default | 
 | 30576 | #include <$ac_header> | 
 | 30577 | _ACEOF | 
 | 30578 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30579 | if { (ac_try="$ac_compile" | 
 | 30580 | case "(($ac_try" in | 
 | 30581 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30582 |   *) ac_try_echo=$ac_try;; | 
 | 30583 | esac | 
 | 30584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30585 |   (eval "$ac_compile") 2>conftest.er1 | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30586 |   ac_status=$? | 
 | 30587 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30588 |   rm -f conftest.er1 | 
 | 30589 |   cat conftest.err >&5 | 
 | 30590 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30591 |   (exit $ac_status); } && | 
 | 30592 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30593 |   { (case "(($ac_try" in | 
 | 30594 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30595 |   *) ac_try_echo=$ac_try;; | 
 | 30596 | esac | 
 | 30597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30598 |   (eval "$ac_try") 2>&5 | 
 | 30599 |   ac_status=$? | 
 | 30600 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30601 |   (exit $ac_status); }; } && | 
 | 30602 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30603 |   { (case "(($ac_try" in | 
 | 30604 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30605 |   *) ac_try_echo=$ac_try;; | 
 | 30606 | esac | 
 | 30607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30608 |   (eval "$ac_try") 2>&5 | 
 | 30609 |   ac_status=$? | 
 | 30610 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30611 |   (exit $ac_status); }; }; then | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30612 |   ac_header_compiler=yes | 
 | 30613 | else | 
 | 30614 |   echo "$as_me: failed program was:" >&5 | 
 | 30615 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30616 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30617 | 	ac_header_compiler=no | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30618 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30619 |  | 
 | 30620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30621 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30622 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30623 |  | 
 | 30624 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30625 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30627 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30628 | /* confdefs.h.  */ | 
 | 30629 | _ACEOF | 
 | 30630 | cat confdefs.h >>conftest.$ac_ext | 
 | 30631 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30632 | /* end confdefs.h.  */ | 
 | 30633 | #include <$ac_header> | 
 | 30634 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30635 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30636 | case "(($ac_try" in | 
 | 30637 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30638 |   *) ac_try_echo=$ac_try;; | 
 | 30639 | esac | 
 | 30640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30641 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30642 |   ac_status=$? | 
 | 30643 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30644 |   rm -f conftest.er1 | 
 | 30645 |   cat conftest.err >&5 | 
 | 30646 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30647 |   (exit $ac_status); } >/dev/null; then | 
 | 30648 |   if test -s conftest.err; then | 
 | 30649 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 30650 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 30651 |   else | 
 | 30652 |     ac_cpp_err= | 
 | 30653 |   fi | 
 | 30654 | else | 
 | 30655 |   ac_cpp_err=yes | 
 | 30656 | fi | 
 | 30657 | if test -z "$ac_cpp_err"; then | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30658 |   ac_header_preproc=yes | 
 | 30659 | else | 
 | 30660 |   echo "$as_me: failed program was:" >&5 | 
 | 30661 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30662 |  | 
 | 30663 |   ac_header_preproc=no | 
 | 30664 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30665 |  | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30666 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30667 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30668 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30669 |  | 
 | 30670 | # So?  What about this header? | 
 | 30671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30672 |   yes:no: ) | 
 | 30673 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 30675 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 30677 |     ac_header_preproc=yes | 
 | 30678 |     ;; | 
 | 30679 |   no:yes:* ) | 
 | 30680 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 30682 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30683 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30684 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30686 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30687 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30688 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30690 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30692 |     ( cat <<\_ASBOX | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30693 | ## ----------------------------------- ## | 
 | 30694 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30695 | ## ----------------------------------- ## | 
 | 30696 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30697 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30698 |     ;; | 
 | 30699 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30700 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30703 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30704 | else | 
 | 30705 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 30706 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30707 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30708 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30709 | echo "${ECHO_T}$ac_res" >&6; } | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30710 |  | 
 | 30711 | fi | 
 | 30712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30713 |   cat >>confdefs.h <<_ACEOF | 
 | 30714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 30715 | _ACEOF | 
 | 30716 |  | 
 | 30717 | fi | 
 | 30718 |  | 
 | 30719 | done | 
 | 30720 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30721 | if test "$ENABLE_THREADS" -eq 1 ; then | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30722 |  | 
 | 30723 | for ac_header in pthread.h | 
 | 30724 | do | 
 | 30725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 30726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30727 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30730 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30731 | fi | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30732 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30733 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30734 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30735 | else | 
 | 30736 |   # Is the header compilable? | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30737 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30738 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30739 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30740 | /* confdefs.h.  */ | 
 | 30741 | _ACEOF | 
 | 30742 | cat confdefs.h >>conftest.$ac_ext | 
 | 30743 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30744 | /* end confdefs.h.  */ | 
 | 30745 | $ac_includes_default | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30746 | #include <$ac_header> | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30747 | _ACEOF | 
 | 30748 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30749 | if { (ac_try="$ac_compile" | 
 | 30750 | case "(($ac_try" in | 
 | 30751 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30752 |   *) ac_try_echo=$ac_try;; | 
 | 30753 | esac | 
 | 30754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30755 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30756 |   ac_status=$? | 
 | 30757 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30758 |   rm -f conftest.er1 | 
 | 30759 |   cat conftest.err >&5 | 
 | 30760 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30761 |   (exit $ac_status); } && | 
 | 30762 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30763 |   { (case "(($ac_try" in | 
 | 30764 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30765 |   *) ac_try_echo=$ac_try;; | 
 | 30766 | esac | 
 | 30767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30768 |   (eval "$ac_try") 2>&5 | 
 | 30769 |   ac_status=$? | 
 | 30770 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30771 |   (exit $ac_status); }; } && | 
 | 30772 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30773 |   { (case "(($ac_try" in | 
 | 30774 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30775 |   *) ac_try_echo=$ac_try;; | 
 | 30776 | esac | 
 | 30777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30778 |   (eval "$ac_try") 2>&5 | 
 | 30779 |   ac_status=$? | 
 | 30780 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30781 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30782 |   ac_header_compiler=yes | 
 | 30783 | else | 
 | 30784 |   echo "$as_me: failed program was:" >&5 | 
 | 30785 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30786 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30787 | 	ac_header_compiler=no | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30788 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30789 |  | 
 | 30790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30791 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30792 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30793 |  | 
 | 30794 | # Is the header present? | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30795 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30796 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30797 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30798 | /* confdefs.h.  */ | 
 | 30799 | _ACEOF | 
 | 30800 | cat confdefs.h >>conftest.$ac_ext | 
 | 30801 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30802 | /* end confdefs.h.  */ | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30803 | #include <$ac_header> | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30804 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30805 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30806 | case "(($ac_try" in | 
 | 30807 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30808 |   *) ac_try_echo=$ac_try;; | 
 | 30809 | esac | 
 | 30810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30811 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30812 |   ac_status=$? | 
 | 30813 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30814 |   rm -f conftest.er1 | 
 | 30815 |   cat conftest.err >&5 | 
 | 30816 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30817 |   (exit $ac_status); } >/dev/null; then | 
 | 30818 |   if test -s conftest.err; then | 
 | 30819 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 30820 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 30821 |   else | 
 | 30822 |     ac_cpp_err= | 
 | 30823 |   fi | 
 | 30824 | else | 
 | 30825 |   ac_cpp_err=yes | 
 | 30826 | fi | 
 | 30827 | if test -z "$ac_cpp_err"; then | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30828 |   ac_header_preproc=yes | 
 | 30829 | else | 
 | 30830 |   echo "$as_me: failed program was:" >&5 | 
 | 30831 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30832 |  | 
 | 30833 |   ac_header_preproc=no | 
 | 30834 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30835 |  | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30836 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30837 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 30838 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30839 |  | 
 | 30840 | # So?  What about this header? | 
 | 30841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 30842 |   yes:no: ) | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30843 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 30844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 30845 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 30846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30847 |     ac_header_preproc=yes | 
 | 30848 |     ;; | 
 | 30849 |   no:yes:* ) | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30850 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 30851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 30852 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 30853 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 30854 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 30855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 30856 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 30857 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 30858 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 30859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 30860 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 30861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30862 |     ( cat <<\_ASBOX | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30863 | ## ----------------------------------- ## | 
 | 30864 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 30865 | ## ----------------------------------- ## | 
 | 30866 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30867 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30868 |     ;; | 
 | 30869 | esac | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30870 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30871 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30872 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30873 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30874 | else | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30875 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30876 | fi | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30877 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30878 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30879 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30880 |  | 
 | 30881 | fi | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30882 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 30883 |   cat >>confdefs.h <<_ACEOF | 
 | 30884 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 30885 | _ACEOF | 
 | 30886 |  HAVE_PTHREAD=1 | 
| Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30887 |  | 
 | 30888 | else | 
 | 30889 |   HAVE_PTHREAD=0 | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30890 |  | 
 | 30891 | fi | 
 | 30892 |  | 
| Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30893 | done | 
| Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30894 |  | 
 | 30895 | else | 
 | 30896 |   HAVE_PTHREAD=0 | 
| Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30897 |  | 
 | 30898 | fi | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30899 |  | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30900 | if test "$llvm_cv_enable_libffi" = "yes" ; then | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30901 |  | 
 | 30902 |  | 
 | 30903 | for ac_header in ffi.h ffi/ffi.h | 
 | 30904 | do | 
 | 30905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 30906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30907 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 30908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 30909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 30910 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 30911 | fi | 
 | 30912 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 30913 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 30914 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 30915 | else | 
 | 30916 |   # Is the header compilable? | 
 | 30917 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 30918 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
 | 30919 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30920 | /* confdefs.h.  */ | 
 | 30921 | _ACEOF | 
 | 30922 | cat confdefs.h >>conftest.$ac_ext | 
 | 30923 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30924 | /* end confdefs.h.  */ | 
 | 30925 | $ac_includes_default | 
 | 30926 | #include <$ac_header> | 
 | 30927 | _ACEOF | 
 | 30928 | rm -f conftest.$ac_objext | 
 | 30929 | if { (ac_try="$ac_compile" | 
 | 30930 | case "(($ac_try" in | 
 | 30931 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30932 |   *) ac_try_echo=$ac_try;; | 
 | 30933 | esac | 
 | 30934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30935 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 30936 |   ac_status=$? | 
 | 30937 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30938 |   rm -f conftest.er1 | 
 | 30939 |   cat conftest.err >&5 | 
 | 30940 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30941 |   (exit $ac_status); } && | 
 | 30942 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 30943 |   { (case "(($ac_try" in | 
 | 30944 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30945 |   *) ac_try_echo=$ac_try;; | 
 | 30946 | esac | 
 | 30947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30948 |   (eval "$ac_try") 2>&5 | 
 | 30949 |   ac_status=$? | 
 | 30950 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30951 |   (exit $ac_status); }; } && | 
 | 30952 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 30953 |   { (case "(($ac_try" in | 
 | 30954 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30955 |   *) ac_try_echo=$ac_try;; | 
 | 30956 | esac | 
 | 30957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30958 |   (eval "$ac_try") 2>&5 | 
 | 30959 |   ac_status=$? | 
 | 30960 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 30961 |   (exit $ac_status); }; }; then | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30962 |   ac_header_compiler=yes | 
 | 30963 | else | 
 | 30964 |   echo "$as_me: failed program was:" >&5 | 
 | 30965 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 30966 |  | 
 | 30967 | 	ac_header_compiler=no | 
 | 30968 | fi | 
 | 30969 |  | 
 | 30970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30971 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 30972 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
 | 30973 |  | 
 | 30974 | # Is the header present? | 
 | 30975 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 30976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
 | 30977 | cat >conftest.$ac_ext <<_ACEOF | 
 | 30978 | /* confdefs.h.  */ | 
 | 30979 | _ACEOF | 
 | 30980 | cat confdefs.h >>conftest.$ac_ext | 
 | 30981 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 30982 | /* end confdefs.h.  */ | 
 | 30983 | #include <$ac_header> | 
 | 30984 | _ACEOF | 
 | 30985 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 30986 | case "(($ac_try" in | 
 | 30987 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 30988 |   *) ac_try_echo=$ac_try;; | 
 | 30989 | esac | 
 | 30990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 30991 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
 | 30992 |   ac_status=$? | 
 | 30993 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 30994 |   rm -f conftest.er1 | 
 | 30995 |   cat conftest.err >&5 | 
 | 30996 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30997 |   (exit $ac_status); } >/dev/null; then | 
 | 30998 |   if test -s conftest.err; then | 
 | 30999 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 31000 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 31001 |   else | 
 | 31002 |     ac_cpp_err= | 
 | 31003 |   fi | 
 | 31004 | else | 
 | 31005 |   ac_cpp_err=yes | 
 | 31006 | fi | 
 | 31007 | if test -z "$ac_cpp_err"; then | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31008 |   ac_header_preproc=yes | 
 | 31009 | else | 
 | 31010 |   echo "$as_me: failed program was:" >&5 | 
 | 31011 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31012 |  | 
 | 31013 |   ac_header_preproc=no | 
 | 31014 | fi | 
 | 31015 |  | 
 | 31016 | rm -f conftest.err conftest.$ac_ext | 
 | 31017 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 31018 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
 | 31019 |  | 
 | 31020 | # So?  What about this header? | 
 | 31021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 31022 |   yes:no: ) | 
 | 31023 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 31024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 31025 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 31026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 31027 |     ac_header_preproc=yes | 
 | 31028 |     ;; | 
 | 31029 |   no:yes:* ) | 
 | 31030 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 31031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
 | 31032 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 31033 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 31034 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 31035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 31036 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 31037 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 31038 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 31039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
 | 31040 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 31041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
 | 31042 |     ( cat <<\_ASBOX | 
 | 31043 | ## ----------------------------------- ## | 
 | 31044 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 31045 | ## ----------------------------------- ## | 
 | 31046 | _ASBOX | 
 | 31047 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 31048 |     ;; | 
 | 31049 | esac | 
 | 31050 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 31051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 31052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 31053 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31054 | else | 
 | 31055 |   eval "$as_ac_Header=\$ac_header_preproc" | 
 | 31056 | fi | 
 | 31057 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 31058 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 31059 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 31060 |  | 
 | 31061 | fi | 
 | 31062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 31063 |   cat >>confdefs.h <<_ACEOF | 
 | 31064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 31065 | _ACEOF | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31066 |  | 
 | 31067 | fi | 
 | 31068 |  | 
 | 31069 | done | 
 | 31070 |  | 
| Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31071 | fi | 
| Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31072 |  | 
| Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31073 |  | 
| Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31074 |  | 
| Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31075 |   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 | 
 | 31076 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } | 
 | 31077 | if test "${ac_cv_huge_val_sanity+set}" = set; then | 
 | 31078 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31079 | else | 
 | 31080 |  | 
| Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31081 |     ac_ext=cpp | 
 | 31082 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 31083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 31084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 31085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31086 |  | 
| Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31087 |     CXXFLAGS=-pedantic | 
| Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31088 |     if test "$cross_compiling" = yes; then | 
 | 31089 |   ac_cv_huge_val_sanity=yes | 
 | 31090 | else | 
 | 31091 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 31092 | /* confdefs.h.  */ | 
 | 31093 | _ACEOF | 
 | 31094 | cat confdefs.h >>conftest.$ac_ext | 
 | 31095 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31096 | /* end confdefs.h.  */ | 
 | 31097 | #include <math.h> | 
 | 31098 | int | 
 | 31099 | main () | 
 | 31100 | { | 
 | 31101 | double x = HUGE_VAL; return x != x; | 
 | 31102 |   ; | 
 | 31103 |   return 0; | 
 | 31104 | } | 
 | 31105 | _ACEOF | 
 | 31106 | rm -f conftest$ac_exeext | 
 | 31107 | if { (ac_try="$ac_link" | 
 | 31108 | case "(($ac_try" in | 
 | 31109 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31110 |   *) ac_try_echo=$ac_try;; | 
 | 31111 | esac | 
 | 31112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31113 |   (eval "$ac_link") 2>&5 | 
 | 31114 |   ac_status=$? | 
 | 31115 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31116 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
 | 31117 |   { (case "(($ac_try" in | 
 | 31118 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31119 |   *) ac_try_echo=$ac_try;; | 
 | 31120 | esac | 
 | 31121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31122 |   (eval "$ac_try") 2>&5 | 
 | 31123 |   ac_status=$? | 
 | 31124 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31125 |   (exit $ac_status); }; }; then | 
 | 31126 |   ac_cv_huge_val_sanity=yes | 
 | 31127 | else | 
 | 31128 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 31129 | echo "$as_me: failed program was:" >&5 | 
 | 31130 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31131 |  | 
 | 31132 | ( exit $ac_status ) | 
 | 31133 | ac_cv_huge_val_sanity=no | 
 | 31134 | fi | 
 | 31135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
 | 31136 | fi | 
 | 31137 |  | 
 | 31138 |  | 
 | 31139 |     ac_ext=c | 
 | 31140 | ac_cpp='$CPP $CPPFLAGS' | 
 | 31141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 31142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 31143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 31144 |  | 
 | 31145 |  | 
 | 31146 | fi | 
 | 31147 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 | 
 | 31148 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } | 
 | 31149 |   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity | 
 | 31150 |  | 
 | 31151 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31152 | { echo "$as_me:$LINENO: checking for pid_t" >&5 | 
 | 31153 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31154 | if test "${ac_cv_type_pid_t+set}" = set; then | 
 | 31155 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31156 | else | 
 | 31157 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31158 | /* confdefs.h.  */ | 
 | 31159 | _ACEOF | 
 | 31160 | cat confdefs.h >>conftest.$ac_ext | 
 | 31161 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31162 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31163 | $ac_includes_default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | typedef pid_t ac__type_new_; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31165 | int | 
 | 31166 | main () | 
 | 31167 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31168 | if ((ac__type_new_ *) 0) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31169 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31170 | if (sizeof (ac__type_new_)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31171 |   return 0; | 
 | 31172 |   ; | 
 | 31173 |   return 0; | 
 | 31174 | } | 
 | 31175 | _ACEOF | 
 | 31176 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31177 | if { (ac_try="$ac_compile" | 
 | 31178 | case "(($ac_try" in | 
 | 31179 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31180 |   *) ac_try_echo=$ac_try;; | 
 | 31181 | esac | 
 | 31182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31183 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31184 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31185 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31186 |   rm -f conftest.er1 | 
 | 31187 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31188 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31189 |   (exit $ac_status); } && | 
 | 31190 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31191 |   { (case "(($ac_try" in | 
 | 31192 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31193 |   *) ac_try_echo=$ac_try;; | 
 | 31194 | esac | 
 | 31195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31196 |   (eval "$ac_try") 2>&5 | 
 | 31197 |   ac_status=$? | 
 | 31198 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31199 |   (exit $ac_status); }; } && | 
 | 31200 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31201 |   { (case "(($ac_try" in | 
 | 31202 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31203 |   *) ac_try_echo=$ac_try;; | 
 | 31204 | esac | 
 | 31205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31206 |   (eval "$ac_try") 2>&5 | 
 | 31207 |   ac_status=$? | 
 | 31208 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31209 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31210 |   ac_cv_type_pid_t=yes | 
 | 31211 | else | 
 | 31212 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31213 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31214 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31215 | 	ac_cv_type_pid_t=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31216 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31217 |  | 
 | 31218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31219 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31220 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | 
 | 31221 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31222 | if test $ac_cv_type_pid_t = yes; then | 
 | 31223 |   : | 
 | 31224 | else | 
 | 31225 |  | 
 | 31226 | cat >>confdefs.h <<_ACEOF | 
 | 31227 | #define pid_t int | 
 | 31228 | _ACEOF | 
 | 31229 |  | 
 | 31230 | fi | 
 | 31231 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31232 | { echo "$as_me:$LINENO: checking for size_t" >&5 | 
 | 31233 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 | if test "${ac_cv_type_size_t+set}" = set; then | 
 | 31235 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31236 | else | 
 | 31237 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31238 | /* confdefs.h.  */ | 
 | 31239 | _ACEOF | 
 | 31240 | cat confdefs.h >>conftest.$ac_ext | 
 | 31241 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31242 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31243 | $ac_includes_default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | typedef size_t ac__type_new_; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31245 | int | 
 | 31246 | main () | 
 | 31247 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31248 | if ((ac__type_new_ *) 0) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31249 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31250 | if (sizeof (ac__type_new_)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31251 |   return 0; | 
 | 31252 |   ; | 
 | 31253 |   return 0; | 
 | 31254 | } | 
 | 31255 | _ACEOF | 
 | 31256 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31257 | if { (ac_try="$ac_compile" | 
 | 31258 | case "(($ac_try" in | 
 | 31259 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31260 |   *) ac_try_echo=$ac_try;; | 
 | 31261 | esac | 
 | 31262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31263 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31264 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31265 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31266 |   rm -f conftest.er1 | 
 | 31267 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31268 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31269 |   (exit $ac_status); } && | 
 | 31270 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31271 |   { (case "(($ac_try" in | 
 | 31272 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31273 |   *) ac_try_echo=$ac_try;; | 
 | 31274 | esac | 
 | 31275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31276 |   (eval "$ac_try") 2>&5 | 
 | 31277 |   ac_status=$? | 
 | 31278 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31279 |   (exit $ac_status); }; } && | 
 | 31280 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31281 |   { (case "(($ac_try" in | 
 | 31282 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31283 |   *) ac_try_echo=$ac_try;; | 
 | 31284 | esac | 
 | 31285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31286 |   (eval "$ac_try") 2>&5 | 
 | 31287 |   ac_status=$? | 
 | 31288 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31289 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31290 |   ac_cv_type_size_t=yes | 
 | 31291 | else | 
 | 31292 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31293 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31294 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31295 | 	ac_cv_type_size_t=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31296 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31297 |  | 
 | 31298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31299 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31300 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | 
 | 31301 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31302 | if test $ac_cv_type_size_t = yes; then | 
 | 31303 |   : | 
 | 31304 | else | 
 | 31305 |  | 
 | 31306 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31307 | #define size_t unsigned int | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31308 | _ACEOF | 
 | 31309 |  | 
 | 31310 | fi | 
 | 31311 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31312 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | 
 | 31313 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31314 | if test "${ac_cv_type_signal+set}" = set; then | 
 | 31315 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31316 | else | 
 | 31317 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 31318 | /* confdefs.h.  */ | 
 | 31319 | _ACEOF | 
 | 31320 | cat confdefs.h >>conftest.$ac_ext | 
 | 31321 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31322 | /* end confdefs.h.  */ | 
 | 31323 | #include <sys/types.h> | 
 | 31324 | #include <signal.h> | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31325 |  | 
 | 31326 | int | 
 | 31327 | main () | 
 | 31328 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31329 | return *(signal (0, 0)) (0) == 1; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31330 |   ; | 
 | 31331 |   return 0; | 
 | 31332 | } | 
 | 31333 | _ACEOF | 
 | 31334 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31335 | if { (ac_try="$ac_compile" | 
 | 31336 | case "(($ac_try" in | 
 | 31337 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31338 |   *) ac_try_echo=$ac_try;; | 
 | 31339 | esac | 
 | 31340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31341 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31342 |   ac_status=$? | 
 | 31343 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31344 |   rm -f conftest.er1 | 
 | 31345 |   cat conftest.err >&5 | 
 | 31346 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31347 |   (exit $ac_status); } && | 
 | 31348 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31349 |   { (case "(($ac_try" in | 
 | 31350 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31351 |   *) ac_try_echo=$ac_try;; | 
 | 31352 | esac | 
 | 31353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31354 |   (eval "$ac_try") 2>&5 | 
 | 31355 |   ac_status=$? | 
 | 31356 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31357 |   (exit $ac_status); }; } && | 
 | 31358 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31359 |   { (case "(($ac_try" in | 
 | 31360 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31361 |   *) ac_try_echo=$ac_try;; | 
 | 31362 | esac | 
 | 31363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31364 |   (eval "$ac_try") 2>&5 | 
 | 31365 |   ac_status=$? | 
 | 31366 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31367 |   (exit $ac_status); }; }; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31368 |   ac_cv_type_signal=int | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31369 | else | 
 | 31370 |   echo "$as_me: failed program was:" >&5 | 
 | 31371 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31372 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31373 | 	ac_cv_type_signal=void | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31374 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31375 |  | 
 | 31376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31377 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31378 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 
 | 31379 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31380 |  | 
 | 31381 | cat >>confdefs.h <<_ACEOF | 
 | 31382 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 31383 | _ACEOF | 
 | 31384 |  | 
 | 31385 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31386 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 
 | 31387 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31388 | if test "${ac_cv_struct_tm+set}" = set; then | 
 | 31389 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31390 | else | 
 | 31391 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 31392 | /* confdefs.h.  */ | 
 | 31393 | _ACEOF | 
 | 31394 | cat confdefs.h >>conftest.$ac_ext | 
 | 31395 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31396 | /* end confdefs.h.  */ | 
 | 31397 | #include <sys/types.h> | 
 | 31398 | #include <time.h> | 
 | 31399 |  | 
 | 31400 | int | 
 | 31401 | main () | 
 | 31402 | { | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31403 | struct tm *tp; tp->tm_sec; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31404 |   ; | 
 | 31405 |   return 0; | 
 | 31406 | } | 
 | 31407 | _ACEOF | 
 | 31408 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31409 | if { (ac_try="$ac_compile" | 
 | 31410 | case "(($ac_try" in | 
 | 31411 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31412 |   *) ac_try_echo=$ac_try;; | 
 | 31413 | esac | 
 | 31414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31415 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31416 |   ac_status=$? | 
 | 31417 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31418 |   rm -f conftest.er1 | 
 | 31419 |   cat conftest.err >&5 | 
 | 31420 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31421 |   (exit $ac_status); } && | 
 | 31422 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31423 |   { (case "(($ac_try" in | 
 | 31424 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31425 |   *) ac_try_echo=$ac_try;; | 
 | 31426 | esac | 
 | 31427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31428 |   (eval "$ac_try") 2>&5 | 
 | 31429 |   ac_status=$? | 
 | 31430 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31431 |   (exit $ac_status); }; } && | 
 | 31432 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31433 |   { (case "(($ac_try" in | 
 | 31434 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31435 |   *) ac_try_echo=$ac_try;; | 
 | 31436 | esac | 
 | 31437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31438 |   (eval "$ac_try") 2>&5 | 
 | 31439 |   ac_status=$? | 
 | 31440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31441 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31442 |   ac_cv_struct_tm=time.h | 
 | 31443 | else | 
 | 31444 |   echo "$as_me: failed program was:" >&5 | 
 | 31445 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31446 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31447 | 	ac_cv_struct_tm=sys/time.h | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31448 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31449 |  | 
 | 31450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31451 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31452 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 
 | 31453 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31454 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 31455 |  | 
 | 31456 | cat >>confdefs.h <<\_ACEOF | 
 | 31457 | #define TM_IN_SYS_TIME 1 | 
 | 31458 | _ACEOF | 
 | 31459 |  | 
 | 31460 | fi | 
 | 31461 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31462 | { echo "$as_me:$LINENO: checking for int64_t" >&5 | 
 | 31463 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31464 | if test "${ac_cv_type_int64_t+set}" = set; then | 
 | 31465 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31466 | else | 
 | 31467 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31468 | /* confdefs.h.  */ | 
 | 31469 | _ACEOF | 
 | 31470 | cat confdefs.h >>conftest.$ac_ext | 
 | 31471 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31472 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31473 | $ac_includes_default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31474 | typedef int64_t ac__type_new_; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31475 | int | 
 | 31476 | main () | 
 | 31477 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31478 | if ((ac__type_new_ *) 0) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31479 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31480 | if (sizeof (ac__type_new_)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31481 |   return 0; | 
 | 31482 |   ; | 
 | 31483 |   return 0; | 
 | 31484 | } | 
 | 31485 | _ACEOF | 
 | 31486 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31487 | if { (ac_try="$ac_compile" | 
 | 31488 | case "(($ac_try" in | 
 | 31489 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31490 |   *) ac_try_echo=$ac_try;; | 
 | 31491 | esac | 
 | 31492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31493 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31494 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31495 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31496 |   rm -f conftest.er1 | 
 | 31497 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31498 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31499 |   (exit $ac_status); } && | 
 | 31500 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31501 |   { (case "(($ac_try" in | 
 | 31502 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31503 |   *) ac_try_echo=$ac_try;; | 
 | 31504 | esac | 
 | 31505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31506 |   (eval "$ac_try") 2>&5 | 
 | 31507 |   ac_status=$? | 
 | 31508 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31509 |   (exit $ac_status); }; } && | 
 | 31510 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31511 |   { (case "(($ac_try" in | 
 | 31512 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31513 |   *) ac_try_echo=$ac_try;; | 
 | 31514 | esac | 
 | 31515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31516 |   (eval "$ac_try") 2>&5 | 
 | 31517 |   ac_status=$? | 
 | 31518 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31519 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31520 |   ac_cv_type_int64_t=yes | 
 | 31521 | else | 
 | 31522 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31523 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31524 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31525 | 	ac_cv_type_int64_t=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31526 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31527 |  | 
 | 31528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31529 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31530 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | 
 | 31531 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31532 | if test $ac_cv_type_int64_t = yes; then | 
 | 31533 |  | 
 | 31534 | cat >>confdefs.h <<_ACEOF | 
 | 31535 | #define HAVE_INT64_T 1 | 
 | 31536 | _ACEOF | 
 | 31537 |  | 
 | 31538 |  | 
 | 31539 | else | 
 | 31540 |   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 | 
 | 31541 | echo "$as_me: error: Type int64_t required but not found" >&2;} | 
 | 31542 |    { (exit 1); exit 1; }; } | 
 | 31543 | fi | 
 | 31544 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31545 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | 
 | 31546 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31547 | if test "${ac_cv_type_uint64_t+set}" = set; then | 
 | 31548 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31549 | else | 
 | 31550 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31551 | /* confdefs.h.  */ | 
 | 31552 | _ACEOF | 
 | 31553 | cat confdefs.h >>conftest.$ac_ext | 
 | 31554 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31555 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31556 | $ac_includes_default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | typedef uint64_t ac__type_new_; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31558 | int | 
 | 31559 | main () | 
 | 31560 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31561 | if ((ac__type_new_ *) 0) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31562 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31563 | if (sizeof (ac__type_new_)) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31564 |   return 0; | 
 | 31565 |   ; | 
 | 31566 |   return 0; | 
 | 31567 | } | 
 | 31568 | _ACEOF | 
 | 31569 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31570 | if { (ac_try="$ac_compile" | 
 | 31571 | case "(($ac_try" in | 
 | 31572 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31573 |   *) ac_try_echo=$ac_try;; | 
 | 31574 | esac | 
 | 31575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31576 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31577 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31578 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31579 |   rm -f conftest.er1 | 
 | 31580 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31581 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31582 |   (exit $ac_status); } && | 
 | 31583 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31584 |   { (case "(($ac_try" in | 
 | 31585 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31586 |   *) ac_try_echo=$ac_try;; | 
 | 31587 | esac | 
 | 31588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31589 |   (eval "$ac_try") 2>&5 | 
 | 31590 |   ac_status=$? | 
 | 31591 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31592 |   (exit $ac_status); }; } && | 
 | 31593 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31594 |   { (case "(($ac_try" in | 
 | 31595 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31596 |   *) ac_try_echo=$ac_try;; | 
 | 31597 | esac | 
 | 31598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31599 |   (eval "$ac_try") 2>&5 | 
 | 31600 |   ac_status=$? | 
 | 31601 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31602 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31603 |   ac_cv_type_uint64_t=yes | 
 | 31604 | else | 
 | 31605 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31606 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31607 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31608 | 	ac_cv_type_uint64_t=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31609 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31610 |  | 
 | 31611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31612 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31613 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | 
 | 31614 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31615 | if test $ac_cv_type_uint64_t = yes; then | 
 | 31616 |  | 
 | 31617 | cat >>confdefs.h <<_ACEOF | 
 | 31618 | #define HAVE_UINT64_T 1 | 
 | 31619 | _ACEOF | 
 | 31620 |  | 
 | 31621 |  | 
 | 31622 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31623 |   { echo "$as_me:$LINENO: checking for u_int64_t" >&5 | 
 | 31624 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31625 | if test "${ac_cv_type_u_int64_t+set}" = set; then | 
 | 31626 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31627 | else | 
 | 31628 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31629 | /* confdefs.h.  */ | 
 | 31630 | _ACEOF | 
 | 31631 | cat confdefs.h >>conftest.$ac_ext | 
 | 31632 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31633 | /* end confdefs.h.  */ | 
 | 31634 | $ac_includes_default | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | typedef u_int64_t ac__type_new_; | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31636 | int | 
 | 31637 | main () | 
 | 31638 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31639 | if ((ac__type_new_ *) 0) | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31640 |   return 0; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31641 | if (sizeof (ac__type_new_)) | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31642 |   return 0; | 
 | 31643 |   ; | 
 | 31644 |   return 0; | 
 | 31645 | } | 
 | 31646 | _ACEOF | 
 | 31647 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31648 | if { (ac_try="$ac_compile" | 
 | 31649 | case "(($ac_try" in | 
 | 31650 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31651 |   *) ac_try_echo=$ac_try;; | 
 | 31652 | esac | 
 | 31653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31654 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31655 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31656 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31657 |   rm -f conftest.er1 | 
 | 31658 |   cat conftest.err >&5 | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31659 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31660 |   (exit $ac_status); } && | 
 | 31661 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31662 |   { (case "(($ac_try" in | 
 | 31663 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31664 |   *) ac_try_echo=$ac_try;; | 
 | 31665 | esac | 
 | 31666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31667 |   (eval "$ac_try") 2>&5 | 
 | 31668 |   ac_status=$? | 
 | 31669 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31670 |   (exit $ac_status); }; } && | 
 | 31671 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 31672 |   { (case "(($ac_try" in | 
 | 31673 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31674 |   *) ac_try_echo=$ac_try;; | 
 | 31675 | esac | 
 | 31676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31677 |   (eval "$ac_try") 2>&5 | 
 | 31678 |   ac_status=$? | 
 | 31679 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31680 |   (exit $ac_status); }; }; then | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31681 |   ac_cv_type_u_int64_t=yes | 
 | 31682 | else | 
 | 31683 |   echo "$as_me: failed program was:" >&5 | 
 | 31684 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31685 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31686 | 	ac_cv_type_u_int64_t=no | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31687 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31688 |  | 
 | 31689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31690 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31691 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | 
 | 31692 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31693 | if test $ac_cv_type_u_int64_t = yes; then | 
 | 31694 |  | 
 | 31695 | cat >>confdefs.h <<_ACEOF | 
 | 31696 | #define HAVE_U_INT64_T 1 | 
 | 31697 | _ACEOF | 
 | 31698 |  | 
 | 31699 |  | 
| Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31700 | else | 
 | 31701 |   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 | 
 | 31702 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} | 
 | 31703 |    { (exit 1); exit 1; }; } | 
 | 31704 | fi | 
 | 31705 |  | 
| John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31706 | fi | 
 | 31707 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31708 |  | 
 | 31709 |  | 
 | 31710 |  | 
 | 31711 |  | 
 | 31712 |  | 
 | 31713 |  | 
 | 31714 |  | 
| Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31715 |  | 
 | 31716 |  | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31717 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31718 | do | 
 | 31719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31720 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 31721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 31722 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31723 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31724 | else | 
 | 31725 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31726 | /* confdefs.h.  */ | 
 | 31727 | _ACEOF | 
 | 31728 | cat confdefs.h >>conftest.$ac_ext | 
 | 31729 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31730 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 31732 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 31733 | #define $ac_func innocuous_$ac_func | 
 | 31734 |  | 
 | 31735 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 31736 |     which can conflict with char $ac_func (); below. | 
 | 31737 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 31738 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 31739 |  | 
 | 31740 | #ifdef __STDC__ | 
 | 31741 | # include <limits.h> | 
 | 31742 | #else | 
 | 31743 | # include <assert.h> | 
 | 31744 | #endif | 
 | 31745 |  | 
 | 31746 | #undef $ac_func | 
 | 31747 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31748 | /* Override any GCC internal prototype to avoid an error. | 
 | 31749 |    Use char because int might match the return type of a GCC | 
 | 31750 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31751 | #ifdef __cplusplus | 
 | 31752 | extern "C" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31753 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31754 | char $ac_func (); | 
 | 31755 | /* The GNU C library defines this for functions which it implements | 
 | 31756 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 31757 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31758 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31759 | choke me | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31760 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31761 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31762 | int | 
 | 31763 | main () | 
 | 31764 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31765 | return $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31766 |   ; | 
 | 31767 |   return 0; | 
 | 31768 | } | 
 | 31769 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31770 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31771 | if { (ac_try="$ac_link" | 
 | 31772 | case "(($ac_try" in | 
 | 31773 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31774 |   *) ac_try_echo=$ac_try;; | 
 | 31775 | esac | 
 | 31776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31777 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31778 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31779 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31780 |   rm -f conftest.er1 | 
 | 31781 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31782 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31783 |   (exit $ac_status); } && | 
 | 31784 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31785 |   { (case "(($ac_try" in | 
 | 31786 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31787 |   *) ac_try_echo=$ac_try;; | 
 | 31788 | esac | 
 | 31789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31790 |   (eval "$ac_try") 2>&5 | 
 | 31791 |   ac_status=$? | 
 | 31792 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31793 |   (exit $ac_status); }; } && | 
 | 31794 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 31795 |   { (case "(($ac_try" in | 
 | 31796 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31797 |   *) ac_try_echo=$ac_try;; | 
 | 31798 | esac | 
 | 31799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31800 |   (eval "$ac_try") 2>&5 | 
 | 31801 |   ac_status=$? | 
 | 31802 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31803 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31804 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31805 | else | 
 | 31806 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31807 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31808 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31809 | 	eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31810 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31811 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31812 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31813 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31814 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31815 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 31816 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 31817 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31818 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 31819 |   cat >>confdefs.h <<_ACEOF | 
 | 31820 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31821 | _ACEOF | 
 | 31822 |  | 
 | 31823 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31824 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31825 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31826 |  | 
 | 31827 |  | 
 | 31828 |  | 
| Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31829 |  | 
| Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31830 | for ac_func in powf fmodf strtof round | 
 | 31831 | do | 
 | 31832 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 31833 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 31834 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 31835 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 31836 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31837 | else | 
 | 31838 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 31839 | /* confdefs.h.  */ | 
 | 31840 | _ACEOF | 
 | 31841 | cat confdefs.h >>conftest.$ac_ext | 
 | 31842 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31843 | /* end confdefs.h.  */ | 
 | 31844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 31845 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 31846 | #define $ac_func innocuous_$ac_func | 
 | 31847 |  | 
 | 31848 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 31849 |     which can conflict with char $ac_func (); below. | 
 | 31850 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 31851 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 31852 |  | 
 | 31853 | #ifdef __STDC__ | 
 | 31854 | # include <limits.h> | 
 | 31855 | #else | 
 | 31856 | # include <assert.h> | 
 | 31857 | #endif | 
 | 31858 |  | 
 | 31859 | #undef $ac_func | 
 | 31860 |  | 
 | 31861 | /* Override any GCC internal prototype to avoid an error. | 
 | 31862 |    Use char because int might match the return type of a GCC | 
 | 31863 |    builtin and then its argument prototype would still apply.  */ | 
 | 31864 | #ifdef __cplusplus | 
 | 31865 | extern "C" | 
 | 31866 | #endif | 
 | 31867 | char $ac_func (); | 
 | 31868 | /* The GNU C library defines this for functions which it implements | 
 | 31869 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 31870 |     something starting with __ and the normal name is an alias.  */ | 
 | 31871 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
 | 31872 | choke me | 
 | 31873 | #endif | 
 | 31874 |  | 
 | 31875 | int | 
 | 31876 | main () | 
 | 31877 | { | 
 | 31878 | return $ac_func (); | 
 | 31879 |   ; | 
 | 31880 |   return 0; | 
 | 31881 | } | 
 | 31882 | _ACEOF | 
 | 31883 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 31884 | if { (ac_try="$ac_link" | 
 | 31885 | case "(($ac_try" in | 
 | 31886 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31887 |   *) ac_try_echo=$ac_try;; | 
 | 31888 | esac | 
 | 31889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31890 |   (eval "$ac_link") 2>conftest.er1 | 
 | 31891 |   ac_status=$? | 
 | 31892 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 31893 |   rm -f conftest.er1 | 
 | 31894 |   cat conftest.err >&5 | 
 | 31895 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31896 |   (exit $ac_status); } && | 
 | 31897 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 31898 |   { (case "(($ac_try" in | 
 | 31899 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31900 |   *) ac_try_echo=$ac_try;; | 
 | 31901 | esac | 
 | 31902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31903 |   (eval "$ac_try") 2>&5 | 
 | 31904 |   ac_status=$? | 
 | 31905 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31906 |   (exit $ac_status); }; } && | 
 | 31907 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 31908 |   { (case "(($ac_try" in | 
 | 31909 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 31910 |   *) ac_try_echo=$ac_try;; | 
 | 31911 | esac | 
 | 31912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 31913 |   (eval "$ac_try") 2>&5 | 
 | 31914 |   ac_status=$? | 
 | 31915 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 31916 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31917 |   eval "$as_ac_var=yes" | 
 | 31918 | else | 
 | 31919 |   echo "$as_me: failed program was:" >&5 | 
 | 31920 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 31921 |  | 
 | 31922 | 	eval "$as_ac_var=no" | 
 | 31923 | fi | 
 | 31924 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31925 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31926 |       conftest$ac_exeext conftest.$ac_ext | 
 | 31927 | fi | 
 | 31928 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 31929 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 31930 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 31931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 31932 |   cat >>confdefs.h <<_ACEOF | 
 | 31933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 31934 | _ACEOF | 
 | 31935 |  | 
 | 31936 | fi | 
 | 31937 | done | 
 | 31938 |  | 
 | 31939 |  | 
 | 31940 |  | 
 | 31941 |  | 
 | 31942 |  | 
| Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31943 |  | 
| Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31944 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday | 
 | 31945 | do | 
 | 31946 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 31947 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 31948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 31949 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 31950 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 31951 | else | 
 | 31952 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 31953 | /* confdefs.h.  */ | 
 | 31954 | _ACEOF | 
 | 31955 | cat confdefs.h >>conftest.$ac_ext | 
 | 31956 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 31957 | /* end confdefs.h.  */ | 
 | 31958 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 31959 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 31960 | #define $ac_func innocuous_$ac_func | 
| Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31961 |  | 
| Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31962 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 31963 |     which can conflict with char $ac_func (); below. | 
 | 31964 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 31965 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 31966 |  | 
 | 31967 | #ifdef __STDC__ | 
 | 31968 | # include <limits.h> | 
 | 31969 | #else | 
 | 31970 | # include <assert.h> | 
 | 31971 | #endif | 
 | 31972 |  | 
 | 31973 | #undef $ac_func | 
 | 31974 |  | 
 | 31975 | /* Override any GCC internal prototype to avoid an error. | 
 | 31976 |    Use char because int might match the return type of a GCC | 
 | 31977 |    builtin and then its argument prototype would still apply.  */ | 
 | 31978 | #ifdef __cplusplus | 
 | 31979 | extern "C" | 
 | 31980 | #endif | 
 | 31981 | char $ac_func (); | 
 | 31982 | /* The GNU C library defines this for functions which it implements | 
 | 31983 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 31984 |     something starting with __ and the normal name is an alias.  */ | 
 | 31985 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
 | 31986 | choke me | 
 | 31987 | #endif | 
 | 31988 |  | 
 | 31989 | int | 
 | 31990 | main () | 
 | 31991 | { | 
 | 31992 | return $ac_func (); | 
 | 31993 |   ; | 
 | 31994 |   return 0; | 
 | 31995 | } | 
 | 31996 | _ACEOF | 
 | 31997 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 31998 | if { (ac_try="$ac_link" | 
 | 31999 | case "(($ac_try" in | 
 | 32000 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32001 |   *) ac_try_echo=$ac_try;; | 
 | 32002 | esac | 
 | 32003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32004 |   (eval "$ac_link") 2>conftest.er1 | 
 | 32005 |   ac_status=$? | 
 | 32006 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32007 |   rm -f conftest.er1 | 
 | 32008 |   cat conftest.err >&5 | 
 | 32009 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32010 |   (exit $ac_status); } && | 
 | 32011 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32012 |   { (case "(($ac_try" in | 
 | 32013 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32014 |   *) ac_try_echo=$ac_try;; | 
 | 32015 | esac | 
 | 32016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32017 |   (eval "$ac_try") 2>&5 | 
 | 32018 |   ac_status=$? | 
 | 32019 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32020 |   (exit $ac_status); }; } && | 
 | 32021 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32022 |   { (case "(($ac_try" in | 
 | 32023 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32024 |   *) ac_try_echo=$ac_try;; | 
 | 32025 | esac | 
 | 32026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32027 |   (eval "$ac_try") 2>&5 | 
 | 32028 |   ac_status=$? | 
 | 32029 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32030 |   (exit $ac_status); }; }; then | 
| Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32031 |   eval "$as_ac_var=yes" | 
 | 32032 | else | 
 | 32033 |   echo "$as_me: failed program was:" >&5 | 
 | 32034 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32035 |  | 
 | 32036 | 	eval "$as_ac_var=no" | 
 | 32037 | fi | 
 | 32038 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32039 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 32040 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32041 | fi | 
 | 32042 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32043 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32044 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 32045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32046 |   cat >>confdefs.h <<_ACEOF | 
 | 32047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 32048 | _ACEOF | 
 | 32049 |  | 
 | 32050 | fi | 
 | 32051 | done | 
 | 32052 |  | 
 | 32053 |  | 
 | 32054 |  | 
 | 32055 |  | 
 | 32056 | for ac_func in isatty mkdtemp mkstemp | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32057 | do | 
 | 32058 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32059 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32060 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32061 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32062 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32063 | else | 
 | 32064 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32065 | /* confdefs.h.  */ | 
 | 32066 | _ACEOF | 
 | 32067 | cat confdefs.h >>conftest.$ac_ext | 
 | 32068 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32069 | /* end confdefs.h.  */ | 
 | 32070 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32071 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32072 | #define $ac_func innocuous_$ac_func | 
 | 32073 |  | 
 | 32074 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32075 |     which can conflict with char $ac_func (); below. | 
 | 32076 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32077 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32078 |  | 
 | 32079 | #ifdef __STDC__ | 
 | 32080 | # include <limits.h> | 
 | 32081 | #else | 
 | 32082 | # include <assert.h> | 
 | 32083 | #endif | 
 | 32084 |  | 
 | 32085 | #undef $ac_func | 
 | 32086 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32087 | /* Override any GCC internal prototype to avoid an error. | 
 | 32088 |    Use char because int might match the return type of a GCC | 
 | 32089 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32090 | #ifdef __cplusplus | 
 | 32091 | extern "C" | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32092 | #endif | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32093 | char $ac_func (); | 
 | 32094 | /* The GNU C library defines this for functions which it implements | 
 | 32095 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32096 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32097 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32098 | choke me | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32099 | #endif | 
 | 32100 |  | 
 | 32101 | int | 
 | 32102 | main () | 
 | 32103 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32104 | return $ac_func (); | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32105 |   ; | 
 | 32106 |   return 0; | 
 | 32107 | } | 
 | 32108 | _ACEOF | 
 | 32109 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32110 | if { (ac_try="$ac_link" | 
 | 32111 | case "(($ac_try" in | 
 | 32112 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32113 |   *) ac_try_echo=$ac_try;; | 
 | 32114 | esac | 
 | 32115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32116 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32117 |   ac_status=$? | 
 | 32118 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32119 |   rm -f conftest.er1 | 
 | 32120 |   cat conftest.err >&5 | 
 | 32121 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32122 |   (exit $ac_status); } && | 
 | 32123 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32124 |   { (case "(($ac_try" in | 
 | 32125 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32126 |   *) ac_try_echo=$ac_try;; | 
 | 32127 | esac | 
 | 32128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32129 |   (eval "$ac_try") 2>&5 | 
 | 32130 |   ac_status=$? | 
 | 32131 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32132 |   (exit $ac_status); }; } && | 
 | 32133 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32134 |   { (case "(($ac_try" in | 
 | 32135 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32136 |   *) ac_try_echo=$ac_try;; | 
 | 32137 | esac | 
 | 32138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32139 |   (eval "$ac_try") 2>&5 | 
 | 32140 |   ac_status=$? | 
 | 32141 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32142 |   (exit $ac_status); }; }; then | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32143 |   eval "$as_ac_var=yes" | 
 | 32144 | else | 
 | 32145 |   echo "$as_me: failed program was:" >&5 | 
 | 32146 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32147 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32148 | 	eval "$as_ac_var=no" | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32149 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32150 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32151 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32152 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32153 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32154 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32155 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32156 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32157 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32158 |   cat >>confdefs.h <<_ACEOF | 
 | 32159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 32160 | _ACEOF | 
 | 32161 |  | 
 | 32162 | fi | 
 | 32163 | done | 
 | 32164 |  | 
 | 32165 |  | 
 | 32166 |  | 
 | 32167 |  | 
 | 32168 |  | 
 | 32169 |  | 
| Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32170 | for ac_func in mktemp realpath sbrk setrlimit strdup | 
 | 32171 | do | 
 | 32172 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 32173 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32174 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32175 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 32176 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32177 | else | 
 | 32178 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32179 | /* confdefs.h.  */ | 
 | 32180 | _ACEOF | 
 | 32181 | cat confdefs.h >>conftest.$ac_ext | 
 | 32182 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32183 | /* end confdefs.h.  */ | 
 | 32184 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32185 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32186 | #define $ac_func innocuous_$ac_func | 
 | 32187 |  | 
 | 32188 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32189 |     which can conflict with char $ac_func (); below. | 
 | 32190 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32191 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32192 |  | 
 | 32193 | #ifdef __STDC__ | 
 | 32194 | # include <limits.h> | 
 | 32195 | #else | 
 | 32196 | # include <assert.h> | 
 | 32197 | #endif | 
 | 32198 |  | 
 | 32199 | #undef $ac_func | 
 | 32200 |  | 
 | 32201 | /* Override any GCC internal prototype to avoid an error. | 
 | 32202 |    Use char because int might match the return type of a GCC | 
 | 32203 |    builtin and then its argument prototype would still apply.  */ | 
 | 32204 | #ifdef __cplusplus | 
 | 32205 | extern "C" | 
 | 32206 | #endif | 
 | 32207 | char $ac_func (); | 
 | 32208 | /* The GNU C library defines this for functions which it implements | 
 | 32209 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32210 |     something starting with __ and the normal name is an alias.  */ | 
 | 32211 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
 | 32212 | choke me | 
 | 32213 | #endif | 
 | 32214 |  | 
 | 32215 | int | 
 | 32216 | main () | 
 | 32217 | { | 
 | 32218 | return $ac_func (); | 
 | 32219 |   ; | 
 | 32220 |   return 0; | 
 | 32221 | } | 
 | 32222 | _ACEOF | 
 | 32223 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 32224 | if { (ac_try="$ac_link" | 
 | 32225 | case "(($ac_try" in | 
 | 32226 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32227 |   *) ac_try_echo=$ac_try;; | 
 | 32228 | esac | 
 | 32229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32230 |   (eval "$ac_link") 2>conftest.er1 | 
 | 32231 |   ac_status=$? | 
 | 32232 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32233 |   rm -f conftest.er1 | 
 | 32234 |   cat conftest.err >&5 | 
 | 32235 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32236 |   (exit $ac_status); } && | 
 | 32237 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32238 |   { (case "(($ac_try" in | 
 | 32239 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32240 |   *) ac_try_echo=$ac_try;; | 
 | 32241 | esac | 
 | 32242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32243 |   (eval "$ac_try") 2>&5 | 
 | 32244 |   ac_status=$? | 
 | 32245 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32246 |   (exit $ac_status); }; } && | 
 | 32247 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32248 |   { (case "(($ac_try" in | 
 | 32249 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32250 |   *) ac_try_echo=$ac_try;; | 
 | 32251 | esac | 
 | 32252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32253 |   (eval "$ac_try") 2>&5 | 
 | 32254 |   ac_status=$? | 
 | 32255 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32256 |   (exit $ac_status); }; }; then | 
 | 32257 |   eval "$as_ac_var=yes" | 
 | 32258 | else | 
 | 32259 |   echo "$as_me: failed program was:" >&5 | 
 | 32260 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32261 |  | 
 | 32262 | 	eval "$as_ac_var=no" | 
 | 32263 | fi | 
 | 32264 |  | 
 | 32265 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 32266 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32267 | fi | 
 | 32268 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32269 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32270 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 32271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32272 |   cat >>confdefs.h <<_ACEOF | 
 | 32273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 32274 | _ACEOF | 
 | 32275 |  | 
 | 32276 | fi | 
 | 32277 | done | 
| Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32278 |  | 
 | 32279 |  | 
| Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32280 |  | 
 | 32281 |  | 
| Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 32282 |  | 
 | 32283 | for ac_func in strerror strerror_r strerror_s setenv | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32284 | do | 
 | 32285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32286 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32288 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32289 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32290 | else | 
 | 32291 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32292 | /* confdefs.h.  */ | 
 | 32293 | _ACEOF | 
 | 32294 | cat confdefs.h >>conftest.$ac_ext | 
 | 32295 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32296 | /* end confdefs.h.  */ | 
 | 32297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32298 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32299 | #define $ac_func innocuous_$ac_func | 
 | 32300 |  | 
 | 32301 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32302 |     which can conflict with char $ac_func (); below. | 
 | 32303 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32304 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32305 |  | 
 | 32306 | #ifdef __STDC__ | 
 | 32307 | # include <limits.h> | 
 | 32308 | #else | 
 | 32309 | # include <assert.h> | 
 | 32310 | #endif | 
 | 32311 |  | 
 | 32312 | #undef $ac_func | 
 | 32313 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32314 | /* Override any GCC internal prototype to avoid an error. | 
 | 32315 |    Use char because int might match the return type of a GCC | 
 | 32316 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32317 | #ifdef __cplusplus | 
 | 32318 | extern "C" | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32319 | #endif | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32320 | char $ac_func (); | 
 | 32321 | /* The GNU C library defines this for functions which it implements | 
 | 32322 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32323 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32324 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32325 | choke me | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32326 | #endif | 
 | 32327 |  | 
 | 32328 | int | 
 | 32329 | main () | 
 | 32330 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32331 | return $ac_func (); | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32332 |   ; | 
 | 32333 |   return 0; | 
 | 32334 | } | 
 | 32335 | _ACEOF | 
 | 32336 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32337 | if { (ac_try="$ac_link" | 
 | 32338 | case "(($ac_try" in | 
 | 32339 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32340 |   *) ac_try_echo=$ac_try;; | 
 | 32341 | esac | 
 | 32342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32343 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32344 |   ac_status=$? | 
 | 32345 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32346 |   rm -f conftest.er1 | 
 | 32347 |   cat conftest.err >&5 | 
 | 32348 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32349 |   (exit $ac_status); } && | 
 | 32350 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32351 |   { (case "(($ac_try" in | 
 | 32352 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32353 |   *) ac_try_echo=$ac_try;; | 
 | 32354 | esac | 
 | 32355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32356 |   (eval "$ac_try") 2>&5 | 
 | 32357 |   ac_status=$? | 
 | 32358 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32359 |   (exit $ac_status); }; } && | 
 | 32360 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32361 |   { (case "(($ac_try" in | 
 | 32362 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32363 |   *) ac_try_echo=$ac_try;; | 
 | 32364 | esac | 
 | 32365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32366 |   (eval "$ac_try") 2>&5 | 
 | 32367 |   ac_status=$? | 
 | 32368 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32369 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32370 |   eval "$as_ac_var=yes" | 
 | 32371 | else | 
 | 32372 |   echo "$as_me: failed program was:" >&5 | 
 | 32373 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32374 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32375 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32376 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32377 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32378 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32379 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32380 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32381 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32382 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32383 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32385 |   cat >>confdefs.h <<_ACEOF | 
 | 32386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 32387 | _ACEOF | 
 | 32388 |  | 
 | 32389 | fi | 
 | 32390 | done | 
 | 32391 |  | 
 | 32392 |  | 
| Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32393 |  | 
 | 32394 |  | 
| Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32395 |  | 
| Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32396 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32397 | do | 
 | 32398 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32399 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32400 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32401 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32402 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32403 | else | 
 | 32404 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32405 | /* confdefs.h.  */ | 
 | 32406 | _ACEOF | 
 | 32407 | cat confdefs.h >>conftest.$ac_ext | 
 | 32408 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32409 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32410 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32411 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32412 | #define $ac_func innocuous_$ac_func | 
 | 32413 |  | 
 | 32414 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32415 |     which can conflict with char $ac_func (); below. | 
 | 32416 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32417 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32418 |  | 
 | 32419 | #ifdef __STDC__ | 
 | 32420 | # include <limits.h> | 
 | 32421 | #else | 
 | 32422 | # include <assert.h> | 
 | 32423 | #endif | 
 | 32424 |  | 
 | 32425 | #undef $ac_func | 
 | 32426 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32427 | /* Override any GCC internal prototype to avoid an error. | 
 | 32428 |    Use char because int might match the return type of a GCC | 
 | 32429 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32430 | #ifdef __cplusplus | 
 | 32431 | extern "C" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32432 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32433 | char $ac_func (); | 
 | 32434 | /* The GNU C library defines this for functions which it implements | 
 | 32435 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32436 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32437 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32438 | choke me | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32439 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32440 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32441 | int | 
 | 32442 | main () | 
 | 32443 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32444 | return $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32445 |   ; | 
 | 32446 |   return 0; | 
 | 32447 | } | 
 | 32448 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32449 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32450 | if { (ac_try="$ac_link" | 
 | 32451 | case "(($ac_try" in | 
 | 32452 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32453 |   *) ac_try_echo=$ac_try;; | 
 | 32454 | esac | 
 | 32455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32456 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32457 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32458 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32459 |   rm -f conftest.er1 | 
 | 32460 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32461 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32462 |   (exit $ac_status); } && | 
 | 32463 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32464 |   { (case "(($ac_try" in | 
 | 32465 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32466 |   *) ac_try_echo=$ac_try;; | 
 | 32467 | esac | 
 | 32468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32469 |   (eval "$ac_try") 2>&5 | 
 | 32470 |   ac_status=$? | 
 | 32471 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32472 |   (exit $ac_status); }; } && | 
 | 32473 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32474 |   { (case "(($ac_try" in | 
 | 32475 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32476 |   *) ac_try_echo=$ac_try;; | 
 | 32477 | esac | 
 | 32478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32479 |   (eval "$ac_try") 2>&5 | 
 | 32480 |   ac_status=$? | 
 | 32481 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32482 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32483 |   eval "$as_ac_var=yes" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32484 | else | 
 | 32485 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32486 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32487 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32488 | 	eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32489 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32490 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32491 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32492 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32493 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32494 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32495 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32496 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32497 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32498 |   cat >>confdefs.h <<_ACEOF | 
 | 32499 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32500 | _ACEOF | 
 | 32501 |  | 
 | 32502 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32503 | done | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32504 |  | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32505 |  | 
 | 32506 |  | 
 | 32507 |  | 
 | 32508 |  | 
| Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32509 | for ac_func in setjmp longjmp sigsetjmp siglongjmp | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32510 | do | 
 | 32511 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32512 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32513 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32514 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32515 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32516 | else | 
 | 32517 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32518 | /* confdefs.h.  */ | 
 | 32519 | _ACEOF | 
 | 32520 | cat confdefs.h >>conftest.$ac_ext | 
 | 32521 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32522 | /* end confdefs.h.  */ | 
 | 32523 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32524 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32525 | #define $ac_func innocuous_$ac_func | 
 | 32526 |  | 
 | 32527 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32528 |     which can conflict with char $ac_func (); below. | 
 | 32529 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32530 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32531 |  | 
 | 32532 | #ifdef __STDC__ | 
 | 32533 | # include <limits.h> | 
 | 32534 | #else | 
 | 32535 | # include <assert.h> | 
 | 32536 | #endif | 
 | 32537 |  | 
 | 32538 | #undef $ac_func | 
 | 32539 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32540 | /* Override any GCC internal prototype to avoid an error. | 
 | 32541 |    Use char because int might match the return type of a GCC | 
 | 32542 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32543 | #ifdef __cplusplus | 
 | 32544 | extern "C" | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32545 | #endif | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32546 | char $ac_func (); | 
 | 32547 | /* The GNU C library defines this for functions which it implements | 
 | 32548 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32549 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32550 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32551 | choke me | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32552 | #endif | 
 | 32553 |  | 
 | 32554 | int | 
 | 32555 | main () | 
 | 32556 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32557 | return $ac_func (); | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32558 |   ; | 
 | 32559 |   return 0; | 
 | 32560 | } | 
 | 32561 | _ACEOF | 
 | 32562 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32563 | if { (ac_try="$ac_link" | 
 | 32564 | case "(($ac_try" in | 
 | 32565 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32566 |   *) ac_try_echo=$ac_try;; | 
 | 32567 | esac | 
 | 32568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32569 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32570 |   ac_status=$? | 
 | 32571 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32572 |   rm -f conftest.er1 | 
 | 32573 |   cat conftest.err >&5 | 
 | 32574 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32575 |   (exit $ac_status); } && | 
 | 32576 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32577 |   { (case "(($ac_try" in | 
 | 32578 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32579 |   *) ac_try_echo=$ac_try;; | 
 | 32580 | esac | 
 | 32581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32582 |   (eval "$ac_try") 2>&5 | 
 | 32583 |   ac_status=$? | 
 | 32584 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32585 |   (exit $ac_status); }; } && | 
 | 32586 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32587 |   { (case "(($ac_try" in | 
 | 32588 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32589 |   *) ac_try_echo=$ac_try;; | 
 | 32590 | esac | 
 | 32591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32592 |   (eval "$ac_try") 2>&5 | 
 | 32593 |   ac_status=$? | 
 | 32594 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32595 |   (exit $ac_status); }; }; then | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32596 |   eval "$as_ac_var=yes" | 
 | 32597 | else | 
 | 32598 |   echo "$as_me: failed program was:" >&5 | 
 | 32599 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32600 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32601 | 	eval "$as_ac_var=no" | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32602 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32603 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32604 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32605 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32606 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32607 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 32608 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 32609 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32610 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 32611 |   cat >>confdefs.h <<_ACEOF | 
 | 32612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 32613 | _ACEOF | 
 | 32614 |  | 
 | 32615 | fi | 
 | 32616 | done | 
 | 32617 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32618 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 | 
 | 32619 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32620 | if test "${llvm_cv_c_printf_a+set}" = set; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32621 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32622 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32623 |   ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32624 | ac_cpp='$CPP $CPPFLAGS' | 
 | 32625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 32626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 32627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 32628 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32629 |  if test "$cross_compiling" = yes; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32630 |   llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32631 | else | 
 | 32632 |   cat >conftest.$ac_ext <<_ACEOF | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32633 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32634 |   /* confdefs.h.  */ | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32635 | _ACEOF | 
 | 32636 | cat confdefs.h >>conftest.$ac_ext | 
 | 32637 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32638 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32639 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32640 | #include <stdio.h> | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32641 | #include <stdlib.h> | 
 | 32642 |  | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32643 | int | 
 | 32644 | main () | 
 | 32645 | { | 
 | 32646 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32647 | volatile double A, B; | 
 | 32648 | char Buffer[100]; | 
 | 32649 | A = 1; | 
 | 32650 | A /= 10.0; | 
 | 32651 | sprintf(Buffer, "%a", A); | 
 | 32652 | B = atof(Buffer); | 
 | 32653 | if (A != B) | 
 | 32654 |   return (1); | 
 | 32655 | if (A != 0x1.999999999999ap-4) | 
 | 32656 |   return (1); | 
 | 32657 | return (0); | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32658 |   ; | 
 | 32659 |   return 0; | 
 | 32660 | } | 
 | 32661 | _ACEOF | 
 | 32662 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32663 | if { (ac_try="$ac_link" | 
 | 32664 | case "(($ac_try" in | 
 | 32665 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32666 |   *) ac_try_echo=$ac_try;; | 
 | 32667 | esac | 
 | 32668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32669 |   (eval "$ac_link") 2>&5 | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32670 |   ac_status=$? | 
 | 32671 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32672 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32673 |   { (case "(($ac_try" in | 
 | 32674 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32675 |   *) ac_try_echo=$ac_try;; | 
 | 32676 | esac | 
 | 32677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32678 |   (eval "$ac_try") 2>&5 | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32679 |   ac_status=$? | 
 | 32680 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32681 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32682 |   llvm_cv_c_printf_a=yes | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32683 | else | 
 | 32684 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 32685 | echo "$as_me: failed program was:" >&5 | 
 | 32686 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32687 |  | 
 | 32688 | ( exit $ac_status ) | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32689 | llvmac_cv_c_printf_a=no | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32690 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32692 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32693 |  | 
 | 32694 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32695 |  ac_ext=c | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32696 | ac_cpp='$CPP $CPPFLAGS' | 
 | 32697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 32698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 32699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 32700 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32701 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32702 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 | 
 | 32703 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } | 
| Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32704 |  if test "$llvm_cv_c_printf_a" = "yes"; then | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32705 |  | 
 | 32706 | cat >>confdefs.h <<\_ACEOF | 
 | 32707 | #define HAVE_PRINTF_A 1 | 
 | 32708 | _ACEOF | 
 | 32709 |  | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32710 |  fi | 
| John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32711 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32712 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 32713 | # for constant arguments.  Useless! | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32714 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 
 | 32715 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32716 | if test "${ac_cv_working_alloca_h+set}" = set; then | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32717 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32718 | else | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32719 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32720 | /* confdefs.h.  */ | 
 | 32721 | _ACEOF | 
 | 32722 | cat confdefs.h >>conftest.$ac_ext | 
 | 32723 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32724 | /* end confdefs.h.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32725 | #include <alloca.h> | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32726 | int | 
 | 32727 | main () | 
 | 32728 | { | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32729 | char *p = (char *) alloca (2 * sizeof (int)); | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32730 | 			  if (p) return 0; | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32731 |   ; | 
 | 32732 |   return 0; | 
 | 32733 | } | 
 | 32734 | _ACEOF | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32735 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32736 | if { (ac_try="$ac_link" | 
 | 32737 | case "(($ac_try" in | 
 | 32738 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32739 |   *) ac_try_echo=$ac_try;; | 
 | 32740 | esac | 
 | 32741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32742 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32743 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32744 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32745 |   rm -f conftest.er1 | 
 | 32746 |   cat conftest.err >&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32747 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32748 |   (exit $ac_status); } && | 
 | 32749 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32750 |   { (case "(($ac_try" in | 
 | 32751 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32752 |   *) ac_try_echo=$ac_try;; | 
 | 32753 | esac | 
 | 32754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32755 |   (eval "$ac_try") 2>&5 | 
 | 32756 |   ac_status=$? | 
 | 32757 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32758 |   (exit $ac_status); }; } && | 
 | 32759 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32760 |   { (case "(($ac_try" in | 
 | 32761 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32762 |   *) ac_try_echo=$ac_try;; | 
 | 32763 | esac | 
 | 32764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32765 |   (eval "$ac_try") 2>&5 | 
 | 32766 |   ac_status=$? | 
 | 32767 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32768 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32769 |   ac_cv_working_alloca_h=yes | 
 | 32770 | else | 
 | 32771 |   echo "$as_me: failed program was:" >&5 | 
 | 32772 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32773 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32774 | 	ac_cv_working_alloca_h=no | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32775 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32776 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32777 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32778 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32779 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32780 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | 
 | 32781 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32782 | if test $ac_cv_working_alloca_h = yes; then | 
 | 32783 |  | 
 | 32784 | cat >>confdefs.h <<\_ACEOF | 
 | 32785 | #define HAVE_ALLOCA_H 1 | 
 | 32786 | _ACEOF | 
 | 32787 |  | 
 | 32788 | fi | 
 | 32789 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32790 | { echo "$as_me:$LINENO: checking for alloca" >&5 | 
 | 32791 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32792 | if test "${ac_cv_func_alloca_works+set}" = set; then | 
 | 32793 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32794 | else | 
 | 32795 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32796 | /* confdefs.h.  */ | 
 | 32797 | _ACEOF | 
 | 32798 | cat confdefs.h >>conftest.$ac_ext | 
 | 32799 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32800 | /* end confdefs.h.  */ | 
 | 32801 | #ifdef __GNUC__ | 
 | 32802 | # define alloca __builtin_alloca | 
 | 32803 | #else | 
 | 32804 | # ifdef _MSC_VER | 
 | 32805 | #  include <malloc.h> | 
 | 32806 | #  define alloca _alloca | 
 | 32807 | # else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32808 | #  if HAVE_ALLOCA_H | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32809 | #   include <alloca.h> | 
 | 32810 | #  else | 
 | 32811 | #   ifdef _AIX | 
 | 32812 |  #pragma alloca | 
 | 32813 | #   else | 
 | 32814 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 32815 | char *alloca (); | 
 | 32816 | #    endif | 
 | 32817 | #   endif | 
 | 32818 | #  endif | 
 | 32819 | # endif | 
 | 32820 | #endif | 
 | 32821 |  | 
 | 32822 | int | 
 | 32823 | main () | 
 | 32824 | { | 
 | 32825 | char *p = (char *) alloca (1); | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32826 | 				    if (p) return 0; | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32827 |   ; | 
 | 32828 |   return 0; | 
 | 32829 | } | 
 | 32830 | _ACEOF | 
 | 32831 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32832 | if { (ac_try="$ac_link" | 
 | 32833 | case "(($ac_try" in | 
 | 32834 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32835 |   *) ac_try_echo=$ac_try;; | 
 | 32836 | esac | 
 | 32837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32838 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32839 |   ac_status=$? | 
 | 32840 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32841 |   rm -f conftest.er1 | 
 | 32842 |   cat conftest.err >&5 | 
 | 32843 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32844 |   (exit $ac_status); } && | 
 | 32845 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32846 |   { (case "(($ac_try" in | 
 | 32847 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32848 |   *) ac_try_echo=$ac_try;; | 
 | 32849 | esac | 
 | 32850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32851 |   (eval "$ac_try") 2>&5 | 
 | 32852 |   ac_status=$? | 
 | 32853 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32854 |   (exit $ac_status); }; } && | 
 | 32855 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 32856 |   { (case "(($ac_try" in | 
 | 32857 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32858 |   *) ac_try_echo=$ac_try;; | 
 | 32859 | esac | 
 | 32860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32861 |   (eval "$ac_try") 2>&5 | 
 | 32862 |   ac_status=$? | 
 | 32863 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 32864 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32865 |   ac_cv_func_alloca_works=yes | 
 | 32866 | else | 
 | 32867 |   echo "$as_me: failed program was:" >&5 | 
 | 32868 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 32869 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32870 | 	ac_cv_func_alloca_works=no | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32871 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32872 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32873 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32874 |       conftest$ac_exeext conftest.$ac_ext | 
 | 32875 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32876 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | 
 | 32877 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32878 |  | 
 | 32879 | if test $ac_cv_func_alloca_works = yes; then | 
 | 32880 |  | 
 | 32881 | cat >>confdefs.h <<\_ACEOF | 
 | 32882 | #define HAVE_ALLOCA 1 | 
 | 32883 | _ACEOF | 
 | 32884 |  | 
 | 32885 | else | 
 | 32886 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 32887 | # that cause trouble.  Some versions do not even contain alloca or | 
 | 32888 | # contain a buggy version.  If you still want to use their alloca, | 
 | 32889 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 32890 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32891 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32892 |  | 
 | 32893 | cat >>confdefs.h <<\_ACEOF | 
 | 32894 | #define C_ALLOCA 1 | 
 | 32895 | _ACEOF | 
 | 32896 |  | 
 | 32897 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32898 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | 
 | 32899 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32900 | if test "${ac_cv_os_cray+set}" = set; then | 
 | 32901 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32902 | else | 
 | 32903 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32904 | /* confdefs.h.  */ | 
 | 32905 | _ACEOF | 
 | 32906 | cat confdefs.h >>conftest.$ac_ext | 
 | 32907 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32908 | /* end confdefs.h.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32909 | #if defined CRAY && ! defined CRAY2 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32910 | webecray | 
 | 32911 | #else | 
 | 32912 | wenotbecray | 
 | 32913 | #endif | 
 | 32914 |  | 
 | 32915 | _ACEOF | 
 | 32916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 32917 |   $EGREP "webecray" >/dev/null 2>&1; then | 
 | 32918 |   ac_cv_os_cray=yes | 
 | 32919 | else | 
 | 32920 |   ac_cv_os_cray=no | 
 | 32921 | fi | 
 | 32922 | rm -f conftest* | 
 | 32923 |  | 
 | 32924 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32925 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 
 | 32926 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32927 | if test $ac_cv_os_cray = yes; then | 
 | 32928 |   for ac_func in _getb67 GETB67 getb67; do | 
 | 32929 |     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32930 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 32931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 32932 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32933 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 32934 | else | 
 | 32935 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 32936 | /* confdefs.h.  */ | 
 | 32937 | _ACEOF | 
 | 32938 | cat confdefs.h >>conftest.$ac_ext | 
 | 32939 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 32940 | /* end confdefs.h.  */ | 
 | 32941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 32942 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 32943 | #define $ac_func innocuous_$ac_func | 
 | 32944 |  | 
 | 32945 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 32946 |     which can conflict with char $ac_func (); below. | 
 | 32947 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 32948 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 32949 |  | 
 | 32950 | #ifdef __STDC__ | 
 | 32951 | # include <limits.h> | 
 | 32952 | #else | 
 | 32953 | # include <assert.h> | 
 | 32954 | #endif | 
 | 32955 |  | 
 | 32956 | #undef $ac_func | 
 | 32957 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32958 | /* Override any GCC internal prototype to avoid an error. | 
 | 32959 |    Use char because int might match the return type of a GCC | 
 | 32960 |    builtin and then its argument prototype would still apply.  */ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32961 | #ifdef __cplusplus | 
 | 32962 | extern "C" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32963 | #endif | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32964 | char $ac_func (); | 
 | 32965 | /* The GNU C library defines this for functions which it implements | 
 | 32966 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 32967 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32968 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32969 | choke me | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32970 | #endif | 
 | 32971 |  | 
 | 32972 | int | 
 | 32973 | main () | 
 | 32974 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32975 | return $ac_func (); | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32976 |   ; | 
 | 32977 |   return 0; | 
 | 32978 | } | 
 | 32979 | _ACEOF | 
 | 32980 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32981 | if { (ac_try="$ac_link" | 
 | 32982 | case "(($ac_try" in | 
 | 32983 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32984 |   *) ac_try_echo=$ac_try;; | 
 | 32985 | esac | 
 | 32986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 32987 |   (eval "$ac_link") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32988 |   ac_status=$? | 
 | 32989 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 32990 |   rm -f conftest.er1 | 
 | 32991 |   cat conftest.err >&5 | 
 | 32992 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32993 |   (exit $ac_status); } && | 
 | 32994 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 32995 |   { (case "(($ac_try" in | 
 | 32996 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 32997 |   *) ac_try_echo=$ac_try;; | 
 | 32998 | esac | 
 | 32999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33000 |   (eval "$ac_try") 2>&5 | 
 | 33001 |   ac_status=$? | 
 | 33002 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33003 |   (exit $ac_status); }; } && | 
 | 33004 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 33005 |   { (case "(($ac_try" in | 
 | 33006 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33007 |   *) ac_try_echo=$ac_try;; | 
 | 33008 | esac | 
 | 33009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33010 |   (eval "$ac_try") 2>&5 | 
 | 33011 |   ac_status=$? | 
 | 33012 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33013 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33014 |   eval "$as_ac_var=yes" | 
 | 33015 | else | 
 | 33016 |   echo "$as_me: failed program was:" >&5 | 
 | 33017 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33018 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33019 | 	eval "$as_ac_var=no" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33020 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33021 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33022 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33023 |       conftest$ac_exeext conftest.$ac_ext | 
 | 33024 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33025 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 33026 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 33027 | echo "${ECHO_T}$ac_res" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33028 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 33029 |  | 
 | 33030 | cat >>confdefs.h <<_ACEOF | 
 | 33031 | #define CRAY_STACKSEG_END $ac_func | 
 | 33032 | _ACEOF | 
 | 33033 |  | 
 | 33034 |     break | 
 | 33035 | fi | 
 | 33036 |  | 
 | 33037 |   done | 
 | 33038 | fi | 
 | 33039 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33040 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 
 | 33041 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33042 | if test "${ac_cv_c_stack_direction+set}" = set; then | 
 | 33043 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33044 | else | 
 | 33045 |   if test "$cross_compiling" = yes; then | 
 | 33046 |   ac_cv_c_stack_direction=0 | 
 | 33047 | else | 
 | 33048 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 33049 | /* confdefs.h.  */ | 
 | 33050 | _ACEOF | 
 | 33051 | cat confdefs.h >>conftest.$ac_ext | 
 | 33052 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33053 | /* end confdefs.h.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33054 | $ac_includes_default | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33055 | int | 
 | 33056 | find_stack_direction () | 
 | 33057 | { | 
 | 33058 |   static char *addr = 0; | 
 | 33059 |   auto char dummy; | 
 | 33060 |   if (addr == 0) | 
 | 33061 |     { | 
 | 33062 |       addr = &dummy; | 
 | 33063 |       return find_stack_direction (); | 
 | 33064 |     } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33065 |   else | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33066 |     return (&dummy > addr) ? 1 : -1; | 
 | 33067 | } | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33068 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33069 | int | 
 | 33070 | main () | 
 | 33071 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33072 |   return find_stack_direction () < 0; | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33073 | } | 
 | 33074 | _ACEOF | 
 | 33075 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33076 | if { (ac_try="$ac_link" | 
 | 33077 | case "(($ac_try" in | 
 | 33078 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33079 |   *) ac_try_echo=$ac_try;; | 
 | 33080 | esac | 
 | 33081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33082 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33083 |   ac_status=$? | 
 | 33084 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33085 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33086 |   { (case "(($ac_try" in | 
 | 33087 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33088 |   *) ac_try_echo=$ac_try;; | 
 | 33089 | esac | 
 | 33090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33091 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33092 |   ac_status=$? | 
 | 33093 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33094 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33095 |   ac_cv_c_stack_direction=1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33096 | else | 
 | 33097 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 33098 | echo "$as_me: failed program was:" >&5 | 
 | 33099 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33100 |  | 
 | 33101 | ( exit $ac_status ) | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33102 | ac_cv_c_stack_direction=-1 | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33103 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33104 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33105 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33106 |  | 
 | 33107 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33108 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33109 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | 
 | 33110 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33111 |  | 
 | 33112 | cat >>confdefs.h <<_ACEOF | 
 | 33113 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 33114 | _ACEOF | 
 | 33115 |  | 
 | 33116 |  | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33117 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33118 |  | 
 | 33119 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33120 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 | 
 | 33121 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33122 | if test "${ac_cv_func_rand48+set}" = set; then | 
 | 33123 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33124 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33125 |   ac_ext=cpp | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33126 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33127 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33128 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33129 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33130 |  | 
 | 33131 |    cat >conftest.$ac_ext <<_ACEOF | 
 | 33132 | /* confdefs.h.  */ | 
 | 33133 | _ACEOF | 
 | 33134 | cat confdefs.h >>conftest.$ac_ext | 
 | 33135 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33136 | /* end confdefs.h.  */ | 
 | 33137 | #include <stdlib.h> | 
 | 33138 | int | 
 | 33139 | main () | 
 | 33140 | { | 
 | 33141 | srand48(0);lrand48();drand48(); | 
 | 33142 |   ; | 
 | 33143 |   return 0; | 
 | 33144 | } | 
 | 33145 | _ACEOF | 
 | 33146 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33147 | if { (ac_try="$ac_compile" | 
 | 33148 | case "(($ac_try" in | 
 | 33149 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33150 |   *) ac_try_echo=$ac_try;; | 
 | 33151 | esac | 
 | 33152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33153 |   (eval "$ac_compile") 2>conftest.er1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33154 |   ac_status=$? | 
 | 33155 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33156 |   rm -f conftest.er1 | 
 | 33157 |   cat conftest.err >&5 | 
 | 33158 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33159 |   (exit $ac_status); } && | 
 | 33160 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33161 |   { (case "(($ac_try" in | 
 | 33162 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33163 |   *) ac_try_echo=$ac_try;; | 
 | 33164 | esac | 
 | 33165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33166 |   (eval "$ac_try") 2>&5 | 
 | 33167 |   ac_status=$? | 
 | 33168 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33169 |   (exit $ac_status); }; } && | 
 | 33170 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33171 |   { (case "(($ac_try" in | 
 | 33172 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33173 |   *) ac_try_echo=$ac_try;; | 
 | 33174 | esac | 
 | 33175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33176 |   (eval "$ac_try") 2>&5 | 
 | 33177 |   ac_status=$? | 
 | 33178 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33179 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33180 |   ac_cv_func_rand48=yes | 
 | 33181 | else | 
 | 33182 |   echo "$as_me: failed program was:" >&5 | 
 | 33183 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33184 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33185 | 	ac_cv_func_rand48=no | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33186 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33187 |  | 
 | 33188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33189 |   ac_ext=c | 
 | 33190 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33194 |  | 
 | 33195 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33196 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 | 
 | 33197 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33198 |  | 
 | 33199 | if test "$ac_cv_func_rand48" = "yes" ; then | 
 | 33200 |  | 
 | 33201 | cat >>confdefs.h <<\_ACEOF | 
 | 33202 | #define HAVE_RAND48 1 | 
 | 33203 | _ACEOF | 
 | 33204 |  | 
 | 33205 | fi | 
| John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33206 |  | 
 | 33207 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33208 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 | 
 | 33209 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33210 | if test "${ac_cv_cxx_namespaces+set}" = set; then | 
 | 33211 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33212 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33213 |   ac_ext=cpp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33214 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33215 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33216 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33217 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33218 |  | 
 | 33219 |  cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33220 | /* confdefs.h.  */ | 
 | 33221 | _ACEOF | 
 | 33222 | cat confdefs.h >>conftest.$ac_ext | 
 | 33223 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33224 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33225 | namespace Outer { namespace Inner { int i = 0; }} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33226 | int | 
 | 33227 | main () | 
 | 33228 | { | 
 | 33229 | using namespace Outer::Inner; return i; | 
 | 33230 |   ; | 
 | 33231 |   return 0; | 
 | 33232 | } | 
 | 33233 | _ACEOF | 
 | 33234 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33235 | if { (ac_try="$ac_compile" | 
 | 33236 | case "(($ac_try" in | 
 | 33237 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33238 |   *) ac_try_echo=$ac_try;; | 
 | 33239 | esac | 
 | 33240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33241 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33242 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33243 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33244 |   rm -f conftest.er1 | 
 | 33245 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33246 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33247 |   (exit $ac_status); } && | 
 | 33248 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33249 |   { (case "(($ac_try" in | 
 | 33250 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33251 |   *) ac_try_echo=$ac_try;; | 
 | 33252 | esac | 
 | 33253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33254 |   (eval "$ac_try") 2>&5 | 
 | 33255 |   ac_status=$? | 
 | 33256 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33257 |   (exit $ac_status); }; } && | 
 | 33258 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33259 |   { (case "(($ac_try" in | 
 | 33260 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33261 |   *) ac_try_echo=$ac_try;; | 
 | 33262 | esac | 
 | 33263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33264 |   (eval "$ac_try") 2>&5 | 
 | 33265 |   ac_status=$? | 
 | 33266 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33267 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33268 |   ac_cv_cxx_namespaces=yes | 
 | 33269 | else | 
 | 33270 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33271 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33272 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33273 | 	ac_cv_cxx_namespaces=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33274 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33275 |  | 
 | 33276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33277 |  ac_ext=c | 
 | 33278 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33282 |  | 
 | 33283 |  | 
 | 33284 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33285 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 | 
 | 33286 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33287 | if test "$ac_cv_cxx_namespaces" = yes; then | 
 | 33288 |  | 
 | 33289 | cat >>confdefs.h <<\_ACEOF | 
 | 33290 | #define HAVE_NAMESPACES | 
 | 33291 | _ACEOF | 
 | 33292 |  | 
 | 33293 | fi | 
 | 33294 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33295 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 | 
 | 33296 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33297 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then | 
 | 33298 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33299 | else | 
 | 33300 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33301 |   ac_ext=cpp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33302 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33306 |  | 
 | 33307 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33308 | /* confdefs.h.  */ | 
 | 33309 | _ACEOF | 
 | 33310 | cat confdefs.h >>conftest.$ac_ext | 
 | 33311 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33312 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33313 | #include <iterator> | 
 | 33314 | #ifdef HAVE_NAMESPACES | 
 | 33315 | using namespace std; | 
 | 33316 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33317 | int | 
 | 33318 | main () | 
 | 33319 | { | 
 | 33320 | iterator<int,int,int> t; return 0; | 
 | 33321 |   ; | 
 | 33322 |   return 0; | 
 | 33323 | } | 
 | 33324 | _ACEOF | 
 | 33325 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33326 | if { (ac_try="$ac_compile" | 
 | 33327 | case "(($ac_try" in | 
 | 33328 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33329 |   *) ac_try_echo=$ac_try;; | 
 | 33330 | esac | 
 | 33331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33332 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33333 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33334 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33335 |   rm -f conftest.er1 | 
 | 33336 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33337 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33338 |   (exit $ac_status); } && | 
 | 33339 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33340 |   { (case "(($ac_try" in | 
 | 33341 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33342 |   *) ac_try_echo=$ac_try;; | 
 | 33343 | esac | 
 | 33344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33345 |   (eval "$ac_try") 2>&5 | 
 | 33346 |   ac_status=$? | 
 | 33347 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33348 |   (exit $ac_status); }; } && | 
 | 33349 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33350 |   { (case "(($ac_try" in | 
 | 33351 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33352 |   *) ac_try_echo=$ac_try;; | 
 | 33353 | esac | 
 | 33354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33355 |   (eval "$ac_try") 2>&5 | 
 | 33356 |   ac_status=$? | 
 | 33357 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33358 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33359 |   ac_cv_cxx_have_std_iterator=yes | 
 | 33360 | else | 
 | 33361 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33362 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33363 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33364 | 	ac_cv_cxx_have_std_iterator=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33365 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33366 |  | 
 | 33367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33368 |   ac_ext=c | 
 | 33369 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33373 |  | 
 | 33374 |  | 
 | 33375 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33376 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 | 
 | 33377 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33378 | if test "$ac_cv_cxx_have_std_iterator" = yes | 
 | 33379 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33380 |  | 
 | 33381 | cat >>confdefs.h <<\_ACEOF | 
 | 33382 | #define HAVE_STD_ITERATOR 1 | 
 | 33383 | _ACEOF | 
 | 33384 |  | 
 | 33385 | else | 
 | 33386 |  | 
 | 33387 | cat >>confdefs.h <<\_ACEOF | 
 | 33388 | #define HAVE_STD_ITERATOR 0 | 
 | 33389 | _ACEOF | 
 | 33390 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33391 | fi | 
 | 33392 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33393 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 | 
 | 33394 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33395 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then | 
 | 33396 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33397 | else | 
 | 33398 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33399 |   ac_ext=cpp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33400 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33401 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33402 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33403 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33404 |  | 
 | 33405 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33406 | /* confdefs.h.  */ | 
 | 33407 | _ACEOF | 
 | 33408 | cat confdefs.h >>conftest.$ac_ext | 
 | 33409 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33410 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33411 | #include <iterator> | 
 | 33412 | #ifdef HAVE_NAMESPACES | 
 | 33413 | using namespace std; | 
 | 33414 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33415 | int | 
 | 33416 | main () | 
 | 33417 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33418 | bidirectional_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33419 |   ; | 
 | 33420 |   return 0; | 
 | 33421 | } | 
 | 33422 | _ACEOF | 
 | 33423 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33424 | if { (ac_try="$ac_compile" | 
 | 33425 | case "(($ac_try" in | 
 | 33426 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33427 |   *) ac_try_echo=$ac_try;; | 
 | 33428 | esac | 
 | 33429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33430 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33431 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33432 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33433 |   rm -f conftest.er1 | 
 | 33434 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33435 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33436 |   (exit $ac_status); } && | 
 | 33437 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33438 |   { (case "(($ac_try" in | 
 | 33439 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33440 |   *) ac_try_echo=$ac_try;; | 
 | 33441 | esac | 
 | 33442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33443 |   (eval "$ac_try") 2>&5 | 
 | 33444 |   ac_status=$? | 
 | 33445 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33446 |   (exit $ac_status); }; } && | 
 | 33447 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33448 |   { (case "(($ac_try" in | 
 | 33449 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33450 |   *) ac_try_echo=$ac_try;; | 
 | 33451 | esac | 
 | 33452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33453 |   (eval "$ac_try") 2>&5 | 
 | 33454 |   ac_status=$? | 
 | 33455 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33456 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33457 |   ac_cv_cxx_have_bi_iterator=yes | 
 | 33458 | else | 
 | 33459 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33460 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33461 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33462 | 	ac_cv_cxx_have_bi_iterator=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33463 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33464 |  | 
 | 33465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33466 |   ac_ext=c | 
 | 33467 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33471 |  | 
 | 33472 |  | 
 | 33473 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33474 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 | 
 | 33475 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33476 | if test "$ac_cv_cxx_have_bi_iterator" = yes | 
 | 33477 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33478 |  | 
 | 33479 | cat >>confdefs.h <<\_ACEOF | 
 | 33480 | #define HAVE_BI_ITERATOR 1 | 
 | 33481 | _ACEOF | 
 | 33482 |  | 
 | 33483 | else | 
 | 33484 |  | 
 | 33485 | cat >>confdefs.h <<\_ACEOF | 
 | 33486 | #define HAVE_BI_ITERATOR 0 | 
 | 33487 | _ACEOF | 
 | 33488 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33489 | fi | 
 | 33490 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33491 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 | 
 | 33492 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33493 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then | 
 | 33494 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33495 | else | 
 | 33496 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33497 |   ac_ext=cpp | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33498 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33502 |  | 
 | 33503 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33504 | /* confdefs.h.  */ | 
 | 33505 | _ACEOF | 
 | 33506 | cat confdefs.h >>conftest.$ac_ext | 
 | 33507 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33508 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33509 | #include <iterator> | 
 | 33510 | #ifdef HAVE_NAMESPACES | 
 | 33511 | using namespace std; | 
 | 33512 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33513 | int | 
 | 33514 | main () | 
 | 33515 | { | 
| John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33516 | forward_iterator<int,int> t; return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33517 |   ; | 
 | 33518 |   return 0; | 
 | 33519 | } | 
 | 33520 | _ACEOF | 
 | 33521 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33522 | if { (ac_try="$ac_compile" | 
 | 33523 | case "(($ac_try" in | 
 | 33524 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33525 |   *) ac_try_echo=$ac_try;; | 
 | 33526 | esac | 
 | 33527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33528 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33529 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33530 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33531 |   rm -f conftest.er1 | 
 | 33532 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33533 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33534 |   (exit $ac_status); } && | 
 | 33535 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33536 |   { (case "(($ac_try" in | 
 | 33537 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33538 |   *) ac_try_echo=$ac_try;; | 
 | 33539 | esac | 
 | 33540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33541 |   (eval "$ac_try") 2>&5 | 
 | 33542 |   ac_status=$? | 
 | 33543 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33544 |   (exit $ac_status); }; } && | 
 | 33545 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33546 |   { (case "(($ac_try" in | 
 | 33547 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33548 |   *) ac_try_echo=$ac_try;; | 
 | 33549 | esac | 
 | 33550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33551 |   (eval "$ac_try") 2>&5 | 
 | 33552 |   ac_status=$? | 
 | 33553 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33554 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33555 |   ac_cv_cxx_have_fwd_iterator=yes | 
 | 33556 | else | 
 | 33557 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33558 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33559 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33560 | 	ac_cv_cxx_have_fwd_iterator=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33561 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33562 |  | 
 | 33563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33564 |   ac_ext=c | 
 | 33565 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33566 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33567 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33568 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33569 |  | 
 | 33570 |  | 
 | 33571 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33572 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 | 
 | 33573 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } | 
| Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33574 | if test "$ac_cv_cxx_have_fwd_iterator" = yes | 
 | 33575 | then | 
| John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33576 |  | 
 | 33577 | cat >>confdefs.h <<\_ACEOF | 
 | 33578 | #define HAVE_FWD_ITERATOR 1 | 
 | 33579 | _ACEOF | 
 | 33580 |  | 
 | 33581 | else | 
 | 33582 |  | 
 | 33583 | cat >>confdefs.h <<\_ACEOF | 
 | 33584 | #define HAVE_FWD_ITERATOR 0 | 
 | 33585 | _ACEOF | 
 | 33586 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33587 | fi | 
 | 33588 |  | 
 | 33589 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33590 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 | 
 | 33591 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33592 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then | 
 | 33593 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33594 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33595 |   ac_ext=cpp | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33596 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33597 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33598 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33599 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33600 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33601 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33602 | /* confdefs.h.  */ | 
 | 33603 | _ACEOF | 
 | 33604 | cat confdefs.h >>conftest.$ac_ext | 
 | 33605 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33606 | /* end confdefs.h.  */ | 
 | 33607 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33608 | int | 
 | 33609 | main () | 
 | 33610 | { | 
 | 33611 | float f; isnan(f); | 
 | 33612 |   ; | 
 | 33613 |   return 0; | 
 | 33614 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33615 | _ACEOF | 
 | 33616 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33617 | if { (ac_try="$ac_compile" | 
 | 33618 | case "(($ac_try" in | 
 | 33619 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33620 |   *) ac_try_echo=$ac_try;; | 
 | 33621 | esac | 
 | 33622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33623 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33624 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33625 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33626 |   rm -f conftest.er1 | 
 | 33627 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33628 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33629 |   (exit $ac_status); } && | 
 | 33630 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33631 |   { (case "(($ac_try" in | 
 | 33632 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33633 |   *) ac_try_echo=$ac_try;; | 
 | 33634 | esac | 
 | 33635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33636 |   (eval "$ac_try") 2>&5 | 
 | 33637 |   ac_status=$? | 
 | 33638 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33639 |   (exit $ac_status); }; } && | 
 | 33640 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33641 |   { (case "(($ac_try" in | 
 | 33642 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33643 |   *) ac_try_echo=$ac_try;; | 
 | 33644 | esac | 
 | 33645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33646 |   (eval "$ac_try") 2>&5 | 
 | 33647 |   ac_status=$? | 
 | 33648 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33649 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33650 |   ac_cv_func_isnan_in_math_h=yes | 
 | 33651 | else | 
 | 33652 |   echo "$as_me: failed program was:" >&5 | 
 | 33653 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33654 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33655 | 	ac_cv_func_isnan_in_math_h=no | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33656 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33657 |  | 
 | 33658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33659 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33660 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33664 |  | 
 | 33665 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33666 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 | 
 | 33667 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33668 |  | 
 | 33669 |  | 
 | 33670 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33671 |  | 
 | 33672 | cat >>confdefs.h <<\_ACEOF | 
 | 33673 | #define HAVE_ISNAN_IN_MATH_H 1 | 
 | 33674 | _ACEOF | 
 | 33675 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33676 | fi | 
 | 33677 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33678 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 | 
 | 33679 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33680 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then | 
 | 33681 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33682 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33683 |   ac_ext=cpp | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33684 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33685 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33686 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33687 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33688 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33689 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33690 | /* confdefs.h.  */ | 
 | 33691 | _ACEOF | 
 | 33692 | cat confdefs.h >>conftest.$ac_ext | 
 | 33693 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33694 | /* end confdefs.h.  */ | 
 | 33695 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33696 | int | 
 | 33697 | main () | 
 | 33698 | { | 
 | 33699 | float f; isnan(f); | 
 | 33700 |   ; | 
 | 33701 |   return 0; | 
 | 33702 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33703 | _ACEOF | 
 | 33704 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33705 | if { (ac_try="$ac_compile" | 
 | 33706 | case "(($ac_try" in | 
 | 33707 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33708 |   *) ac_try_echo=$ac_try;; | 
 | 33709 | esac | 
 | 33710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33711 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33712 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33713 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33714 |   rm -f conftest.er1 | 
 | 33715 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33716 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33717 |   (exit $ac_status); } && | 
 | 33718 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33719 |   { (case "(($ac_try" in | 
 | 33720 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33721 |   *) ac_try_echo=$ac_try;; | 
 | 33722 | esac | 
 | 33723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33724 |   (eval "$ac_try") 2>&5 | 
 | 33725 |   ac_status=$? | 
 | 33726 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33727 |   (exit $ac_status); }; } && | 
 | 33728 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33729 |   { (case "(($ac_try" in | 
 | 33730 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33731 |   *) ac_try_echo=$ac_try;; | 
 | 33732 | esac | 
 | 33733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33734 |   (eval "$ac_try") 2>&5 | 
 | 33735 |   ac_status=$? | 
 | 33736 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33737 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33738 |   ac_cv_func_isnan_in_cmath=yes | 
 | 33739 | else | 
 | 33740 |   echo "$as_me: failed program was:" >&5 | 
 | 33741 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33742 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33743 | 	ac_cv_func_isnan_in_cmath=no | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33744 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33745 |  | 
 | 33746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33747 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33748 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33752 |  | 
 | 33753 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33754 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 | 
 | 33755 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33756 |  | 
 | 33757 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33758 |  | 
 | 33759 | cat >>confdefs.h <<\_ACEOF | 
 | 33760 | #define HAVE_ISNAN_IN_CMATH 1 | 
 | 33761 | _ACEOF | 
 | 33762 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33763 | fi | 
 | 33764 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33765 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 | 
 | 33766 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33767 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then | 
 | 33768 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33769 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33770 |   ac_ext=cpp | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33771 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33775 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33776 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33777 | /* confdefs.h.  */ | 
 | 33778 | _ACEOF | 
 | 33779 | cat confdefs.h >>conftest.$ac_ext | 
 | 33780 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33781 | /* end confdefs.h.  */ | 
 | 33782 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33783 | int | 
 | 33784 | main () | 
 | 33785 | { | 
 | 33786 | float f; std::isnan(f); | 
 | 33787 |   ; | 
 | 33788 |   return 0; | 
 | 33789 | } | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33790 | _ACEOF | 
 | 33791 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33792 | if { (ac_try="$ac_compile" | 
 | 33793 | case "(($ac_try" in | 
 | 33794 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33795 |   *) ac_try_echo=$ac_try;; | 
 | 33796 | esac | 
 | 33797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33798 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33799 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33800 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33801 |   rm -f conftest.er1 | 
 | 33802 |   cat conftest.err >&5 | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33803 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33804 |   (exit $ac_status); } && | 
 | 33805 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33806 |   { (case "(($ac_try" in | 
 | 33807 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33808 |   *) ac_try_echo=$ac_try;; | 
 | 33809 | esac | 
 | 33810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33811 |   (eval "$ac_try") 2>&5 | 
 | 33812 |   ac_status=$? | 
 | 33813 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33814 |   (exit $ac_status); }; } && | 
 | 33815 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33816 |   { (case "(($ac_try" in | 
 | 33817 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33818 |   *) ac_try_echo=$ac_try;; | 
 | 33819 | esac | 
 | 33820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33821 |   (eval "$ac_try") 2>&5 | 
 | 33822 |   ac_status=$? | 
 | 33823 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33824 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33825 |   ac_cv_func_std_isnan_in_cmath=yes | 
 | 33826 | else | 
 | 33827 |   echo "$as_me: failed program was:" >&5 | 
 | 33828 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33829 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33830 | 	ac_cv_func_std_isnan_in_cmath=no | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33831 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33832 |  | 
 | 33833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33834 |   ac_ext=c | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33835 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33839 |  | 
 | 33840 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33841 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 | 
 | 33842 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33843 |  | 
 | 33844 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33845 |  | 
 | 33846 | cat >>confdefs.h <<\_ACEOF | 
 | 33847 | #define HAVE_STD_ISNAN_IN_CMATH 1 | 
 | 33848 | _ACEOF | 
 | 33849 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33850 | fi | 
| Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33851 |  | 
 | 33852 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33853 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 | 
 | 33854 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33855 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then | 
 | 33856 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33857 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33858 |   ac_ext=cpp | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33859 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33862 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33863 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33864 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33865 | /* confdefs.h.  */ | 
 | 33866 | _ACEOF | 
 | 33867 | cat confdefs.h >>conftest.$ac_ext | 
 | 33868 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33869 | /* end confdefs.h.  */ | 
 | 33870 | #include <math.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33871 | int | 
 | 33872 | main () | 
 | 33873 | { | 
 | 33874 | float f; isinf(f); | 
 | 33875 |   ; | 
 | 33876 |   return 0; | 
 | 33877 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33878 | _ACEOF | 
 | 33879 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33880 | if { (ac_try="$ac_compile" | 
 | 33881 | case "(($ac_try" in | 
 | 33882 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33883 |   *) ac_try_echo=$ac_try;; | 
 | 33884 | esac | 
 | 33885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33886 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33887 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33888 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33889 |   rm -f conftest.er1 | 
 | 33890 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33891 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33892 |   (exit $ac_status); } && | 
 | 33893 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33894 |   { (case "(($ac_try" in | 
 | 33895 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33896 |   *) ac_try_echo=$ac_try;; | 
 | 33897 | esac | 
 | 33898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33899 |   (eval "$ac_try") 2>&5 | 
 | 33900 |   ac_status=$? | 
 | 33901 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33902 |   (exit $ac_status); }; } && | 
 | 33903 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33904 |   { (case "(($ac_try" in | 
 | 33905 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33906 |   *) ac_try_echo=$ac_try;; | 
 | 33907 | esac | 
 | 33908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33909 |   (eval "$ac_try") 2>&5 | 
 | 33910 |   ac_status=$? | 
 | 33911 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33912 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33913 |   ac_cv_func_isinf_in_math_h=yes | 
 | 33914 | else | 
 | 33915 |   echo "$as_me: failed program was:" >&5 | 
 | 33916 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 33917 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33918 | 	ac_cv_func_isinf_in_math_h=no | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33919 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33920 |  | 
 | 33921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33922 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33923 | ac_cpp='$CPP $CPPFLAGS' | 
 | 33924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 33927 |  | 
 | 33928 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33929 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 | 
 | 33930 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33931 |  | 
 | 33932 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33933 |  | 
 | 33934 | cat >>confdefs.h <<\_ACEOF | 
 | 33935 | #define HAVE_ISINF_IN_MATH_H 1 | 
 | 33936 | _ACEOF | 
 | 33937 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33938 | fi | 
 | 33939 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33940 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 | 
 | 33941 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33942 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then | 
 | 33943 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 33944 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33945 |   ac_ext=cpp | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33946 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 33947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 33948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 33949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 33950 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33951 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33952 | /* confdefs.h.  */ | 
 | 33953 | _ACEOF | 
 | 33954 | cat confdefs.h >>conftest.$ac_ext | 
 | 33955 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 33956 | /* end confdefs.h.  */ | 
 | 33957 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33958 | int | 
 | 33959 | main () | 
 | 33960 | { | 
 | 33961 | float f; isinf(f); | 
 | 33962 |   ; | 
 | 33963 |   return 0; | 
 | 33964 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33965 | _ACEOF | 
 | 33966 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33967 | if { (ac_try="$ac_compile" | 
 | 33968 | case "(($ac_try" in | 
 | 33969 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33970 |   *) ac_try_echo=$ac_try;; | 
 | 33971 | esac | 
 | 33972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33973 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33974 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33975 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 33976 |   rm -f conftest.er1 | 
 | 33977 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33978 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33979 |   (exit $ac_status); } && | 
 | 33980 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 33981 |   { (case "(($ac_try" in | 
 | 33982 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33983 |   *) ac_try_echo=$ac_try;; | 
 | 33984 | esac | 
 | 33985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33986 |   (eval "$ac_try") 2>&5 | 
 | 33987 |   ac_status=$? | 
 | 33988 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33989 |   (exit $ac_status); }; } && | 
 | 33990 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 33991 |   { (case "(($ac_try" in | 
 | 33992 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 33993 |   *) ac_try_echo=$ac_try;; | 
 | 33994 | esac | 
 | 33995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 33996 |   (eval "$ac_try") 2>&5 | 
 | 33997 |   ac_status=$? | 
 | 33998 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 33999 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34000 |   ac_cv_func_isinf_in_cmath=yes | 
 | 34001 | else | 
 | 34002 |   echo "$as_me: failed program was:" >&5 | 
 | 34003 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34004 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34005 | 	ac_cv_func_isinf_in_cmath=no | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34006 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34007 |  | 
 | 34008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34009 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34010 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34014 |  | 
 | 34015 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34016 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 | 
 | 34017 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34018 |  | 
 | 34019 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34020 |  | 
 | 34021 | cat >>confdefs.h <<\_ACEOF | 
 | 34022 | #define HAVE_ISINF_IN_CMATH 1 | 
 | 34023 | _ACEOF | 
 | 34024 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34025 | fi | 
 | 34026 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34027 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 | 
 | 34028 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34029 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then | 
 | 34030 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34031 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34032 |   ac_ext=cpp | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34033 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 34034 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34035 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34036 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 34037 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34038 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34039 | /* confdefs.h.  */ | 
 | 34040 | _ACEOF | 
 | 34041 | cat confdefs.h >>conftest.$ac_ext | 
 | 34042 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34043 | /* end confdefs.h.  */ | 
 | 34044 | #include <cmath> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34045 | int | 
 | 34046 | main () | 
 | 34047 | { | 
 | 34048 | float f; std::isinf(f)} | 
 | 34049 |   ; | 
 | 34050 |   return 0; | 
 | 34051 | } | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34052 | _ACEOF | 
 | 34053 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34054 | if { (ac_try="$ac_compile" | 
 | 34055 | case "(($ac_try" in | 
 | 34056 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34057 |   *) ac_try_echo=$ac_try;; | 
 | 34058 | esac | 
 | 34059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34060 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34061 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34062 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34063 |   rm -f conftest.er1 | 
 | 34064 |   cat conftest.err >&5 | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34065 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34066 |   (exit $ac_status); } && | 
 | 34067 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 34068 |   { (case "(($ac_try" in | 
 | 34069 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34070 |   *) ac_try_echo=$ac_try;; | 
 | 34071 | esac | 
 | 34072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34073 |   (eval "$ac_try") 2>&5 | 
 | 34074 |   ac_status=$? | 
 | 34075 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34076 |   (exit $ac_status); }; } && | 
 | 34077 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 34078 |   { (case "(($ac_try" in | 
 | 34079 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34080 |   *) ac_try_echo=$ac_try;; | 
 | 34081 | esac | 
 | 34082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34083 |   (eval "$ac_try") 2>&5 | 
 | 34084 |   ac_status=$? | 
 | 34085 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34086 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34087 |   ac_cv_func_std_isinf_in_cmath=yes | 
 | 34088 | else | 
 | 34089 |   echo "$as_me: failed program was:" >&5 | 
 | 34090 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34091 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34092 | 	ac_cv_func_std_isinf_in_cmath=no | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34093 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34094 |  | 
 | 34095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34096 |   ac_ext=c | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34097 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34101 |  | 
 | 34102 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34103 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 | 
 | 34104 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34105 |  | 
 | 34106 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then | 
| Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34107 |  | 
 | 34108 | cat >>confdefs.h <<\_ACEOF | 
 | 34109 | #define HAVE_STD_ISINF_IN_CMATH 1 | 
 | 34110 | _ACEOF | 
 | 34111 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34112 | fi | 
 | 34113 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34114 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 | 
 | 34115 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34116 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then | 
 | 34117 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34118 | else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34119 |   ac_ext=cpp | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34120 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 34121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 34124 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34125 |    cat >conftest.$ac_ext <<_ACEOF | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34126 | /* confdefs.h.  */ | 
 | 34127 | _ACEOF | 
 | 34128 | cat confdefs.h >>conftest.$ac_ext | 
 | 34129 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34130 | /* end confdefs.h.  */ | 
 | 34131 | #include <ieeefp.h> | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34132 | int | 
 | 34133 | main () | 
 | 34134 | { | 
 | 34135 | float f; finite(f); | 
 | 34136 |   ; | 
 | 34137 |   return 0; | 
 | 34138 | } | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34139 | _ACEOF | 
 | 34140 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34141 | if { (ac_try="$ac_compile" | 
 | 34142 | case "(($ac_try" in | 
 | 34143 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34144 |   *) ac_try_echo=$ac_try;; | 
 | 34145 | esac | 
 | 34146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34147 |   (eval "$ac_compile") 2>conftest.er1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34148 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34149 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34150 |   rm -f conftest.er1 | 
 | 34151 |   cat conftest.err >&5 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34152 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34153 |   (exit $ac_status); } && | 
 | 34154 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 34155 |   { (case "(($ac_try" in | 
 | 34156 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34157 |   *) ac_try_echo=$ac_try;; | 
 | 34158 | esac | 
 | 34159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34160 |   (eval "$ac_try") 2>&5 | 
 | 34161 |   ac_status=$? | 
 | 34162 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34163 |   (exit $ac_status); }; } && | 
 | 34164 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 34165 |   { (case "(($ac_try" in | 
 | 34166 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34167 |   *) ac_try_echo=$ac_try;; | 
 | 34168 | esac | 
 | 34169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34170 |   (eval "$ac_try") 2>&5 | 
 | 34171 |   ac_status=$? | 
 | 34172 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34173 |   (exit $ac_status); }; }; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34174 |   ac_cv_func_finite_in_ieeefp_h=yes | 
 | 34175 | else | 
 | 34176 |   echo "$as_me: failed program was:" >&5 | 
 | 34177 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34178 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34179 | 	ac_cv_func_finite_in_ieeefp_h=no | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34180 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34181 |  | 
 | 34182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34183 |   ac_ext=c | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34184 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34188 |  | 
 | 34189 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34190 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 | 
 | 34191 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34192 |  | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34193 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34194 |  | 
 | 34195 | cat >>confdefs.h <<\_ACEOF | 
| Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34196 | #define HAVE_FINITE_IN_IEEEFP_H 1 | 
| Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34197 | _ACEOF | 
 | 34198 |  | 
| Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34199 | fi | 
 | 34200 |  | 
 | 34201 |  | 
 | 34202 |  | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34203 | if test "$llvm_cv_platform_type" = "Unix" ; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34204 |  | 
 | 34205 |  | 
 | 34206 | for ac_header in stdlib.h unistd.h | 
 | 34207 | do | 
 | 34208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 34210 |   { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 34211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 34212 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34213 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34214 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34215 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 34216 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 34217 | echo "${ECHO_T}$ac_res" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34218 | else | 
 | 34219 |   # Is the header compilable? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34220 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | 
 | 34221 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34222 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34223 | /* confdefs.h.  */ | 
 | 34224 | _ACEOF | 
 | 34225 | cat confdefs.h >>conftest.$ac_ext | 
 | 34226 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34227 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34228 | $ac_includes_default | 
 | 34229 | #include <$ac_header> | 
 | 34230 | _ACEOF | 
 | 34231 | rm -f conftest.$ac_objext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34232 | if { (ac_try="$ac_compile" | 
 | 34233 | case "(($ac_try" in | 
 | 34234 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34235 |   *) ac_try_echo=$ac_try;; | 
 | 34236 | esac | 
 | 34237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34238 |   (eval "$ac_compile") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34239 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34240 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34241 |   rm -f conftest.er1 | 
 | 34242 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34243 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34244 |   (exit $ac_status); } && | 
 | 34245 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 34246 |   { (case "(($ac_try" in | 
 | 34247 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34248 |   *) ac_try_echo=$ac_try;; | 
 | 34249 | esac | 
 | 34250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34251 |   (eval "$ac_try") 2>&5 | 
 | 34252 |   ac_status=$? | 
 | 34253 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34254 |   (exit $ac_status); }; } && | 
 | 34255 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 34256 |   { (case "(($ac_try" in | 
 | 34257 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34258 |   *) ac_try_echo=$ac_try;; | 
 | 34259 | esac | 
 | 34260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34261 |   (eval "$ac_try") 2>&5 | 
 | 34262 |   ac_status=$? | 
 | 34263 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34264 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34265 |   ac_header_compiler=yes | 
 | 34266 | else | 
 | 34267 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34268 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34269 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34270 | 	ac_header_compiler=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34271 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34272 |  | 
 | 34273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 34274 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
 | 34275 | echo "${ECHO_T}$ac_header_compiler" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34276 |  | 
 | 34277 | # Is the header present? | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34278 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | 
 | 34279 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34280 | cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34281 | /* confdefs.h.  */ | 
 | 34282 | _ACEOF | 
 | 34283 | cat confdefs.h >>conftest.$ac_ext | 
 | 34284 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34285 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34286 | #include <$ac_header> | 
 | 34287 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34288 | if { (ac_try="$ac_cpp conftest.$ac_ext" | 
 | 34289 | case "(($ac_try" in | 
 | 34290 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34291 |   *) ac_try_echo=$ac_try;; | 
 | 34292 | esac | 
 | 34293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34294 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34295 |   ac_status=$? | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34296 |   grep -v '^ *+' conftest.er1 >conftest.err | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34297 |   rm -f conftest.er1 | 
 | 34298 |   cat conftest.err >&5 | 
 | 34299 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34300 |   (exit $ac_status); } >/dev/null; then | 
 | 34301 |   if test -s conftest.err; then | 
 | 34302 |     ac_cpp_err=$ac_c_preproc_warn_flag | 
 | 34303 |     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | 
 | 34304 |   else | 
 | 34305 |     ac_cpp_err= | 
 | 34306 |   fi | 
 | 34307 | else | 
 | 34308 |   ac_cpp_err=yes | 
 | 34309 | fi | 
 | 34310 | if test -z "$ac_cpp_err"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34311 |   ac_header_preproc=yes | 
 | 34312 | else | 
 | 34313 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34314 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34315 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34316 |   ac_header_preproc=no | 
 | 34317 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34318 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34319 | rm -f conftest.err conftest.$ac_ext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34320 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
 | 34321 | echo "${ECHO_T}$ac_header_preproc" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34322 |  | 
 | 34323 | # So?  What about this header? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34324 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | 
 | 34325 |   yes:no: ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34326 |     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 34327 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34328 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | 
 | 34329 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | 
 | 34330 |     ac_header_preproc=yes | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34331 |     ;; | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34332 |   no:yes:* ) | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34333 |     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | 
 | 34334 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34335 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5 | 
 | 34336 | echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;} | 
 | 34337 |     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | 
 | 34338 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | 
 | 34339 |     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 34340 | echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;} | 
| Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34341 |     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | 
 | 34342 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34343 |     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | 
 | 34344 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34345 |     ( cat <<\_ASBOX | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34346 | ## ----------------------------------- ## | 
 | 34347 | ## Report this to llvmbugs@cs.uiuc.edu ## | 
 | 34348 | ## ----------------------------------- ## | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34349 | _ASBOX | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34350 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34351 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34352 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34353 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
 | 34354 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | 
 | 34355 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34356 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34357 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34358 |   eval "$as_ac_Header=\$ac_header_preproc" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34359 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34360 | ac_res=`eval echo '${'$as_ac_Header'}'` | 
 | 34361 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 34362 | echo "${ECHO_T}$ac_res" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34363 |  | 
 | 34364 | fi | 
 | 34365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
 | 34366 |   cat >>confdefs.h <<_ACEOF | 
 | 34367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 34368 | _ACEOF | 
 | 34369 |  | 
 | 34370 | fi | 
 | 34371 |  | 
 | 34372 | done | 
 | 34373 |  | 
 | 34374 |  | 
 | 34375 | for ac_func in getpagesize | 
 | 34376 | do | 
 | 34377 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34378 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 34379 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 34380 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34381 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34382 | else | 
 | 34383 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34384 | /* confdefs.h.  */ | 
 | 34385 | _ACEOF | 
 | 34386 | cat confdefs.h >>conftest.$ac_ext | 
 | 34387 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34388 | /* end confdefs.h.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34389 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 34390 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 34391 | #define $ac_func innocuous_$ac_func | 
 | 34392 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34393 | /* System header to define __stub macros and hopefully few prototypes, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34394 |     which can conflict with char $ac_func (); below. | 
 | 34395 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 34396 |     <limits.h> exists even on freestanding compilers.  */ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34397 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34398 | #ifdef __STDC__ | 
 | 34399 | # include <limits.h> | 
 | 34400 | #else | 
 | 34401 | # include <assert.h> | 
 | 34402 | #endif | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34403 |  | 
 | 34404 | #undef $ac_func | 
 | 34405 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34406 | /* Override any GCC internal prototype to avoid an error. | 
 | 34407 |    Use char because int might match the return type of a GCC | 
 | 34408 |    builtin and then its argument prototype would still apply.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34409 | #ifdef __cplusplus | 
 | 34410 | extern "C" | 
 | 34411 | #endif | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34412 | char $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34413 | /* The GNU C library defines this for functions which it implements | 
 | 34414 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 34415 |     something starting with __ and the normal name is an alias.  */ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34416 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34417 | choke me | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34418 | #endif | 
 | 34419 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34420 | int | 
 | 34421 | main () | 
 | 34422 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34423 | return $ac_func (); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 |   ; | 
 | 34425 |   return 0; | 
 | 34426 | } | 
 | 34427 | _ACEOF | 
 | 34428 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34429 | if { (ac_try="$ac_link" | 
 | 34430 | case "(($ac_try" in | 
 | 34431 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34432 |   *) ac_try_echo=$ac_try;; | 
 | 34433 | esac | 
 | 34434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34435 |   (eval "$ac_link") 2>conftest.er1 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34436 |   ac_status=$? | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34437 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34438 |   rm -f conftest.er1 | 
 | 34439 |   cat conftest.err >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34440 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34441 |   (exit $ac_status); } && | 
 | 34442 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 34443 |   { (case "(($ac_try" in | 
 | 34444 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34445 |   *) ac_try_echo=$ac_try;; | 
 | 34446 | esac | 
 | 34447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34448 |   (eval "$ac_try") 2>&5 | 
 | 34449 |   ac_status=$? | 
 | 34450 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34451 |   (exit $ac_status); }; } && | 
 | 34452 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 34453 |   { (case "(($ac_try" in | 
 | 34454 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34455 |   *) ac_try_echo=$ac_try;; | 
 | 34456 | esac | 
 | 34457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34458 |   (eval "$ac_try") 2>&5 | 
 | 34459 |   ac_status=$? | 
 | 34460 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34461 |   (exit $ac_status); }; }; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34462 |   eval "$as_ac_var=yes" | 
 | 34463 | else | 
 | 34464 |   echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34465 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34466 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34467 | 	eval "$as_ac_var=no" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34468 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34469 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34470 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34471 |       conftest$ac_exeext conftest.$ac_ext | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34472 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34473 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 34474 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 34475 | echo "${ECHO_T}$ac_res" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34476 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 34477 |   cat >>confdefs.h <<_ACEOF | 
 | 34478 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 34479 | _ACEOF | 
 | 34480 |  | 
 | 34481 | fi | 
 | 34482 | done | 
 | 34483 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34484 | { echo "$as_me:$LINENO: checking for working mmap" >&5 | 
 | 34485 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34486 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | 
 | 34487 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34488 | else | 
 | 34489 |   if test "$cross_compiling" = yes; then | 
 | 34490 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 34491 | else | 
 | 34492 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34493 | /* confdefs.h.  */ | 
 | 34494 | _ACEOF | 
 | 34495 | cat confdefs.h >>conftest.$ac_ext | 
 | 34496 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34497 | /* end confdefs.h.  */ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34498 | $ac_includes_default | 
 | 34499 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 34500 | #undef malloc | 
 | 34501 |  | 
 | 34502 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 34503 |    Here is a matrix of mmap possibilities: | 
 | 34504 | 	mmap private not fixed | 
 | 34505 | 	mmap private fixed at somewhere currently unmapped | 
 | 34506 | 	mmap private fixed at somewhere already mapped | 
 | 34507 | 	mmap shared not fixed | 
 | 34508 | 	mmap shared fixed at somewhere currently unmapped | 
 | 34509 | 	mmap shared fixed at somewhere already mapped | 
 | 34510 |    For private mappings, we should verify that changes cannot be read() | 
 | 34511 |    back from the file, nor mmap's back from the file at a different | 
 | 34512 |    address.  (There have been systems where private was not correctly | 
 | 34513 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 34514 |    VM page cache was not coherent with the file system buffer cache | 
 | 34515 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 34516 |    For shared mappings, we should conversely verify that changes get | 
 | 34517 |    propagated back to all the places they're supposed to be. | 
 | 34518 |  | 
 | 34519 |    Grep wants private fixed already mapped. | 
 | 34520 |    The main things grep needs to know about mmap are: | 
 | 34521 |    * does it exist and is it safe to write into the mmap'd area | 
 | 34522 |    * how to use it (BSD variants)  */ | 
 | 34523 |  | 
 | 34524 | #include <fcntl.h> | 
 | 34525 | #include <sys/mman.h> | 
 | 34526 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34527 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34528 | char *malloc (); | 
 | 34529 | #endif | 
 | 34530 |  | 
 | 34531 | /* This mess was copied from the GNU getpagesize.h.  */ | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34532 | #if !HAVE_GETPAGESIZE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34533 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34534 | # if !HAVE_SYS_PARAM_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34535 | #  define HAVE_SYS_PARAM_H 1 | 
 | 34536 | # endif | 
 | 34537 |  | 
 | 34538 | # ifdef _SC_PAGESIZE | 
 | 34539 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 34540 | # else /* no _SC_PAGESIZE */ | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34541 | #  if HAVE_SYS_PARAM_H | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34542 | #   include <sys/param.h> | 
 | 34543 | #   ifdef EXEC_PAGESIZE | 
 | 34544 | #    define getpagesize() EXEC_PAGESIZE | 
 | 34545 | #   else /* no EXEC_PAGESIZE */ | 
 | 34546 | #    ifdef NBPG | 
 | 34547 | #     define getpagesize() NBPG * CLSIZE | 
 | 34548 | #     ifndef CLSIZE | 
 | 34549 | #      define CLSIZE 1 | 
 | 34550 | #     endif /* no CLSIZE */ | 
 | 34551 | #    else /* no NBPG */ | 
 | 34552 | #     ifdef NBPC | 
 | 34553 | #      define getpagesize() NBPC | 
 | 34554 | #     else /* no NBPC */ | 
 | 34555 | #      ifdef PAGESIZE | 
 | 34556 | #       define getpagesize() PAGESIZE | 
 | 34557 | #      endif /* PAGESIZE */ | 
 | 34558 | #     endif /* no NBPC */ | 
 | 34559 | #    endif /* no NBPG */ | 
 | 34560 | #   endif /* no EXEC_PAGESIZE */ | 
 | 34561 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 34562 | #   define getpagesize() 8192	/* punt totally */ | 
 | 34563 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 34564 | # endif /* no _SC_PAGESIZE */ | 
 | 34565 |  | 
 | 34566 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 34567 |  | 
 | 34568 | int | 
 | 34569 | main () | 
 | 34570 | { | 
 | 34571 |   char *data, *data2, *data3; | 
 | 34572 |   int i, pagesize; | 
 | 34573 |   int fd; | 
 | 34574 |  | 
 | 34575 |   pagesize = getpagesize (); | 
 | 34576 |  | 
 | 34577 |   /* First, make a file with some known garbage in it. */ | 
 | 34578 |   data = (char *) malloc (pagesize); | 
 | 34579 |   if (!data) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34580 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34581 |   for (i = 0; i < pagesize; ++i) | 
 | 34582 |     *(data + i) = rand (); | 
 | 34583 |   umask (0); | 
 | 34584 |   fd = creat ("conftest.mmap", 0600); | 
 | 34585 |   if (fd < 0) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34586 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34587 |   if (write (fd, data, pagesize) != pagesize) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34588 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34589 |   close (fd); | 
 | 34590 |  | 
 | 34591 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 34592 |      something else allocated at it.  If we can, also make sure that | 
 | 34593 |      we see the same garbage.  */ | 
 | 34594 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 34595 |   if (fd < 0) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34596 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34597 |   data2 = (char *) malloc (2 * pagesize); | 
 | 34598 |   if (!data2) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34599 |     return 1; | 
 | 34600 |   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34602 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34603 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34604 |   for (i = 0; i < pagesize; ++i) | 
 | 34605 |     if (*(data + i) != *(data2 + i)) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34606 |       return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34607 |  | 
 | 34608 |   /* Finally, make sure that changes to the mapped area do not | 
 | 34609 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 34610 |      some variants of i386 svr4.0.)  */ | 
 | 34611 |   for (i = 0; i < pagesize; ++i) | 
 | 34612 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 34613 |   data3 = (char *) malloc (pagesize); | 
 | 34614 |   if (!data3) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34615 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34616 |   if (read (fd, data3, pagesize) != pagesize) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34617 |     return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34618 |   for (i = 0; i < pagesize; ++i) | 
 | 34619 |     if (*(data + i) != *(data3 + i)) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34620 |       return 1; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34621 |   close (fd); | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34622 |   return 0; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34623 | } | 
 | 34624 | _ACEOF | 
 | 34625 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34626 | if { (ac_try="$ac_link" | 
 | 34627 | case "(($ac_try" in | 
 | 34628 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34629 |   *) ac_try_echo=$ac_try;; | 
 | 34630 | esac | 
 | 34631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34632 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34633 |   ac_status=$? | 
 | 34634 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34635 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34636 |   { (case "(($ac_try" in | 
 | 34637 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34638 |   *) ac_try_echo=$ac_try;; | 
 | 34639 | esac | 
 | 34640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34641 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34642 |   ac_status=$? | 
 | 34643 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34644 |   (exit $ac_status); }; }; then | 
 | 34645 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 34646 | else | 
 | 34647 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 34648 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34649 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34650 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34651 | ( exit $ac_status ) | 
 | 34652 | ac_cv_func_mmap_fixed_mapped=no | 
 | 34653 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34654 | rm -f core *.core core.conftest.* 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] | 34655 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34656 |  | 
 | 34657 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34658 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34659 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | 
 | 34660 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34661 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 34662 |  | 
 | 34663 | cat >>confdefs.h <<\_ACEOF | 
 | 34664 | #define HAVE_MMAP 1 | 
 | 34665 | _ACEOF | 
 | 34666 |  | 
 | 34667 | fi | 
 | 34668 | rm -f conftest.mmap | 
 | 34669 |  | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34670 |   { echo "$as_me:$LINENO: checking for mmap of files" >&5 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34671 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34672 | if test "${ac_cv_func_mmap_file+set}" = set; then | 
 | 34673 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34674 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34675 |    ac_ext=c | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34676 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34680 |  | 
 | 34681 |   if test "$cross_compiling" = yes; then | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34682 |   ac_cv_func_mmap_file=no | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34683 | else | 
 | 34684 |   cat >conftest.$ac_ext <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34685 |  | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34686 |     /* confdefs.h.  */ | 
 | 34687 | _ACEOF | 
 | 34688 | cat confdefs.h >>conftest.$ac_ext | 
 | 34689 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34690 | /* end confdefs.h.  */ | 
 | 34691 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34692 | #include <sys/types.h> | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34693 | #include <sys/mman.h> | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34694 | #include <fcntl.h> | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34695 |  | 
 | 34696 | int | 
 | 34697 | main () | 
 | 34698 | { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34699 |  | 
 | 34700 |   int fd; | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34701 |   fd = creat ("foo",0777); | 
 | 34702 |   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); | 
 | 34703 |   unlink ("foo"); | 
| Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34704 |   return (fd != (int) MAP_FAILED); | 
| Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34705 |   ; | 
 | 34706 |   return 0; | 
 | 34707 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34708 | _ACEOF | 
 | 34709 | rm -f conftest$ac_exeext | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34710 | if { (ac_try="$ac_link" | 
 | 34711 | case "(($ac_try" in | 
 | 34712 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34713 |   *) ac_try_echo=$ac_try;; | 
 | 34714 | esac | 
 | 34715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34716 |   (eval "$ac_link") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34717 |   ac_status=$? | 
 | 34718 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34719 |   (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34720 |   { (case "(($ac_try" in | 
 | 34721 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34722 |   *) ac_try_echo=$ac_try;; | 
 | 34723 | esac | 
 | 34724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34725 |   (eval "$ac_try") 2>&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34726 |   ac_status=$? | 
 | 34727 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34728 |   (exit $ac_status); }; }; then | 
 | 34729 |   ac_cv_func_mmap_file=yes | 
 | 34730 | else | 
 | 34731 |   echo "$as_me: program exited with status $ac_status" >&5 | 
 | 34732 | echo "$as_me: failed program was:" >&5 | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34733 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34734 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34735 | ( exit $ac_status ) | 
 | 34736 | ac_cv_func_mmap_file=no | 
 | 34737 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34738 | rm -f core *.core core.conftest.* 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] | 34739 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34740 |  | 
 | 34741 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34742 |   ac_ext=c | 
 | 34743 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34747 |  | 
 | 34748 |  | 
 | 34749 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34750 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 | 
 | 34751 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34752 | if test "$ac_cv_func_mmap_file" = yes; then | 
| John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34753 |  | 
 | 34754 | cat >>confdefs.h <<\_ACEOF | 
 | 34755 | #define HAVE_MMAP_FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34756 | _ACEOF | 
 | 34757 |  | 
 | 34758 |    MMAP_FILE=yes | 
 | 34759 |  | 
 | 34760 | fi | 
 | 34761 |  | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34762 |   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34763 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34764 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then | 
 | 34765 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34766 | else | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34767 |   if test "$llvm_cv_os_type" = "Interix" ; then | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34768 |    ac_cv_need_dev_zero_for_mmap=yes | 
 | 34769 |  else | 
 | 34770 |    ac_cv_need_dev_zero_for_mmap=no | 
 | 34771 |  fi | 
 | 34772 |  | 
 | 34773 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34774 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 | 
 | 34775 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } | 
| Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34776 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then | 
 | 34777 |  | 
 | 34778 | cat >>confdefs.h <<\_ACEOF | 
 | 34779 | #define NEED_DEV_ZERO_FOR_MMAP 1 | 
 | 34780 | _ACEOF | 
 | 34781 |  | 
 | 34782 | fi | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34783 |  | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34784 |   if test "$ac_cv_func_mmap_fixed_mapped" = "no" | 
 | 34785 |   then | 
 | 34786 |     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 | 
| Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34787 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34788 |   fi | 
 | 34789 |   if test "$ac_cv_func_mmap_file" = "no" | 
 | 34790 |   then | 
 | 34791 |     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34792 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} | 
| Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34793 |   fi | 
| John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34794 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34795 |  | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34796 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34797 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34798 | cat >conftest.$ac_ext <<_ACEOF | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34799 | /* confdefs.h.  */ | 
 | 34800 | _ACEOF | 
 | 34801 | cat confdefs.h >>conftest.$ac_ext | 
 | 34802 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34803 | /* end confdefs.h.  */ | 
 | 34804 | int main() { | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34805 |         volatile unsigned long val = 1; | 
 | 34806 |         __sync_synchronize(); | 
 | 34807 |         __sync_val_compare_and_swap(&val, 1, 0); | 
| Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34808 |         __sync_add_and_fetch(&val, 1); | 
 | 34809 |         __sync_sub_and_fetch(&val, 1); | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34810 |         return 0; | 
 | 34811 |       } | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34812 |  | 
 | 34813 | _ACEOF | 
 | 34814 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 34815 | if { (ac_try="$ac_link" | 
 | 34816 | case "(($ac_try" in | 
 | 34817 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34818 |   *) ac_try_echo=$ac_try;; | 
 | 34819 | esac | 
 | 34820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34821 |   (eval "$ac_link") 2>conftest.er1 | 
 | 34822 |   ac_status=$? | 
 | 34823 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34824 |   rm -f conftest.er1 | 
 | 34825 |   cat conftest.err >&5 | 
 | 34826 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34827 |   (exit $ac_status); } && | 
 | 34828 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 34829 |   { (case "(($ac_try" in | 
 | 34830 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34831 |   *) ac_try_echo=$ac_try;; | 
 | 34832 | esac | 
 | 34833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34834 |   (eval "$ac_try") 2>&5 | 
 | 34835 |   ac_status=$? | 
 | 34836 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34837 |   (exit $ac_status); }; } && | 
 | 34838 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 34839 |   { (case "(($ac_try" in | 
 | 34840 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34841 |   *) ac_try_echo=$ac_try;; | 
 | 34842 | esac | 
 | 34843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34844 |   (eval "$ac_try") 2>&5 | 
 | 34845 |   ac_status=$? | 
 | 34846 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34847 |   (exit $ac_status); }; }; then | 
 | 34848 |   { echo "$as_me:$LINENO: result: yes" >&5 | 
 | 34849 | echo "${ECHO_T}yes" >&6; } | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34850 |  | 
 | 34851 | cat >>confdefs.h <<\_ACEOF | 
 | 34852 | #define LLVM_MULTITHREADED 1 | 
 | 34853 | _ACEOF | 
 | 34854 |  | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34855 | else | 
 | 34856 |   echo "$as_me: failed program was:" >&5 | 
 | 34857 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34858 |  | 
 | 34859 | 	{ echo "$as_me:$LINENO: result: no" >&5 | 
 | 34860 | echo "${ECHO_T}no" >&6; } | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34861 |  | 
| Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34862 | cat >>confdefs.h <<\_ACEOF | 
 | 34863 | #define LLVM_MULTITHREADED 0 | 
 | 34864 | _ACEOF | 
 | 34865 |  | 
 | 34866 |   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 | 
 | 34867 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34868 | fi | 
 | 34869 |  | 
 | 34870 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 34871 |       conftest$ac_exeext conftest.$ac_ext | 
| Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34872 |  | 
 | 34873 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34874 |  | 
| Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 34875 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then | 
 | 34876 |   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 | 
 | 34877 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } | 
 | 34878 | if test "${llvm_cv_linux_mixed+set}" = set; then | 
 | 34879 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34880 | else | 
 | 34881 |    ac_ext=c | 
 | 34882 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34886 |  | 
 | 34887 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 34888 | /* confdefs.h.  */ | 
 | 34889 | _ACEOF | 
 | 34890 | cat confdefs.h >>conftest.$ac_ext | 
 | 34891 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34892 | /* end confdefs.h.  */ | 
 | 34893 | #ifndef __x86_64__ | 
 | 34894 |        error: Not x86-64 even if uname says so! | 
 | 34895 |       #endif | 
 | 34896 |  | 
 | 34897 | int | 
 | 34898 | main () | 
 | 34899 | { | 
 | 34900 |  | 
 | 34901 |   ; | 
 | 34902 |   return 0; | 
 | 34903 | } | 
 | 34904 | _ACEOF | 
 | 34905 | rm -f conftest.$ac_objext | 
 | 34906 | if { (ac_try="$ac_compile" | 
 | 34907 | case "(($ac_try" in | 
 | 34908 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34909 |   *) ac_try_echo=$ac_try;; | 
 | 34910 | esac | 
 | 34911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34912 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 34913 |   ac_status=$? | 
 | 34914 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 34915 |   rm -f conftest.er1 | 
 | 34916 |   cat conftest.err >&5 | 
 | 34917 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34918 |   (exit $ac_status); } && | 
 | 34919 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 34920 |   { (case "(($ac_try" in | 
 | 34921 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34922 |   *) ac_try_echo=$ac_try;; | 
 | 34923 | esac | 
 | 34924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34925 |   (eval "$ac_try") 2>&5 | 
 | 34926 |   ac_status=$? | 
 | 34927 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34928 |   (exit $ac_status); }; } && | 
 | 34929 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 34930 |   { (case "(($ac_try" in | 
 | 34931 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 34932 |   *) ac_try_echo=$ac_try;; | 
 | 34933 | esac | 
 | 34934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 34935 |   (eval "$ac_try") 2>&5 | 
 | 34936 |   ac_status=$? | 
 | 34937 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 34938 |   (exit $ac_status); }; }; then | 
 | 34939 |   llvm_cv_linux_mixed=no | 
 | 34940 | else | 
 | 34941 |   echo "$as_me: failed program was:" >&5 | 
 | 34942 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 34943 |  | 
 | 34944 | 	llvm_cv_linux_mixed=yes | 
 | 34945 | fi | 
 | 34946 |  | 
 | 34947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 34948 |   ac_ext=c | 
 | 34949 | ac_cpp='$CPP $CPPFLAGS' | 
 | 34950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 34951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 34952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 34953 |  | 
 | 34954 |  | 
 | 34955 | fi | 
 | 34956 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 | 
 | 34957 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } | 
 | 34958 |  | 
 | 34959 |   if test "$llvm_cv_linux_mixed" = "yes"; then | 
 | 34960 |     llvm_cv_target_arch="x86" | 
 | 34961 |     ARCH="x86" | 
 | 34962 |   fi | 
 | 34963 | fi | 
 | 34964 |  | 
| Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34965 |  | 
 | 34966 | for ac_func in __dso_handle | 
 | 34967 | do | 
 | 34968 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 34969 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | 
 | 34970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | 
 | 34971 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 
 | 34972 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 34973 | else | 
 | 34974 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 34975 | /* confdefs.h.  */ | 
 | 34976 | _ACEOF | 
 | 34977 | cat confdefs.h >>conftest.$ac_ext | 
 | 34978 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 34979 | /* end confdefs.h.  */ | 
 | 34980 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | 
 | 34981 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 34982 | #define $ac_func innocuous_$ac_func | 
 | 34983 |  | 
 | 34984 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 34985 |     which can conflict with char $ac_func (); below. | 
 | 34986 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 34987 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 34988 |  | 
 | 34989 | #ifdef __STDC__ | 
 | 34990 | # include <limits.h> | 
 | 34991 | #else | 
 | 34992 | # include <assert.h> | 
 | 34993 | #endif | 
 | 34994 |  | 
 | 34995 | #undef $ac_func | 
 | 34996 |  | 
 | 34997 | /* Override any GCC internal prototype to avoid an error. | 
 | 34998 |    Use char because int might match the return type of a GCC | 
 | 34999 |    builtin and then its argument prototype would still apply.  */ | 
 | 35000 | #ifdef __cplusplus | 
 | 35001 | extern "C" | 
 | 35002 | #endif | 
 | 35003 | char $ac_func (); | 
 | 35004 | /* The GNU C library defines this for functions which it implements | 
 | 35005 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 35006 |     something starting with __ and the normal name is an alias.  */ | 
 | 35007 | #if defined __stub_$ac_func || defined __stub___$ac_func | 
 | 35008 | choke me | 
 | 35009 | #endif | 
 | 35010 |  | 
 | 35011 | int | 
 | 35012 | main () | 
 | 35013 | { | 
 | 35014 | return $ac_func (); | 
 | 35015 |   ; | 
 | 35016 |   return 0; | 
 | 35017 | } | 
 | 35018 | _ACEOF | 
 | 35019 | rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 35020 | if { (ac_try="$ac_link" | 
 | 35021 | case "(($ac_try" in | 
 | 35022 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35023 |   *) ac_try_echo=$ac_try;; | 
 | 35024 | esac | 
 | 35025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35026 |   (eval "$ac_link") 2>conftest.er1 | 
 | 35027 |   ac_status=$? | 
 | 35028 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 35029 |   rm -f conftest.er1 | 
 | 35030 |   cat conftest.err >&5 | 
 | 35031 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35032 |   (exit $ac_status); } && | 
 | 35033 | 	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | 
 | 35034 |   { (case "(($ac_try" in | 
 | 35035 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35036 |   *) ac_try_echo=$ac_try;; | 
 | 35037 | esac | 
 | 35038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35039 |   (eval "$ac_try") 2>&5 | 
 | 35040 |   ac_status=$? | 
 | 35041 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 35042 |   (exit $ac_status); }; } && | 
 | 35043 | 	 { ac_try='test -s conftest$ac_exeext' | 
 | 35044 |   { (case "(($ac_try" in | 
 | 35045 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35046 |   *) ac_try_echo=$ac_try;; | 
 | 35047 | esac | 
 | 35048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35049 |   (eval "$ac_try") 2>&5 | 
 | 35050 |   ac_status=$? | 
 | 35051 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 35052 |   (exit $ac_status); }; }; then | 
| Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 35053 |   eval "$as_ac_var=yes" | 
 | 35054 | else | 
 | 35055 |   echo "$as_me: failed program was:" >&5 | 
 | 35056 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 35057 |  | 
 | 35058 | 	eval "$as_ac_var=no" | 
 | 35059 | fi | 
 | 35060 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35061 | rm -f core conftest.err conftest.$ac_objext \ | 
| Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 35062 |       conftest$ac_exeext conftest.$ac_ext | 
 | 35063 | fi | 
 | 35064 | ac_res=`eval echo '${'$as_ac_var'}'` | 
 | 35065 | 	       { echo "$as_me:$LINENO: result: $ac_res" >&5 | 
 | 35066 | echo "${ECHO_T}$ac_res" >&6; } | 
 | 35067 | if test `eval echo '${'$as_ac_var'}'` = yes; then | 
 | 35068 |   cat >>confdefs.h <<_ACEOF | 
 | 35069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 35070 | _ACEOF | 
 | 35071 |  | 
 | 35072 | fi | 
 | 35073 | done | 
 | 35074 |  | 
 | 35075 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35076 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 | 
 | 35077 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35078 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then | 
 | 35079 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 35080 | else | 
 | 35081 |   llvm_cv_llvmgcc_sanity="no" | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35082 | if test -x "$LLVMGCC" ; then | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35083 |   cp /dev/null conftest.c | 
| Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 35084 |   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ | 
 | 35085 |       grep 'target datalayout =' > /dev/null 2>&1 | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35086 |   if test $? -eq 0 ; then | 
 | 35087 |     llvm_cv_llvmgcc_sanity="yes" | 
 | 35088 |   fi | 
 | 35089 |   rm conftest.c | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35090 | fi | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35091 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35092 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 | 
 | 35093 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35094 |  | 
 | 35095 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then | 
| Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35096 |   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 | 
 | 35097 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35098 |   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35099 |   LLVMCC1=$llvmcc1path | 
 | 35100 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35101 |   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35102 |   LLVMCC1PLUS=$llvmcc1pluspath | 
 | 35103 |  | 
| Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 35104 |   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` | 
 | 35105 |   LLVMGCCDIR=$llvmgccdir | 
 | 35106 |  | 
| Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 35107 |   llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` | 
 | 35108 |   LLVMGCCLIBEXEC=$llvmgcclibexec | 
 | 35109 |  | 
| Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 35110 |   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` | 
| Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 35111 |   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` | 
 | 35112 |   LLVMGCC_VERSION=$llvmgccversion | 
 | 35113 |  | 
 | 35114 |   LLVMGCC_MAJVERS=$llvmgccmajvers | 
 | 35115 |  | 
| Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 35116 |   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` | 
| Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 35117 |   LLVMGCC_LANGS=$llvmgcclangs | 
 | 35118 |  | 
 | 35119 |   { echo "$as_me:$LINENO: result: ok" >&5 | 
 | 35120 | echo "${ECHO_T}ok" >&6; } | 
| Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35121 | fi | 
 | 35122 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35123 | SHLIBEXT=$libltdl_cv_shlibext | 
| Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 35124 |  | 
 | 35125 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35126 | # Translate the various configuration directories and other basic | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35127 | # information into substitutions that will end up in Makefile.config.in | 
 | 35128 | # that these configured values can be used by the makefiles | 
| Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 35129 | if test "${prefix}" = "NONE" ; then | 
| Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 35130 |   prefix="/usr/local" | 
 | 35131 | fi | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35132 | eval LLVM_PREFIX="${prefix}"; | 
 | 35133 | eval LLVM_BINDIR="${prefix}/bin"; | 
 | 35134 | eval LLVM_LIBDIR="${prefix}/lib"; | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35135 | eval LLVM_DATADIR="${prefix}/share/llvm"; | 
 | 35136 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; | 
 | 35137 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35138 | eval LLVM_INCLUDEDIR="${prefix}/include"; | 
 | 35139 | eval LLVM_INFODIR="${prefix}/info"; | 
 | 35140 | eval LLVM_MANDIR="${prefix}/man"; | 
 | 35141 | LLVM_CONFIGTIME=`date` | 
 | 35142 |  | 
 | 35143 |  | 
 | 35144 |  | 
 | 35145 |  | 
 | 35146 |  | 
 | 35147 |  | 
 | 35148 |  | 
 | 35149 |  | 
 | 35150 |  | 
 | 35151 |  | 
 | 35152 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35153 | # Place the various directores into the config.h file as #defines so that we | 
 | 35154 | # can know about the installation paths within LLVM. | 
 | 35155 |  | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35156 | cat >>confdefs.h <<_ACEOF | 
 | 35157 | #define LLVM_PREFIX "$LLVM_PREFIX" | 
 | 35158 | _ACEOF | 
 | 35159 |  | 
 | 35160 |  | 
 | 35161 | cat >>confdefs.h <<_ACEOF | 
 | 35162 | #define LLVM_BINDIR "$LLVM_BINDIR" | 
 | 35163 | _ACEOF | 
 | 35164 |  | 
 | 35165 |  | 
 | 35166 | cat >>confdefs.h <<_ACEOF | 
 | 35167 | #define LLVM_LIBDIR "$LLVM_LIBDIR" | 
 | 35168 | _ACEOF | 
 | 35169 |  | 
 | 35170 |  | 
 | 35171 | cat >>confdefs.h <<_ACEOF | 
 | 35172 | #define LLVM_DATADIR "$LLVM_DATADIR" | 
 | 35173 | _ACEOF | 
 | 35174 |  | 
 | 35175 |  | 
 | 35176 | cat >>confdefs.h <<_ACEOF | 
| Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35177 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35178 | _ACEOF | 
 | 35179 |  | 
 | 35180 |  | 
 | 35181 | cat >>confdefs.h <<_ACEOF | 
| Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35182 | #define LLVM_ETCDIR "$LLVM_ETCDIR" | 
| Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35183 | _ACEOF | 
 | 35184 |  | 
 | 35185 |  | 
 | 35186 | cat >>confdefs.h <<_ACEOF | 
 | 35187 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" | 
 | 35188 | _ACEOF | 
 | 35189 |  | 
 | 35190 |  | 
 | 35191 | cat >>confdefs.h <<_ACEOF | 
 | 35192 | #define LLVM_INFODIR "$LLVM_INFODIR" | 
 | 35193 | _ACEOF | 
 | 35194 |  | 
 | 35195 |  | 
 | 35196 | cat >>confdefs.h <<_ACEOF | 
 | 35197 | #define LLVM_MANDIR "$LLVM_MANDIR" | 
 | 35198 | _ACEOF | 
 | 35199 |  | 
 | 35200 |  | 
 | 35201 | cat >>confdefs.h <<_ACEOF | 
 | 35202 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" | 
 | 35203 | _ACEOF | 
 | 35204 |  | 
 | 35205 |  | 
| Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35206 | cat >>confdefs.h <<_ACEOF | 
 | 35207 | #define LLVM_HOSTTRIPLE "$host" | 
 | 35208 | _ACEOF | 
 | 35209 |  | 
 | 35210 |  | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35211 | # Determine which bindings to build. | 
 | 35212 | if test "$BINDINGS_TO_BUILD" = auto ; then | 
 | 35213 |   BINDINGS_TO_BUILD="" | 
 | 35214 |   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then | 
 | 35215 |     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" | 
 | 35216 |   fi | 
 | 35217 | fi | 
 | 35218 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD | 
 | 35219 |  | 
 | 35220 |  | 
 | 35221 | # This isn't really configurey, but it avoids having to repeat the list in | 
 | 35222 | # other files. | 
 | 35223 | ALL_BINDINGS=ocaml | 
 | 35224 |  | 
 | 35225 |  | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35226 | # Do any work necessary to ensure that bindings have what they need. | 
 | 35227 | binding_prereqs_failed=0 | 
 | 35228 | for a_binding in $BINDINGS_TO_BUILD ; do | 
 | 35229 |   case "$a_binding" in | 
 | 35230 |   ocaml) | 
 | 35231 |     if test "x$OCAMLC" = x ; then | 
 | 35232 |       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 | 
 | 35233 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} | 
 | 35234 |       binding_prereqs_failed=1 | 
 | 35235 |     fi | 
 | 35236 |     if test "x$OCAMLDEP" = x ; then | 
 | 35237 |       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 | 
 | 35238 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} | 
 | 35239 |       binding_prereqs_failed=1 | 
 | 35240 |     fi | 
 | 35241 |     if test "x$OCAMLOPT" = x ; then | 
 | 35242 |       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 | 
 | 35243 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} | 
 | 35244 |           fi | 
 | 35245 |     if test "x$with_ocaml_libdir" != xauto ; then | 
 | 35246 |       OCAML_LIBDIR=$with_ocaml_libdir | 
 | 35247 |  | 
 | 35248 |     else | 
 | 35249 |       ocaml_stdlib="`"$OCAMLC" -where`" | 
 | 35250 |       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" | 
 | 35251 |       then | 
 | 35252 |         # ocaml stdlib is beneath our prefix; use stdlib | 
 | 35253 |         OCAML_LIBDIR=$ocaml_stdlib | 
 | 35254 |  | 
 | 35255 |       else | 
 | 35256 |         # ocaml stdlib is outside our prefix; use libdir/ocaml | 
 | 35257 |         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml | 
 | 35258 |  | 
 | 35259 |       fi | 
 | 35260 |     fi | 
 | 35261 |     ;; | 
 | 35262 |   esac | 
 | 35263 | done | 
 | 35264 | if test "$binding_prereqs_failed" = 1 ; then | 
 | 35265 |   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 | 
 | 35266 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} | 
 | 35267 |    { (exit 1); exit 1; }; } | 
 | 35268 | fi | 
 | 35269 |  | 
| Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35270 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 | 
 | 35271 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } | 
 | 35272 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then | 
 | 35273 |   echo $ECHO_N "(cached) $ECHO_C" >&6 | 
 | 35274 | else | 
 | 35275 |    ac_ext=cpp | 
 | 35276 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 35277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 35278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 35279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 35280 |  | 
 | 35281 |   oldcxxflags="$CXXFLAGS" | 
 | 35282 |   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" | 
 | 35283 |   cat >conftest.$ac_ext <<_ACEOF | 
 | 35284 | /* confdefs.h.  */ | 
 | 35285 | _ACEOF | 
 | 35286 | cat confdefs.h >>conftest.$ac_ext | 
 | 35287 | cat >>conftest.$ac_ext <<_ACEOF | 
 | 35288 | /* end confdefs.h.  */ | 
 | 35289 |  | 
 | 35290 | int | 
 | 35291 | main () | 
 | 35292 | { | 
 | 35293 |  | 
 | 35294 |   ; | 
 | 35295 |   return 0; | 
 | 35296 | } | 
 | 35297 | _ACEOF | 
 | 35298 | rm -f conftest.$ac_objext | 
 | 35299 | if { (ac_try="$ac_compile" | 
 | 35300 | case "(($ac_try" in | 
 | 35301 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35302 |   *) ac_try_echo=$ac_try;; | 
 | 35303 | esac | 
 | 35304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35305 |   (eval "$ac_compile") 2>conftest.er1 | 
 | 35306 |   ac_status=$? | 
 | 35307 |   grep -v '^ *+' conftest.er1 >conftest.err | 
 | 35308 |   rm -f conftest.er1 | 
 | 35309 |   cat conftest.err >&5 | 
 | 35310 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35311 |   (exit $ac_status); } && | 
 | 35312 | 	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | 
 | 35313 |   { (case "(($ac_try" in | 
 | 35314 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35315 |   *) ac_try_echo=$ac_try;; | 
 | 35316 | esac | 
 | 35317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35318 |   (eval "$ac_try") 2>&5 | 
 | 35319 |   ac_status=$? | 
 | 35320 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 35321 |   (exit $ac_status); }; } && | 
 | 35322 | 	 { ac_try='test -s conftest.$ac_objext' | 
 | 35323 |   { (case "(($ac_try" in | 
 | 35324 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 35325 |   *) ac_try_echo=$ac_try;; | 
 | 35326 | esac | 
 | 35327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 
 | 35328 |   (eval "$ac_try") 2>&5 | 
 | 35329 |   ac_status=$? | 
 | 35330 |   echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
 | 35331 |   (exit $ac_status); }; }; then | 
| Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35332 |   llvm_cv_cxx_visibility_inlines_hidden=yes | 
 | 35333 | else | 
 | 35334 |   echo "$as_me: failed program was:" >&5 | 
 | 35335 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 35336 |  | 
 | 35337 | 	llvm_cv_cxx_visibility_inlines_hidden=no | 
 | 35338 | fi | 
 | 35339 |  | 
 | 35340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 35341 |   CXXFLAGS="$oldcxxflags" | 
 | 35342 |   ac_ext=c | 
 | 35343 | ac_cpp='$CPP $CPPFLAGS' | 
 | 35344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 35345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 35346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 35347 |  | 
 | 35348 |  | 
 | 35349 | fi | 
 | 35350 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 | 
 | 35351 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } | 
 | 35352 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then | 
 | 35353 |   ENABLE_VISIBILITY_INLINES_HIDDEN=1 | 
 | 35354 |  | 
 | 35355 | else | 
 | 35356 |   ENABLE_VISIBILITY_INLINES_HIDDEN=0 | 
 | 35357 |  | 
 | 35358 | fi | 
 | 35359 |  | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35360 |  | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35361 | if test "$llvm_cv_link_use_r" = "yes" ; then | 
 | 35362 |   RPATH="-Wl,-R" | 
 | 35363 | else | 
 | 35364 |   RPATH="-Wl,-rpath" | 
 | 35365 | fi | 
 | 35366 |  | 
 | 35367 |  | 
 | 35368 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then | 
 | 35369 |   RDYNAMIC="-Wl,-export-dynamic" | 
 | 35370 | else | 
 | 35371 |   RDYNAMIC="" | 
 | 35372 | fi | 
| Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35373 |  | 
 | 35374 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35375 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35376 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35377 |  | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35378 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" | 
 | 35379 |  | 
 | 35380 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" | 
 | 35381 |  | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35382 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" | 
 | 35383 |  | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 35384 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" | 
 | 35385 |  | 
| Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 35386 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35387 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35388 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35389 | ac_config_files="$ac_config_files Makefile.config" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35390 |  | 
 | 35391 |  | 
| Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35392 | ac_config_files="$ac_config_files llvm.spec" | 
 | 35393 |  | 
 | 35394 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35395 | ac_config_files="$ac_config_files docs/doxygen.cfg" | 
| Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35396 |  | 
 | 35397 |  | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35398 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" | 
 | 35399 |  | 
 | 35400 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35401 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" | 
| Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35402 |  | 
 | 35403 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35404 | ac_config_commands="$ac_config_commands setup" | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35405 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35406 | ac_config_commands="$ac_config_commands Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35407 |  | 
 | 35408 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35409 | ac_config_commands="$ac_config_commands Makefile.common" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35410 |  | 
 | 35411 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35412 | ac_config_commands="$ac_config_commands examples/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35413 |  | 
 | 35414 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35415 | ac_config_commands="$ac_config_commands lib/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35416 |  | 
 | 35417 |  | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35418 | ac_config_commands="$ac_config_commands runtime/Makefile" | 
 | 35419 |  | 
 | 35420 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35421 | ac_config_commands="$ac_config_commands test/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35422 |  | 
 | 35423 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35424 | ac_config_commands="$ac_config_commands test/Makefile.tests" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35425 |  | 
 | 35426 |  | 
| Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35427 | ac_config_commands="$ac_config_commands unittests/Makefile" | 
 | 35428 |  | 
 | 35429 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35430 | ac_config_commands="$ac_config_commands tools/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35431 |  | 
 | 35432 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35433 | ac_config_commands="$ac_config_commands utils/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35434 |  | 
 | 35435 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35436 | ac_config_commands="$ac_config_commands projects/Makefile" | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35437 |  | 
 | 35438 |  | 
| Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35439 | ac_config_commands="$ac_config_commands bindings/Makefile" | 
 | 35440 |  | 
 | 35441 |  | 
 | 35442 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" | 
 | 35443 |  | 
 | 35444 |  | 
| Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35445 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35446 | cat >confcache <<\_ACEOF | 
 | 35447 | # This file is a shell script that caches the results of configure | 
 | 35448 | # tests run on this system so they can be shared between configure | 
 | 35449 | # scripts and configure runs, see configure's option --config-cache. | 
 | 35450 | # It is not useful on other systems.  If it contains results you don't | 
 | 35451 | # want to keep, you may remove or edit it. | 
 | 35452 | # | 
 | 35453 | # config.status only pays attention to the cache file if you give it | 
 | 35454 | # the --recheck option to rerun configure. | 
 | 35455 | # | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35456 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35457 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 35458 | # following values. | 
 | 35459 |  | 
 | 35460 | _ACEOF | 
 | 35461 |  | 
 | 35462 | # The following way of writing the cache mishandles newlines in values, | 
 | 35463 | # but we know of no workaround that is simple, portable, and efficient. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35464 | # So, we kill variables containing newlines. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35465 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 35466 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35467 | ( | 
 | 35468 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 35469 |     eval ac_val=\$$ac_var | 
 | 35470 |     case $ac_val in #( | 
 | 35471 |     *${as_nl}*) | 
 | 35472 |       case $ac_var in #( | 
 | 35473 |       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 
 | 35474 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 
 | 35475 |       esac | 
 | 35476 |       case $ac_var in #( | 
 | 35477 |       _ | IFS | as_nl) ;; #( | 
 | 35478 |       *) $as_unset $ac_var ;; | 
 | 35479 |       esac ;; | 
 | 35480 |     esac | 
 | 35481 |   done | 
 | 35482 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35483 |   (set) 2>&1 | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35484 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 35485 |     *${as_nl}ac_space=\ *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35486 |       # `set' does not quote correctly, so add quotes (double-quote | 
 | 35487 |       # substitution turns \\\\ into \\, and sed turns \\ into \). | 
 | 35488 |       sed -n \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35489 | 	"s/'/'\\\\''/g; | 
 | 35490 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35491 |       ;; #( | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35492 |     *) | 
 | 35493 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35494 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35495 |       ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35496 |     esac | | 
 | 35497 |     sort | 
 | 35498 | ) | | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35499 |   sed ' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35500 |      /^ac_cv_env_/b end | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35501 |      t clear | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35502 |      :clear | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35503 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 35504 |      t end | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35505 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 35506 |      :end' >>confcache | 
 | 35507 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 35508 |   if test -w "$cache_file"; then | 
 | 35509 |     test "x$cache_file" != "x/dev/null" && | 
 | 35510 |       { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 
 | 35511 | echo "$as_me: updating cache $cache_file" >&6;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35512 |     cat confcache >$cache_file | 
 | 35513 |   else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35514 |     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 
 | 35515 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35516 |   fi | 
 | 35517 | fi | 
 | 35518 | rm -f confcache | 
 | 35519 |  | 
 | 35520 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 35521 | # Let make expand exec_prefix. | 
 | 35522 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 35523 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35524 | DEFS=-DHAVE_CONFIG_H | 
 | 35525 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35526 | ac_libobjs= | 
 | 35527 | ac_ltlibobjs= | 
 | 35528 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 35529 |   # 1. Remove the extension, and $U if already installed. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35530 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
 | 35531 |   ac_i=`echo "$ac_i" | sed "$ac_script"` | 
 | 35532 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 35533 |   #    will be set to the directory where LIBOBJS objects are built. | 
 | 35534 |   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 35535 |   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35536 | done | 
 | 35537 | LIBOBJS=$ac_libobjs | 
 | 35538 |  | 
 | 35539 | LTLIBOBJS=$ac_ltlibobjs | 
 | 35540 |  | 
 | 35541 |  | 
| Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35542 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
 | 35543 |   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 35544 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 35545 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | 
 | 35546 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 35547 |    { (exit 1); exit 1; }; } | 
 | 35548 | fi | 
 | 35549 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
 | 35550 |   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 35551 | Usually this means the macro was only invoked conditionally." >&5 | 
 | 35552 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | 
 | 35553 | Usually this means the macro was only invoked conditionally." >&2;} | 
 | 35554 |    { (exit 1); exit 1; }; } | 
 | 35555 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35556 |  | 
 | 35557 | : ${CONFIG_STATUS=./config.status} | 
 | 35558 | ac_clean_files_save=$ac_clean_files | 
 | 35559 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
 | 35560 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
 | 35561 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
 | 35562 | cat >$CONFIG_STATUS <<_ACEOF | 
 | 35563 | #! $SHELL | 
 | 35564 | # Generated by $as_me. | 
 | 35565 | # Run this file to recreate the current configuration. | 
 | 35566 | # Compiler output produced by configure, useful for debugging | 
 | 35567 | # configure, is in config.log if it exists. | 
 | 35568 |  | 
 | 35569 | debug=false | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35570 | ac_cs_recheck=false | 
 | 35571 | ac_cs_silent=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35572 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 35573 | _ACEOF | 
 | 35574 |  | 
 | 35575 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35576 | ## --------------------- ## | 
 | 35577 | ## M4sh Initialization.  ## | 
 | 35578 | ## --------------------- ## | 
 | 35579 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35580 | # Be Bourne compatible | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35581 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
 | 35582 |   emulate sh | 
 | 35583 |   NULLCMD=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35584 |   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
 | 35585 |   # is contrary to our usage.  Disable this feature. | 
 | 35586 |   alias -g '${1+"$@"}'='"$@"' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35587 |   setopt NO_GLOB_SUBST | 
 | 35588 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35589 |   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35590 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35591 | BIN_SH=xpg4; export BIN_SH # for Tru64 | 
 | 35592 | DUALCASE=1; export DUALCASE # for MKS sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35593 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35594 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35595 | # PATH needs CR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35596 | # Avoid depending upon Character Ranges. | 
 | 35597 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 35598 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 35599 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 35600 | as_cr_digits='0123456789' | 
 | 35601 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
 | 35602 |  | 
 | 35603 | # The user is always right. | 
 | 35604 | if test "${PATH_SEPARATOR+set}" != set; then | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35605 |   echo "#! /bin/sh" >conf$$.sh | 
 | 35606 |   echo  "exit 0"   >>conf$$.sh | 
 | 35607 |   chmod +x conf$$.sh | 
 | 35608 |   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35609 |     PATH_SEPARATOR=';' | 
 | 35610 |   else | 
 | 35611 |     PATH_SEPARATOR=: | 
 | 35612 |   fi | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35613 |   rm -f conf$$.sh | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35614 | fi | 
 | 35615 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35616 | # Support unset when possible. | 
 | 35617 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
 | 35618 |   as_unset=unset | 
 | 35619 | else | 
 | 35620 |   as_unset=false | 
 | 35621 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35622 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35623 |  | 
 | 35624 | # IFS | 
 | 35625 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 35626 | # there to prevent editors from complaining about space-tab. | 
 | 35627 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 35628 | # splitting by setting IFS to empty value.) | 
 | 35629 | as_nl=' | 
 | 35630 | ' | 
 | 35631 | IFS=" ""	$as_nl" | 
 | 35632 |  | 
 | 35633 | # Find who we are.  Look in the path if we contain no directory separator. | 
 | 35634 | case $0 in | 
 | 35635 |   *[\\/]* ) as_myself=$0 ;; | 
 | 35636 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35637 | for as_dir in $PATH | 
 | 35638 | do | 
 | 35639 |   IFS=$as_save_IFS | 
 | 35640 |   test -z "$as_dir" && as_dir=. | 
 | 35641 |   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 35642 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35643 | IFS=$as_save_IFS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35644 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35645 |      ;; | 
 | 35646 | esac | 
 | 35647 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 35648 | # in which case we are not to be found in the path. | 
 | 35649 | if test "x$as_myself" = x; then | 
 | 35650 |   as_myself=$0 | 
 | 35651 | fi | 
 | 35652 | if test ! -f "$as_myself"; then | 
 | 35653 |   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
 | 35654 |   { (exit 1); exit 1; } | 
 | 35655 | fi | 
 | 35656 |  | 
 | 35657 | # Work around bugs in pre-3.0 UWIN ksh. | 
 | 35658 | for as_var in ENV MAIL MAILPATH | 
 | 35659 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
 | 35660 | done | 
 | 35661 | PS1='$ ' | 
 | 35662 | PS2='> ' | 
 | 35663 | PS4='+ ' | 
 | 35664 |  | 
 | 35665 | # NLS nuisances. | 
 | 35666 | for as_var in \ | 
 | 35667 |   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
 | 35668 |   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
 | 35669 |   LC_TELEPHONE LC_TIME | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35670 | do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35671 |   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
 | 35672 |     eval $as_var=C; export $as_var | 
 | 35673 |   else | 
 | 35674 |     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 
 | 35675 |   fi | 
 | 35676 | done | 
 | 35677 |  | 
 | 35678 | # Required to use basename. | 
 | 35679 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 35680 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 35681 |   as_expr=expr | 
 | 35682 | else | 
 | 35683 |   as_expr=false | 
 | 35684 | fi | 
 | 35685 |  | 
 | 35686 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 35687 |   as_basename=basename | 
 | 35688 | else | 
 | 35689 |   as_basename=false | 
 | 35690 | fi | 
 | 35691 |  | 
 | 35692 |  | 
 | 35693 | # Name of the executable. | 
 | 35694 | as_me=`$as_basename -- "$0" || | 
 | 35695 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 35696 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 35697 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
 | 35698 | echo X/"$0" | | 
 | 35699 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 35700 | 	    s//\1/ | 
 | 35701 | 	    q | 
 | 35702 | 	  } | 
 | 35703 | 	  /^X\/\(\/\/\)$/{ | 
 | 35704 | 	    s//\1/ | 
 | 35705 | 	    q | 
 | 35706 | 	  } | 
 | 35707 | 	  /^X\/\(\/\).*/{ | 
 | 35708 | 	    s//\1/ | 
 | 35709 | 	    q | 
 | 35710 | 	  } | 
 | 35711 | 	  s/.*/./; q'` | 
 | 35712 |  | 
 | 35713 | # CDPATH. | 
 | 35714 | $as_unset CDPATH | 
 | 35715 |  | 
 | 35716 |  | 
 | 35717 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35718 |   as_lineno_1=$LINENO | 
 | 35719 |   as_lineno_2=$LINENO | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35720 |   test "x$as_lineno_1" != "x$as_lineno_2" && | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35721 |   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35722 |  | 
 | 35723 |   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
 | 35724 |   # uniformly replaced by the line number.  The first 'sed' inserts a | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35725 |   # line-number line after each line using $LINENO; the second 'sed' | 
 | 35726 |   # does the real work.  The second script uses 'N' to pair each | 
 | 35727 |   # line-number line with the line containing $LINENO, and appends | 
 | 35728 |   # trailing '-' during substitution so that $LINENO is not a special | 
 | 35729 |   # case at line end. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35730 |   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35731 |   # scripts with optimization help from Paolo Bonzini.  Blame Lee | 
 | 35732 |   # E. McMahon (1931-1989) for sed's syntax.  :-) | 
 | 35733 |   sed -n ' | 
 | 35734 |     p | 
 | 35735 |     /[$]LINENO/= | 
 | 35736 |   ' <$as_myself | | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35737 |     sed ' | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35738 |       s/[$]LINENO.*/&-/ | 
 | 35739 |       t lineno | 
 | 35740 |       b | 
 | 35741 |       :lineno | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35742 |       N | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35743 |       :loop | 
 | 35744 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35745 |       t loop | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35746 |       s/-\n.*// | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35747 |     ' >$as_me.lineno && | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35748 |   chmod +x "$as_me.lineno" || | 
 | 35749 |     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35750 |    { (exit 1); exit 1; }; } | 
 | 35751 |  | 
 | 35752 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 35753 |   # (the dirname of $[0] is not the place where we might find the | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35754 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 35755 |   . "./$as_me.lineno" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35756 |   # Exit status is that of the last command. | 
 | 35757 |   exit | 
 | 35758 | } | 
 | 35759 |  | 
 | 35760 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35761 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 35762 |   as_dirname=dirname | 
 | 35763 | else | 
 | 35764 |   as_dirname=false | 
 | 35765 | fi | 
 | 35766 |  | 
 | 35767 | ECHO_C= ECHO_N= ECHO_T= | 
 | 35768 | case `echo -n x` in | 
 | 35769 | -n*) | 
 | 35770 |   case `echo 'x\c'` in | 
 | 35771 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
 | 35772 |   *)   ECHO_C='\c';; | 
 | 35773 |   esac;; | 
 | 35774 | *) | 
 | 35775 |   ECHO_N='-n';; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35776 | esac | 
 | 35777 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35778 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 35779 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35780 |   as_expr=expr | 
 | 35781 | else | 
 | 35782 |   as_expr=false | 
 | 35783 | fi | 
 | 35784 |  | 
 | 35785 | rm -f conf$$ conf$$.exe conf$$.file | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35786 | if test -d conf$$.dir; then | 
 | 35787 |   rm -f conf$$.dir/conf$$.file | 
 | 35788 | else | 
 | 35789 |   rm -f conf$$.dir | 
 | 35790 |   mkdir conf$$.dir | 
 | 35791 | fi | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35792 | echo >conf$$.file | 
 | 35793 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35794 |   as_ln_s='ln -s' | 
 | 35795 |   # ... but there are two gotchas: | 
 | 35796 |   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 35797 |   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 35798 |   # In both cases, we have to default to `cp -p'. | 
 | 35799 |   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35800 |     as_ln_s='cp -p' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35801 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 35802 |   as_ln_s=ln | 
 | 35803 | else | 
 | 35804 |   as_ln_s='cp -p' | 
 | 35805 | fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35806 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 35807 | rmdir conf$$.dir 2>/dev/null | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35808 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35809 | if mkdir -p . 2>/dev/null; then | 
 | 35810 |   as_mkdir_p=: | 
 | 35811 | else | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35812 |   test -d ./-p && rmdir ./-p | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35813 |   as_mkdir_p=false | 
 | 35814 | fi | 
 | 35815 |  | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35816 | # Find out whether ``test -x'' works.  Don't use a zero-byte file, as | 
 | 35817 | # systems may use methods other than mode bits to determine executability. | 
 | 35818 | cat >conf$$.file <<_ASEOF | 
 | 35819 | #! /bin/sh | 
 | 35820 | exit 0 | 
 | 35821 | _ASEOF | 
 | 35822 | chmod +x conf$$.file | 
 | 35823 | if test -x conf$$.file >/dev/null 2>&1; then | 
 | 35824 |   as_executable_p="test -x" | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35825 | else | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35826 |   as_executable_p=: | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35827 | fi | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35828 | rm -f conf$$.file | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35829 |  | 
 | 35830 | # Sed expression to map a string onto a valid CPP name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35831 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35832 |  | 
 | 35833 | # Sed expression to map a string onto a valid variable name. | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35834 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35835 |  | 
 | 35836 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35837 | exec 6>&1 | 
 | 35838 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35839 | # Save the log message, to keep $[0] and so on meaningful, and to | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35840 | # report actual input values of CONFIG_FILES etc. instead of their | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35841 | # values after options handling. | 
 | 35842 | ac_log=" | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35843 | This file was extended by llvm $as_me 2.7svn, which was | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35844 | generated by GNU Autoconf 2.60.  Invocation command line was | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35845 |  | 
 | 35846 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 35847 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 35848 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 35849 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 35850 |   $ $0 $@ | 
 | 35851 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35852 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 35853 | " | 
 | 35854 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35855 | _ACEOF | 
 | 35856 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35857 | cat >>$CONFIG_STATUS <<_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35858 | # Files that config.status was made for. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35859 | config_files="$ac_config_files" | 
 | 35860 | config_headers="$ac_config_headers" | 
 | 35861 | config_commands="$ac_config_commands" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35862 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35863 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35864 |  | 
 | 35865 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35866 | ac_cs_usage="\ | 
 | 35867 | \`$as_me' instantiates files from templates according to the | 
 | 35868 | current configuration. | 
 | 35869 |  | 
 | 35870 | Usage: $0 [OPTIONS] [FILE]... | 
 | 35871 |  | 
 | 35872 |   -h, --help       print this help, then exit | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35873 |   -V, --version    print version number, then exit | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35874 |   -q, --quiet      do not print progress messages | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35875 |   -d, --debug      don't remove temporary files | 
 | 35876 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 35877 |   --file=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35878 | 		   instantiate the configuration file FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35879 |   --header=FILE[:TEMPLATE] | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35880 | 		   instantiate the configuration header FILE | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35881 |  | 
 | 35882 | Configuration files: | 
 | 35883 | $config_files | 
 | 35884 |  | 
 | 35885 | Configuration headers: | 
 | 35886 | $config_headers | 
 | 35887 |  | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35888 | Configuration commands: | 
 | 35889 | $config_commands | 
 | 35890 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35891 | Report bugs to <bug-autoconf@gnu.org>." | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35892 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35893 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35894 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 35895 | ac_cs_version="\\ | 
| Tanya Lattner | 953042b | 2009-08-22 04:37:30 +0000 | [diff] [blame] | 35896 | llvm config.status 2.7svn | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35897 | configured by $0, generated by GNU Autoconf 2.60, | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35898 |   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35899 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35900 | Copyright (C) 2006 Free Software Foundation, Inc. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35901 | This config.status script is free software; the Free Software Foundation | 
 | 35902 | gives unlimited permission to copy, distribute and modify it." | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35903 |  | 
 | 35904 | ac_pwd='$ac_pwd' | 
 | 35905 | srcdir='$srcdir' | 
 | 35906 | INSTALL='$INSTALL' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35907 | _ACEOF | 
 | 35908 |  | 
 | 35909 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 35910 | # If no file are specified by the user, then we need to provide default | 
 | 35911 | # value.  By we need to know if files were specified by the user. | 
 | 35912 | ac_need_defaults=: | 
 | 35913 | while test $# != 0 | 
 | 35914 | do | 
 | 35915 |   case $1 in | 
 | 35916 |   --*=*) | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35917 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 35918 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35919 |     ac_shift=: | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35920 |     ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35921 |   *) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35922 |     ac_option=$1 | 
 | 35923 |     ac_optarg=$2 | 
 | 35924 |     ac_shift=shift | 
 | 35925 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35926 |   esac | 
 | 35927 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35928 |   case $ac_option in | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35929 |   # Handling of the options. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35930 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 35931 |     ac_cs_recheck=: ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35932 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
 | 35933 |     echo "$ac_cs_version"; exit ;; | 
 | 35934 |   --debug | --debu | --deb | --de | --d | -d ) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35935 |     debug=: ;; | 
 | 35936 |   --file | --fil | --fi | --f ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35937 |     $ac_shift | 
 | 35938 |     CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35939 |     ac_need_defaults=false;; | 
 | 35940 |   --header | --heade | --head | --hea ) | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35941 |     $ac_shift | 
 | 35942 |     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35943 |     ac_need_defaults=false;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35944 |   --he | --h) | 
 | 35945 |     # Conflict between --help and --header | 
 | 35946 |     { echo "$as_me: error: ambiguous option: $1 | 
 | 35947 | Try \`$0 --help' for more information." >&2 | 
 | 35948 |    { (exit 1); exit 1; }; };; | 
 | 35949 |   --help | --hel | -h ) | 
 | 35950 |     echo "$ac_cs_usage"; exit ;; | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35951 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 35952 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 35953 |     ac_cs_silent=: ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35954 |  | 
 | 35955 |   # This is an error. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35956 |   -*) { echo "$as_me: error: unrecognized option: $1 | 
 | 35957 | Try \`$0 --help' for more information." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35958 |    { (exit 1); exit 1; }; } ;; | 
 | 35959 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35960 |   *) ac_config_targets="$ac_config_targets $1" | 
 | 35961 |      ac_need_defaults=false ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35962 |  | 
 | 35963 |   esac | 
 | 35964 |   shift | 
 | 35965 | done | 
 | 35966 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35967 | ac_configure_extra_args= | 
 | 35968 |  | 
 | 35969 | if $ac_cs_silent; then | 
 | 35970 |   exec 6>/dev/null | 
 | 35971 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 35972 | fi | 
 | 35973 |  | 
 | 35974 | _ACEOF | 
 | 35975 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 35976 | if \$ac_cs_recheck; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35977 |   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
 | 35978 |   CONFIG_SHELL=$SHELL | 
 | 35979 |   export CONFIG_SHELL | 
 | 35980 |   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35981 | fi | 
 | 35982 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35983 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35984 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 35985 | exec 5>>config.log | 
 | 35986 | { | 
 | 35987 |   echo | 
 | 35988 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 35989 | ## Running $as_me. ## | 
 | 35990 | _ASBOX | 
 | 35991 |   echo "$ac_log" | 
 | 35992 | } >&5 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35993 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35994 | _ACEOF | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35995 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 35996 | # | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35997 | # INIT-COMMANDS | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35998 | # | 
| Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35999 | llvm_src="${srcdir}" | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36000 |  | 
 | 36001 | _ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36002 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36003 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36004 |  | 
 | 36005 | # Handling of arguments. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36006 | for ac_config_target in $ac_config_targets | 
 | 36007 | do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36008 |   case $ac_config_target in | 
 | 36009 |     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36010 |     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; | 
 | 36011 |     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36012 |     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36013 |     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; | 
| Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 36014 |     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36015 |     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; | 
| Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 36016 |     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36017 |     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36018 |     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36019 |     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; | 
 | 36020 |     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; | 
 | 36021 |     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | 
 | 36022 |     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; | 
 | 36023 |     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; | 
 | 36024 |     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36025 |     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36026 |     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; | 
 | 36027 |     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; | 
| Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36028 |     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36029 |     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; | 
 | 36030 |     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; | 
 | 36031 |     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; | 
| Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36032 |     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; | 
 | 36033 |     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36034 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36035 |   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
 | 36036 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
 | 36037 |    { (exit 1); exit 1; }; };; | 
 | 36038 |   esac | 
 | 36039 | done | 
 | 36040 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36041 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36042 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 36043 | # then the envvar interface is used.  Set only those that are not. | 
 | 36044 | # We use the long form for the default assignment because of an extremely | 
 | 36045 | # bizarre bug on SunOS 4.1.3. | 
 | 36046 | if $ac_need_defaults; then | 
 | 36047 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 36048 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36049 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36050 | fi | 
 | 36051 |  | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36052 | # Have a temporary directory for convenience.  Make it in the build tree | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36053 | # simply because there is no reason against having it here, and in addition, | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36054 | # creating and moving files from /tmp can sometimes cause problems. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36055 | # Hook for its removal unless debugging. | 
 | 36056 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 36057 | # after its creation but before its name has been assigned to `$tmp'. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36058 | $debug || | 
 | 36059 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36060 |   tmp= | 
 | 36061 |   trap 'exit_status=$? | 
 | 36062 |   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
 | 36063 | ' 0 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36064 |   trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
 | 36065 | } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36066 | # Create a (secure) tmp directory for tmp files. | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36067 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36068 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36069 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36070 |   test -n "$tmp" && test -d "$tmp" | 
 | 36071 | }  || | 
 | 36072 | { | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36073 |   tmp=./conf$$-$RANDOM | 
 | 36074 |   (umask 077 && mkdir "$tmp") | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36075 | } || | 
 | 36076 | { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36077 |    echo "$me: cannot create a temporary directory in ." >&2 | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36078 |    { (exit 1); exit 1; } | 
 | 36079 | } | 
 | 36080 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36081 | # | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36082 | # Set up the sed scripts for CONFIG_FILES section. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36083 | # | 
 | 36084 |  | 
 | 36085 | # No need to generate the scripts if there are no CONFIG_FILES. | 
 | 36086 | # This happens for instance when ./config.status config.h | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36087 | if test -n "$CONFIG_FILES"; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36088 |  | 
 | 36089 | _ACEOF | 
 | 36090 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36091 |  | 
 | 36092 |  | 
 | 36093 | ac_delim='%!_!# ' | 
 | 36094 | for ac_last_try in false false false false false :; do | 
 | 36095 |   cat >conf$$subs.sed <<_ACEOF | 
 | 36096 | SHELL!$SHELL$ac_delim | 
 | 36097 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | 
 | 36098 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | 
 | 36099 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | 
 | 36100 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | 
 | 36101 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | 
 | 36102 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | 
 | 36103 | exec_prefix!$exec_prefix$ac_delim | 
 | 36104 | prefix!$prefix$ac_delim | 
 | 36105 | program_transform_name!$program_transform_name$ac_delim | 
 | 36106 | bindir!$bindir$ac_delim | 
 | 36107 | sbindir!$sbindir$ac_delim | 
 | 36108 | libexecdir!$libexecdir$ac_delim | 
 | 36109 | datarootdir!$datarootdir$ac_delim | 
 | 36110 | datadir!$datadir$ac_delim | 
 | 36111 | sysconfdir!$sysconfdir$ac_delim | 
 | 36112 | sharedstatedir!$sharedstatedir$ac_delim | 
 | 36113 | localstatedir!$localstatedir$ac_delim | 
 | 36114 | includedir!$includedir$ac_delim | 
 | 36115 | oldincludedir!$oldincludedir$ac_delim | 
 | 36116 | docdir!$docdir$ac_delim | 
 | 36117 | infodir!$infodir$ac_delim | 
 | 36118 | htmldir!$htmldir$ac_delim | 
 | 36119 | dvidir!$dvidir$ac_delim | 
 | 36120 | pdfdir!$pdfdir$ac_delim | 
 | 36121 | psdir!$psdir$ac_delim | 
 | 36122 | libdir!$libdir$ac_delim | 
 | 36123 | localedir!$localedir$ac_delim | 
 | 36124 | mandir!$mandir$ac_delim | 
 | 36125 | DEFS!$DEFS$ac_delim | 
 | 36126 | ECHO_C!$ECHO_C$ac_delim | 
 | 36127 | ECHO_N!$ECHO_N$ac_delim | 
 | 36128 | ECHO_T!$ECHO_T$ac_delim | 
 | 36129 | LIBS!$LIBS$ac_delim | 
 | 36130 | build_alias!$build_alias$ac_delim | 
 | 36131 | host_alias!$host_alias$ac_delim | 
 | 36132 | target_alias!$target_alias$ac_delim | 
 | 36133 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim | 
 | 36134 | subdirs!$subdirs$ac_delim | 
 | 36135 | build!$build$ac_delim | 
 | 36136 | build_cpu!$build_cpu$ac_delim | 
 | 36137 | build_vendor!$build_vendor$ac_delim | 
 | 36138 | build_os!$build_os$ac_delim | 
 | 36139 | host!$host$ac_delim | 
 | 36140 | host_cpu!$host_cpu$ac_delim | 
 | 36141 | host_vendor!$host_vendor$ac_delim | 
 | 36142 | host_os!$host_os$ac_delim | 
 | 36143 | target!$target$ac_delim | 
 | 36144 | target_cpu!$target_cpu$ac_delim | 
 | 36145 | target_vendor!$target_vendor$ac_delim | 
 | 36146 | target_os!$target_os$ac_delim | 
 | 36147 | OS!$OS$ac_delim | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36148 | HOST_OS!$HOST_OS$ac_delim | 
 | 36149 | TARGET_OS!$TARGET_OS$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36150 | LINKALL!$LINKALL$ac_delim | 
 | 36151 | NOLINKALL!$NOLINKALL$ac_delim | 
 | 36152 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim | 
 | 36153 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim | 
| Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 36154 | ARCH!$ARCH$ac_delim | 
 | 36155 | ENDIAN!$ENDIAN$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36156 | CC!$CC$ac_delim | 
 | 36157 | CFLAGS!$CFLAGS$ac_delim | 
 | 36158 | LDFLAGS!$LDFLAGS$ac_delim | 
 | 36159 | CPPFLAGS!$CPPFLAGS$ac_delim | 
 | 36160 | ac_ct_CC!$ac_ct_CC$ac_delim | 
 | 36161 | EXEEXT!$EXEEXT$ac_delim | 
 | 36162 | OBJEXT!$OBJEXT$ac_delim | 
 | 36163 | CPP!$CPP$ac_delim | 
 | 36164 | GREP!$GREP$ac_delim | 
 | 36165 | EGREP!$EGREP$ac_delim | 
 | 36166 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim | 
 | 36167 | BUILD_CC!$BUILD_CC$ac_delim | 
 | 36168 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim | 
| Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36169 | BUILD_CXX!$BUILD_CXX$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36170 | CVSBUILD!$CVSBUILD$ac_delim | 
 | 36171 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim | 
| David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36172 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36173 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim | 
| David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36174 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim | 
 | 36175 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36176 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim | 
| Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 36177 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36178 | JIT!$JIT$ac_delim | 
 | 36179 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim | 
 | 36180 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim | 
 | 36181 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim | 
| Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36182 | ENABLE_PIC!$ENABLE_PIC$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36183 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36184 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim | 
 | 36185 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36186 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36187 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim | 
| Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36188 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim | 
| Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 36189 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36190 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim | 
| Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36191 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim | 
| Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36192 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36193 | _ACEOF | 
 | 36194 |  | 
 | 36195 |   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | 
 | 36196 |     break | 
 | 36197 |   elif $ac_last_try; then | 
 | 36198 |     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
 | 36199 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
 | 36200 |    { (exit 1); exit 1; }; } | 
 | 36201 |   else | 
 | 36202 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36203 |   fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36204 | done | 
 | 36205 |  | 
 | 36206 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
 | 36207 | if test -n "$ac_eof"; then | 
 | 36208 |   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
 | 36209 |   ac_eof=`expr $ac_eof + 1` | 
 | 36210 | fi | 
 | 36211 |  | 
 | 36212 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36213 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | 
 | 36214 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 36215 | _ACEOF | 
 | 36216 | sed ' | 
 | 36217 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
 | 36218 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
 | 36219 | :n | 
 | 36220 | t n | 
 | 36221 | s/'"$ac_delim"'$/,g/; t | 
 | 36222 | s/$/\\/; p | 
 | 36223 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
 | 36224 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
 | 36225 | rm -f conf$$subs.sed | 
 | 36226 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36227 | CEOF$ac_eof | 
 | 36228 | _ACEOF | 
 | 36229 |  | 
 | 36230 |  | 
 | 36231 | ac_delim='%!_!# ' | 
 | 36232 | for ac_last_try in false false false false false :; do | 
 | 36233 |   cat >conf$$subs.sed <<_ACEOF | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36234 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim | 
| Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 36235 | CXX!$CXX$ac_delim | 
| Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 36236 | CXXFLAGS!$CXXFLAGS$ac_delim | 
| Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 36237 | ac_ct_CXX!$ac_ct_CXX$ac_delim | 
| Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 36238 | NM!$NM$ac_delim | 
| Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36239 | ifGNUmake!$ifGNUmake$ac_delim | 
| Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36240 | LN_S!$LN_S$ac_delim | 
 | 36241 | CMP!$CMP$ac_delim | 
| Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36242 | CP!$CP$ac_delim | 
 | 36243 | DATE!$DATE$ac_delim | 
| David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36244 | FIND!$FIND$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36245 | MKDIR!$MKDIR$ac_delim | 
 | 36246 | MV!$MV$ac_delim | 
 | 36247 | RANLIB!$RANLIB$ac_delim | 
 | 36248 | RM!$RM$ac_delim | 
 | 36249 | SED!$SED$ac_delim | 
 | 36250 | TAR!$TAR$ac_delim | 
 | 36251 | BINPWD!$BINPWD$ac_delim | 
 | 36252 | GRAPHVIZ!$GRAPHVIZ$ac_delim | 
 | 36253 | DOT!$DOT$ac_delim | 
| David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36254 | FDP!$FDP$ac_delim | 
 | 36255 | NEATO!$NEATO$ac_delim | 
 | 36256 | TWOPI!$TWOPI$ac_delim | 
 | 36257 | CIRCO!$CIRCO$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36258 | GV!$GV$ac_delim | 
 | 36259 | DOTTY!$DOTTY$ac_delim | 
 | 36260 | PERL!$PERL$ac_delim | 
 | 36261 | HAVE_PERL!$HAVE_PERL$ac_delim | 
 | 36262 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 
 | 36263 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 
 | 36264 | INSTALL_DATA!$INSTALL_DATA$ac_delim | 
 | 36265 | BZIP2!$BZIP2$ac_delim | 
 | 36266 | DOXYGEN!$DOXYGEN$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36267 | GROFF!$GROFF$ac_delim | 
 | 36268 | GZIP!$GZIP$ac_delim | 
 | 36269 | POD2HTML!$POD2HTML$ac_delim | 
 | 36270 | POD2MAN!$POD2MAN$ac_delim | 
 | 36271 | RUNTEST!$RUNTEST$ac_delim | 
 | 36272 | TCLSH!$TCLSH$ac_delim | 
 | 36273 | ZIP!$ZIP$ac_delim | 
| Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36274 | OCAMLC!$OCAMLC$ac_delim | 
 | 36275 | OCAMLOPT!$OCAMLOPT$ac_delim | 
| Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36276 | OCAMLDEP!$OCAMLDEP$ac_delim | 
| Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36277 | OCAMLDOC!$OCAMLDOC$ac_delim | 
| Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36278 | GAS!$GAS$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36279 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim | 
 | 36280 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim | 
 | 36281 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim | 
 | 36282 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim | 
 | 36283 | LIBADD_DL!$LIBADD_DL$ac_delim | 
 | 36284 | ECHO!$ECHO$ac_delim | 
 | 36285 | AR!$AR$ac_delim | 
 | 36286 | STRIP!$STRIP$ac_delim | 
 | 36287 | CXXCPP!$CXXCPP$ac_delim | 
 | 36288 | F77!$F77$ac_delim | 
 | 36289 | FFLAGS!$FFLAGS$ac_delim | 
 | 36290 | ac_ct_F77!$ac_ct_F77$ac_delim | 
 | 36291 | LIBTOOL!$LIBTOOL$ac_delim | 
| Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36292 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim | 
 | 36293 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim | 
| Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36294 | LLVMGCC!$LLVMGCC$ac_delim | 
 | 36295 | LLVMGXX!$LLVMGXX$ac_delim | 
| Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 36296 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim | 
 | 36297 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim | 
| Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36298 | USE_UDIS86!$USE_UDIS86$ac_delim | 
| Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36299 | USE_OPROFILE!$USE_OPROFILE$ac_delim | 
| Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36300 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim | 
| Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36301 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36302 | ALLOCA!$ALLOCA$ac_delim | 
 | 36303 | MMAP_FILE!$MMAP_FILE$ac_delim | 
 | 36304 | LLVMCC1!$LLVMCC1$ac_delim | 
 | 36305 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim | 
 | 36306 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim | 
| Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36307 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36308 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim | 
 | 36309 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim | 
| Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36310 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36311 | SHLIBEXT!$SHLIBEXT$ac_delim | 
 | 36312 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim | 
 | 36313 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim | 
 | 36314 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim | 
 | 36315 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim | 
 | 36316 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim | 
 | 36317 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim | 
 | 36318 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim | 
 | 36319 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim | 
 | 36320 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim | 
 | 36321 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim | 
| Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36322 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim | 
 | 36323 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim | 
| Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36324 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim | 
| Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36325 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim | 
| Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36326 | RPATH!$RPATH$ac_delim | 
| Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36327 | RDYNAMIC!$RDYNAMIC$ac_delim | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36328 | LIBOBJS!$LIBOBJS$ac_delim | 
 | 36329 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 
 | 36330 | _ACEOF | 
 | 36331 |  | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36332 |   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36333 |     break | 
 | 36334 |   elif $ac_last_try; then | 
 | 36335 |     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 
 | 36336 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 
 | 36337 |    { (exit 1); exit 1; }; } | 
 | 36338 |   else | 
 | 36339 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 36340 |   fi | 
 | 36341 | done | 
 | 36342 |  | 
 | 36343 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | 
 | 36344 | if test -n "$ac_eof"; then | 
 | 36345 |   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | 
 | 36346 |   ac_eof=`expr $ac_eof + 1` | 
 | 36347 | fi | 
 | 36348 |  | 
 | 36349 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36350 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36351 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36352 | _ACEOF | 
 | 36353 | sed ' | 
 | 36354 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | 
 | 36355 | s/^/s,@/; s/!/@,|#_!!_#|/ | 
 | 36356 | :n | 
 | 36357 | t n | 
 | 36358 | s/'"$ac_delim"'$/,g/; t | 
 | 36359 | s/$/\\/; p | 
 | 36360 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | 
 | 36361 | ' >>$CONFIG_STATUS <conf$$subs.sed | 
 | 36362 | rm -f conf$$subs.sed | 
 | 36363 | cat >>$CONFIG_STATUS <<_ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36364 | CEOF$ac_eof | 
 | 36365 | _ACEOF | 
 | 36366 |  | 
 | 36367 |  | 
 | 36368 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
 | 36369 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
 | 36370 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 36371 | # (actually we leave an empty line to preserve line numbers). | 
 | 36372 | if test "x$srcdir" = x.; then | 
 | 36373 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{ | 
 | 36374 | s/:*\$(srcdir):*/:/ | 
 | 36375 | s/:*\${srcdir}:*/:/ | 
 | 36376 | s/:*@srcdir@:*/:/ | 
 | 36377 | s/^\([^=]*=[	 ]*\):*/\1/ | 
 | 36378 | s/:*$// | 
 | 36379 | s/^[^=]*=[	 ]*$// | 
 | 36380 | }' | 
 | 36381 | fi | 
 | 36382 |  | 
 | 36383 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36384 | fi # test -n "$CONFIG_FILES" | 
 | 36385 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36386 |  | 
 | 36387 | for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS | 
 | 36388 | do | 
 | 36389 |   case $ac_tag in | 
 | 36390 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 36391 |   esac | 
 | 36392 |   case $ac_mode$ac_tag in | 
 | 36393 |   :[FHL]*:*);; | 
 | 36394 |   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 
 | 36395 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | 
 | 36396 |    { (exit 1); exit 1; }; };; | 
 | 36397 |   :[FH]-) ac_tag=-:-;; | 
 | 36398 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 36399 |   esac | 
 | 36400 |   ac_save_IFS=$IFS | 
 | 36401 |   IFS=: | 
 | 36402 |   set x $ac_tag | 
 | 36403 |   IFS=$ac_save_IFS | 
 | 36404 |   shift | 
 | 36405 |   ac_file=$1 | 
 | 36406 |   shift | 
 | 36407 |  | 
 | 36408 |   case $ac_mode in | 
 | 36409 |   :L) ac_source=$1;; | 
 | 36410 |   :[FH]) | 
 | 36411 |     ac_file_inputs= | 
 | 36412 |     for ac_f | 
 | 36413 |     do | 
 | 36414 |       case $ac_f in | 
 | 36415 |       -) ac_f="$tmp/stdin";; | 
 | 36416 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 36417 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 36418 | 	 # because $ac_f cannot contain `:'. | 
 | 36419 | 	 test -f "$ac_f" || | 
 | 36420 | 	   case $ac_f in | 
 | 36421 | 	   [\\/$]*) false;; | 
 | 36422 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 36423 | 	   esac || | 
 | 36424 | 	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 
 | 36425 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | 
 | 36426 |    { (exit 1); exit 1; }; };; | 
 | 36427 |       esac | 
 | 36428 |       ac_file_inputs="$ac_file_inputs $ac_f" | 
 | 36429 |     done | 
 | 36430 |  | 
 | 36431 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 36432 |     # use $as_me), people would be surprised to read: | 
 | 36433 |     #    /* config.h.  Generated by config.status.  */ | 
 | 36434 |     configure_input="Generated from "`IFS=: | 
 | 36435 | 	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | 
 | 36436 |     if test x"$ac_file" != x-; then | 
 | 36437 |       configure_input="$ac_file.  $configure_input" | 
 | 36438 |       { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
 | 36439 | echo "$as_me: creating $ac_file" >&6;} | 
 | 36440 |     fi | 
 | 36441 |  | 
 | 36442 |     case $ac_tag in | 
 | 36443 |     *:-:* | *:-) cat >"$tmp/stdin";; | 
 | 36444 |     esac | 
 | 36445 |     ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36446 |   esac | 
 | 36447 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36448 |   ac_dir=`$as_dirname -- "$ac_file" || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36449 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36450 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 36451 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36452 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36453 | echo X"$ac_file" | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36454 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 36455 | 	    s//\1/ | 
 | 36456 | 	    q | 
 | 36457 | 	  } | 
 | 36458 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 36459 | 	    s//\1/ | 
 | 36460 | 	    q | 
 | 36461 | 	  } | 
 | 36462 | 	  /^X\(\/\/\)$/{ | 
 | 36463 | 	    s//\1/ | 
 | 36464 | 	    q | 
 | 36465 | 	  } | 
 | 36466 | 	  /^X\(\/\).*/{ | 
 | 36467 | 	    s//\1/ | 
 | 36468 | 	    q | 
 | 36469 | 	  } | 
 | 36470 | 	  s/.*/./; q'` | 
 | 36471 |   { as_dir="$ac_dir" | 
 | 36472 |   case $as_dir in #( | 
 | 36473 |   -*) as_dir=./$as_dir;; | 
 | 36474 |   esac | 
 | 36475 |   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36476 |     as_dirs= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36477 |     while :; do | 
 | 36478 |       case $as_dir in #( | 
 | 36479 |       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
 | 36480 |       *) as_qdir=$as_dir;; | 
 | 36481 |       esac | 
 | 36482 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 36483 |       as_dir=`$as_dirname -- "$as_dir" || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36485 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 36486 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36487 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36488 | echo X"$as_dir" | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36489 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 36490 | 	    s//\1/ | 
 | 36491 | 	    q | 
 | 36492 | 	  } | 
 | 36493 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 36494 | 	    s//\1/ | 
 | 36495 | 	    q | 
 | 36496 | 	  } | 
 | 36497 | 	  /^X\(\/\/\)$/{ | 
 | 36498 | 	    s//\1/ | 
 | 36499 | 	    q | 
 | 36500 | 	  } | 
 | 36501 | 	  /^X\(\/\).*/{ | 
 | 36502 | 	    s//\1/ | 
 | 36503 | 	    q | 
 | 36504 | 	  } | 
 | 36505 | 	  s/.*/./; q'` | 
 | 36506 |       test -d "$as_dir" && break | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36507 |     done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36508 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
 | 36509 |   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
 | 36510 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36511 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36512 |   ac_builddir=. | 
 | 36513 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36514 | case "$ac_dir" in | 
 | 36515 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 36516 | *) | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36517 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36518 |   # A ".." for each directory in $ac_dir_suffix. | 
 | 36519 |   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
 | 36520 |   case $ac_top_builddir_sub in | 
 | 36521 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 36522 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 36523 |   esac ;; | 
 | 36524 | esac | 
 | 36525 | ac_abs_top_builddir=$ac_pwd | 
 | 36526 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 36527 | # for backward compatibility: | 
 | 36528 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36529 |  | 
 | 36530 | case $srcdir in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36531 |   .)  # We are building in place. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36532 |     ac_srcdir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36533 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 36534 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 36535 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36536 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36537 |     ac_top_srcdir=$srcdir | 
 | 36538 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 36539 |   *) # Relative name. | 
 | 36540 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 36541 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 36542 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36543 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36544 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36545 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36546 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36547 |   case $ac_mode in | 
 | 36548 |   :F) | 
 | 36549 |   # | 
 | 36550 |   # CONFIG_FILE | 
 | 36551 |   # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36552 |  | 
 | 36553 |   case $INSTALL in | 
 | 36554 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36555 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36556 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36557 | _ACEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36558 |  | 
 | 36559 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 36560 | # If the template does not know about datarootdir, expand it. | 
 | 36561 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 36562 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
 | 36563 |  | 
 | 36564 | case `sed -n '/datarootdir/ { | 
 | 36565 |   p | 
 | 36566 |   q | 
 | 36567 | } | 
 | 36568 | /@datadir@/p | 
 | 36569 | /@docdir@/p | 
 | 36570 | /@infodir@/p | 
 | 36571 | /@localedir@/p | 
 | 36572 | /@mandir@/p | 
 | 36573 | ' $ac_file_inputs` in | 
 | 36574 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 36575 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
 | 36576 |   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 
 | 36577 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
 | 36578 | _ACEOF | 
 | 36579 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36580 |   ac_datarootdir_hack=' | 
 | 36581 |   s&@datadir@&$datadir&g | 
 | 36582 |   s&@docdir@&$docdir&g | 
 | 36583 |   s&@infodir@&$infodir&g | 
 | 36584 |   s&@localedir@&$localedir&g | 
 | 36585 |   s&@mandir@&$mandir&g | 
 | 36586 |     s&\\\${datarootdir}&$datarootdir&g' ;; | 
 | 36587 | esac | 
 | 36588 | _ACEOF | 
 | 36589 |  | 
 | 36590 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 36591 | # Shell code in configure.ac might set extrasub. | 
 | 36592 | # FIXME: do we really want to maintain this feature? | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36593 | cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36594 |   sed "$ac_vpsub | 
 | 36595 | $extrasub | 
 | 36596 | _ACEOF | 
 | 36597 | cat >>$CONFIG_STATUS <<\_ACEOF | 
 | 36598 | :t | 
 | 36599 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36600 | s&@configure_input@&$configure_input&;t t | 
 | 36601 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
 | 36602 | s&@srcdir@&$ac_srcdir&;t t | 
 | 36603 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 36604 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 36605 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 36606 | s&@builddir@&$ac_builddir&;t t | 
 | 36607 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 36608 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 36609 | s&@INSTALL@&$ac_INSTALL&;t t | 
 | 36610 | $ac_datarootdir_hack | 
| Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 36611 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36612 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36613 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
 | 36614 |   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
 | 36615 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
 | 36616 |   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
 | 36617 | which seems to be undefined.  Please make sure it is defined." >&5 | 
 | 36618 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
 | 36619 | which seems to be undefined.  Please make sure it is defined." >&2;} | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36620 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36621 |   rm -f "$tmp/stdin" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36622 |   case $ac_file in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36623 |   -) cat "$tmp/out"; rm -f "$tmp/out";; | 
 | 36624 |   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36625 |   esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36626 |  ;; | 
 | 36627 |   :H) | 
 | 36628 |   # | 
 | 36629 |   # CONFIG_HEADER | 
 | 36630 |   # | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36631 | _ACEOF | 
 | 36632 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36633 | # Transform confdefs.h into a sed script `conftest.defines', that | 
 | 36634 | # substitutes the proper values into config.h.in to produce config.h. | 
 | 36635 | rm -f conftest.defines conftest.tail | 
 | 36636 | # First, append a space to every undef/define line, to ease matching. | 
 | 36637 | echo 's/$/ /' >conftest.defines | 
 | 36638 | # Then, protect against being on the right side of a sed subst, or in | 
 | 36639 | # an unquoted here document, in config.status.  If some macros were | 
 | 36640 | # called several times there might be several #defines for the same | 
 | 36641 | # symbol, which is useless.  But do not sort them, since the last | 
 | 36642 | # AC_DEFINE must be honored. | 
 | 36643 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 36644 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | 
 | 36645 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | 
 | 36646 | # PARAMS is the parameter list in the macro definition--in most cases, it's | 
 | 36647 | # just an empty string. | 
 | 36648 | ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*' | 
 | 36649 | ac_dB='\\)[	 (].*,\\1define\\2' | 
 | 36650 | ac_dC=' ' | 
 | 36651 | ac_dD=' ,' | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36652 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36653 | uniq confdefs.h | | 
 | 36654 |   sed -n ' | 
 | 36655 | 	t rset | 
 | 36656 | 	:rset | 
 | 36657 | 	s/^[	 ]*#[	 ]*define[	 ][	 ]*// | 
 | 36658 | 	t ok | 
 | 36659 | 	d | 
 | 36660 | 	:ok | 
 | 36661 | 	s/[\\&,]/\\&/g | 
 | 36662 | 	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | 
 | 36663 | 	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | 
 | 36664 |   ' >>conftest.defines | 
 | 36665 |  | 
 | 36666 | # Remove the space that was appended to ease matching. | 
 | 36667 | # Then replace #undef with comments.  This is necessary, for | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36668 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 36669 | # on some systems where configure will not decide to define it. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36670 | # (The regexp can be short, since the line contains either #define or #undef.) | 
 | 36671 | echo 's/ $// | 
 | 36672 | s,^[	 #]*u.*,/* & */,' >>conftest.defines | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36673 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36674 | # Break up conftest.defines: | 
 | 36675 | ac_max_sed_lines=50 | 
 | 36676 |  | 
 | 36677 | # First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1" | 
 | 36678 | # Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2" | 
 | 36679 | # Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1" | 
 | 36680 | # et cetera. | 
 | 36681 | ac_in='$ac_file_inputs' | 
 | 36682 | ac_out='"$tmp/out1"' | 
 | 36683 | ac_nxt='"$tmp/out2"' | 
 | 36684 |  | 
 | 36685 | while : | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36686 | do | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36687 |   # Write a here document: | 
 | 36688 |     cat >>$CONFIG_STATUS <<_ACEOF | 
 | 36689 |     # First, check the format of the line: | 
 | 36690 |     cat >"\$tmp/defines.sed" <<\\CEOF | 
 | 36691 | /^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def | 
 | 36692 | /^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def | 
 | 36693 | b | 
 | 36694 | :def | 
 | 36695 | _ACEOF | 
 | 36696 |   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36697 |   echo 'CEOF | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36698 |     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | 
 | 36699 |   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | 
 | 36700 |   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | 
 | 36701 |   grep . conftest.tail >/dev/null || break | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36702 |   rm -f conftest.defines | 
 | 36703 |   mv conftest.tail conftest.defines | 
 | 36704 | done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36705 | rm -f conftest.defines conftest.tail | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36706 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36707 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36708 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36709 |   if test x"$ac_file" != x-; then | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36710 |     echo "/* $configure_input  */" >"$tmp/config.h" | 
 | 36711 |     cat "$ac_result" >>"$tmp/config.h" | 
 | 36712 |     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36713 |       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
 | 36714 | echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 36715 |     else | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36716 |       rm -f $ac_file | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36717 |       mv "$tmp/config.h" $ac_file | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36718 |     fi | 
 | 36719 |   else | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36720 |     echo "/* $configure_input  */" | 
 | 36721 |     cat "$ac_result" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36722 |   fi | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36723 |   rm -f "$tmp/out12" | 
 | 36724 |  ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36725 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36726 |   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 
 | 36727 | echo "$as_me: executing $ac_file commands" >&6;} | 
 | 36728 |  ;; | 
| John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36729 |   esac | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36730 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36731 |  | 
 | 36732 |   case $ac_file$ac_mode in | 
 | 36733 |     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36734 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36735 |     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36736 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36737 |     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36738 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36739 |     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36740 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; | 
| Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36741 |     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36742 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36743 |     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36744 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36745 |     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36746 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; | 
| Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 36747 |     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36748 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36749 |     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36750 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36751 |     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36752 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36753 |     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36754 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; | 
| Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36755 |     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36756 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; | 
| Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36757 |     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` | 
| Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 36758 |    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36759 |  | 
 | 36760 |   esac | 
 | 36761 | done # for ac_tag | 
 | 36762 |  | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36763 |  | 
 | 36764 | { (exit 0); exit 0; } | 
 | 36765 | _ACEOF | 
 | 36766 | chmod +x $CONFIG_STATUS | 
 | 36767 | ac_clean_files=$ac_clean_files_save | 
 | 36768 |  | 
 | 36769 |  | 
 | 36770 | # configure is writing to config.log, and then calls config.status. | 
 | 36771 | # config.status does its own redirection, appending to config.log. | 
 | 36772 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 36773 | # by configure, so config.status won't be able to write to it; its | 
 | 36774 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 36775 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 36776 | # appended to by config.status.  When coming back to configure, we | 
 | 36777 | # need to make the FD available again. | 
 | 36778 | if test "$no_create" != yes; then | 
 | 36779 |   ac_cs_success=: | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36780 |   ac_config_status_args= | 
 | 36781 |   test "$silent" = yes && | 
 | 36782 |     ac_config_status_args="$ac_config_status_args --quiet" | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36783 |   exec 5>/dev/null | 
| John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36784 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36785 |   exec 5>>config.log | 
 | 36786 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 36787 |   # would make configure fail if this is the last instruction. | 
 | 36788 |   $ac_cs_success || { (exit 1); exit 1; } | 
 | 36789 | fi | 
 | 36790 |  | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36791 | # | 
 | 36792 | # CONFIG_SUBDIRS section. | 
 | 36793 | # | 
 | 36794 | if test "$no_recursion" != yes; then | 
 | 36795 |  | 
 | 36796 |   # Remove --cache-file and --srcdir arguments so they do not pile up. | 
 | 36797 |   ac_sub_configure_args= | 
 | 36798 |   ac_prev= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36799 |   eval "set x $ac_configure_args" | 
 | 36800 |   shift | 
 | 36801 |   for ac_arg | 
 | 36802 |   do | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36803 |     if test -n "$ac_prev"; then | 
 | 36804 |       ac_prev= | 
 | 36805 |       continue | 
 | 36806 |     fi | 
 | 36807 |     case $ac_arg in | 
 | 36808 |     -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 36809 |     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 36810 |       ac_prev=cache_file ;; | 
 | 36811 |     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 36812 |     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | 
 | 36813 |     | --c=*) | 
 | 36814 |       ;; | 
 | 36815 |     --config-cache | -C) | 
 | 36816 |       ;; | 
 | 36817 |     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 36818 |       ac_prev=srcdir ;; | 
 | 36819 |     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 36820 |       ;; | 
 | 36821 |     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 36822 |       ac_prev=prefix ;; | 
 | 36823 |     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 36824 |       ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36825 |     *) | 
 | 36826 |       case $ac_arg in | 
 | 36827 |       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 36828 |       esac | 
 | 36829 |       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36830 |     esac | 
 | 36831 |   done | 
 | 36832 |  | 
 | 36833 |   # Always prepend --prefix to ensure using the same prefix | 
 | 36834 |   # in subdir configurations. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36835 |   ac_arg="--prefix=$prefix" | 
 | 36836 |   case $ac_arg in | 
 | 36837 |   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 36838 |   esac | 
| Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36839 |   ac_sub_configure_args="$ac_arg $ac_sub_configure_args" | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36840 |  | 
 | 36841 |   ac_popdir=`pwd` | 
 | 36842 |   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | 
 | 36843 |  | 
 | 36844 |     # Do not complain, so a configure script can configure whichever | 
 | 36845 |     # parts of a large source tree are present. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36846 |     test -d "$srcdir/$ac_dir" || continue | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36847 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36848 |     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | 
 | 36849 |     echo "$as_me:$LINENO: $ac_msg" >&5 | 
 | 36850 |     echo "$ac_msg" >&6 | 
 | 36851 |     { as_dir="$ac_dir" | 
 | 36852 |   case $as_dir in #( | 
 | 36853 |   -*) as_dir=./$as_dir;; | 
 | 36854 |   esac | 
 | 36855 |   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36856 |     as_dirs= | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36857 |     while :; do | 
 | 36858 |       case $as_dir in #( | 
 | 36859 |       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | 
 | 36860 |       *) as_qdir=$as_dir;; | 
 | 36861 |       esac | 
 | 36862 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 36863 |       as_dir=`$as_dirname -- "$as_dir" || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36864 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36865 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 36866 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36867 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36868 | echo X"$as_dir" | | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36869 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 36870 | 	    s//\1/ | 
 | 36871 | 	    q | 
 | 36872 | 	  } | 
 | 36873 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 36874 | 	    s//\1/ | 
 | 36875 | 	    q | 
 | 36876 | 	  } | 
 | 36877 | 	  /^X\(\/\/\)$/{ | 
 | 36878 | 	    s//\1/ | 
 | 36879 | 	    q | 
 | 36880 | 	  } | 
 | 36881 | 	  /^X\(\/\).*/{ | 
 | 36882 | 	    s//\1/ | 
 | 36883 | 	    q | 
 | 36884 | 	  } | 
 | 36885 | 	  s/.*/./; q'` | 
 | 36886 |       test -d "$as_dir" && break | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36887 |     done | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36888 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
 | 36889 |   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | 
 | 36890 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36891 |    { (exit 1); exit 1; }; }; } | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36892 |     ac_builddir=. | 
 | 36893 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36894 | case "$ac_dir" in | 
 | 36895 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 36896 | *) | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36897 |   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36898 |   # A ".." for each directory in $ac_dir_suffix. | 
 | 36899 |   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | 
 | 36900 |   case $ac_top_builddir_sub in | 
 | 36901 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 36902 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 36903 |   esac ;; | 
 | 36904 | esac | 
 | 36905 | ac_abs_top_builddir=$ac_pwd | 
 | 36906 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 36907 | # for backward compatibility: | 
 | 36908 | ac_top_builddir=$ac_top_build_prefix | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36909 |  | 
 | 36910 | case $srcdir in | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36911 |   .)  # We are building in place. | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36912 |     ac_srcdir=. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36913 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 36914 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 36915 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36916 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36917 |     ac_top_srcdir=$srcdir | 
 | 36918 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 36919 |   *) # Relative name. | 
 | 36920 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 36921 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 36922 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36923 | esac | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36924 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36925 |  | 
 | 36926 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36927 |     cd "$ac_dir" | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36928 |  | 
 | 36929 |     # Check for guested configure; otherwise get Cygnus style configure. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36930 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 36931 |       ac_sub_configure=$ac_srcdir/configure.gnu | 
 | 36932 |     elif test -f "$ac_srcdir/configure"; then | 
 | 36933 |       ac_sub_configure=$ac_srcdir/configure | 
 | 36934 |     elif test -f "$ac_srcdir/configure.in"; then | 
 | 36935 |       # This should be Cygnus configure. | 
 | 36936 |       ac_sub_configure=$ac_aux_dir/configure | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36937 |     else | 
 | 36938 |       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | 
 | 36939 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | 
 | 36940 |       ac_sub_configure= | 
 | 36941 |     fi | 
 | 36942 |  | 
 | 36943 |     # The recursion is here. | 
 | 36944 |     if test -n "$ac_sub_configure"; then | 
 | 36945 |       # Make the cache file name correct relative to the subdirectory. | 
 | 36946 |       case $cache_file in | 
 | 36947 |       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36948 |       *) # Relative name. | 
 | 36949 | 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36950 |       esac | 
 | 36951 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36952 |       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | 
 | 36953 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36954 |       # The eval makes quoting arguments work. | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36955 |       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | 
 | 36956 | 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | 
| Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36957 | 	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36958 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | 
 | 36959 |    { (exit 1); exit 1; }; } | 
 | 36960 |     fi | 
 | 36961 |  | 
| Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36962 |     cd "$ac_popdir" | 
| John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36963 |   done | 
 | 36964 | fi | 
 | 36965 |  |