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 | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.8svn. |
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, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | # |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR |
| 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 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 | |
| 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 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= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 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 |
| 240 | # Be Bourne compatible |
| 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 |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 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 |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 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 | ( |
| 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
| 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 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" || { |
| 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 |
| 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. |
| 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 | |
| 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 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 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' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +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 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.8svn' |
| 565 | PACKAGE_STRING='llvm 2.8svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 569 | # Factoring default headers for most tests. |
| 570 | ac_includes_default="\ |
| 571 | #include <stdio.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 572 | #if HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 573 | # include <sys/types.h> |
| 574 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 575 | #if HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 576 | # include <sys/stat.h> |
| 577 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 578 | #if STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | # include <stdlib.h> |
| 580 | # include <stddef.h> |
| 581 | #else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 582 | # if HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 583 | # include <stdlib.h> |
| 584 | # endif |
| 585 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 586 | #if HAVE_STRING_H |
| 587 | # if !STDC_HEADERS && HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 588 | # include <memory.h> |
| 589 | # endif |
| 590 | # include <string.h> |
| 591 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 592 | #if HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 593 | # include <strings.h> |
| 594 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 595 | #if HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 596 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 597 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 598 | #if HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 599 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 600 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 601 | #if HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | # include <unistd.h> |
| 603 | #endif" |
| 604 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 605 | ac_subst_vars='SHELL |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 606 | PATH_SEPARATOR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 607 | PACKAGE_NAME |
| 608 | PACKAGE_TARNAME |
| 609 | PACKAGE_VERSION |
| 610 | PACKAGE_STRING |
| 611 | PACKAGE_BUGREPORT |
| 612 | exec_prefix |
| 613 | prefix |
| 614 | program_transform_name |
| 615 | bindir |
| 616 | sbindir |
| 617 | libexecdir |
| 618 | datarootdir |
| 619 | datadir |
| 620 | sysconfdir |
| 621 | sharedstatedir |
| 622 | localstatedir |
| 623 | includedir |
| 624 | oldincludedir |
| 625 | docdir |
| 626 | infodir |
| 627 | htmldir |
| 628 | dvidir |
| 629 | pdfdir |
| 630 | psdir |
| 631 | libdir |
| 632 | localedir |
| 633 | mandir |
| 634 | DEFS |
| 635 | ECHO_C |
| 636 | ECHO_N |
| 637 | ECHO_T |
| 638 | LIBS |
| 639 | build_alias |
| 640 | host_alias |
| 641 | target_alias |
| 642 | LLVM_COPYRIGHT |
| 643 | subdirs |
| 644 | build |
| 645 | build_cpu |
| 646 | build_vendor |
| 647 | build_os |
| 648 | host |
| 649 | host_cpu |
| 650 | host_vendor |
| 651 | host_os |
| 652 | target |
| 653 | target_cpu |
| 654 | target_vendor |
| 655 | target_os |
| 656 | OS |
| 657 | HOST_OS |
| 658 | TARGET_OS |
| 659 | LINKALL |
| 660 | NOLINKALL |
| 661 | LLVM_ON_UNIX |
| 662 | LLVM_ON_WIN32 |
| 663 | ARCH |
| 664 | ENDIAN |
| 665 | CC |
| 666 | CFLAGS |
| 667 | LDFLAGS |
| 668 | CPPFLAGS |
| 669 | ac_ct_CC |
| 670 | EXEEXT |
| 671 | OBJEXT |
| 672 | CPP |
| 673 | GREP |
| 674 | EGREP |
| 675 | LLVM_CROSS_COMPILING |
| 676 | BUILD_CC |
| 677 | BUILD_EXEEXT |
| 678 | BUILD_CXX |
| 679 | CVSBUILD |
| 680 | ENABLE_OPTIMIZED |
| 681 | ENABLE_PROFILING |
| 682 | DISABLE_ASSERTIONS |
| 683 | ENABLE_EXPENSIVE_CHECKS |
| 684 | EXPENSIVE_CHECKS |
| 685 | DEBUG_RUNTIME |
| 686 | DEBUG_SYMBOLS |
| 687 | JIT |
| 688 | TARGET_HAS_JIT |
| 689 | ENABLE_DOXYGEN |
| 690 | ENABLE_THREADS |
| 691 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 692 | ENABLE_SHARED |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 693 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 694 | TARGETS_TO_BUILD |
| 695 | LLVM_ENUM_TARGETS |
| 696 | LLVM_ENUM_ASM_PRINTERS |
| 697 | LLVM_ENUM_ASM_PARSERS |
| 698 | LLVM_ENUM_DISASSEMBLERS |
| 699 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 700 | CLANGPATH |
| 701 | CLANGXXPATH |
| 702 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | OPTIMIZE_OPTION |
| 704 | EXTRA_OPTIONS |
| 705 | BINUTILS_INCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 706 | CXX |
| 707 | CXXFLAGS |
| 708 | ac_ct_CXX |
| 709 | NM |
| 710 | ifGNUmake |
| 711 | LN_S |
| 712 | CMP |
| 713 | CP |
| 714 | DATE |
| 715 | FIND |
| 716 | MKDIR |
| 717 | MV |
| 718 | RANLIB |
| 719 | AR |
| 720 | RM |
| 721 | SED |
| 722 | TAR |
| 723 | BINPWD |
| 724 | GRAPHVIZ |
| 725 | DOT |
| 726 | FDP |
| 727 | NEATO |
| 728 | TWOPI |
| 729 | CIRCO |
| 730 | GV |
| 731 | DOTTY |
| 732 | PERL |
| 733 | HAVE_PERL |
| 734 | INSTALL_PROGRAM |
| 735 | INSTALL_SCRIPT |
| 736 | INSTALL_DATA |
| 737 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 738 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 739 | DOXYGEN |
| 740 | GROFF |
| 741 | GZIP |
| 742 | POD2HTML |
| 743 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 744 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 745 | RUNTEST |
| 746 | TCLSH |
| 747 | ZIP |
| 748 | OCAMLC |
| 749 | OCAMLOPT |
| 750 | OCAMLDEP |
| 751 | OCAMLDOC |
| 752 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 753 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 754 | INSTALL_LTDL_TRUE |
| 755 | INSTALL_LTDL_FALSE |
| 756 | CONVENIENCE_LTDL_TRUE |
| 757 | CONVENIENCE_LTDL_FALSE |
| 758 | LIBADD_DL |
| 759 | LLVMGCCCOMMAND |
| 760 | LLVMGXXCOMMAND |
| 761 | LLVMGCC |
| 762 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 763 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 764 | NO_VARIADIC_MACROS |
| 765 | NO_MISSING_FIELD_INITIALIZERS |
| 766 | USE_UDIS86 |
| 767 | USE_OPROFILE |
| 768 | HAVE_PTHREAD |
| 769 | HUGE_VAL_SANITY |
| 770 | MMAP_FILE |
| 771 | LLVMCC1 |
| 772 | LLVMCC1PLUS |
| 773 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 774 | LLVMGCC_LANGS |
| 775 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 776 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 777 | LLVM_PREFIX |
| 778 | LLVM_BINDIR |
| 779 | LLVM_LIBDIR |
| 780 | LLVM_DATADIR |
| 781 | LLVM_DOCSDIR |
| 782 | LLVM_ETCDIR |
| 783 | LLVM_INCLUDEDIR |
| 784 | LLVM_INFODIR |
| 785 | LLVM_MANDIR |
| 786 | LLVM_CONFIGTIME |
| 787 | BINDINGS_TO_BUILD |
| 788 | ALL_BINDINGS |
| 789 | OCAML_LIBDIR |
| 790 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 791 | RPATH |
| 792 | RDYNAMIC |
| 793 | LIBOBJS |
| 794 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 795 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 796 | ac_precious_vars='build_alias |
| 797 | host_alias |
| 798 | target_alias |
| 799 | CC |
| 800 | CFLAGS |
| 801 | LDFLAGS |
| 802 | CPPFLAGS |
| 803 | CPP |
| 804 | CXX |
| 805 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 806 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 807 | ac_subdirs_all='projects/llvm-gcc |
| 808 | projects/test-suite |
| 809 | projects/llvm-test |
| 810 | projects/poolalloc |
| 811 | projects/llvm-poolalloc |
| 812 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 813 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 814 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 816 | projects/llvm-java |
| 817 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 818 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 820 | |
| 821 | # Initialize some variables set by options. |
| 822 | ac_init_help= |
| 823 | ac_init_version=false |
| 824 | # The variables have the same names as the options, with |
| 825 | # dashes changed to underlines. |
| 826 | cache_file=/dev/null |
| 827 | exec_prefix=NONE |
| 828 | no_create= |
| 829 | no_recursion= |
| 830 | prefix=NONE |
| 831 | program_prefix=NONE |
| 832 | program_suffix=NONE |
| 833 | program_transform_name=s,x,x, |
| 834 | silent= |
| 835 | site= |
| 836 | srcdir= |
| 837 | verbose= |
| 838 | x_includes=NONE |
| 839 | x_libraries=NONE |
| 840 | |
| 841 | # Installation directory options. |
| 842 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 843 | # and all the variables that are supposed to be based on exec_prefix |
| 844 | # by default will actually change. |
| 845 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 846 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 847 | bindir='${exec_prefix}/bin' |
| 848 | sbindir='${exec_prefix}/sbin' |
| 849 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | datarootdir='${prefix}/share' |
| 851 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 852 | sysconfdir='${prefix}/etc' |
| 853 | sharedstatedir='${prefix}/com' |
| 854 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 855 | includedir='${prefix}/include' |
| 856 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 857 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 858 | infodir='${datarootdir}/info' |
| 859 | htmldir='${docdir}' |
| 860 | dvidir='${docdir}' |
| 861 | pdfdir='${docdir}' |
| 862 | psdir='${docdir}' |
| 863 | libdir='${exec_prefix}/lib' |
| 864 | localedir='${datarootdir}/locale' |
| 865 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 866 | |
| 867 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 868 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 869 | for ac_option |
| 870 | do |
| 871 | # If the previous option needs an argument, assign it. |
| 872 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 873 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 874 | ac_prev= |
| 875 | continue |
| 876 | fi |
| 877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 878 | case $ac_option in |
| 879 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 880 | *) ac_optarg=yes ;; |
| 881 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 882 | |
| 883 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 885 | case $ac_dashdash$ac_option in |
| 886 | --) |
| 887 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 888 | |
| 889 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 890 | ac_prev=bindir ;; |
| 891 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 892 | bindir=$ac_optarg ;; |
| 893 | |
| 894 | -build | --build | --buil | --bui | --bu) |
| 895 | ac_prev=build_alias ;; |
| 896 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 897 | build_alias=$ac_optarg ;; |
| 898 | |
| 899 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 900 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 901 | ac_prev=cache_file ;; |
| 902 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 903 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 904 | cache_file=$ac_optarg ;; |
| 905 | |
| 906 | --config-cache | -C) |
| 907 | cache_file=config.cache ;; |
| 908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 910 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 912 | datadir=$ac_optarg ;; |
| 913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 914 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 915 | | --dataroo | --dataro | --datar) |
| 916 | ac_prev=datarootdir ;; |
| 917 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 918 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 919 | datarootdir=$ac_optarg ;; |
| 920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 921 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 922 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 924 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 925 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 926 | { (exit 1); exit 1; }; } |
| 927 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 928 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 929 | |
| 930 | -docdir | --docdir | --docdi | --doc | --do) |
| 931 | ac_prev=docdir ;; |
| 932 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 933 | docdir=$ac_optarg ;; |
| 934 | |
| 935 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 936 | ac_prev=dvidir ;; |
| 937 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 938 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 939 | |
| 940 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 941 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 942 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 943 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 944 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 945 | { (exit 1); exit 1; }; } |
| 946 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 947 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | |
| 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 951 | | --exec | --exe | --ex) |
| 952 | ac_prev=exec_prefix ;; |
| 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 955 | | --exec=* | --exe=* | --ex=*) |
| 956 | exec_prefix=$ac_optarg ;; |
| 957 | |
| 958 | -gas | --gas | --ga | --g) |
| 959 | # Obsolete; use --with-gas. |
| 960 | with_gas=yes ;; |
| 961 | |
| 962 | -help | --help | --hel | --he | -h) |
| 963 | ac_init_help=long ;; |
| 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 965 | ac_init_help=recursive ;; |
| 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 967 | ac_init_help=short ;; |
| 968 | |
| 969 | -host | --host | --hos | --ho) |
| 970 | ac_prev=host_alias ;; |
| 971 | -host=* | --host=* | --hos=* | --ho=*) |
| 972 | host_alias=$ac_optarg ;; |
| 973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 975 | ac_prev=htmldir ;; |
| 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 977 | | --ht=*) |
| 978 | htmldir=$ac_optarg ;; |
| 979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 980 | -includedir | --includedir | --includedi | --included | --include \ |
| 981 | | --includ | --inclu | --incl | --inc) |
| 982 | ac_prev=includedir ;; |
| 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 985 | includedir=$ac_optarg ;; |
| 986 | |
| 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 988 | ac_prev=infodir ;; |
| 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 990 | infodir=$ac_optarg ;; |
| 991 | |
| 992 | -libdir | --libdir | --libdi | --libd) |
| 993 | ac_prev=libdir ;; |
| 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 995 | libdir=$ac_optarg ;; |
| 996 | |
| 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 998 | | --libexe | --libex | --libe) |
| 999 | ac_prev=libexecdir ;; |
| 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1001 | | --libexe=* | --libex=* | --libe=*) |
| 1002 | libexecdir=$ac_optarg ;; |
| 1003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1005 | ac_prev=localedir ;; |
| 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1007 | localedir=$ac_optarg ;; |
| 1008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | ac_prev=localstatedir ;; |
| 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | localstatedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1017 | ac_prev=mandir ;; |
| 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1019 | mandir=$ac_optarg ;; |
| 1020 | |
| 1021 | -nfp | --nfp | --nf) |
| 1022 | # Obsolete; use --without-fp. |
| 1023 | with_fp=no ;; |
| 1024 | |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1026 | | --no-cr | --no-c | -n) |
| 1027 | no_create=yes ;; |
| 1028 | |
| 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1031 | no_recursion=yes ;; |
| 1032 | |
| 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1035 | | --oldin | --oldi | --old | --ol | --o) |
| 1036 | ac_prev=oldincludedir ;; |
| 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1040 | oldincludedir=$ac_optarg ;; |
| 1041 | |
| 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1043 | ac_prev=prefix ;; |
| 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1045 | prefix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1048 | | --program-pre | --program-pr | --program-p) |
| 1049 | ac_prev=program_prefix ;; |
| 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1052 | program_prefix=$ac_optarg ;; |
| 1053 | |
| 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1055 | | --program-suf | --program-su | --program-s) |
| 1056 | ac_prev=program_suffix ;; |
| 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1059 | program_suffix=$ac_optarg ;; |
| 1060 | |
| 1061 | -program-transform-name | --program-transform-name \ |
| 1062 | | --program-transform-nam | --program-transform-na \ |
| 1063 | | --program-transform-n | --program-transform- \ |
| 1064 | | --program-transform | --program-transfor \ |
| 1065 | | --program-transfo | --program-transf \ |
| 1066 | | --program-trans | --program-tran \ |
| 1067 | | --progr-tra | --program-tr | --program-t) |
| 1068 | ac_prev=program_transform_name ;; |
| 1069 | -program-transform-name=* | --program-transform-name=* \ |
| 1070 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1071 | | --program-transform-n=* | --program-transform-=* \ |
| 1072 | | --program-transform=* | --program-transfor=* \ |
| 1073 | | --program-transfo=* | --program-transf=* \ |
| 1074 | | --program-trans=* | --program-tran=* \ |
| 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1076 | program_transform_name=$ac_optarg ;; |
| 1077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1079 | ac_prev=pdfdir ;; |
| 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1081 | pdfdir=$ac_optarg ;; |
| 1082 | |
| 1083 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1084 | ac_prev=psdir ;; |
| 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1086 | psdir=$ac_optarg ;; |
| 1087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1089 | | -silent | --silent | --silen | --sile | --sil) |
| 1090 | silent=yes ;; |
| 1091 | |
| 1092 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1093 | ac_prev=sbindir ;; |
| 1094 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1095 | | --sbi=* | --sb=*) |
| 1096 | sbindir=$ac_optarg ;; |
| 1097 | |
| 1098 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1099 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1100 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1101 | | --sha | --sh) |
| 1102 | ac_prev=sharedstatedir ;; |
| 1103 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1104 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1105 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1106 | | --sha=* | --sh=*) |
| 1107 | sharedstatedir=$ac_optarg ;; |
| 1108 | |
| 1109 | -site | --site | --sit) |
| 1110 | ac_prev=site ;; |
| 1111 | -site=* | --site=* | --sit=*) |
| 1112 | site=$ac_optarg ;; |
| 1113 | |
| 1114 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1115 | ac_prev=srcdir ;; |
| 1116 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1117 | srcdir=$ac_optarg ;; |
| 1118 | |
| 1119 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1120 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1121 | ac_prev=sysconfdir ;; |
| 1122 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1123 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1124 | sysconfdir=$ac_optarg ;; |
| 1125 | |
| 1126 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1127 | ac_prev=target_alias ;; |
| 1128 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1129 | target_alias=$ac_optarg ;; |
| 1130 | |
| 1131 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1132 | verbose=yes ;; |
| 1133 | |
| 1134 | -version | --version | --versio | --versi | --vers | -V) |
| 1135 | ac_init_version=: ;; |
| 1136 | |
| 1137 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1138 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1139 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1141 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1142 | { (exit 1); exit 1; }; } |
| 1143 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1144 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | |
| 1146 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1147 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1148 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1150 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1151 | { (exit 1); exit 1; }; } |
| 1152 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1153 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | |
| 1155 | --x) |
| 1156 | # Obsolete; use --with-x. |
| 1157 | with_x=yes ;; |
| 1158 | |
| 1159 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1160 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1161 | ac_prev=x_includes ;; |
| 1162 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1163 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1164 | x_includes=$ac_optarg ;; |
| 1165 | |
| 1166 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1167 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1168 | ac_prev=x_libraries ;; |
| 1169 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1170 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1171 | x_libraries=$ac_optarg ;; |
| 1172 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1173 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1174 | Try \`$0 --help' for more information." >&2 |
| 1175 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1176 | ;; |
| 1177 | |
| 1178 | *=*) |
| 1179 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1180 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1181 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1182 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1183 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1184 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1185 | export $ac_envvar ;; |
| 1186 | |
| 1187 | *) |
| 1188 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1189 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1190 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1193 | ;; |
| 1194 | |
| 1195 | esac |
| 1196 | done |
| 1197 | |
| 1198 | if test -n "$ac_prev"; then |
| 1199 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1200 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1201 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1202 | fi |
| 1203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1204 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1205 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1206 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1207 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1208 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1209 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1210 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1212 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1213 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1215 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1216 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | done |
| 1218 | |
| 1219 | # There might be people who depend on the old broken behavior: `$host' |
| 1220 | # used to hold the argument of --host etc. |
| 1221 | # FIXME: To remove some day. |
| 1222 | build=$build_alias |
| 1223 | host=$host_alias |
| 1224 | target=$target_alias |
| 1225 | |
| 1226 | # FIXME: To remove some day. |
| 1227 | if test "x$host_alias" != x; then |
| 1228 | if test "x$build_alias" = x; then |
| 1229 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1230 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1231 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1232 | elif test "x$build_alias" != "x$host_alias"; then |
| 1233 | cross_compiling=yes |
| 1234 | fi |
| 1235 | fi |
| 1236 | |
| 1237 | ac_tool_prefix= |
| 1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1239 | |
| 1240 | test "$silent" = yes && exec 6>/dev/null |
| 1241 | |
| 1242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1244 | ac_ls_di=`ls -di .` && |
| 1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1246 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1247 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1248 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1249 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1250 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1251 | |
| 1252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1253 | # Find the source files, if location was not specified. |
| 1254 | if test -z "$srcdir"; then |
| 1255 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1256 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1257 | ac_confdir=`$as_dirname -- "$0" || |
| 1258 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1259 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1260 | X"$0" : 'X\(//\)$' \| \ |
| 1261 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1262 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1264 | s//\1/ |
| 1265 | q |
| 1266 | } |
| 1267 | /^X\(\/\/\)[^/].*/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)$/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\).*/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | srcdir=.. |
| 1283 | fi |
| 1284 | else |
| 1285 | ac_srcdir_defaulted=no |
| 1286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1289 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1290 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1293 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1295 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | pwd)` |
| 1297 | # When building in place, set srcdir=. |
| 1298 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1299 | srcdir=. |
| 1300 | fi |
| 1301 | # Remove unnecessary trailing slashes from srcdir. |
| 1302 | # Double slashes in file names in object file debugging info |
| 1303 | # mess up M-x gdb in Emacs. |
| 1304 | case $srcdir in |
| 1305 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1306 | esac |
| 1307 | for ac_var in $ac_precious_vars; do |
| 1308 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1309 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1310 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1311 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1312 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1313 | |
| 1314 | # |
| 1315 | # Report the --help message. |
| 1316 | # |
| 1317 | if test "$ac_init_help" = "long"; then |
| 1318 | # Omit some internal or obsolete options to make the list less imposing. |
| 1319 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1320 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1321 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1322 | |
| 1323 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1324 | |
| 1325 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1326 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1327 | |
| 1328 | Defaults for the options are specified in brackets. |
| 1329 | |
| 1330 | Configuration: |
| 1331 | -h, --help display this help and exit |
| 1332 | --help=short display options specific to this package |
| 1333 | --help=recursive display the short help of all the included packages |
| 1334 | -V, --version display version information and exit |
| 1335 | -q, --quiet, --silent do not print \`checking...' messages |
| 1336 | --cache-file=FILE cache test results in FILE [disabled] |
| 1337 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1338 | -n, --no-create do not create output files |
| 1339 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | Installation directories: |
| 1342 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1343 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1344 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1345 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1346 | |
| 1347 | By default, \`make install' will install all the files in |
| 1348 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1349 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1350 | for instance \`--prefix=\$HOME'. |
| 1351 | |
| 1352 | For better control, use the options below. |
| 1353 | |
| 1354 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1355 | --bindir=DIR user executables [EPREFIX/bin] |
| 1356 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1357 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1358 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1359 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1360 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1361 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1362 | --includedir=DIR C header files [PREFIX/include] |
| 1363 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1364 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1365 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1366 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1367 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1368 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1369 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1370 | --htmldir=DIR html documentation [DOCDIR] |
| 1371 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1372 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1373 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1374 | _ACEOF |
| 1375 | |
| 1376 | cat <<\_ACEOF |
| 1377 | |
| 1378 | System types: |
| 1379 | --build=BUILD configure for building on BUILD [guessed] |
| 1380 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1381 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1382 | _ACEOF |
| 1383 | fi |
| 1384 | |
| 1385 | if test -n "$ac_init_help"; then |
| 1386 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1387 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | esac |
| 1389 | cat <<\_ACEOF |
| 1390 | |
| 1391 | Optional Features: |
| 1392 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1393 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1394 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1395 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1396 | --enable-assertions Compile with assertion checks enabled (default is |
| 1397 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1398 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1399 | Compile with expensive debug checks enabled (default |
| 1400 | is NO) |
| 1401 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1402 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1403 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1404 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1405 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1406 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1407 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1408 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1409 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1410 | --enable-shared Build a shared library and link tools against it |
| 1411 | (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1412 | --enable-timestamps Enable embedding timestamp information in build |
| 1413 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1414 | --enable-targets Build specific host targets: all or |
| 1415 | target1,target2,... Valid targets are: host, x86, |
| 1416 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
Chris Lattner | 885b661 | 2010-08-28 16:33:36 +0000 | [diff] [blame^] | 1417 | pic16, xcore, msp430, systemz, blackfin, cbe, |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1418 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1419 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1420 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1421 | --enable-bindings Build specific language bindings: |
| 1422 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1423 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1424 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1425 | |
| 1426 | Optional Packages: |
| 1427 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1428 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1429 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1430 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1431 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1432 | searches PATH) |
| 1433 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1434 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1435 | --with-clang Specify location of clang compiler (default is |
| 1436 | --with-built-clang) |
| 1437 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1438 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1439 | --with-optimize-option Select the compiler options to use for optimized |
| 1440 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1441 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1442 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1443 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1444 | --with-c-include-dirs Colon separated list of directories clang will |
| 1445 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1446 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1447 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1448 | --with-cxx-include-32bit-dir |
| 1449 | 32 bit multilib dir. |
| 1450 | --with-cxx-include-64bit-dir |
| 1451 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1452 | --with-binutils-include Specify path to binutils/include/ containing |
| 1453 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1454 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1455 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1456 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1457 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1458 | --with-oprofile=<prefix> |
| 1459 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1460 | |
| 1461 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1462 | CC C compiler command |
| 1463 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1464 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1465 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1466 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1467 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1469 | CXX C++ compiler command |
| 1470 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | |
| 1472 | Use these variables to override the choices made by `configure' or to help |
| 1473 | it to find libraries and programs with nonstandard names/locations. |
| 1474 | |
| 1475 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1476 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1477 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
| 1480 | if test "$ac_init_help" = "recursive"; then |
| 1481 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1482 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1483 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | ac_builddir=. |
| 1485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1486 | case "$ac_dir" in |
| 1487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1488 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1489 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1491 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | case $ac_top_builddir_sub in |
| 1493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1495 | esac ;; |
| 1496 | esac |
| 1497 | ac_abs_top_builddir=$ac_pwd |
| 1498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1499 | # for backward compatibility: |
| 1500 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1501 | |
| 1502 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1503 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | ac_top_srcdir=$ac_top_builddir_sub |
| 1506 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1507 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1508 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | ac_top_srcdir=$srcdir |
| 1510 | ac_abs_top_srcdir=$srcdir ;; |
| 1511 | *) # Relative name. |
| 1512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1513 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1515 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1519 | # Check for guested configure. |
| 1520 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1521 | echo && |
| 1522 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1523 | elif test -f "$ac_srcdir/configure"; then |
| 1524 | echo && |
| 1525 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1527 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1528 | fi || ac_status=$? |
| 1529 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | done |
| 1531 | fi |
| 1532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | if $ac_init_version; then |
| 1535 | cat <<\_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1536 | llvm configure 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1537 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1539 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1540 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | This configure script is free software; the Free Software Foundation |
| 1542 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1543 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1544 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1546 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | This file contains any messages produced by compilers while |
| 1550 | running configure, to aid debugging if configure makes a mistake. |
| 1551 | |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1552 | It was created by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1554 | |
| 1555 | $ $0 $@ |
| 1556 | |
| 1557 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1558 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | { |
| 1560 | cat <<_ASUNAME |
| 1561 | ## --------- ## |
| 1562 | ## Platform. ## |
| 1563 | ## --------- ## |
| 1564 | |
| 1565 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1566 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1567 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1568 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1569 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1570 | |
| 1571 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1572 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1575 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1576 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1577 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1579 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1580 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | _ASUNAME |
| 1583 | |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1589 | echo "PATH: $as_dir" |
| 1590 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1591 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1592 | |
| 1593 | } >&5 |
| 1594 | |
| 1595 | cat >&5 <<_ACEOF |
| 1596 | |
| 1597 | |
| 1598 | ## ----------- ## |
| 1599 | ## Core tests. ## |
| 1600 | ## ----------- ## |
| 1601 | |
| 1602 | _ACEOF |
| 1603 | |
| 1604 | |
| 1605 | # Keep a trace of the command line. |
| 1606 | # 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] | 1607 | # 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] | 1608 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1609 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1610 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1611 | ac_configure_args0= |
| 1612 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false |
| 1614 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | for ac_arg |
| 1617 | do |
| 1618 | case $ac_arg in |
| 1619 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1621 | | -silent | --silent | --silen | --sile | --sil) |
| 1622 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1624 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1625 | esac |
| 1626 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1629 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1630 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1631 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1632 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1633 | case $ac_arg in |
| 1634 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1635 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1636 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1637 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1638 | case "$ac_configure_args0 " in |
| 1639 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1640 | esac |
| 1641 | ;; |
| 1642 | -* ) ac_must_keep_next=true ;; |
| 1643 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1645 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | esac |
| 1648 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1649 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1650 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1651 | $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] | 1652 | |
| 1653 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1654 | # config.log. We remove comments because anyway the quotes in there |
| 1655 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1656 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1657 | # 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] | 1658 | trap 'exit_status=$? |
| 1659 | # Save into config.log some information that might help in debugging. |
| 1660 | { |
| 1661 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1662 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1663 | cat <<\_ASBOX |
| 1664 | ## ---------------- ## |
| 1665 | ## Cache variables. ## |
| 1666 | ## ---------------- ## |
| 1667 | _ASBOX |
| 1668 | echo |
| 1669 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1670 | ( |
| 1671 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1672 | eval ac_val=\$$ac_var |
| 1673 | case $ac_val in #( |
| 1674 | *${as_nl}*) |
| 1675 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1676 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1677 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | esac |
| 1679 | case $ac_var in #( |
| 1680 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1681 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | esac ;; |
| 1683 | esac |
| 1684 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1687 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1690 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1691 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | esac | |
| 1696 | sort |
| 1697 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1699 | |
| 1700 | cat <<\_ASBOX |
| 1701 | ## ----------------- ## |
| 1702 | ## Output variables. ## |
| 1703 | ## ----------------- ## |
| 1704 | _ASBOX |
| 1705 | echo |
| 1706 | for ac_var in $ac_subst_vars |
| 1707 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | eval ac_val=\$$ac_var |
| 1709 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1710 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1712 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | done | sort |
| 1714 | echo |
| 1715 | |
| 1716 | if test -n "$ac_subst_files"; then |
| 1717 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1718 | ## ------------------- ## |
| 1719 | ## File substitutions. ## |
| 1720 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | _ASBOX |
| 1722 | echo |
| 1723 | for ac_var in $ac_subst_files |
| 1724 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1725 | eval ac_val=\$$ac_var |
| 1726 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1729 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1730 | done | sort |
| 1731 | echo |
| 1732 | fi |
| 1733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1734 | if test -s confdefs.h; then |
| 1735 | cat <<\_ASBOX |
| 1736 | ## ----------- ## |
| 1737 | ## confdefs.h. ## |
| 1738 | ## ----------- ## |
| 1739 | _ASBOX |
| 1740 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1741 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | echo |
| 1743 | fi |
| 1744 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1745 | echo "$as_me: caught signal $ac_signal" |
| 1746 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1747 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1748 | rm -f core *.core core.conftest.* && |
| 1749 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1752 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1754 | done |
| 1755 | ac_signal=0 |
| 1756 | |
| 1757 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1758 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1759 | |
| 1760 | # Predefined preprocessor variables. |
| 1761 | |
| 1762 | cat >>confdefs.h <<_ACEOF |
| 1763 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1764 | _ACEOF |
| 1765 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1766 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | cat >>confdefs.h <<_ACEOF |
| 1768 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1769 | _ACEOF |
| 1770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1774 | _ACEOF |
| 1775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1776 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1779 | _ACEOF |
| 1780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1784 | _ACEOF |
| 1785 | |
| 1786 | |
| 1787 | # Let the site file select an alternate cache file if it wants to. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1788 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1789 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1790 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1791 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1792 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1794 | set x "$ac_default_prefix/share/config.site" \ |
| 1795 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | shift |
| 1798 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | if test -r "$ac_site_file"; then |
| 1801 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1802 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1803 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1804 | . "$ac_site_file" |
| 1805 | fi |
| 1806 | done |
| 1807 | |
| 1808 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | # Some versions of bash will fail to source /dev/null (special |
| 1810 | # files actually), so we avoid doing that. |
| 1811 | if test -f "$cache_file"; then |
| 1812 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1813 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1814 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1816 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | esac |
| 1818 | fi |
| 1819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1820 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1821 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | >$cache_file |
| 1823 | fi |
| 1824 | |
| 1825 | # Check that the precious variables saved in the cache have kept the same |
| 1826 | # value. |
| 1827 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1828 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1830 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1832 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1833 | case $ac_old_set,$ac_new_set in |
| 1834 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1836 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | ac_cache_corrupted=: ;; |
| 1838 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1839 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1840 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | ac_cache_corrupted=: ;; |
| 1842 | ,);; |
| 1843 | *) |
| 1844 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1846 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1847 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1848 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1849 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1850 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1851 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1852 | fi;; |
| 1853 | esac |
| 1854 | # Pass precious variables to config.status. |
| 1855 | if test "$ac_new_set" = set; then |
| 1856 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1857 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1859 | esac |
| 1860 | case " $ac_configure_args " in |
| 1861 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1862 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1863 | esac |
| 1864 | fi |
| 1865 | done |
| 1866 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1867 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1868 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1869 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1870 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1871 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1872 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1897 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1898 | ac_ext=c |
| 1899 | ac_cpp='$CPP $CPPFLAGS' |
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1903 | |
| 1904 | |
| 1905 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1906 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1915 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1916 | if test -f "$ac_dir/install-sh"; then |
| 1917 | ac_aux_dir=$ac_dir |
| 1918 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1919 | break |
| 1920 | elif test -f "$ac_dir/install.sh"; then |
| 1921 | ac_aux_dir=$ac_dir |
| 1922 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1923 | break |
| 1924 | elif test -f "$ac_dir/shtool"; then |
| 1925 | ac_aux_dir=$ac_dir |
| 1926 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1927 | break |
| 1928 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1929 | done |
| 1930 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1931 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1932 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1933 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | |
| 1936 | # These three variables are undocumented and unsupported, |
| 1937 | # and are intended to be withdrawn in a future Autoconf release. |
| 1938 | # They can cause serious problems if a builder's source tree is in a directory |
| 1939 | # whose full name contains unusual characters. |
| 1940 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1941 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1942 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1943 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1944 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1945 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1947 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1948 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1949 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1950 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1951 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1954 | |
| 1955 | |
| 1956 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1957 | subdirs="$subdirs projects/llvm-gcc" |
| 1958 | |
| 1959 | fi |
| 1960 | |
| 1961 | if test -d ${srcdir}/projects/test-suite ; then |
| 1962 | subdirs="$subdirs projects/test-suite" |
| 1963 | |
| 1964 | fi |
| 1965 | |
| 1966 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1967 | subdirs="$subdirs projects/llvm-test" |
| 1968 | |
| 1969 | fi |
| 1970 | |
| 1971 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1972 | subdirs="$subdirs projects/poolalloc" |
| 1973 | |
| 1974 | fi |
| 1975 | |
| 1976 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1977 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1978 | |
| 1979 | fi |
| 1980 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1981 | for i in `ls ${srcdir}/projects` |
| 1982 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1983 | if test -d ${srcdir}/projects/${i} ; then |
| 1984 | case ${i} in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1985 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1986 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1987 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1988 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1989 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1990 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1991 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1992 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1993 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1994 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1995 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1996 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 1997 | safecode) subdirs="$subdirs projects/safecode" |
| 1998 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1999 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2000 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2001 | llvm-gcc) ;; |
| 2002 | test-suite) ;; |
| 2003 | llvm-test) ;; |
| 2004 | poolalloc) ;; |
| 2005 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2006 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2007 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2008 | 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] | 2009 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2010 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2011 | fi |
| 2012 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2013 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | |
| 2015 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2016 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2017 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2018 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2019 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2021 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2022 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2023 | if test "${ac_cv_build+set}" = set; then |
| 2024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2026 | ac_build_alias=$build_alias |
| 2027 | test "x$ac_build_alias" = x && |
| 2028 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2029 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2030 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2031 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2032 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2033 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2034 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2035 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2036 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | |
| 2038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2039 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2040 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2041 | case $ac_cv_build in |
| 2042 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2043 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2044 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2045 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2046 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2047 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | ac_save_IFS=$IFS; IFS='-' |
| 2049 | set x $ac_cv_build |
| 2050 | shift |
| 2051 | build_cpu=$1 |
| 2052 | build_vendor=$2 |
| 2053 | shift; shift |
| 2054 | # Remember, the first character of IFS is used to create $*, |
| 2055 | # except with old shells: |
| 2056 | build_os=$* |
| 2057 | IFS=$ac_save_IFS |
| 2058 | 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] | 2059 | |
| 2060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2062 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2063 | if test "${ac_cv_host+set}" = set; then |
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | if test "x$host_alias" = x; then |
| 2067 | ac_cv_host=$ac_cv_build |
| 2068 | else |
| 2069 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2070 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2071 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2072 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2074 | |
| 2075 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2077 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2078 | case $ac_cv_host in |
| 2079 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2080 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2081 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2082 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2083 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2085 | ac_save_IFS=$IFS; IFS='-' |
| 2086 | set x $ac_cv_host |
| 2087 | shift |
| 2088 | host_cpu=$1 |
| 2089 | host_vendor=$2 |
| 2090 | shift; shift |
| 2091 | # Remember, the first character of IFS is used to create $*, |
| 2092 | # except with old shells: |
| 2093 | host_os=$* |
| 2094 | IFS=$ac_save_IFS |
| 2095 | 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] | 2096 | |
| 2097 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2098 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2099 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2100 | if test "${ac_cv_target+set}" = set; then |
| 2101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2102 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 | if test "x$target_alias" = x; then |
| 2104 | ac_cv_target=$ac_cv_host |
| 2105 | else |
| 2106 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2107 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2108 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2109 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2110 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2111 | |
| 2112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2113 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2114 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2115 | case $ac_cv_target in |
| 2116 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2117 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2118 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2119 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2120 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2121 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2122 | ac_save_IFS=$IFS; IFS='-' |
| 2123 | set x $ac_cv_target |
| 2124 | shift |
| 2125 | target_cpu=$1 |
| 2126 | target_vendor=$2 |
| 2127 | shift; shift |
| 2128 | # Remember, the first character of IFS is used to create $*, |
| 2129 | # except with old shells: |
| 2130 | target_os=$* |
| 2131 | IFS=$ac_save_IFS |
| 2132 | 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] | 2133 | |
| 2134 | |
| 2135 | # The aliases save the names the user supplied, while $host etc. |
| 2136 | # will get canonicalized. |
| 2137 | test -n "$target_alias" && |
| 2138 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2139 | NONENONEs,x,x, && |
| 2140 | program_prefix=${target_alias}- |
| 2141 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2142 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2143 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2144 | if test "${llvm_cv_os_type+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2146 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2147 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2148 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2149 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2150 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2151 | llvm_cv_os_type="AIX" |
| 2152 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2153 | *-*-irix*) |
| 2154 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2155 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2156 | llvm_cv_os_type="IRIX" |
| 2157 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2158 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2159 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2160 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2161 | llvm_cv_os_type="Cygwin" |
| 2162 | llvm_cv_platform_type="Unix" ;; |
| 2163 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2164 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2165 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2166 | llvm_cv_os_type="Darwin" |
| 2167 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2168 | *-*-minix*) |
| 2169 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2170 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2171 | llvm_cv_os_type="Minix" |
| 2172 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2173 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2174 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2175 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2176 | llvm_cv_os_type="FreeBSD" |
| 2177 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2178 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2180 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2181 | llvm_cv_os_type="OpenBSD" |
| 2182 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2183 | *-*-netbsd*) |
| 2184 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2185 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2186 | llvm_cv_os_type="NetBSD" |
| 2187 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2188 | *-*-dragonfly*) |
| 2189 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2190 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2191 | llvm_cv_os_type="DragonFly" |
| 2192 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2193 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2195 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2196 | llvm_cv_os_type="HP-UX" |
| 2197 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2198 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2199 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2200 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2201 | llvm_cv_os_type="Interix" |
| 2202 | llvm_cv_platform_type="Unix" ;; |
| 2203 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2204 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2205 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2206 | llvm_cv_os_type="Linux" |
| 2207 | llvm_cv_platform_type="Unix" ;; |
| 2208 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2209 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2210 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2211 | llvm_cv_os_type="SunOS" |
| 2212 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2213 | *-*-auroraux*) |
| 2214 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2215 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2216 | llvm_cv_os_type="AuroraUX" |
| 2217 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="Win32" |
| 2222 | llvm_cv_platform_type="Win32" ;; |
| 2223 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2226 | llvm_cv_os_type="MingW" |
| 2227 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2228 | *-*-haiku*) |
| 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2231 | llvm_cv_os_type="Haiku" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2233 | *-unknown-eabi*) |
| 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2236 | llvm_cv_os_type="Freestanding" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
| 2238 | *-unknown-elf*) |
| 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2241 | llvm_cv_os_type="Freestanding" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2243 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="" |
| 2245 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="Unknown" |
| 2247 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2248 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2250 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2251 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2253 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2254 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2255 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2257 | else |
| 2258 | case $target in |
| 2259 | *-*-aix*) |
| 2260 | llvm_cv_target_os_type="AIX" ;; |
| 2261 | *-*-irix*) |
| 2262 | llvm_cv_target_os_type="IRIX" ;; |
| 2263 | *-*-cygwin*) |
| 2264 | llvm_cv_target_os_type="Cygwin" ;; |
| 2265 | *-*-darwin*) |
| 2266 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2267 | *-*-minix*) |
| 2268 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2269 | *-*-freebsd*) |
| 2270 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2271 | *-*-openbsd*) |
| 2272 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2273 | *-*-netbsd*) |
| 2274 | llvm_cv_target_os_type="NetBSD" ;; |
| 2275 | *-*-dragonfly*) |
| 2276 | llvm_cv_target_os_type="DragonFly" ;; |
| 2277 | *-*-hpux*) |
| 2278 | llvm_cv_target_os_type="HP-UX" ;; |
| 2279 | *-*-interix*) |
| 2280 | llvm_cv_target_os_type="Interix" ;; |
| 2281 | *-*-linux*) |
| 2282 | llvm_cv_target_os_type="Linux" ;; |
| 2283 | *-*-solaris*) |
| 2284 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2285 | *-*-auroraux*) |
| 2286 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2287 | *-*-win32*) |
| 2288 | llvm_cv_target_os_type="Win32" ;; |
| 2289 | *-*-mingw*) |
| 2290 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2291 | *-*-haiku*) |
| 2292 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2293 | *-unknown-eabi*) |
| 2294 | llvm_cv_target_os_type="Freestanding" ;; |
| 2295 | *) |
| 2296 | llvm_cv_target_os_type="Unknown" ;; |
| 2297 | esac |
| 2298 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2300 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2301 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2302 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2303 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2304 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2305 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2306 | fi |
| 2307 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2309 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2310 | HOST_OS=$llvm_cv_os_type |
| 2311 | |
| 2312 | TARGET_OS=$llvm_cv_target_os_type |
| 2313 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2315 | LINKALL=$llvm_cv_link_all_option |
| 2316 | |
| 2317 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2318 | |
| 2319 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2320 | case $llvm_cv_platform_type in |
| 2321 | Unix) |
| 2322 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2323 | cat >>confdefs.h <<\_ACEOF |
| 2324 | #define LLVM_ON_UNIX 1 |
| 2325 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2326 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2327 | LLVM_ON_UNIX=1 |
| 2328 | |
| 2329 | LLVM_ON_WIN32=0 |
| 2330 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2331 | ;; |
| 2332 | Win32) |
| 2333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2334 | cat >>confdefs.h <<\_ACEOF |
| 2335 | #define LLVM_ON_WIN32 1 |
| 2336 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2337 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2338 | LLVM_ON_UNIX=0 |
| 2339 | |
| 2340 | LLVM_ON_WIN32=1 |
| 2341 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2342 | ;; |
| 2343 | esac |
| 2344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2345 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2346 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2347 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2349 | else |
| 2350 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2351 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2352 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2353 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2354 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2355 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2356 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2357 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2358 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2359 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2360 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2361 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2362 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2363 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2364 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2365 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2366 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2367 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2368 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2370 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2372 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2373 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2374 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2375 | # Determine the LLVM native architecture for the target |
| 2376 | case "$llvm_cv_target_arch" in |
| 2377 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2378 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2379 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2380 | esac |
| 2381 | |
| 2382 | ARCH=$llvm_cv_target_arch |
| 2383 | |
| 2384 | |
| 2385 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2386 | ac_cpp='$CPP $CPPFLAGS' |
| 2387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2390 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2392 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2393 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2395 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2397 | else |
| 2398 | if test -n "$CC"; then |
| 2399 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2400 | else |
| 2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2402 | for as_dir in $PATH |
| 2403 | do |
| 2404 | IFS=$as_save_IFS |
| 2405 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2407 | 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] | 2408 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2410 | break 2 |
| 2411 | fi |
| 2412 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2414 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | |
| 2416 | fi |
| 2417 | fi |
| 2418 | CC=$ac_cv_prog_CC |
| 2419 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2420 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2421 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2422 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2424 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2425 | fi |
| 2426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2427 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | if test -z "$ac_cv_prog_CC"; then |
| 2430 | ac_ct_CC=$CC |
| 2431 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2432 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2435 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2437 | else |
| 2438 | if test -n "$ac_ct_CC"; then |
| 2439 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2440 | else |
| 2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2442 | for as_dir in $PATH |
| 2443 | do |
| 2444 | IFS=$as_save_IFS |
| 2445 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2447 | 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] | 2448 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2449 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2450 | break 2 |
| 2451 | fi |
| 2452 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2454 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | |
| 2456 | fi |
| 2457 | fi |
| 2458 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2459 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2460 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2461 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2462 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2463 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2464 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2465 | fi |
| 2466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | if test "x$ac_ct_CC" = x; then |
| 2468 | CC="" |
| 2469 | else |
| 2470 | case $cross_compiling:$ac_tool_warned in |
| 2471 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2472 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2473 | whose name does not start with the host triplet. If you think this |
| 2474 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2475 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2476 | whose name does not start with the host triplet. If you think this |
| 2477 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | ac_tool_warned=yes ;; |
| 2479 | esac |
| 2480 | CC=$ac_ct_CC |
| 2481 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2482 | else |
| 2483 | CC="$ac_cv_prog_CC" |
| 2484 | fi |
| 2485 | |
| 2486 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2487 | if test -n "$ac_tool_prefix"; then |
| 2488 | # 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] | 2489 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2490 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2492 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2494 | else |
| 2495 | if test -n "$CC"; then |
| 2496 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2497 | else |
| 2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2499 | for as_dir in $PATH |
| 2500 | do |
| 2501 | IFS=$as_save_IFS |
| 2502 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2504 | 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] | 2505 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2507 | break 2 |
| 2508 | fi |
| 2509 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2511 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2512 | |
| 2513 | fi |
| 2514 | fi |
| 2515 | CC=$ac_cv_prog_CC |
| 2516 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2518 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2520 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2521 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2522 | fi |
| 2523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2524 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2525 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | if test -z "$CC"; then |
| 2528 | # Extract the first word of "cc", so it can be a program name with args. |
| 2529 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2530 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2532 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2534 | else |
| 2535 | if test -n "$CC"; then |
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2537 | else |
| 2538 | ac_prog_rejected=no |
| 2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2540 | for as_dir in $PATH |
| 2541 | do |
| 2542 | IFS=$as_save_IFS |
| 2543 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2545 | 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] | 2546 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2547 | ac_prog_rejected=yes |
| 2548 | continue |
| 2549 | fi |
| 2550 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2552 | break 2 |
| 2553 | fi |
| 2554 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2555 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | |
| 2558 | if test $ac_prog_rejected = yes; then |
| 2559 | # We found a bogon in the path, so make sure we never use it. |
| 2560 | set dummy $ac_cv_prog_CC |
| 2561 | shift |
| 2562 | if test $# != 0; then |
| 2563 | # We chose a different compiler from the bogus one. |
| 2564 | # However, it has the same basename, so the bogon will be chosen |
| 2565 | # first if we set CC to just the basename; use the full file name. |
| 2566 | shift |
| 2567 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2568 | fi |
| 2569 | fi |
| 2570 | fi |
| 2571 | fi |
| 2572 | CC=$ac_cv_prog_CC |
| 2573 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2574 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2575 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2576 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2577 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2578 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2579 | fi |
| 2580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2581 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2582 | fi |
| 2583 | if test -z "$CC"; then |
| 2584 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2585 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2586 | do |
| 2587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2591 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2593 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2594 | if test -n "$CC"; then |
| 2595 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2596 | else |
| 2597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2598 | for as_dir in $PATH |
| 2599 | do |
| 2600 | IFS=$as_save_IFS |
| 2601 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2603 | 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] | 2604 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2606 | break 2 |
| 2607 | fi |
| 2608 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2609 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2610 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2611 | |
| 2612 | fi |
| 2613 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | CC=$ac_cv_prog_CC |
| 2615 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2616 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2617 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2619 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2620 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2621 | fi |
| 2622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2623 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | done |
| 2626 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | if test -z "$CC"; then |
| 2628 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2629 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2630 | do |
| 2631 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2632 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2638 | if test -n "$ac_ct_CC"; then |
| 2639 | 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] | 2640 | else |
| 2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2642 | for as_dir in $PATH |
| 2643 | do |
| 2644 | IFS=$as_save_IFS |
| 2645 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2646 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2647 | 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] | 2648 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | break 2 |
| 2651 | fi |
| 2652 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2653 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2654 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2655 | |
| 2656 | fi |
| 2657 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2659 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2660 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2661 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2664 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2665 | fi |
| 2666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2668 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | if test "x$ac_ct_CC" = x; then |
| 2672 | CC="" |
| 2673 | else |
| 2674 | case $cross_compiling:$ac_tool_warned in |
| 2675 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2676 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2677 | whose name does not start with the host triplet. If you think this |
| 2678 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2679 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2680 | whose name does not start with the host triplet. If you think this |
| 2681 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | ac_tool_warned=yes ;; |
| 2683 | esac |
| 2684 | CC=$ac_ct_CC |
| 2685 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2686 | fi |
| 2687 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
| 2690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2691 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2692 | See \`config.log' for more details." >&5 |
| 2693 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2694 | See \`config.log' for more details." >&2;} |
| 2695 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2697 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2698 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2699 | ac_compiler=`set X $ac_compile; echo $2` |
| 2700 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2701 | case "(($ac_try" in |
| 2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2703 | *) ac_try_echo=$ac_try;; |
| 2704 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2706 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); } |
| 2710 | { (ac_try="$ac_compiler -v >&5" |
| 2711 | case "(($ac_try" in |
| 2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2713 | *) ac_try_echo=$ac_try;; |
| 2714 | esac |
| 2715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2716 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); } |
| 2720 | { (ac_try="$ac_compiler -V >&5" |
| 2721 | case "(($ac_try" in |
| 2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2723 | *) ac_try_echo=$ac_try;; |
| 2724 | esac |
| 2725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2726 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2727 | ac_status=$? |
| 2728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2729 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2731 | cat >conftest.$ac_ext <<_ACEOF |
| 2732 | /* confdefs.h. */ |
| 2733 | _ACEOF |
| 2734 | cat confdefs.h >>conftest.$ac_ext |
| 2735 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2736 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2738 | int |
| 2739 | main () |
| 2740 | { |
| 2741 | |
| 2742 | ; |
| 2743 | return 0; |
| 2744 | } |
| 2745 | _ACEOF |
| 2746 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2747 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2748 | # Try to create an executable without -o first, disregard a.out. |
| 2749 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2750 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2751 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2752 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2753 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2754 | # |
| 2755 | # List of possible output files, starting from the most likely. |
| 2756 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2757 | # only as a last resort. b.out is created by i960 compilers. |
| 2758 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2759 | # |
| 2760 | # The IRIX 6 linker writes into existing files which may not be |
| 2761 | # executable, retaining their permissions. Remove them first so a |
| 2762 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2763 | ac_rmfiles= |
| 2764 | for ac_file in $ac_files |
| 2765 | do |
| 2766 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2767 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2768 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2769 | esac |
| 2770 | done |
| 2771 | rm -f $ac_rmfiles |
| 2772 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2773 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2774 | case "(($ac_try" in |
| 2775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2776 | *) ac_try_echo=$ac_try;; |
| 2777 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2779 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2782 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2783 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2784 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2785 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2786 | # so that the user can short-circuit this test for compilers unknown to |
| 2787 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2788 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2789 | do |
| 2790 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2791 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2792 | *.$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] | 2793 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2794 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2795 | # We found the default executable, but exeext='' is most |
| 2796 | # certainly right. |
| 2797 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2798 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2799 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2800 | then :; else |
| 2801 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2802 | fi |
| 2803 | # We set ac_cv_exeext here because the later test for it is not |
| 2804 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2805 | # argument, so we may need to know it at that point already. |
| 2806 | # Even if this section looks crufty: it has the advantage of |
| 2807 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2808 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2809 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2810 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2811 | esac |
| 2812 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2813 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2814 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2816 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2818 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2819 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2820 | See \`config.log' for more details." >&5 |
| 2821 | echo "$as_me: error: C compiler cannot create executables |
| 2822 | See \`config.log' for more details." >&2;} |
| 2823 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2824 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2826 | ac_exeext=$ac_cv_exeext |
| 2827 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2828 | echo "${ECHO_T}$ac_file" >&6; } |
| 2829 | |
| 2830 | # Check that the compiler produces executables we can run. If not, either |
| 2831 | # the compiler is broken, or we cross compile. |
| 2832 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2833 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2834 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2835 | # If not cross compiling, check that we can run a simple program. |
| 2836 | if test "$cross_compiling" != yes; then |
| 2837 | if { ac_try='./$ac_file' |
| 2838 | { (case "(($ac_try" in |
| 2839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2840 | *) ac_try_echo=$ac_try;; |
| 2841 | esac |
| 2842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2843 | (eval "$ac_try") 2>&5 |
| 2844 | ac_status=$? |
| 2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2846 | (exit $ac_status); }; }; then |
| 2847 | cross_compiling=no |
| 2848 | else |
| 2849 | if test "$cross_compiling" = maybe; then |
| 2850 | cross_compiling=yes |
| 2851 | else |
| 2852 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2853 | If you meant to cross compile, use \`--host'. |
| 2854 | See \`config.log' for more details." >&5 |
| 2855 | echo "$as_me: error: cannot run C compiled programs. |
| 2856 | If you meant to cross compile, use \`--host'. |
| 2857 | See \`config.log' for more details." >&2;} |
| 2858 | { (exit 1); exit 1; }; } |
| 2859 | fi |
| 2860 | fi |
| 2861 | fi |
| 2862 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2863 | echo "${ECHO_T}yes" >&6; } |
| 2864 | |
| 2865 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2866 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2867 | # Check that the compiler produces executables we can run. If not, either |
| 2868 | # the compiler is broken, or we cross compile. |
| 2869 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2870 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2871 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2872 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2873 | |
| 2874 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2875 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2876 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | case "(($ac_try" in |
| 2878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2879 | *) ac_try_echo=$ac_try;; |
| 2880 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2882 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2883 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2885 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2886 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2887 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2888 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2889 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2890 | for ac_file in conftest.exe conftest conftest.*; do |
| 2891 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2892 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2893 | *.$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] | 2894 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2895 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2896 | * ) break;; |
| 2897 | esac |
| 2898 | done |
| 2899 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2900 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2901 | See \`config.log' for more details." >&5 |
| 2902 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2903 | See \`config.log' for more details." >&2;} |
| 2904 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2906 | |
| 2907 | rm -f conftest$ac_cv_exeext |
| 2908 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2909 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | |
| 2911 | rm -f conftest.$ac_ext |
| 2912 | EXEEXT=$ac_cv_exeext |
| 2913 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2915 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2916 | if test "${ac_cv_objext+set}" = set; then |
| 2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2918 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2919 | cat >conftest.$ac_ext <<_ACEOF |
| 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2924 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | int |
| 2927 | main () |
| 2928 | { |
| 2929 | |
| 2930 | ; |
| 2931 | return 0; |
| 2932 | } |
| 2933 | _ACEOF |
| 2934 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2935 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2936 | case "(($ac_try" in |
| 2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2938 | *) ac_try_echo=$ac_try;; |
| 2939 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2941 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2942 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2945 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2946 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2947 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2950 | break;; |
| 2951 | esac |
| 2952 | done |
| 2953 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2954 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2956 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2958 | See \`config.log' for more details." >&5 |
| 2959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2960 | See \`config.log' for more details." >&2;} |
| 2961 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2965 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2966 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2967 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | OBJEXT=$ac_cv_objext |
| 2969 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2970 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2974 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2975 | cat >conftest.$ac_ext <<_ACEOF |
| 2976 | /* confdefs.h. */ |
| 2977 | _ACEOF |
| 2978 | cat confdefs.h >>conftest.$ac_ext |
| 2979 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2980 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2982 | int |
| 2983 | main () |
| 2984 | { |
| 2985 | #ifndef __GNUC__ |
| 2986 | choke me |
| 2987 | #endif |
| 2988 | |
| 2989 | ; |
| 2990 | return 0; |
| 2991 | } |
| 2992 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2993 | rm -f conftest.$ac_objext |
| 2994 | if { (ac_try="$ac_compile" |
| 2995 | case "(($ac_try" in |
| 2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2997 | *) ac_try_echo=$ac_try;; |
| 2998 | esac |
| 2999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3000 | (eval "$ac_compile") 2>conftest.er1 |
| 3001 | ac_status=$? |
| 3002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3003 | rm -f conftest.er1 |
| 3004 | cat conftest.err >&5 |
| 3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3006 | (exit $ac_status); } && |
| 3007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3008 | { (case "(($ac_try" in |
| 3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3010 | *) ac_try_echo=$ac_try;; |
| 3011 | esac |
| 3012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3013 | (eval "$ac_try") 2>&5 |
| 3014 | ac_status=$? |
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3016 | (exit $ac_status); }; } && |
| 3017 | { ac_try='test -s conftest.$ac_objext' |
| 3018 | { (case "(($ac_try" in |
| 3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3020 | *) ac_try_echo=$ac_try;; |
| 3021 | esac |
| 3022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3023 | (eval "$ac_try") 2>&5 |
| 3024 | ac_status=$? |
| 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3026 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | ac_compiler_gnu=yes |
| 3028 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3029 | echo "$as_me: failed program was:" >&5 |
| 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3031 | |
| 3032 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3036 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | |
| 3038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3039 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3040 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3041 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3042 | ac_test_CFLAGS=${CFLAGS+set} |
| 3043 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3044 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3045 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3046 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3048 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3049 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3050 | ac_c_werror_flag=yes |
| 3051 | ac_cv_prog_cc_g=no |
| 3052 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3053 | cat >conftest.$ac_ext <<_ACEOF |
| 3054 | /* confdefs.h. */ |
| 3055 | _ACEOF |
| 3056 | cat confdefs.h >>conftest.$ac_ext |
| 3057 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3058 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3059 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3060 | int |
| 3061 | main () |
| 3062 | { |
| 3063 | |
| 3064 | ; |
| 3065 | return 0; |
| 3066 | } |
| 3067 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3068 | rm -f conftest.$ac_objext |
| 3069 | if { (ac_try="$ac_compile" |
| 3070 | case "(($ac_try" in |
| 3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3072 | *) ac_try_echo=$ac_try;; |
| 3073 | esac |
| 3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3075 | (eval "$ac_compile") 2>conftest.er1 |
| 3076 | ac_status=$? |
| 3077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3078 | rm -f conftest.er1 |
| 3079 | cat conftest.err >&5 |
| 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3081 | (exit $ac_status); } && |
| 3082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3083 | { (case "(($ac_try" in |
| 3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3085 | *) ac_try_echo=$ac_try;; |
| 3086 | esac |
| 3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3088 | (eval "$ac_try") 2>&5 |
| 3089 | ac_status=$? |
| 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3091 | (exit $ac_status); }; } && |
| 3092 | { ac_try='test -s conftest.$ac_objext' |
| 3093 | { (case "(($ac_try" in |
| 3094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3095 | *) ac_try_echo=$ac_try;; |
| 3096 | esac |
| 3097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3098 | (eval "$ac_try") 2>&5 |
| 3099 | ac_status=$? |
| 3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3101 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3102 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3103 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3104 | echo "$as_me: failed program was:" >&5 |
| 3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3106 | |
| 3107 | CFLAGS="" |
| 3108 | cat >conftest.$ac_ext <<_ACEOF |
| 3109 | /* confdefs.h. */ |
| 3110 | _ACEOF |
| 3111 | cat confdefs.h >>conftest.$ac_ext |
| 3112 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3113 | /* end confdefs.h. */ |
| 3114 | |
| 3115 | int |
| 3116 | main () |
| 3117 | { |
| 3118 | |
| 3119 | ; |
| 3120 | return 0; |
| 3121 | } |
| 3122 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3123 | rm -f conftest.$ac_objext |
| 3124 | if { (ac_try="$ac_compile" |
| 3125 | case "(($ac_try" in |
| 3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3127 | *) ac_try_echo=$ac_try;; |
| 3128 | esac |
| 3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3130 | (eval "$ac_compile") 2>conftest.er1 |
| 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); } && |
| 3137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3138 | { (case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
| 3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3143 | (eval "$ac_try") 2>&5 |
| 3144 | ac_status=$? |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); }; } && |
| 3147 | { ac_try='test -s conftest.$ac_objext' |
| 3148 | { (case "(($ac_try" in |
| 3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3150 | *) ac_try_echo=$ac_try;; |
| 3151 | esac |
| 3152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3153 | (eval "$ac_try") 2>&5 |
| 3154 | ac_status=$? |
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3156 | (exit $ac_status); }; }; then |
| 3157 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3159 | echo "$as_me: failed program was:" >&5 |
| 3160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3161 | |
| 3162 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3163 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3164 | cat >conftest.$ac_ext <<_ACEOF |
| 3165 | /* confdefs.h. */ |
| 3166 | _ACEOF |
| 3167 | cat confdefs.h >>conftest.$ac_ext |
| 3168 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3169 | /* end confdefs.h. */ |
| 3170 | |
| 3171 | int |
| 3172 | main () |
| 3173 | { |
| 3174 | |
| 3175 | ; |
| 3176 | return 0; |
| 3177 | } |
| 3178 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3179 | rm -f conftest.$ac_objext |
| 3180 | if { (ac_try="$ac_compile" |
| 3181 | case "(($ac_try" in |
| 3182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3183 | *) ac_try_echo=$ac_try;; |
| 3184 | esac |
| 3185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3186 | (eval "$ac_compile") 2>conftest.er1 |
| 3187 | ac_status=$? |
| 3188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3189 | rm -f conftest.er1 |
| 3190 | cat conftest.err >&5 |
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3192 | (exit $ac_status); } && |
| 3193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3194 | { (case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
| 3198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3199 | (eval "$ac_try") 2>&5 |
| 3200 | ac_status=$? |
| 3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3202 | (exit $ac_status); }; } && |
| 3203 | { ac_try='test -s conftest.$ac_objext' |
| 3204 | { (case "(($ac_try" in |
| 3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3206 | *) ac_try_echo=$ac_try;; |
| 3207 | esac |
| 3208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3209 | (eval "$ac_try") 2>&5 |
| 3210 | ac_status=$? |
| 3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3212 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3213 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3214 | else |
| 3215 | echo "$as_me: failed program was:" >&5 |
| 3216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3217 | |
| 3218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3219 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3222 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3225 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3228 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3229 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3230 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3231 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3232 | if test "$ac_test_CFLAGS" = set; then |
| 3233 | CFLAGS=$ac_save_CFLAGS |
| 3234 | elif test $ac_cv_prog_cc_g = yes; then |
| 3235 | if test "$GCC" = yes; then |
| 3236 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3237 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3238 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3239 | fi |
| 3240 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3241 | if test "$GCC" = yes; then |
| 3242 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3243 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3244 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3245 | fi |
| 3246 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3247 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3248 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3249 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3251 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3252 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3253 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3254 | cat >conftest.$ac_ext <<_ACEOF |
| 3255 | /* confdefs.h. */ |
| 3256 | _ACEOF |
| 3257 | cat confdefs.h >>conftest.$ac_ext |
| 3258 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3259 | /* end confdefs.h. */ |
| 3260 | #include <stdarg.h> |
| 3261 | #include <stdio.h> |
| 3262 | #include <sys/types.h> |
| 3263 | #include <sys/stat.h> |
| 3264 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3265 | struct buf { int x; }; |
| 3266 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3267 | static char *e (p, i) |
| 3268 | char **p; |
| 3269 | int i; |
| 3270 | { |
| 3271 | return p[i]; |
| 3272 | } |
| 3273 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3274 | { |
| 3275 | char *s; |
| 3276 | va_list v; |
| 3277 | va_start (v,p); |
| 3278 | s = g (p, va_arg (v,int)); |
| 3279 | va_end (v); |
| 3280 | return s; |
| 3281 | } |
| 3282 | |
| 3283 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3284 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3285 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3286 | 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] | 3287 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3288 | 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] | 3289 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3290 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3293 | inside strings and character constants. */ |
| 3294 | #define FOO(x) 'x' |
| 3295 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | int test (int i, double x); |
| 3298 | struct s1 {int (*f) (int a);}; |
| 3299 | struct s2 {int (*f) (double a);}; |
| 3300 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3301 | int argc; |
| 3302 | char **argv; |
| 3303 | int |
| 3304 | main () |
| 3305 | { |
| 3306 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3307 | ; |
| 3308 | return 0; |
| 3309 | } |
| 3310 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3311 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3312 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | do |
| 3314 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3315 | rm -f conftest.$ac_objext |
| 3316 | if { (ac_try="$ac_compile" |
| 3317 | case "(($ac_try" in |
| 3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3319 | *) ac_try_echo=$ac_try;; |
| 3320 | esac |
| 3321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3322 | (eval "$ac_compile") 2>conftest.er1 |
| 3323 | ac_status=$? |
| 3324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3325 | rm -f conftest.er1 |
| 3326 | cat conftest.err >&5 |
| 3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3328 | (exit $ac_status); } && |
| 3329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3330 | { (case "(($ac_try" in |
| 3331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3332 | *) ac_try_echo=$ac_try;; |
| 3333 | esac |
| 3334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3335 | (eval "$ac_try") 2>&5 |
| 3336 | ac_status=$? |
| 3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3338 | (exit $ac_status); }; } && |
| 3339 | { ac_try='test -s conftest.$ac_objext' |
| 3340 | { (case "(($ac_try" in |
| 3341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3342 | *) ac_try_echo=$ac_try;; |
| 3343 | esac |
| 3344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3345 | (eval "$ac_try") 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3349 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3350 | else |
| 3351 | echo "$as_me: failed program was:" >&5 |
| 3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3353 | |
| 3354 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3355 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | rm -f core conftest.err conftest.$ac_objext |
| 3358 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3359 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3360 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | CC=$ac_save_CC |
| 3362 | |
| 3363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3364 | # AC_CACHE_VAL |
| 3365 | case "x$ac_cv_prog_cc_c89" in |
| 3366 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3367 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3368 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3369 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3370 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3371 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3372 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3373 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3375 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | esac |
| 3377 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3378 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | ac_ext=c |
| 3380 | ac_cpp='$CPP $CPPFLAGS' |
| 3381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3384 | |
| 3385 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | ac_ext=c |
| 3387 | ac_cpp='$CPP $CPPFLAGS' |
| 3388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3391 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3392 | 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] | 3393 | # On Suns, sometimes $CPP names a directory. |
| 3394 | if test -n "$CPP" && test -d "$CPP"; then |
| 3395 | CPP= |
| 3396 | fi |
| 3397 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3398 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | else |
| 3401 | # Double quotes because CPP needs to be expanded |
| 3402 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3403 | do |
| 3404 | ac_preproc_ok=false |
| 3405 | for ac_c_preproc_warn_flag in '' yes |
| 3406 | do |
| 3407 | # Use a header file that comes with gcc, so configuring glibc |
| 3408 | # with a fresh cross-compiler works. |
| 3409 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3410 | # <limits.h> exists even on freestanding compilers. |
| 3411 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3412 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3413 | cat >conftest.$ac_ext <<_ACEOF |
| 3414 | /* confdefs.h. */ |
| 3415 | _ACEOF |
| 3416 | cat confdefs.h >>conftest.$ac_ext |
| 3417 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3418 | /* end confdefs.h. */ |
| 3419 | #ifdef __STDC__ |
| 3420 | # include <limits.h> |
| 3421 | #else |
| 3422 | # include <assert.h> |
| 3423 | #endif |
| 3424 | Syntax error |
| 3425 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3426 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3427 | case "(($ac_try" in |
| 3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3429 | *) ac_try_echo=$ac_try;; |
| 3430 | esac |
| 3431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3432 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3433 | ac_status=$? |
| 3434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3435 | rm -f conftest.er1 |
| 3436 | cat conftest.err >&5 |
| 3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3438 | (exit $ac_status); } >/dev/null; then |
| 3439 | if test -s conftest.err; then |
| 3440 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3442 | else |
| 3443 | ac_cpp_err= |
| 3444 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3445 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3446 | ac_cpp_err=yes |
| 3447 | fi |
| 3448 | if test -z "$ac_cpp_err"; then |
| 3449 | : |
| 3450 | else |
| 3451 | echo "$as_me: failed program was:" >&5 |
| 3452 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3453 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3454 | # Broken: fails on valid input. |
| 3455 | continue |
| 3456 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3457 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3458 | rm -f conftest.err conftest.$ac_ext |
| 3459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3460 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3462 | cat >conftest.$ac_ext <<_ACEOF |
| 3463 | /* confdefs.h. */ |
| 3464 | _ACEOF |
| 3465 | cat confdefs.h >>conftest.$ac_ext |
| 3466 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | /* end confdefs.h. */ |
| 3468 | #include <ac_nonexistent.h> |
| 3469 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3470 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3471 | case "(($ac_try" in |
| 3472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3473 | *) ac_try_echo=$ac_try;; |
| 3474 | esac |
| 3475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3476 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3477 | ac_status=$? |
| 3478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3479 | rm -f conftest.er1 |
| 3480 | cat conftest.err >&5 |
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); } >/dev/null; then |
| 3483 | if test -s conftest.err; then |
| 3484 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3486 | else |
| 3487 | ac_cpp_err= |
| 3488 | fi |
| 3489 | else |
| 3490 | ac_cpp_err=yes |
| 3491 | fi |
| 3492 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3493 | # Broken: success on invalid input. |
| 3494 | continue |
| 3495 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3496 | echo "$as_me: failed program was:" >&5 |
| 3497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3498 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3499 | # Passes both tests. |
| 3500 | ac_preproc_ok=: |
| 3501 | break |
| 3502 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3503 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3504 | rm -f conftest.err conftest.$ac_ext |
| 3505 | |
| 3506 | done |
| 3507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3508 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3509 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3510 | break |
| 3511 | fi |
| 3512 | |
| 3513 | done |
| 3514 | ac_cv_prog_CPP=$CPP |
| 3515 | |
| 3516 | fi |
| 3517 | CPP=$ac_cv_prog_CPP |
| 3518 | else |
| 3519 | ac_cv_prog_CPP=$CPP |
| 3520 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3521 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3522 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3523 | ac_preproc_ok=false |
| 3524 | for ac_c_preproc_warn_flag in '' yes |
| 3525 | do |
| 3526 | # Use a header file that comes with gcc, so configuring glibc |
| 3527 | # with a fresh cross-compiler works. |
| 3528 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3529 | # <limits.h> exists even on freestanding compilers. |
| 3530 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3531 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3532 | cat >conftest.$ac_ext <<_ACEOF |
| 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3537 | /* end confdefs.h. */ |
| 3538 | #ifdef __STDC__ |
| 3539 | # include <limits.h> |
| 3540 | #else |
| 3541 | # include <assert.h> |
| 3542 | #endif |
| 3543 | Syntax error |
| 3544 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3545 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3546 | case "(($ac_try" in |
| 3547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3548 | *) ac_try_echo=$ac_try;; |
| 3549 | esac |
| 3550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3551 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3552 | ac_status=$? |
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3554 | rm -f conftest.er1 |
| 3555 | cat conftest.err >&5 |
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3557 | (exit $ac_status); } >/dev/null; then |
| 3558 | if test -s conftest.err; then |
| 3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3561 | else |
| 3562 | ac_cpp_err= |
| 3563 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3564 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3565 | ac_cpp_err=yes |
| 3566 | fi |
| 3567 | if test -z "$ac_cpp_err"; then |
| 3568 | : |
| 3569 | else |
| 3570 | echo "$as_me: failed program was:" >&5 |
| 3571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3572 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3573 | # Broken: fails on valid input. |
| 3574 | continue |
| 3575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3577 | rm -f conftest.err conftest.$ac_ext |
| 3578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3579 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3580 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3581 | cat >conftest.$ac_ext <<_ACEOF |
| 3582 | /* confdefs.h. */ |
| 3583 | _ACEOF |
| 3584 | cat confdefs.h >>conftest.$ac_ext |
| 3585 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3586 | /* end confdefs.h. */ |
| 3587 | #include <ac_nonexistent.h> |
| 3588 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3590 | case "(($ac_try" in |
| 3591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3592 | *) ac_try_echo=$ac_try;; |
| 3593 | esac |
| 3594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3596 | ac_status=$? |
| 3597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3598 | rm -f conftest.er1 |
| 3599 | cat conftest.err >&5 |
| 3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3601 | (exit $ac_status); } >/dev/null; then |
| 3602 | if test -s conftest.err; then |
| 3603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3605 | else |
| 3606 | ac_cpp_err= |
| 3607 | fi |
| 3608 | else |
| 3609 | ac_cpp_err=yes |
| 3610 | fi |
| 3611 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3612 | # Broken: success on invalid input. |
| 3613 | continue |
| 3614 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3615 | echo "$as_me: failed program was:" >&5 |
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3618 | # Passes both tests. |
| 3619 | ac_preproc_ok=: |
| 3620 | break |
| 3621 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3622 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3623 | rm -f conftest.err conftest.$ac_ext |
| 3624 | |
| 3625 | done |
| 3626 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3627 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3628 | if $ac_preproc_ok; then |
| 3629 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3630 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3631 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3632 | See \`config.log' for more details." >&5 |
| 3633 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3634 | See \`config.log' for more details." >&2;} |
| 3635 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3636 | fi |
| 3637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3638 | ac_ext=c |
| 3639 | ac_cpp='$CPP $CPPFLAGS' |
| 3640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3643 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3645 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3646 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3647 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3649 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3650 | # Extract the first word of "grep ggrep" to use in msg output |
| 3651 | if test -z "$GREP"; then |
| 3652 | set dummy grep ggrep; ac_prog_name=$2 |
| 3653 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3655 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3656 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3657 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3659 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3660 | do |
| 3661 | IFS=$as_save_IFS |
| 3662 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3663 | for ac_prog in grep ggrep; do |
| 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3665 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3666 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3667 | # Check for GNU ac_path_GREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3668 | # Check for GNU $ac_path_GREP |
| 3669 | case `"$ac_path_GREP" --version 2>&1` in |
| 3670 | *GNU*) |
| 3671 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3672 | *) |
| 3673 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3674 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3675 | while : |
| 3676 | do |
| 3677 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3678 | mv "conftest.tmp" "conftest.in" |
| 3679 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3680 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3682 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3683 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3684 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3685 | # Best one so far, save it but keep looking for a better one |
| 3686 | ac_cv_path_GREP="$ac_path_GREP" |
| 3687 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3689 | # 10*(2^10) chars as input seems more than enough |
| 3690 | test $ac_count -gt 10 && break |
| 3691 | done |
| 3692 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3693 | esac |
| 3694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3695 | |
| 3696 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3697 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3698 | done |
| 3699 | |
| 3700 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3701 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3702 | |
| 3703 | |
| 3704 | fi |
| 3705 | |
| 3706 | GREP="$ac_cv_path_GREP" |
| 3707 | if test -z "$GREP"; then |
| 3708 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3709 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3710 | { (exit 1); exit 1; }; } |
| 3711 | fi |
| 3712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3713 | else |
| 3714 | ac_cv_path_GREP=$GREP |
| 3715 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3716 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3719 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3720 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3721 | GREP="$ac_cv_path_GREP" |
| 3722 | |
| 3723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3724 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3725 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3726 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | else |
| 3729 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3730 | then ac_cv_path_EGREP="$GREP -E" |
| 3731 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3732 | # Extract the first word of "egrep" to use in msg output |
| 3733 | if test -z "$EGREP"; then |
| 3734 | set dummy egrep; ac_prog_name=$2 |
| 3735 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3737 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3738 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3739 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3741 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3742 | do |
| 3743 | IFS=$as_save_IFS |
| 3744 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3745 | for ac_prog in egrep; do |
| 3746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3747 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3748 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3749 | # Check for GNU ac_path_EGREP and select it if it is found. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3750 | # Check for GNU $ac_path_EGREP |
| 3751 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3752 | *GNU*) |
| 3753 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3754 | *) |
| 3755 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3756 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3757 | while : |
| 3758 | do |
| 3759 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3760 | mv "conftest.tmp" "conftest.in" |
| 3761 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3762 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3763 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3764 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3765 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3766 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3767 | # Best one so far, save it but keep looking for a better one |
| 3768 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3769 | ac_path_EGREP_max=$ac_count |
| 3770 | fi |
| 3771 | # 10*(2^10) chars as input seems more than enough |
| 3772 | test $ac_count -gt 10 && break |
| 3773 | done |
| 3774 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3775 | esac |
| 3776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3777 | |
| 3778 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3779 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3780 | done |
| 3781 | |
| 3782 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3783 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3784 | |
| 3785 | |
| 3786 | fi |
| 3787 | |
| 3788 | EGREP="$ac_cv_path_EGREP" |
| 3789 | if test -z "$EGREP"; then |
| 3790 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3791 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3792 | { (exit 1); exit 1; }; } |
| 3793 | fi |
| 3794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3795 | else |
| 3796 | ac_cv_path_EGREP=$EGREP |
| 3797 | fi |
| 3798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3800 | fi |
| 3801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3802 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3803 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3804 | EGREP="$ac_cv_path_EGREP" |
| 3805 | |
| 3806 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3807 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3808 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3809 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3812 | cat >conftest.$ac_ext <<_ACEOF |
| 3813 | /* confdefs.h. */ |
| 3814 | _ACEOF |
| 3815 | cat confdefs.h >>conftest.$ac_ext |
| 3816 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3817 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3818 | #include <stdlib.h> |
| 3819 | #include <stdarg.h> |
| 3820 | #include <string.h> |
| 3821 | #include <float.h> |
| 3822 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3823 | int |
| 3824 | main () |
| 3825 | { |
| 3826 | |
| 3827 | ; |
| 3828 | return 0; |
| 3829 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3830 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3831 | rm -f conftest.$ac_objext |
| 3832 | if { (ac_try="$ac_compile" |
| 3833 | case "(($ac_try" in |
| 3834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3835 | *) ac_try_echo=$ac_try;; |
| 3836 | esac |
| 3837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3838 | (eval "$ac_compile") 2>conftest.er1 |
| 3839 | ac_status=$? |
| 3840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3841 | rm -f conftest.er1 |
| 3842 | cat conftest.err >&5 |
| 3843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3844 | (exit $ac_status); } && |
| 3845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3846 | { (case "(($ac_try" in |
| 3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3848 | *) ac_try_echo=$ac_try;; |
| 3849 | esac |
| 3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3851 | (eval "$ac_try") 2>&5 |
| 3852 | ac_status=$? |
| 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3854 | (exit $ac_status); }; } && |
| 3855 | { ac_try='test -s conftest.$ac_objext' |
| 3856 | { (case "(($ac_try" in |
| 3857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3858 | *) ac_try_echo=$ac_try;; |
| 3859 | esac |
| 3860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3861 | (eval "$ac_try") 2>&5 |
| 3862 | ac_status=$? |
| 3863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3864 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3865 | ac_cv_header_stdc=yes |
| 3866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3867 | echo "$as_me: failed program was:" >&5 |
| 3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3869 | |
| 3870 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3871 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3874 | |
| 3875 | if test $ac_cv_header_stdc = yes; then |
| 3876 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3877 | cat >conftest.$ac_ext <<_ACEOF |
| 3878 | /* confdefs.h. */ |
| 3879 | _ACEOF |
| 3880 | cat confdefs.h >>conftest.$ac_ext |
| 3881 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3882 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3883 | #include <string.h> |
| 3884 | |
| 3885 | _ACEOF |
| 3886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3887 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3888 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3889 | else |
| 3890 | ac_cv_header_stdc=no |
| 3891 | fi |
| 3892 | rm -f conftest* |
| 3893 | |
| 3894 | fi |
| 3895 | |
| 3896 | if test $ac_cv_header_stdc = yes; then |
| 3897 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3898 | cat >conftest.$ac_ext <<_ACEOF |
| 3899 | /* confdefs.h. */ |
| 3900 | _ACEOF |
| 3901 | cat confdefs.h >>conftest.$ac_ext |
| 3902 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3903 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3904 | #include <stdlib.h> |
| 3905 | |
| 3906 | _ACEOF |
| 3907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3908 | $EGREP "free" >/dev/null 2>&1; then |
| 3909 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | else |
| 3911 | ac_cv_header_stdc=no |
| 3912 | fi |
| 3913 | rm -f conftest* |
| 3914 | |
| 3915 | fi |
| 3916 | |
| 3917 | if test $ac_cv_header_stdc = yes; then |
| 3918 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3919 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3920 | : |
| 3921 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3922 | cat >conftest.$ac_ext <<_ACEOF |
| 3923 | /* confdefs.h. */ |
| 3924 | _ACEOF |
| 3925 | cat confdefs.h >>conftest.$ac_ext |
| 3926 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3927 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3929 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3930 | #if ((' ' & 0x0FF) == 0x020) |
| 3931 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3932 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3933 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3934 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3935 | (('a' <= (c) && (c) <= 'i') \ |
| 3936 | || ('j' <= (c) && (c) <= 'r') \ |
| 3937 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3938 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3939 | #endif |
| 3940 | |
| 3941 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3942 | int |
| 3943 | main () |
| 3944 | { |
| 3945 | int i; |
| 3946 | for (i = 0; i < 256; i++) |
| 3947 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3948 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3949 | return 2; |
| 3950 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3951 | } |
| 3952 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3953 | rm -f conftest$ac_exeext |
| 3954 | if { (ac_try="$ac_link" |
| 3955 | case "(($ac_try" in |
| 3956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3957 | *) ac_try_echo=$ac_try;; |
| 3958 | esac |
| 3959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3960 | (eval "$ac_link") 2>&5 |
| 3961 | ac_status=$? |
| 3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3963 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3964 | { (case "(($ac_try" in |
| 3965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3966 | *) ac_try_echo=$ac_try;; |
| 3967 | esac |
| 3968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3969 | (eval "$ac_try") 2>&5 |
| 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); }; }; then |
| 3973 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3975 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3976 | echo "$as_me: failed program was:" >&5 |
| 3977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3978 | |
| 3979 | ( exit $ac_status ) |
| 3980 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3982 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3983 | fi |
| 3984 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3986 | fi |
| 3987 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3988 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3989 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3990 | if test $ac_cv_header_stdc = yes; then |
| 3991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3992 | cat >>confdefs.h <<\_ACEOF |
| 3993 | #define STDC_HEADERS 1 |
| 3994 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3995 | |
| 3996 | fi |
| 3997 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3998 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4009 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4010 | do |
| 4011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4016 | else |
| 4017 | cat >conftest.$ac_ext <<_ACEOF |
| 4018 | /* confdefs.h. */ |
| 4019 | _ACEOF |
| 4020 | cat confdefs.h >>conftest.$ac_ext |
| 4021 | cat >>conftest.$ac_ext <<_ACEOF |
| 4022 | /* end confdefs.h. */ |
| 4023 | $ac_includes_default |
| 4024 | |
| 4025 | #include <$ac_header> |
| 4026 | _ACEOF |
| 4027 | rm -f conftest.$ac_objext |
| 4028 | if { (ac_try="$ac_compile" |
| 4029 | case "(($ac_try" in |
| 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4031 | *) ac_try_echo=$ac_try;; |
| 4032 | esac |
| 4033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4034 | (eval "$ac_compile") 2>conftest.er1 |
| 4035 | ac_status=$? |
| 4036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4037 | rm -f conftest.er1 |
| 4038 | cat conftest.err >&5 |
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4040 | (exit $ac_status); } && |
| 4041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4042 | { (case "(($ac_try" in |
| 4043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4044 | *) ac_try_echo=$ac_try;; |
| 4045 | esac |
| 4046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4047 | (eval "$ac_try") 2>&5 |
| 4048 | ac_status=$? |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4050 | (exit $ac_status); }; } && |
| 4051 | { ac_try='test -s conftest.$ac_objext' |
| 4052 | { (case "(($ac_try" in |
| 4053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4054 | *) ac_try_echo=$ac_try;; |
| 4055 | esac |
| 4056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4057 | (eval "$ac_try") 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); }; }; then |
| 4061 | eval "$as_ac_Header=yes" |
| 4062 | else |
| 4063 | echo "$as_me: failed program was:" >&5 |
| 4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4065 | |
| 4066 | eval "$as_ac_Header=no" |
| 4067 | fi |
| 4068 | |
| 4069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4070 | fi |
| 4071 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4073 | echo "${ECHO_T}$ac_res" >&6; } |
| 4074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4075 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4077 | _ACEOF |
| 4078 | |
| 4079 | fi |
| 4080 | |
| 4081 | done |
| 4082 | |
| 4083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4084 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4085 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4086 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4088 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4089 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4090 | cat >conftest.$ac_ext <<_ACEOF |
| 4091 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4092 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4093 | cat confdefs.h >>conftest.$ac_ext |
| 4094 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4095 | /* end confdefs.h. */ |
| 4096 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4097 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4098 | |
| 4099 | int |
| 4100 | main () |
| 4101 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4102 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4103 | bogus endian macros |
| 4104 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4105 | |
| 4106 | ; |
| 4107 | return 0; |
| 4108 | } |
| 4109 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4110 | rm -f conftest.$ac_objext |
| 4111 | if { (ac_try="$ac_compile" |
| 4112 | case "(($ac_try" in |
| 4113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4114 | *) ac_try_echo=$ac_try;; |
| 4115 | esac |
| 4116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4117 | (eval "$ac_compile") 2>conftest.er1 |
| 4118 | ac_status=$? |
| 4119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4120 | rm -f conftest.er1 |
| 4121 | cat conftest.err >&5 |
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4123 | (exit $ac_status); } && |
| 4124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4125 | { (case "(($ac_try" in |
| 4126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4127 | *) ac_try_echo=$ac_try;; |
| 4128 | esac |
| 4129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4130 | (eval "$ac_try") 2>&5 |
| 4131 | ac_status=$? |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); }; } && |
| 4134 | { ac_try='test -s conftest.$ac_objext' |
| 4135 | { (case "(($ac_try" in |
| 4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4137 | *) ac_try_echo=$ac_try;; |
| 4138 | esac |
| 4139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4140 | (eval "$ac_try") 2>&5 |
| 4141 | ac_status=$? |
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4143 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4144 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4145 | cat >conftest.$ac_ext <<_ACEOF |
| 4146 | /* confdefs.h. */ |
| 4147 | _ACEOF |
| 4148 | cat confdefs.h >>conftest.$ac_ext |
| 4149 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4150 | /* end confdefs.h. */ |
| 4151 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4152 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4153 | |
| 4154 | int |
| 4155 | main () |
| 4156 | { |
| 4157 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4158 | not big endian |
| 4159 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4160 | |
| 4161 | ; |
| 4162 | return 0; |
| 4163 | } |
| 4164 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4165 | rm -f conftest.$ac_objext |
| 4166 | if { (ac_try="$ac_compile" |
| 4167 | case "(($ac_try" in |
| 4168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4169 | *) ac_try_echo=$ac_try;; |
| 4170 | esac |
| 4171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4172 | (eval "$ac_compile") 2>conftest.er1 |
| 4173 | ac_status=$? |
| 4174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4175 | rm -f conftest.er1 |
| 4176 | cat conftest.err >&5 |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4178 | (exit $ac_status); } && |
| 4179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4180 | { (case "(($ac_try" in |
| 4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4182 | *) ac_try_echo=$ac_try;; |
| 4183 | esac |
| 4184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (case "(($ac_try" in |
| 4191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4192 | *) ac_try_echo=$ac_try;; |
| 4193 | esac |
| 4194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4195 | (eval "$ac_try") 2>&5 |
| 4196 | ac_status=$? |
| 4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4198 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4199 | ac_cv_c_bigendian=yes |
| 4200 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4201 | echo "$as_me: failed program was:" >&5 |
| 4202 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4203 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4204 | ac_cv_c_bigendian=no |
| 4205 | fi |
| 4206 | |
| 4207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4208 | else |
| 4209 | echo "$as_me: failed program was:" >&5 |
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
| 4212 | # It does not; compile a test program. |
| 4213 | if test "$cross_compiling" = yes; then |
| 4214 | # try to guess the endianness by grepping values into an object file |
| 4215 | ac_cv_c_bigendian=unknown |
| 4216 | cat >conftest.$ac_ext <<_ACEOF |
| 4217 | /* confdefs.h. */ |
| 4218 | _ACEOF |
| 4219 | cat confdefs.h >>conftest.$ac_ext |
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
| 4221 | /* end confdefs.h. */ |
| 4222 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4223 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4224 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4225 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4226 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4227 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4228 | int |
| 4229 | main () |
| 4230 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4231 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4232 | ; |
| 4233 | return 0; |
| 4234 | } |
| 4235 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4236 | rm -f conftest.$ac_objext |
| 4237 | if { (ac_try="$ac_compile" |
| 4238 | case "(($ac_try" in |
| 4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4240 | *) ac_try_echo=$ac_try;; |
| 4241 | esac |
| 4242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4243 | (eval "$ac_compile") 2>conftest.er1 |
| 4244 | ac_status=$? |
| 4245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4246 | rm -f conftest.er1 |
| 4247 | cat conftest.err >&5 |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && |
| 4250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 4257 | ac_status=$? |
| 4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4259 | (exit $ac_status); }; } && |
| 4260 | { ac_try='test -s conftest.$ac_objext' |
| 4261 | { (case "(($ac_try" in |
| 4262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4263 | *) ac_try_echo=$ac_try;; |
| 4264 | esac |
| 4265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4266 | (eval "$ac_try") 2>&5 |
| 4267 | ac_status=$? |
| 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4269 | (exit $ac_status); }; }; then |
| 4270 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4274 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4275 | ac_cv_c_bigendian=no |
| 4276 | else |
| 4277 | # finding both strings is unlikely to happen, but who knows? |
| 4278 | ac_cv_c_bigendian=unknown |
| 4279 | fi |
| 4280 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4281 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4282 | echo "$as_me: failed program was:" >&5 |
| 4283 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4285 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4286 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4290 | cat >conftest.$ac_ext <<_ACEOF |
| 4291 | /* confdefs.h. */ |
| 4292 | _ACEOF |
| 4293 | cat confdefs.h >>conftest.$ac_ext |
| 4294 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4295 | /* end confdefs.h. */ |
| 4296 | $ac_includes_default |
| 4297 | int |
| 4298 | main () |
| 4299 | { |
| 4300 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4301 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4302 | union |
| 4303 | { |
| 4304 | long int l; |
| 4305 | char c[sizeof (long int)]; |
| 4306 | } u; |
| 4307 | u.l = 1; |
| 4308 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4309 | |
| 4310 | ; |
| 4311 | return 0; |
| 4312 | } |
| 4313 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4314 | rm -f conftest$ac_exeext |
| 4315 | if { (ac_try="$ac_link" |
| 4316 | case "(($ac_try" in |
| 4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4318 | *) ac_try_echo=$ac_try;; |
| 4319 | esac |
| 4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4321 | (eval "$ac_link") 2>&5 |
| 4322 | ac_status=$? |
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4325 | { (case "(($ac_try" in |
| 4326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4327 | *) ac_try_echo=$ac_try;; |
| 4328 | esac |
| 4329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4330 | (eval "$ac_try") 2>&5 |
| 4331 | ac_status=$? |
| 4332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4333 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4334 | ac_cv_c_bigendian=no |
| 4335 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4336 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4337 | echo "$as_me: failed program was:" >&5 |
| 4338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4339 | |
| 4340 | ( exit $ac_status ) |
| 4341 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4342 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4343 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4344 | fi |
| 4345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4347 | fi |
| 4348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4350 | fi |
| 4351 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4352 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4353 | case $ac_cv_c_bigendian in |
| 4354 | yes) |
| 4355 | ENDIAN=big |
| 4356 | ;; |
| 4357 | no) |
| 4358 | ENDIAN=little |
| 4359 | ;; |
| 4360 | *) |
| 4361 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4362 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4363 | echo "$as_me: error: unknown endianness |
| 4364 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4365 | { (exit 1); exit 1; }; } ;; |
| 4366 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4367 | |
| 4368 | |
| 4369 | if test "$cross_compiling" = yes; then |
| 4370 | LLVM_CROSS_COMPILING=1 |
| 4371 | |
| 4372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4373 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4374 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4375 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4377 | else |
| 4378 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4379 | ac_cv_build_exeext=.exe |
| 4380 | else |
| 4381 | ac_build_prefix=${build_alias}- |
| 4382 | |
| 4383 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4384 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4385 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4387 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4389 | else |
| 4390 | if test -n "$BUILD_CC"; then |
| 4391 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4392 | else |
| 4393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4394 | for as_dir in $PATH |
| 4395 | do |
| 4396 | IFS=$as_save_IFS |
| 4397 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4399 | 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] | 4400 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4402 | break 2 |
| 4403 | fi |
| 4404 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | IFS=$as_save_IFS |
| 4407 | |
| 4408 | fi |
| 4409 | fi |
| 4410 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4411 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4413 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | fi |
| 4418 | |
| 4419 | |
| 4420 | if test -z "$BUILD_CC"; then |
| 4421 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4422 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4425 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | else |
| 4428 | if test -n "$BUILD_CC"; then |
| 4429 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4430 | else |
| 4431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4432 | for as_dir in $PATH |
| 4433 | do |
| 4434 | IFS=$as_save_IFS |
| 4435 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4437 | 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] | 4438 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4440 | break 2 |
| 4441 | fi |
| 4442 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4444 | IFS=$as_save_IFS |
| 4445 | |
| 4446 | fi |
| 4447 | fi |
| 4448 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4449 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4450 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4451 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4453 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4454 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4455 | fi |
| 4456 | |
| 4457 | |
| 4458 | if test -z "$BUILD_CC"; then |
| 4459 | # Extract the first word of "cc", so it can be a program name with args. |
| 4460 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4463 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4465 | else |
| 4466 | if test -n "$BUILD_CC"; then |
| 4467 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4468 | else |
| 4469 | ac_prog_rejected=no |
| 4470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4471 | for as_dir in $PATH |
| 4472 | do |
| 4473 | IFS=$as_save_IFS |
| 4474 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4476 | 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] | 4477 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4478 | ac_prog_rejected=yes |
| 4479 | continue |
| 4480 | fi |
| 4481 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4483 | break 2 |
| 4484 | fi |
| 4485 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4486 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4487 | IFS=$as_save_IFS |
| 4488 | |
| 4489 | if test $ac_prog_rejected = yes; then |
| 4490 | # We found a bogon in the path, so make sure we never use it. |
| 4491 | set dummy $ac_cv_prog_BUILD_CC |
| 4492 | shift |
| 4493 | if test $# != 0; then |
| 4494 | # We chose a different compiler from the bogus one. |
| 4495 | # However, it has the same basename, so the bogon will be chosen |
| 4496 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4497 | shift |
| 4498 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4499 | fi |
| 4500 | fi |
| 4501 | fi |
| 4502 | fi |
| 4503 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4504 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4505 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4506 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4507 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4509 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4510 | fi |
| 4511 | |
| 4512 | |
| 4513 | fi |
| 4514 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4515 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4516 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4517 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4518 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4519 | rm -f conftest* |
| 4520 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4521 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4522 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4523 | (eval $ac_build_link) 2>&5 |
| 4524 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4526 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4527 | for file in conftest.*; do |
| 4528 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4529 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4530 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4531 | esac |
| 4532 | done |
| 4533 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4534 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4535 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4536 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | rm -f conftest* |
| 4539 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4540 | fi |
| 4541 | fi |
| 4542 | |
| 4543 | BUILD_EXEEXT="" |
| 4544 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4545 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4546 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4547 | ac_build_exeext=$BUILD_EXEEXT |
| 4548 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4549 | ac_build_prefix=${build_alias}- |
| 4550 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4551 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4554 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4556 | else |
| 4557 | if test -n "$BUILD_CXX"; then |
| 4558 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4559 | else |
| 4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4561 | for as_dir in $PATH |
| 4562 | do |
| 4563 | IFS=$as_save_IFS |
| 4564 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4566 | 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] | 4567 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4569 | break 2 |
| 4570 | fi |
| 4571 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4573 | IFS=$as_save_IFS |
| 4574 | |
| 4575 | fi |
| 4576 | fi |
| 4577 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4578 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4580 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4581 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4583 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | |
| 4586 | |
| 4587 | if test -z "$BUILD_CXX"; then |
| 4588 | # Extract the first word of "g++", so it can be a program name with args. |
| 4589 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4590 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4591 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4592 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4594 | else |
| 4595 | if test -n "$BUILD_CXX"; then |
| 4596 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4597 | else |
| 4598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4599 | for as_dir in $PATH |
| 4600 | do |
| 4601 | IFS=$as_save_IFS |
| 4602 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4604 | 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] | 4605 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4606 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4607 | break 2 |
| 4608 | fi |
| 4609 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4610 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4611 | IFS=$as_save_IFS |
| 4612 | |
| 4613 | fi |
| 4614 | fi |
| 4615 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4616 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4617 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4618 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4619 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4620 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4621 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4622 | fi |
| 4623 | |
| 4624 | |
| 4625 | if test -z "$BUILD_CXX"; then |
| 4626 | # Extract the first word of "c++", so it can be a program name with args. |
| 4627 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4628 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4630 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4632 | else |
| 4633 | if test -n "$BUILD_CXX"; then |
| 4634 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4635 | else |
| 4636 | ac_prog_rejected=no |
| 4637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4638 | for as_dir in $PATH |
| 4639 | do |
| 4640 | IFS=$as_save_IFS |
| 4641 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4643 | 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] | 4644 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4645 | ac_prog_rejected=yes |
| 4646 | continue |
| 4647 | fi |
| 4648 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4650 | break 2 |
| 4651 | fi |
| 4652 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4654 | IFS=$as_save_IFS |
| 4655 | |
| 4656 | if test $ac_prog_rejected = yes; then |
| 4657 | # We found a bogon in the path, so make sure we never use it. |
| 4658 | set dummy $ac_cv_prog_BUILD_CXX |
| 4659 | shift |
| 4660 | if test $# != 0; then |
| 4661 | # We chose a different compiler from the bogus one. |
| 4662 | # However, it has the same basename, so the bogon will be chosen |
| 4663 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4664 | shift |
| 4665 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4666 | fi |
| 4667 | fi |
| 4668 | fi |
| 4669 | fi |
| 4670 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4671 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4672 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4673 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4674 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4675 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4676 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4677 | fi |
| 4678 | |
| 4679 | |
| 4680 | fi |
| 4681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4682 | else |
| 4683 | LLVM_CROSS_COMPILING=0 |
| 4684 | |
| 4685 | fi |
| 4686 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 4687 | if test -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] | 4688 | cvsbuild="yes" |
| 4689 | optimize="no" |
| 4690 | CVSBUILD=CVSBUILD=1 |
| 4691 | |
| 4692 | else |
| 4693 | cvsbuild="no" |
| 4694 | optimize="yes" |
| 4695 | fi |
| 4696 | |
| 4697 | |
| 4698 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4699 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4700 | enableval=$enable_optimized; |
| 4701 | else |
| 4702 | enableval=$optimize |
| 4703 | fi |
| 4704 | |
| 4705 | if test ${enableval} = "no" ; then |
| 4706 | ENABLE_OPTIMIZED= |
| 4707 | |
| 4708 | else |
| 4709 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4710 | |
| 4711 | fi |
| 4712 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4713 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4714 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4715 | enableval=$enable_profiling; |
| 4716 | else |
| 4717 | enableval="no" |
| 4718 | fi |
| 4719 | |
| 4720 | if test ${enableval} = "no" ; then |
| 4721 | ENABLE_PROFILING= |
| 4722 | |
| 4723 | else |
| 4724 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4725 | |
| 4726 | fi |
| 4727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4729 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4730 | enableval=$enable_assertions; |
| 4731 | else |
| 4732 | enableval="yes" |
| 4733 | fi |
| 4734 | |
| 4735 | if test ${enableval} = "yes" ; then |
| 4736 | DISABLE_ASSERTIONS= |
| 4737 | |
| 4738 | else |
| 4739 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4740 | |
| 4741 | fi |
| 4742 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4743 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4744 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4745 | enableval=$enable_expensive_checks; |
| 4746 | else |
| 4747 | enableval="no" |
| 4748 | fi |
| 4749 | |
| 4750 | if test ${enableval} = "yes" ; then |
| 4751 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4752 | |
| 4753 | EXPENSIVE_CHECKS=yes |
| 4754 | |
| 4755 | else |
| 4756 | ENABLE_EXPENSIVE_CHECKS= |
| 4757 | |
| 4758 | EXPENSIVE_CHECKS=no |
| 4759 | |
| 4760 | fi |
| 4761 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4762 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4763 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4764 | enableval=$enable_debug_runtime; |
| 4765 | else |
| 4766 | enableval=no |
| 4767 | fi |
| 4768 | |
| 4769 | if test ${enableval} = "no" ; then |
| 4770 | DEBUG_RUNTIME= |
| 4771 | |
| 4772 | else |
| 4773 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4774 | |
| 4775 | fi |
| 4776 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4777 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4778 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4779 | enableval=$enable_debug_symbols; |
| 4780 | else |
| 4781 | enableval=no |
| 4782 | fi |
| 4783 | |
| 4784 | if test ${enableval} = "no" ; then |
| 4785 | DEBUG_SYMBOLS= |
| 4786 | |
| 4787 | else |
| 4788 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4789 | |
| 4790 | fi |
| 4791 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4792 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4793 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4794 | enableval=$enable_jit; |
| 4795 | else |
| 4796 | enableval=default |
| 4797 | fi |
| 4798 | |
| 4799 | if test ${enableval} = "no" |
| 4800 | then |
| 4801 | JIT= |
| 4802 | |
| 4803 | else |
| 4804 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4805 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4806 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4807 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4808 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4809 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4811 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4812 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4813 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4814 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4815 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4816 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4817 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4818 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4819 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4820 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4821 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4822 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4823 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4824 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4825 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4826 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4827 | Blackfin) TARGET_HAS_JIT=0 |
| 4828 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4829 | MBlaze) TARGET_HAS_JIT=0 |
| 4830 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4831 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4832 | ;; |
| 4833 | esac |
| 4834 | fi |
| 4835 | |
| 4836 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4837 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4838 | enableval=$enable_doxygen; |
| 4839 | else |
| 4840 | enableval=default |
| 4841 | fi |
| 4842 | |
| 4843 | case "$enableval" in |
| 4844 | yes) ENABLE_DOXYGEN=1 |
| 4845 | ;; |
| 4846 | no) ENABLE_DOXYGEN=0 |
| 4847 | ;; |
| 4848 | default) ENABLE_DOXYGEN=0 |
| 4849 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4850 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4851 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4852 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4853 | esac |
| 4854 | |
| 4855 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4856 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | enableval=$enable_threads; |
| 4858 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4859 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4860 | fi |
| 4861 | |
| 4862 | case "$enableval" in |
| 4863 | yes) ENABLE_THREADS=1 |
| 4864 | ;; |
| 4865 | no) ENABLE_THREADS=0 |
| 4866 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4867 | default) ENABLE_THREADS=1 |
| 4868 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4870 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4871 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4872 | esac |
| 4873 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4874 | cat >>confdefs.h <<_ACEOF |
| 4875 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4876 | _ACEOF |
| 4877 | |
| 4878 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4879 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4880 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4881 | enableval=$enable_pic; |
| 4882 | else |
| 4883 | enableval=default |
| 4884 | fi |
| 4885 | |
| 4886 | case "$enableval" in |
| 4887 | yes) ENABLE_PIC=1 |
| 4888 | ;; |
| 4889 | no) ENABLE_PIC=0 |
| 4890 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4891 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4892 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4893 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4894 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4895 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4896 | esac |
| 4897 | |
| 4898 | cat >>confdefs.h <<_ACEOF |
| 4899 | #define ENABLE_PIC $ENABLE_PIC |
| 4900 | _ACEOF |
| 4901 | |
| 4902 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4903 | # Check whether --enable-shared was given. |
| 4904 | if test "${enable_shared+set}" = set; then |
| 4905 | enableval=$enable_shared; |
| 4906 | else |
| 4907 | enableval=default |
| 4908 | fi |
| 4909 | |
| 4910 | case "$enableval" in |
| 4911 | yes) ENABLE_SHARED=1 |
| 4912 | ;; |
| 4913 | no) ENABLE_SHARED=0 |
| 4914 | ;; |
| 4915 | default) ENABLE_SHARED=0 |
| 4916 | ;; |
| 4917 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4918 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4919 | { (exit 1); exit 1; }; } ;; |
| 4920 | esac |
| 4921 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 4922 | # Check whether --enable-timestamps was given. |
| 4923 | if test "${enable_timestamps+set}" = set; then |
| 4924 | enableval=$enable_timestamps; |
| 4925 | else |
| 4926 | enableval=default |
| 4927 | fi |
| 4928 | |
| 4929 | case "$enableval" in |
| 4930 | yes) ENABLE_TIMESTAMPS=1 |
| 4931 | ;; |
| 4932 | no) ENABLE_TIMESTAMPS=0 |
| 4933 | ;; |
| 4934 | default) ENABLE_TIMESTAMPS=1 |
| 4935 | ;; |
| 4936 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 4937 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 4938 | { (exit 1); exit 1; }; } ;; |
| 4939 | esac |
| 4940 | |
| 4941 | cat >>confdefs.h <<_ACEOF |
| 4942 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 4943 | _ACEOF |
| 4944 | |
| 4945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4946 | TARGETS_TO_BUILD="" |
| 4947 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4948 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4949 | enableval=$enable_targets; |
| 4950 | else |
| 4951 | enableval=all |
| 4952 | fi |
| 4953 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4954 | if test "$enableval" = host-only ; then |
| 4955 | enableval=host |
| 4956 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4957 | case "$enableval" in |
Chris Lattner | 885b661 | 2010-08-28 16:33:36 +0000 | [diff] [blame^] | 4958 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4959 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4960 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4961 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4962 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4963 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4964 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4965 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4966 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4967 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4968 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4969 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4970 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4971 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4972 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4973 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4974 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4975 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4976 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4977 | host) case "$llvm_cv_target_arch" in |
| 4978 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4979 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4980 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4981 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4982 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4983 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4984 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4985 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4986 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4987 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4988 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4989 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4990 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4991 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4992 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4993 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4994 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4995 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4996 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4997 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4998 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4999 | esac |
| 5000 | done |
| 5001 | ;; |
| 5002 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5003 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5004 | |
| 5005 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5006 | # Determine whether we are building LLVM support for the native architecture. |
| 5007 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5008 | for a_target in $TARGETS_TO_BUILD; do |
| 5009 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5010 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5011 | |
| 5012 | cat >>confdefs.h <<_ACEOF |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5013 | #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH |
| 5014 | _ACEOF |
| 5015 | |
| 5016 | |
| 5017 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5018 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5019 | _ACEOF |
| 5020 | |
| 5021 | fi |
| 5022 | done |
| 5023 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5024 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5025 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5026 | LLVM_ENUM_TARGETS="" |
| 5027 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5028 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5029 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5030 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5031 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5032 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5033 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5034 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5035 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5036 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5037 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5038 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5039 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5040 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5041 | done |
| 5042 | |
| 5043 | |
| 5044 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5045 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5046 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5047 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5048 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5049 | enableval=$enable_cbe_printf_a; |
| 5050 | else |
| 5051 | enableval=default |
| 5052 | fi |
| 5053 | |
| 5054 | case "$enableval" in |
| 5055 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5056 | ;; |
| 5057 | no) ENABLE_CBE_PRINTF_A=0 |
| 5058 | ;; |
| 5059 | default) ENABLE_CBE_PRINTF_A=1 |
| 5060 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5061 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5062 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5063 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5064 | esac |
| 5065 | |
| 5066 | cat >>confdefs.h <<_ACEOF |
| 5067 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5068 | _ACEOF |
| 5069 | |
| 5070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5071 | |
| 5072 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5073 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5074 | withval=$with_llvmgccdir; |
| 5075 | else |
| 5076 | withval=default |
| 5077 | fi |
| 5078 | |
| 5079 | case "$withval" in |
| 5080 | default) WITH_LLVMGCCDIR=default ;; |
| 5081 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5082 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5083 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5084 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5085 | esac |
| 5086 | |
| 5087 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5088 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5089 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5090 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5091 | WITH_LLVMGCCDIR="" |
| 5092 | fi |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5097 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5098 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5099 | WITH_LLVMGCCDIR="" |
| 5100 | fi |
| 5101 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5102 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5103 | if test -n "$LLVMGCC"; then |
| 5104 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5105 | fi |
| 5106 | |
| 5107 | if test -n "$LLVMGXX"; then |
| 5108 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5109 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5110 | |
| 5111 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5112 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5113 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5114 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5115 | fi |
| 5116 | |
| 5117 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5118 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5119 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5120 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5121 | fi |
| 5122 | |
| 5123 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5124 | # Check whether --with-clang was given. |
| 5125 | if test "${with_clang+set}" = set; then |
| 5126 | withval=$with_clang; |
| 5127 | else |
| 5128 | with_clang=default |
| 5129 | fi |
| 5130 | |
| 5131 | |
| 5132 | |
| 5133 | # Check whether --with-built-clang was given. |
| 5134 | if test "${with_built_clang+set}" = set; then |
| 5135 | withval=$with_built_clang; |
| 5136 | else |
| 5137 | with_built_clang=check |
| 5138 | fi |
| 5139 | |
| 5140 | |
| 5141 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5142 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5143 | WITH_CLANGPATH="" |
| 5144 | WITH_BUILT_CLANG=0 |
| 5145 | if test "$with_clang" != "default"; then |
| 5146 | WITH_CLANGPATH="$with_clang" |
| 5147 | if ! test -x "$WITH_CLANGPATH"; then |
| 5148 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5149 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5150 | { (exit 1); exit 1; }; } |
| 5151 | fi |
| 5152 | elif test "$with_built_clang" = "yes"; then |
| 5153 | WITH_BUILT_CLANG=1 |
| 5154 | elif test "$with_built_clang" = "no"; then |
| 5155 | WITH_BUILT_CLANG=0 |
| 5156 | else |
| 5157 | if test "$with_built_clang" != "check"; then |
| 5158 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5159 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5160 | { (exit 1); exit 1; }; } |
| 5161 | fi |
| 5162 | |
| 5163 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5164 | WITH_BUILT_CLANG=1 |
| 5165 | fi |
| 5166 | fi |
| 5167 | |
| 5168 | if ! test -z "$WITH_CLANGPATH"; then |
| 5169 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5170 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5171 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5172 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5173 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5174 | echo "${ECHO_T}built" >&6; } |
| 5175 | else |
| 5176 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5177 | echo "${ECHO_T}none" >&6; } |
| 5178 | fi |
| 5179 | CLANGPATH=$WITH_CLANGPATH |
| 5180 | |
| 5181 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5182 | |
| 5183 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5184 | |
| 5185 | |
| 5186 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5187 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5188 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5189 | withval=$with_optimize_option; |
| 5190 | else |
| 5191 | withval=default |
| 5192 | fi |
| 5193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5194 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5195 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5196 | case "$withval" in |
| 5197 | default) |
| 5198 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5199 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5200 | MingW) optimize_option=-O2 ;; |
| 5201 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5202 | esac ;; |
| 5203 | *) optimize_option="$withval" ;; |
| 5204 | esac |
| 5205 | OPTIMIZE_OPTION=$optimize_option |
| 5206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5207 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5208 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5209 | |
| 5210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5211 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5212 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5213 | withval=$with_extra_options; |
| 5214 | else |
| 5215 | withval=default |
| 5216 | fi |
| 5217 | |
| 5218 | case "$withval" in |
| 5219 | default) EXTRA_OPTIONS= ;; |
| 5220 | *) EXTRA_OPTIONS=$withval ;; |
| 5221 | esac |
| 5222 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5223 | |
| 5224 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5225 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5226 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5227 | enableval=$enable_bindings; |
| 5228 | else |
| 5229 | enableval=default |
| 5230 | fi |
| 5231 | |
| 5232 | BINDINGS_TO_BUILD="" |
| 5233 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5234 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5235 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5236 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5237 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5238 | case "$a_binding" in |
| 5239 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5240 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5241 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5242 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5243 | esac |
| 5244 | done |
| 5245 | ;; |
| 5246 | esac |
| 5247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5248 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5249 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5250 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5251 | withval=$with_ocaml_libdir; |
| 5252 | else |
| 5253 | withval=auto |
| 5254 | fi |
| 5255 | |
| 5256 | case "$withval" in |
| 5257 | auto) with_ocaml_libdir="$withval" ;; |
| 5258 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5259 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5260 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5261 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5262 | esac |
| 5263 | |
| 5264 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5265 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5266 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5267 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5268 | else |
| 5269 | withval="" |
| 5270 | fi |
| 5271 | |
| 5272 | |
| 5273 | cat >>confdefs.h <<_ACEOF |
| 5274 | #define C_INCLUDE_DIRS "$withval" |
| 5275 | _ACEOF |
| 5276 | |
| 5277 | |
| 5278 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5279 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5280 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5281 | withval=$with_cxx_include_root; |
| 5282 | else |
| 5283 | withval="" |
| 5284 | fi |
| 5285 | |
| 5286 | |
| 5287 | cat >>confdefs.h <<_ACEOF |
| 5288 | #define CXX_INCLUDE_ROOT "$withval" |
| 5289 | _ACEOF |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5294 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5295 | withval=$with_cxx_include_arch; |
| 5296 | else |
| 5297 | withval="" |
| 5298 | fi |
| 5299 | |
| 5300 | |
| 5301 | cat >>confdefs.h <<_ACEOF |
| 5302 | #define CXX_INCLUDE_ARCH "$withval" |
| 5303 | _ACEOF |
| 5304 | |
| 5305 | |
| 5306 | |
| 5307 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5308 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5309 | withval=$with_cxx_include_32bit_dir; |
| 5310 | else |
| 5311 | withval="" |
| 5312 | fi |
| 5313 | |
| 5314 | |
| 5315 | cat >>confdefs.h <<_ACEOF |
| 5316 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5317 | _ACEOF |
| 5318 | |
| 5319 | |
| 5320 | |
| 5321 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5322 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5323 | withval=$with_cxx_include_64bit_dir; |
| 5324 | else |
| 5325 | withval="" |
| 5326 | fi |
| 5327 | |
| 5328 | |
| 5329 | cat >>confdefs.h <<_ACEOF |
| 5330 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5331 | _ACEOF |
| 5332 | |
| 5333 | |
| 5334 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5335 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5336 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5337 | withval=$with_binutils_include; |
| 5338 | else |
| 5339 | withval=default |
| 5340 | fi |
| 5341 | |
| 5342 | case "$withval" in |
| 5343 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5344 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5345 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5346 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5347 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5348 | esac |
| 5349 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5350 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5351 | |
| 5352 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5353 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5354 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5355 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5356 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5357 | fi |
| 5358 | fi |
| 5359 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5360 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5361 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5362 | enableval=$enable_libffi; case "$enableval" in |
| 5363 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5364 | no) llvm_cv_enable_libffi="no" ;; |
| 5365 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5366 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5367 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5368 | esac |
| 5369 | else |
| 5370 | llvm_cv_enable_libffi=no |
| 5371 | fi |
| 5372 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5373 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5375 | ac_ext=c |
| 5376 | ac_cpp='$CPP $CPPFLAGS' |
| 5377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5380 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5381 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5382 | # On Suns, sometimes $CPP names a directory. |
| 5383 | if test -n "$CPP" && test -d "$CPP"; then |
| 5384 | CPP= |
| 5385 | fi |
| 5386 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5387 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5389 | else |
| 5390 | # Double quotes because CPP needs to be expanded |
| 5391 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5392 | do |
| 5393 | ac_preproc_ok=false |
| 5394 | for ac_c_preproc_warn_flag in '' yes |
| 5395 | do |
| 5396 | # Use a header file that comes with gcc, so configuring glibc |
| 5397 | # with a fresh cross-compiler works. |
| 5398 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5399 | # <limits.h> exists even on freestanding compilers. |
| 5400 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5401 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5402 | cat >conftest.$ac_ext <<_ACEOF |
| 5403 | /* confdefs.h. */ |
| 5404 | _ACEOF |
| 5405 | cat confdefs.h >>conftest.$ac_ext |
| 5406 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5407 | /* end confdefs.h. */ |
| 5408 | #ifdef __STDC__ |
| 5409 | # include <limits.h> |
| 5410 | #else |
| 5411 | # include <assert.h> |
| 5412 | #endif |
| 5413 | Syntax error |
| 5414 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5416 | case "(($ac_try" in |
| 5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5418 | *) ac_try_echo=$ac_try;; |
| 5419 | esac |
| 5420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5422 | ac_status=$? |
| 5423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5424 | rm -f conftest.er1 |
| 5425 | cat conftest.err >&5 |
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5427 | (exit $ac_status); } >/dev/null; then |
| 5428 | if test -s conftest.err; then |
| 5429 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5430 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5431 | else |
| 5432 | ac_cpp_err= |
| 5433 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5434 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5435 | ac_cpp_err=yes |
| 5436 | fi |
| 5437 | if test -z "$ac_cpp_err"; then |
| 5438 | : |
| 5439 | else |
| 5440 | echo "$as_me: failed program was:" >&5 |
| 5441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5443 | # Broken: fails on valid input. |
| 5444 | continue |
| 5445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5447 | rm -f conftest.err conftest.$ac_ext |
| 5448 | |
| 5449 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5450 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5451 | cat >conftest.$ac_ext <<_ACEOF |
| 5452 | /* confdefs.h. */ |
| 5453 | _ACEOF |
| 5454 | cat confdefs.h >>conftest.$ac_ext |
| 5455 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5456 | /* end confdefs.h. */ |
| 5457 | #include <ac_nonexistent.h> |
| 5458 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5460 | case "(($ac_try" in |
| 5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5462 | *) ac_try_echo=$ac_try;; |
| 5463 | esac |
| 5464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5466 | ac_status=$? |
| 5467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5468 | rm -f conftest.er1 |
| 5469 | cat conftest.err >&5 |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); } >/dev/null; then |
| 5472 | if test -s conftest.err; then |
| 5473 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5475 | else |
| 5476 | ac_cpp_err= |
| 5477 | fi |
| 5478 | else |
| 5479 | ac_cpp_err=yes |
| 5480 | fi |
| 5481 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5482 | # Broken: success on invalid input. |
| 5483 | continue |
| 5484 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5485 | echo "$as_me: failed program was:" >&5 |
| 5486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5488 | # Passes both tests. |
| 5489 | ac_preproc_ok=: |
| 5490 | break |
| 5491 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5493 | rm -f conftest.err conftest.$ac_ext |
| 5494 | |
| 5495 | done |
| 5496 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5497 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5498 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5499 | break |
| 5500 | fi |
| 5501 | |
| 5502 | done |
| 5503 | ac_cv_prog_CPP=$CPP |
| 5504 | |
| 5505 | fi |
| 5506 | CPP=$ac_cv_prog_CPP |
| 5507 | else |
| 5508 | ac_cv_prog_CPP=$CPP |
| 5509 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5510 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5511 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5512 | ac_preproc_ok=false |
| 5513 | for ac_c_preproc_warn_flag in '' yes |
| 5514 | do |
| 5515 | # Use a header file that comes with gcc, so configuring glibc |
| 5516 | # with a fresh cross-compiler works. |
| 5517 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5518 | # <limits.h> exists even on freestanding compilers. |
| 5519 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5520 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5521 | cat >conftest.$ac_ext <<_ACEOF |
| 5522 | /* confdefs.h. */ |
| 5523 | _ACEOF |
| 5524 | cat confdefs.h >>conftest.$ac_ext |
| 5525 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5526 | /* end confdefs.h. */ |
| 5527 | #ifdef __STDC__ |
| 5528 | # include <limits.h> |
| 5529 | #else |
| 5530 | # include <assert.h> |
| 5531 | #endif |
| 5532 | Syntax error |
| 5533 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5535 | case "(($ac_try" in |
| 5536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5537 | *) ac_try_echo=$ac_try;; |
| 5538 | esac |
| 5539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5541 | ac_status=$? |
| 5542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5543 | rm -f conftest.er1 |
| 5544 | cat conftest.err >&5 |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); } >/dev/null; then |
| 5547 | if test -s conftest.err; then |
| 5548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5550 | else |
| 5551 | ac_cpp_err= |
| 5552 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5553 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5554 | ac_cpp_err=yes |
| 5555 | fi |
| 5556 | if test -z "$ac_cpp_err"; then |
| 5557 | : |
| 5558 | else |
| 5559 | echo "$as_me: failed program was:" >&5 |
| 5560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5562 | # Broken: fails on valid input. |
| 5563 | continue |
| 5564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5566 | rm -f conftest.err conftest.$ac_ext |
| 5567 | |
| 5568 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5569 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5570 | cat >conftest.$ac_ext <<_ACEOF |
| 5571 | /* confdefs.h. */ |
| 5572 | _ACEOF |
| 5573 | cat confdefs.h >>conftest.$ac_ext |
| 5574 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5575 | /* end confdefs.h. */ |
| 5576 | #include <ac_nonexistent.h> |
| 5577 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5579 | case "(($ac_try" in |
| 5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5581 | *) ac_try_echo=$ac_try;; |
| 5582 | esac |
| 5583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5585 | ac_status=$? |
| 5586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5587 | rm -f conftest.er1 |
| 5588 | cat conftest.err >&5 |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); } >/dev/null; then |
| 5591 | if test -s conftest.err; then |
| 5592 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5594 | else |
| 5595 | ac_cpp_err= |
| 5596 | fi |
| 5597 | else |
| 5598 | ac_cpp_err=yes |
| 5599 | fi |
| 5600 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5601 | # Broken: success on invalid input. |
| 5602 | continue |
| 5603 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5604 | echo "$as_me: failed program was:" >&5 |
| 5605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5607 | # Passes both tests. |
| 5608 | ac_preproc_ok=: |
| 5609 | break |
| 5610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5612 | rm -f conftest.err conftest.$ac_ext |
| 5613 | |
| 5614 | done |
| 5615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5616 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5617 | if $ac_preproc_ok; then |
| 5618 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5619 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5620 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5621 | See \`config.log' for more details." >&5 |
| 5622 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5623 | See \`config.log' for more details." >&2;} |
| 5624 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5625 | fi |
| 5626 | |
| 5627 | ac_ext=c |
| 5628 | ac_cpp='$CPP $CPPFLAGS' |
| 5629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5632 | |
| 5633 | ac_ext=c |
| 5634 | ac_cpp='$CPP $CPPFLAGS' |
| 5635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5638 | if test -n "$ac_tool_prefix"; then |
| 5639 | for ac_prog in gcc |
| 5640 | do |
| 5641 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5642 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5643 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5645 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5647 | else |
| 5648 | if test -n "$CC"; then |
| 5649 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5650 | else |
| 5651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5652 | for as_dir in $PATH |
| 5653 | do |
| 5654 | IFS=$as_save_IFS |
| 5655 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5657 | 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] | 5658 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5660 | break 2 |
| 5661 | fi |
| 5662 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5663 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5664 | IFS=$as_save_IFS |
| 5665 | |
| 5666 | fi |
| 5667 | fi |
| 5668 | CC=$ac_cv_prog_CC |
| 5669 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5670 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5671 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5672 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5674 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5675 | fi |
| 5676 | |
| 5677 | |
| 5678 | test -n "$CC" && break |
| 5679 | done |
| 5680 | fi |
| 5681 | if test -z "$CC"; then |
| 5682 | ac_ct_CC=$CC |
| 5683 | for ac_prog in gcc |
| 5684 | do |
| 5685 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5686 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5687 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5689 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5691 | else |
| 5692 | if test -n "$ac_ct_CC"; then |
| 5693 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5694 | else |
| 5695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5696 | for as_dir in $PATH |
| 5697 | do |
| 5698 | IFS=$as_save_IFS |
| 5699 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5701 | 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] | 5702 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5704 | break 2 |
| 5705 | fi |
| 5706 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5707 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5708 | IFS=$as_save_IFS |
| 5709 | |
| 5710 | fi |
| 5711 | fi |
| 5712 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5713 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5715 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5716 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5717 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5718 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5719 | fi |
| 5720 | |
| 5721 | |
| 5722 | test -n "$ac_ct_CC" && break |
| 5723 | done |
| 5724 | |
| 5725 | if test "x$ac_ct_CC" = x; then |
| 5726 | CC="" |
| 5727 | else |
| 5728 | case $cross_compiling:$ac_tool_warned in |
| 5729 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5730 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5731 | whose name does not start with the host triplet. If you think this |
| 5732 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5733 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5734 | whose name does not start with the host triplet. If you think this |
| 5735 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5736 | ac_tool_warned=yes ;; |
| 5737 | esac |
| 5738 | CC=$ac_ct_CC |
| 5739 | fi |
| 5740 | fi |
| 5741 | |
| 5742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5743 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5744 | See \`config.log' for more details." >&5 |
| 5745 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5746 | See \`config.log' for more details." >&2;} |
| 5747 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | |
| 5749 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5750 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5751 | ac_compiler=`set X $ac_compile; echo $2` |
| 5752 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5753 | case "(($ac_try" in |
| 5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5755 | *) ac_try_echo=$ac_try;; |
| 5756 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5758 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5759 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5761 | (exit $ac_status); } |
| 5762 | { (ac_try="$ac_compiler -v >&5" |
| 5763 | case "(($ac_try" in |
| 5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5765 | *) ac_try_echo=$ac_try;; |
| 5766 | esac |
| 5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5768 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5769 | ac_status=$? |
| 5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5771 | (exit $ac_status); } |
| 5772 | { (ac_try="$ac_compiler -V >&5" |
| 5773 | case "(($ac_try" in |
| 5774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5775 | *) ac_try_echo=$ac_try;; |
| 5776 | esac |
| 5777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5778 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5779 | ac_status=$? |
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5781 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5782 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5783 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5784 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5785 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5787 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5788 | cat >conftest.$ac_ext <<_ACEOF |
| 5789 | /* confdefs.h. */ |
| 5790 | _ACEOF |
| 5791 | cat confdefs.h >>conftest.$ac_ext |
| 5792 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5793 | /* end confdefs.h. */ |
| 5794 | |
| 5795 | int |
| 5796 | main () |
| 5797 | { |
| 5798 | #ifndef __GNUC__ |
| 5799 | choke me |
| 5800 | #endif |
| 5801 | |
| 5802 | ; |
| 5803 | return 0; |
| 5804 | } |
| 5805 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5806 | rm -f conftest.$ac_objext |
| 5807 | if { (ac_try="$ac_compile" |
| 5808 | case "(($ac_try" in |
| 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5810 | *) ac_try_echo=$ac_try;; |
| 5811 | esac |
| 5812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5813 | (eval "$ac_compile") 2>conftest.er1 |
| 5814 | ac_status=$? |
| 5815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5816 | rm -f conftest.er1 |
| 5817 | cat conftest.err >&5 |
| 5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5819 | (exit $ac_status); } && |
| 5820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5821 | { (case "(($ac_try" in |
| 5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5823 | *) ac_try_echo=$ac_try;; |
| 5824 | esac |
| 5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5826 | (eval "$ac_try") 2>&5 |
| 5827 | ac_status=$? |
| 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5829 | (exit $ac_status); }; } && |
| 5830 | { ac_try='test -s conftest.$ac_objext' |
| 5831 | { (case "(($ac_try" in |
| 5832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5833 | *) ac_try_echo=$ac_try;; |
| 5834 | esac |
| 5835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5836 | (eval "$ac_try") 2>&5 |
| 5837 | ac_status=$? |
| 5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5839 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5840 | ac_compiler_gnu=yes |
| 5841 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5842 | echo "$as_me: failed program was:" >&5 |
| 5843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5844 | |
| 5845 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5846 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5849 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5850 | |
| 5851 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5852 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5853 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5854 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5855 | ac_test_CFLAGS=${CFLAGS+set} |
| 5856 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5857 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5858 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5859 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5861 | else |
| 5862 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5863 | ac_c_werror_flag=yes |
| 5864 | ac_cv_prog_cc_g=no |
| 5865 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5866 | cat >conftest.$ac_ext <<_ACEOF |
| 5867 | /* confdefs.h. */ |
| 5868 | _ACEOF |
| 5869 | cat confdefs.h >>conftest.$ac_ext |
| 5870 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5871 | /* end confdefs.h. */ |
| 5872 | |
| 5873 | int |
| 5874 | main () |
| 5875 | { |
| 5876 | |
| 5877 | ; |
| 5878 | return 0; |
| 5879 | } |
| 5880 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5881 | rm -f conftest.$ac_objext |
| 5882 | if { (ac_try="$ac_compile" |
| 5883 | case "(($ac_try" in |
| 5884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5885 | *) ac_try_echo=$ac_try;; |
| 5886 | esac |
| 5887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5888 | (eval "$ac_compile") 2>conftest.er1 |
| 5889 | ac_status=$? |
| 5890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5891 | rm -f conftest.er1 |
| 5892 | cat conftest.err >&5 |
| 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5894 | (exit $ac_status); } && |
| 5895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5896 | { (case "(($ac_try" in |
| 5897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5898 | *) ac_try_echo=$ac_try;; |
| 5899 | esac |
| 5900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5901 | (eval "$ac_try") 2>&5 |
| 5902 | ac_status=$? |
| 5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5904 | (exit $ac_status); }; } && |
| 5905 | { ac_try='test -s conftest.$ac_objext' |
| 5906 | { (case "(($ac_try" in |
| 5907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5908 | *) ac_try_echo=$ac_try;; |
| 5909 | esac |
| 5910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5911 | (eval "$ac_try") 2>&5 |
| 5912 | ac_status=$? |
| 5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5915 | ac_cv_prog_cc_g=yes |
| 5916 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5917 | echo "$as_me: failed program was:" >&5 |
| 5918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5919 | |
| 5920 | CFLAGS="" |
| 5921 | cat >conftest.$ac_ext <<_ACEOF |
| 5922 | /* confdefs.h. */ |
| 5923 | _ACEOF |
| 5924 | cat confdefs.h >>conftest.$ac_ext |
| 5925 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5926 | /* end confdefs.h. */ |
| 5927 | |
| 5928 | int |
| 5929 | main () |
| 5930 | { |
| 5931 | |
| 5932 | ; |
| 5933 | return 0; |
| 5934 | } |
| 5935 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5936 | rm -f conftest.$ac_objext |
| 5937 | if { (ac_try="$ac_compile" |
| 5938 | case "(($ac_try" in |
| 5939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5940 | *) ac_try_echo=$ac_try;; |
| 5941 | esac |
| 5942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5943 | (eval "$ac_compile") 2>conftest.er1 |
| 5944 | ac_status=$? |
| 5945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5946 | rm -f conftest.er1 |
| 5947 | cat conftest.err >&5 |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5949 | (exit $ac_status); } && |
| 5950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5951 | { (case "(($ac_try" in |
| 5952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5953 | *) ac_try_echo=$ac_try;; |
| 5954 | esac |
| 5955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5956 | (eval "$ac_try") 2>&5 |
| 5957 | ac_status=$? |
| 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5959 | (exit $ac_status); }; } && |
| 5960 | { ac_try='test -s conftest.$ac_objext' |
| 5961 | { (case "(($ac_try" in |
| 5962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5963 | *) ac_try_echo=$ac_try;; |
| 5964 | esac |
| 5965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5966 | (eval "$ac_try") 2>&5 |
| 5967 | ac_status=$? |
| 5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5969 | (exit $ac_status); }; }; then |
| 5970 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5971 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5972 | echo "$as_me: failed program was:" >&5 |
| 5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5974 | |
| 5975 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5976 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5977 | cat >conftest.$ac_ext <<_ACEOF |
| 5978 | /* confdefs.h. */ |
| 5979 | _ACEOF |
| 5980 | cat confdefs.h >>conftest.$ac_ext |
| 5981 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5982 | /* end confdefs.h. */ |
| 5983 | |
| 5984 | int |
| 5985 | main () |
| 5986 | { |
| 5987 | |
| 5988 | ; |
| 5989 | return 0; |
| 5990 | } |
| 5991 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5992 | rm -f conftest.$ac_objext |
| 5993 | if { (ac_try="$ac_compile" |
| 5994 | case "(($ac_try" in |
| 5995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5996 | *) ac_try_echo=$ac_try;; |
| 5997 | esac |
| 5998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5999 | (eval "$ac_compile") 2>conftest.er1 |
| 6000 | ac_status=$? |
| 6001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6002 | rm -f conftest.er1 |
| 6003 | cat conftest.err >&5 |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); } && |
| 6006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6007 | { (case "(($ac_try" in |
| 6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6009 | *) ac_try_echo=$ac_try;; |
| 6010 | esac |
| 6011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6012 | (eval "$ac_try") 2>&5 |
| 6013 | ac_status=$? |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); }; } && |
| 6016 | { ac_try='test -s conftest.$ac_objext' |
| 6017 | { (case "(($ac_try" in |
| 6018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6019 | *) ac_try_echo=$ac_try;; |
| 6020 | esac |
| 6021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6022 | (eval "$ac_try") 2>&5 |
| 6023 | ac_status=$? |
| 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6025 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6026 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6027 | else |
| 6028 | echo "$as_me: failed program was:" >&5 |
| 6029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6030 | |
| 6031 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6035 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6041 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6043 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6044 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6045 | if test "$ac_test_CFLAGS" = set; then |
| 6046 | CFLAGS=$ac_save_CFLAGS |
| 6047 | elif test $ac_cv_prog_cc_g = yes; then |
| 6048 | if test "$GCC" = yes; then |
| 6049 | CFLAGS="-g -O2" |
| 6050 | else |
| 6051 | CFLAGS="-g" |
| 6052 | fi |
| 6053 | else |
| 6054 | if test "$GCC" = yes; then |
| 6055 | CFLAGS="-O2" |
| 6056 | else |
| 6057 | CFLAGS= |
| 6058 | fi |
| 6059 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6060 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6061 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6062 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6064 | else |
| 6065 | ac_cv_prog_cc_c89=no |
| 6066 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6067 | cat >conftest.$ac_ext <<_ACEOF |
| 6068 | /* confdefs.h. */ |
| 6069 | _ACEOF |
| 6070 | cat confdefs.h >>conftest.$ac_ext |
| 6071 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6072 | /* end confdefs.h. */ |
| 6073 | #include <stdarg.h> |
| 6074 | #include <stdio.h> |
| 6075 | #include <sys/types.h> |
| 6076 | #include <sys/stat.h> |
| 6077 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6078 | struct buf { int x; }; |
| 6079 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6080 | static char *e (p, i) |
| 6081 | char **p; |
| 6082 | int i; |
| 6083 | { |
| 6084 | return p[i]; |
| 6085 | } |
| 6086 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6087 | { |
| 6088 | char *s; |
| 6089 | va_list v; |
| 6090 | va_start (v,p); |
| 6091 | s = g (p, va_arg (v,int)); |
| 6092 | va_end (v); |
| 6093 | return s; |
| 6094 | } |
| 6095 | |
| 6096 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6097 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6098 | These don't provoke an error unfortunately, instead are silently treated |
| 6099 | as 'x'. The following induces an error, until -std is added to get |
| 6100 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6101 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6102 | that's true only with -std. */ |
| 6103 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6104 | |
| 6105 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6106 | inside strings and character constants. */ |
| 6107 | #define FOO(x) 'x' |
| 6108 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6109 | |
| 6110 | int test (int i, double x); |
| 6111 | struct s1 {int (*f) (int a);}; |
| 6112 | struct s2 {int (*f) (double a);}; |
| 6113 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6114 | int argc; |
| 6115 | char **argv; |
| 6116 | int |
| 6117 | main () |
| 6118 | { |
| 6119 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6120 | ; |
| 6121 | return 0; |
| 6122 | } |
| 6123 | _ACEOF |
| 6124 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6125 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6126 | do |
| 6127 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6128 | rm -f conftest.$ac_objext |
| 6129 | if { (ac_try="$ac_compile" |
| 6130 | case "(($ac_try" in |
| 6131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6132 | *) ac_try_echo=$ac_try;; |
| 6133 | esac |
| 6134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6135 | (eval "$ac_compile") 2>conftest.er1 |
| 6136 | ac_status=$? |
| 6137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6138 | rm -f conftest.er1 |
| 6139 | cat conftest.err >&5 |
| 6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6141 | (exit $ac_status); } && |
| 6142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6143 | { (case "(($ac_try" in |
| 6144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6145 | *) ac_try_echo=$ac_try;; |
| 6146 | esac |
| 6147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6148 | (eval "$ac_try") 2>&5 |
| 6149 | ac_status=$? |
| 6150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6151 | (exit $ac_status); }; } && |
| 6152 | { ac_try='test -s conftest.$ac_objext' |
| 6153 | { (case "(($ac_try" in |
| 6154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6155 | *) ac_try_echo=$ac_try;; |
| 6156 | esac |
| 6157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6158 | (eval "$ac_try") 2>&5 |
| 6159 | ac_status=$? |
| 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6162 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6163 | else |
| 6164 | echo "$as_me: failed program was:" >&5 |
| 6165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6166 | |
| 6167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6168 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6170 | rm -f core conftest.err conftest.$ac_objext |
| 6171 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6172 | done |
| 6173 | rm -f conftest.$ac_ext |
| 6174 | CC=$ac_save_CC |
| 6175 | |
| 6176 | fi |
| 6177 | # AC_CACHE_VAL |
| 6178 | case "x$ac_cv_prog_cc_c89" in |
| 6179 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6180 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6181 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6182 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6183 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6184 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6185 | *) |
| 6186 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6187 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6188 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6189 | esac |
| 6190 | |
| 6191 | |
| 6192 | ac_ext=c |
| 6193 | ac_cpp='$CPP $CPPFLAGS' |
| 6194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6197 | |
| 6198 | ac_ext=cpp |
| 6199 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6203 | if test -z "$CXX"; then |
| 6204 | if test -n "$CCC"; then |
| 6205 | CXX=$CCC |
| 6206 | else |
| 6207 | if test -n "$ac_tool_prefix"; then |
| 6208 | for ac_prog in g++ |
| 6209 | do |
| 6210 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6211 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6212 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6214 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6216 | else |
| 6217 | if test -n "$CXX"; then |
| 6218 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6219 | else |
| 6220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6221 | for as_dir in $PATH |
| 6222 | do |
| 6223 | IFS=$as_save_IFS |
| 6224 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6226 | 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] | 6227 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6229 | break 2 |
| 6230 | fi |
| 6231 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6232 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6233 | IFS=$as_save_IFS |
| 6234 | |
| 6235 | fi |
| 6236 | fi |
| 6237 | CXX=$ac_cv_prog_CXX |
| 6238 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6239 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6240 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6241 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6243 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6244 | fi |
| 6245 | |
| 6246 | |
| 6247 | test -n "$CXX" && break |
| 6248 | done |
| 6249 | fi |
| 6250 | if test -z "$CXX"; then |
| 6251 | ac_ct_CXX=$CXX |
| 6252 | for ac_prog in g++ |
| 6253 | do |
| 6254 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6255 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6256 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6258 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6260 | else |
| 6261 | if test -n "$ac_ct_CXX"; then |
| 6262 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6263 | else |
| 6264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6265 | for as_dir in $PATH |
| 6266 | do |
| 6267 | IFS=$as_save_IFS |
| 6268 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6270 | 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] | 6271 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6273 | break 2 |
| 6274 | fi |
| 6275 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6276 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6277 | IFS=$as_save_IFS |
| 6278 | |
| 6279 | fi |
| 6280 | fi |
| 6281 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6282 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6283 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6284 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6285 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6286 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6287 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6288 | fi |
| 6289 | |
| 6290 | |
| 6291 | test -n "$ac_ct_CXX" && break |
| 6292 | done |
| 6293 | |
| 6294 | if test "x$ac_ct_CXX" = x; then |
| 6295 | CXX="g++" |
| 6296 | else |
| 6297 | case $cross_compiling:$ac_tool_warned in |
| 6298 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6299 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6300 | whose name does not start with the host triplet. If you think this |
| 6301 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6302 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6303 | whose name does not start with the host triplet. If you think this |
| 6304 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6305 | ac_tool_warned=yes ;; |
| 6306 | esac |
| 6307 | CXX=$ac_ct_CXX |
| 6308 | fi |
| 6309 | fi |
| 6310 | |
| 6311 | fi |
| 6312 | fi |
| 6313 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6314 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6315 | ac_compiler=`set X $ac_compile; echo $2` |
| 6316 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | case "(($ac_try" in |
| 6318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6319 | *) ac_try_echo=$ac_try;; |
| 6320 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6322 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6323 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6325 | (exit $ac_status); } |
| 6326 | { (ac_try="$ac_compiler -v >&5" |
| 6327 | case "(($ac_try" in |
| 6328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6329 | *) ac_try_echo=$ac_try;; |
| 6330 | esac |
| 6331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6332 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6333 | ac_status=$? |
| 6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6335 | (exit $ac_status); } |
| 6336 | { (ac_try="$ac_compiler -V >&5" |
| 6337 | case "(($ac_try" in |
| 6338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6339 | *) ac_try_echo=$ac_try;; |
| 6340 | esac |
| 6341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6342 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6343 | ac_status=$? |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6345 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6346 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6347 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6348 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6349 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6351 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6352 | cat >conftest.$ac_ext <<_ACEOF |
| 6353 | /* confdefs.h. */ |
| 6354 | _ACEOF |
| 6355 | cat confdefs.h >>conftest.$ac_ext |
| 6356 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6357 | /* end confdefs.h. */ |
| 6358 | |
| 6359 | int |
| 6360 | main () |
| 6361 | { |
| 6362 | #ifndef __GNUC__ |
| 6363 | choke me |
| 6364 | #endif |
| 6365 | |
| 6366 | ; |
| 6367 | return 0; |
| 6368 | } |
| 6369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6370 | rm -f conftest.$ac_objext |
| 6371 | if { (ac_try="$ac_compile" |
| 6372 | case "(($ac_try" in |
| 6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6374 | *) ac_try_echo=$ac_try;; |
| 6375 | esac |
| 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6377 | (eval "$ac_compile") 2>conftest.er1 |
| 6378 | ac_status=$? |
| 6379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6380 | rm -f conftest.er1 |
| 6381 | cat conftest.err >&5 |
| 6382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6383 | (exit $ac_status); } && |
| 6384 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6385 | { (case "(($ac_try" in |
| 6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6387 | *) ac_try_echo=$ac_try;; |
| 6388 | esac |
| 6389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6390 | (eval "$ac_try") 2>&5 |
| 6391 | ac_status=$? |
| 6392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6393 | (exit $ac_status); }; } && |
| 6394 | { ac_try='test -s conftest.$ac_objext' |
| 6395 | { (case "(($ac_try" in |
| 6396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6397 | *) ac_try_echo=$ac_try;; |
| 6398 | esac |
| 6399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6400 | (eval "$ac_try") 2>&5 |
| 6401 | ac_status=$? |
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6404 | ac_compiler_gnu=yes |
| 6405 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6406 | echo "$as_me: failed program was:" >&5 |
| 6407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6408 | |
| 6409 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6410 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6413 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6414 | |
| 6415 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6416 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6417 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6418 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6419 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6420 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6421 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6422 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6423 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6425 | else |
| 6426 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6427 | ac_cxx_werror_flag=yes |
| 6428 | ac_cv_prog_cxx_g=no |
| 6429 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6430 | cat >conftest.$ac_ext <<_ACEOF |
| 6431 | /* confdefs.h. */ |
| 6432 | _ACEOF |
| 6433 | cat confdefs.h >>conftest.$ac_ext |
| 6434 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6435 | /* end confdefs.h. */ |
| 6436 | |
| 6437 | int |
| 6438 | main () |
| 6439 | { |
| 6440 | |
| 6441 | ; |
| 6442 | return 0; |
| 6443 | } |
| 6444 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6445 | rm -f conftest.$ac_objext |
| 6446 | if { (ac_try="$ac_compile" |
| 6447 | case "(($ac_try" in |
| 6448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6449 | *) ac_try_echo=$ac_try;; |
| 6450 | esac |
| 6451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6452 | (eval "$ac_compile") 2>conftest.er1 |
| 6453 | ac_status=$? |
| 6454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6455 | rm -f conftest.er1 |
| 6456 | cat conftest.err >&5 |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); } && |
| 6459 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6460 | { (case "(($ac_try" in |
| 6461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6462 | *) ac_try_echo=$ac_try;; |
| 6463 | esac |
| 6464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6465 | (eval "$ac_try") 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); }; } && |
| 6469 | { ac_try='test -s conftest.$ac_objext' |
| 6470 | { (case "(($ac_try" in |
| 6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6472 | *) ac_try_echo=$ac_try;; |
| 6473 | esac |
| 6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6475 | (eval "$ac_try") 2>&5 |
| 6476 | ac_status=$? |
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6478 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | ac_cv_prog_cxx_g=yes |
| 6480 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6481 | echo "$as_me: failed program was:" >&5 |
| 6482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6483 | |
| 6484 | CXXFLAGS="" |
| 6485 | cat >conftest.$ac_ext <<_ACEOF |
| 6486 | /* confdefs.h. */ |
| 6487 | _ACEOF |
| 6488 | cat confdefs.h >>conftest.$ac_ext |
| 6489 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6490 | /* end confdefs.h. */ |
| 6491 | |
| 6492 | int |
| 6493 | main () |
| 6494 | { |
| 6495 | |
| 6496 | ; |
| 6497 | return 0; |
| 6498 | } |
| 6499 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6500 | rm -f conftest.$ac_objext |
| 6501 | if { (ac_try="$ac_compile" |
| 6502 | case "(($ac_try" in |
| 6503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6504 | *) ac_try_echo=$ac_try;; |
| 6505 | esac |
| 6506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6507 | (eval "$ac_compile") 2>conftest.er1 |
| 6508 | ac_status=$? |
| 6509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6510 | rm -f conftest.er1 |
| 6511 | cat conftest.err >&5 |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6513 | (exit $ac_status); } && |
| 6514 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6515 | { (case "(($ac_try" in |
| 6516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6517 | *) ac_try_echo=$ac_try;; |
| 6518 | esac |
| 6519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6520 | (eval "$ac_try") 2>&5 |
| 6521 | ac_status=$? |
| 6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6523 | (exit $ac_status); }; } && |
| 6524 | { ac_try='test -s conftest.$ac_objext' |
| 6525 | { (case "(($ac_try" in |
| 6526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6527 | *) ac_try_echo=$ac_try;; |
| 6528 | esac |
| 6529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6530 | (eval "$ac_try") 2>&5 |
| 6531 | ac_status=$? |
| 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6533 | (exit $ac_status); }; }; then |
| 6534 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6535 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6536 | echo "$as_me: failed program was:" >&5 |
| 6537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6538 | |
| 6539 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6540 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6541 | cat >conftest.$ac_ext <<_ACEOF |
| 6542 | /* confdefs.h. */ |
| 6543 | _ACEOF |
| 6544 | cat confdefs.h >>conftest.$ac_ext |
| 6545 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6546 | /* end confdefs.h. */ |
| 6547 | |
| 6548 | int |
| 6549 | main () |
| 6550 | { |
| 6551 | |
| 6552 | ; |
| 6553 | return 0; |
| 6554 | } |
| 6555 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6556 | rm -f conftest.$ac_objext |
| 6557 | if { (ac_try="$ac_compile" |
| 6558 | case "(($ac_try" in |
| 6559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6560 | *) ac_try_echo=$ac_try;; |
| 6561 | esac |
| 6562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6563 | (eval "$ac_compile") 2>conftest.er1 |
| 6564 | ac_status=$? |
| 6565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6566 | rm -f conftest.er1 |
| 6567 | cat conftest.err >&5 |
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); } && |
| 6570 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6571 | { (case "(($ac_try" in |
| 6572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6573 | *) ac_try_echo=$ac_try;; |
| 6574 | esac |
| 6575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6576 | (eval "$ac_try") 2>&5 |
| 6577 | ac_status=$? |
| 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6579 | (exit $ac_status); }; } && |
| 6580 | { ac_try='test -s conftest.$ac_objext' |
| 6581 | { (case "(($ac_try" in |
| 6582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6583 | *) ac_try_echo=$ac_try;; |
| 6584 | esac |
| 6585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6586 | (eval "$ac_try") 2>&5 |
| 6587 | ac_status=$? |
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6590 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6591 | else |
| 6592 | echo "$as_me: failed program was:" >&5 |
| 6593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6594 | |
| 6595 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6596 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6599 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6602 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6605 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6606 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6607 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6608 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6609 | if test "$ac_test_CXXFLAGS" = set; then |
| 6610 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6611 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6612 | if test "$GXX" = yes; then |
| 6613 | CXXFLAGS="-g -O2" |
| 6614 | else |
| 6615 | CXXFLAGS="-g" |
| 6616 | fi |
| 6617 | else |
| 6618 | if test "$GXX" = yes; then |
| 6619 | CXXFLAGS="-O2" |
| 6620 | else |
| 6621 | CXXFLAGS= |
| 6622 | fi |
| 6623 | fi |
| 6624 | ac_ext=c |
| 6625 | ac_cpp='$CPP $CPPFLAGS' |
| 6626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6630 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6631 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6632 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6633 | if test "${lt_cv_path_NM+set}" = set; then |
| 6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6635 | else |
| 6636 | if test -n "$NM"; then |
| 6637 | # Let the user override the test. |
| 6638 | lt_cv_path_NM="$NM" |
| 6639 | else |
| 6640 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6641 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6642 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6643 | fi |
| 6644 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6645 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6646 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6647 | IFS="$lt_save_ifs" |
| 6648 | test -z "$ac_dir" && ac_dir=. |
| 6649 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6650 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6651 | # Check to see if the nm accepts a BSD-compat flag. |
| 6652 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6653 | # nm: unknown option "B" ignored |
| 6654 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6655 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6656 | */dev/null* | *'Invalid file or object type'*) |
| 6657 | lt_cv_path_NM="$tmp_nm -B" |
| 6658 | break |
| 6659 | ;; |
| 6660 | *) |
| 6661 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6662 | */dev/null*) |
| 6663 | lt_cv_path_NM="$tmp_nm -p" |
| 6664 | break |
| 6665 | ;; |
| 6666 | *) |
| 6667 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6668 | continue # so that we can try to find one that supports BSD flags |
| 6669 | ;; |
| 6670 | esac |
| 6671 | ;; |
| 6672 | esac |
| 6673 | fi |
| 6674 | done |
| 6675 | IFS="$lt_save_ifs" |
| 6676 | done |
| 6677 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6678 | fi |
| 6679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6681 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6682 | NM="$lt_cv_path_NM" |
| 6683 | |
| 6684 | |
| 6685 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6686 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6687 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6688 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6690 | else |
| 6691 | llvm_cv_gnu_make_command='' |
| 6692 | for a in "$MAKE" make gmake gnumake ; do |
| 6693 | if test -z "$a" ; then continue ; fi ; |
| 6694 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6695 | then |
| 6696 | llvm_cv_gnu_make_command=$a ; |
| 6697 | break; |
| 6698 | fi |
| 6699 | done |
| 6700 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6701 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6702 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6703 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6704 | ifGNUmake='' ; |
| 6705 | else |
| 6706 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6707 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6708 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6709 | fi |
| 6710 | |
| 6711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6712 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6713 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6714 | LN_S=$as_ln_s |
| 6715 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6716 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6717 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6718 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6720 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6721 | fi |
| 6722 | |
| 6723 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6724 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6725 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6727 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6729 | else |
| 6730 | case $CMP in |
| 6731 | [\\/]* | ?:[\\/]*) |
| 6732 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6733 | ;; |
| 6734 | *) |
| 6735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6736 | for as_dir in $PATH |
| 6737 | do |
| 6738 | IFS=$as_save_IFS |
| 6739 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6740 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6741 | 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] | 6742 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6744 | break 2 |
| 6745 | fi |
| 6746 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6747 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6748 | IFS=$as_save_IFS |
| 6749 | |
| 6750 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6751 | ;; |
| 6752 | esac |
| 6753 | fi |
| 6754 | CMP=$ac_cv_path_CMP |
| 6755 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6756 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6757 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6758 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6760 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6761 | fi |
| 6762 | |
| 6763 | |
| 6764 | # Extract the first word of "cp", so it can be a program name with args. |
| 6765 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6768 | if test "${ac_cv_path_CP+set}" = set; then |
| 6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6770 | else |
| 6771 | case $CP in |
| 6772 | [\\/]* | ?:[\\/]*) |
| 6773 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6774 | ;; |
| 6775 | *) |
| 6776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6777 | for as_dir in $PATH |
| 6778 | do |
| 6779 | IFS=$as_save_IFS |
| 6780 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6782 | 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] | 6783 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6785 | break 2 |
| 6786 | fi |
| 6787 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6788 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6789 | IFS=$as_save_IFS |
| 6790 | |
| 6791 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6792 | ;; |
| 6793 | esac |
| 6794 | fi |
| 6795 | CP=$ac_cv_path_CP |
| 6796 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6797 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6798 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6801 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6802 | fi |
| 6803 | |
| 6804 | |
| 6805 | # Extract the first word of "date", so it can be a program name with args. |
| 6806 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6807 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6809 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6811 | else |
| 6812 | case $DATE in |
| 6813 | [\\/]* | ?:[\\/]*) |
| 6814 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6815 | ;; |
| 6816 | *) |
| 6817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6818 | for as_dir in $PATH |
| 6819 | do |
| 6820 | IFS=$as_save_IFS |
| 6821 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6822 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6823 | 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] | 6824 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6826 | break 2 |
| 6827 | fi |
| 6828 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6829 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6830 | IFS=$as_save_IFS |
| 6831 | |
| 6832 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6833 | ;; |
| 6834 | esac |
| 6835 | fi |
| 6836 | DATE=$ac_cv_path_DATE |
| 6837 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6838 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6839 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6840 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6842 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6843 | fi |
| 6844 | |
| 6845 | |
| 6846 | # Extract the first word of "find", so it can be a program name with args. |
| 6847 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6848 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6849 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6850 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6852 | else |
| 6853 | case $FIND in |
| 6854 | [\\/]* | ?:[\\/]*) |
| 6855 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6856 | ;; |
| 6857 | *) |
| 6858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6859 | for as_dir in $PATH |
| 6860 | do |
| 6861 | IFS=$as_save_IFS |
| 6862 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6864 | 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] | 6865 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6867 | break 2 |
| 6868 | fi |
| 6869 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6870 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6871 | IFS=$as_save_IFS |
| 6872 | |
| 6873 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6874 | ;; |
| 6875 | esac |
| 6876 | fi |
| 6877 | FIND=$ac_cv_path_FIND |
| 6878 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6879 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6880 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6883 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6884 | fi |
| 6885 | |
| 6886 | |
| 6887 | # Extract the first word of "grep", so it can be a program name with args. |
| 6888 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6891 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6893 | else |
| 6894 | case $GREP in |
| 6895 | [\\/]* | ?:[\\/]*) |
| 6896 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6897 | ;; |
| 6898 | *) |
| 6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6900 | for as_dir in $PATH |
| 6901 | do |
| 6902 | IFS=$as_save_IFS |
| 6903 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6904 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6905 | 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] | 6906 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6908 | break 2 |
| 6909 | fi |
| 6910 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6911 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6912 | IFS=$as_save_IFS |
| 6913 | |
| 6914 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6915 | ;; |
| 6916 | esac |
| 6917 | fi |
| 6918 | GREP=$ac_cv_path_GREP |
| 6919 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6921 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6923 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6924 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | fi |
| 6926 | |
| 6927 | |
| 6928 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6929 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6930 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6932 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6934 | else |
| 6935 | case $MKDIR in |
| 6936 | [\\/]* | ?:[\\/]*) |
| 6937 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6938 | ;; |
| 6939 | *) |
| 6940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6941 | for as_dir in $PATH |
| 6942 | do |
| 6943 | IFS=$as_save_IFS |
| 6944 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6946 | 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] | 6947 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | break 2 |
| 6950 | fi |
| 6951 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6952 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6953 | IFS=$as_save_IFS |
| 6954 | |
| 6955 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6956 | ;; |
| 6957 | esac |
| 6958 | fi |
| 6959 | MKDIR=$ac_cv_path_MKDIR |
| 6960 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6961 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6962 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6963 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6965 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6966 | fi |
| 6967 | |
| 6968 | |
| 6969 | # Extract the first word of "mv", so it can be a program name with args. |
| 6970 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6971 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6973 | if test "${ac_cv_path_MV+set}" = set; then |
| 6974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6975 | else |
| 6976 | case $MV in |
| 6977 | [\\/]* | ?:[\\/]*) |
| 6978 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6979 | ;; |
| 6980 | *) |
| 6981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6982 | for as_dir in $PATH |
| 6983 | do |
| 6984 | IFS=$as_save_IFS |
| 6985 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6986 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6987 | 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] | 6988 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6990 | break 2 |
| 6991 | fi |
| 6992 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6993 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6994 | IFS=$as_save_IFS |
| 6995 | |
| 6996 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6997 | ;; |
| 6998 | esac |
| 6999 | fi |
| 7000 | MV=$ac_cv_path_MV |
| 7001 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7002 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7003 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7004 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7006 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | fi |
| 7008 | |
| 7009 | |
| 7010 | if test -n "$ac_tool_prefix"; then |
| 7011 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7012 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7013 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7015 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7017 | else |
| 7018 | if test -n "$RANLIB"; then |
| 7019 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7020 | else |
| 7021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7022 | for as_dir in $PATH |
| 7023 | do |
| 7024 | IFS=$as_save_IFS |
| 7025 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7027 | 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] | 7028 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7030 | break 2 |
| 7031 | fi |
| 7032 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7033 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7034 | IFS=$as_save_IFS |
| 7035 | |
| 7036 | fi |
| 7037 | fi |
| 7038 | RANLIB=$ac_cv_prog_RANLIB |
| 7039 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7040 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7041 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7042 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7044 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7045 | fi |
| 7046 | |
| 7047 | |
| 7048 | fi |
| 7049 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7050 | ac_ct_RANLIB=$RANLIB |
| 7051 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7052 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7053 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7055 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7057 | else |
| 7058 | if test -n "$ac_ct_RANLIB"; then |
| 7059 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7060 | else |
| 7061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7062 | for as_dir in $PATH |
| 7063 | do |
| 7064 | IFS=$as_save_IFS |
| 7065 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7067 | 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] | 7068 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7070 | break 2 |
| 7071 | fi |
| 7072 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7073 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7074 | IFS=$as_save_IFS |
| 7075 | |
| 7076 | fi |
| 7077 | fi |
| 7078 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7079 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7080 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7081 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7082 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7084 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7085 | fi |
| 7086 | |
| 7087 | if test "x$ac_ct_RANLIB" = x; then |
| 7088 | RANLIB=":" |
| 7089 | else |
| 7090 | case $cross_compiling:$ac_tool_warned in |
| 7091 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7093 | whose name does not start with the host triplet. If you think this |
| 7094 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7095 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7096 | whose name does not start with the host triplet. If you think this |
| 7097 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7098 | ac_tool_warned=yes ;; |
| 7099 | esac |
| 7100 | RANLIB=$ac_ct_RANLIB |
| 7101 | fi |
| 7102 | else |
| 7103 | RANLIB="$ac_cv_prog_RANLIB" |
| 7104 | fi |
| 7105 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7106 | if test -n "$ac_tool_prefix"; then |
| 7107 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7108 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7109 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7111 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7113 | else |
| 7114 | if test -n "$AR"; then |
| 7115 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7116 | else |
| 7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7118 | for as_dir in $PATH |
| 7119 | do |
| 7120 | IFS=$as_save_IFS |
| 7121 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7122 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7124 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7126 | break 2 |
| 7127 | fi |
| 7128 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7129 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7130 | IFS=$as_save_IFS |
| 7131 | |
| 7132 | fi |
| 7133 | fi |
| 7134 | AR=$ac_cv_prog_AR |
| 7135 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7136 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7137 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7138 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7139 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7140 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7141 | fi |
| 7142 | |
| 7143 | |
| 7144 | fi |
| 7145 | if test -z "$ac_cv_prog_AR"; then |
| 7146 | ac_ct_AR=$AR |
| 7147 | # Extract the first word of "ar", so it can be a program name with args. |
| 7148 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7151 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7153 | else |
| 7154 | if test -n "$ac_ct_AR"; then |
| 7155 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7156 | else |
| 7157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7158 | for as_dir in $PATH |
| 7159 | do |
| 7160 | IFS=$as_save_IFS |
| 7161 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7164 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7166 | break 2 |
| 7167 | fi |
| 7168 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7169 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7170 | IFS=$as_save_IFS |
| 7171 | |
| 7172 | fi |
| 7173 | fi |
| 7174 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7175 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7176 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7177 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7178 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7180 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7181 | fi |
| 7182 | |
| 7183 | if test "x$ac_ct_AR" = x; then |
| 7184 | AR="false" |
| 7185 | else |
| 7186 | case $cross_compiling:$ac_tool_warned in |
| 7187 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7189 | whose name does not start with the host triplet. If you think this |
| 7190 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7191 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7192 | whose name does not start with the host triplet. If you think this |
| 7193 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7194 | ac_tool_warned=yes ;; |
| 7195 | esac |
| 7196 | AR=$ac_ct_AR |
| 7197 | fi |
| 7198 | else |
| 7199 | AR="$ac_cv_prog_AR" |
| 7200 | fi |
| 7201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7202 | # Extract the first word of "rm", so it can be a program name with args. |
| 7203 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7204 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7206 | if test "${ac_cv_path_RM+set}" = set; then |
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7208 | else |
| 7209 | case $RM in |
| 7210 | [\\/]* | ?:[\\/]*) |
| 7211 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7212 | ;; |
| 7213 | *) |
| 7214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7215 | for as_dir in $PATH |
| 7216 | do |
| 7217 | IFS=$as_save_IFS |
| 7218 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7219 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7220 | 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] | 7221 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7223 | break 2 |
| 7224 | fi |
| 7225 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7226 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7227 | IFS=$as_save_IFS |
| 7228 | |
| 7229 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7230 | ;; |
| 7231 | esac |
| 7232 | fi |
| 7233 | RM=$ac_cv_path_RM |
| 7234 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7235 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7236 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7237 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7239 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7240 | fi |
| 7241 | |
| 7242 | |
| 7243 | # Extract the first word of "sed", so it can be a program name with args. |
| 7244 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7247 | if test "${ac_cv_path_SED+set}" = set; then |
| 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7249 | else |
| 7250 | case $SED in |
| 7251 | [\\/]* | ?:[\\/]*) |
| 7252 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7253 | ;; |
| 7254 | *) |
| 7255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7256 | for as_dir in $PATH |
| 7257 | do |
| 7258 | IFS=$as_save_IFS |
| 7259 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7261 | 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] | 7262 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | break 2 |
| 7265 | fi |
| 7266 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7267 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7268 | IFS=$as_save_IFS |
| 7269 | |
| 7270 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7271 | ;; |
| 7272 | esac |
| 7273 | fi |
| 7274 | SED=$ac_cv_path_SED |
| 7275 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7276 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7277 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7278 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7280 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7281 | fi |
| 7282 | |
| 7283 | |
| 7284 | # Extract the first word of "tar", so it can be a program name with args. |
| 7285 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7288 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7290 | else |
| 7291 | case $TAR in |
| 7292 | [\\/]* | ?:[\\/]*) |
| 7293 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7294 | ;; |
| 7295 | *) |
| 7296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7297 | for as_dir in $PATH |
| 7298 | do |
| 7299 | IFS=$as_save_IFS |
| 7300 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7301 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7302 | 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] | 7303 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7305 | break 2 |
| 7306 | fi |
| 7307 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7308 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7309 | IFS=$as_save_IFS |
| 7310 | |
| 7311 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7312 | ;; |
| 7313 | esac |
| 7314 | fi |
| 7315 | TAR=$ac_cv_path_TAR |
| 7316 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7317 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7318 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7319 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7321 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7322 | fi |
| 7323 | |
| 7324 | |
| 7325 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7326 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7329 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7331 | else |
| 7332 | case $BINPWD in |
| 7333 | [\\/]* | ?:[\\/]*) |
| 7334 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7335 | ;; |
| 7336 | *) |
| 7337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7338 | for as_dir in $PATH |
| 7339 | do |
| 7340 | IFS=$as_save_IFS |
| 7341 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7342 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7343 | 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] | 7344 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7346 | break 2 |
| 7347 | fi |
| 7348 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7349 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7350 | IFS=$as_save_IFS |
| 7351 | |
| 7352 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7353 | ;; |
| 7354 | esac |
| 7355 | fi |
| 7356 | BINPWD=$ac_cv_path_BINPWD |
| 7357 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7358 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7359 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7360 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7362 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | fi |
| 7364 | |
| 7365 | |
| 7366 | |
| 7367 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7368 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7369 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7371 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7373 | else |
| 7374 | case $GRAPHVIZ in |
| 7375 | [\\/]* | ?:[\\/]*) |
| 7376 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7377 | ;; |
| 7378 | *) |
| 7379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7380 | for as_dir in $PATH |
| 7381 | do |
| 7382 | IFS=$as_save_IFS |
| 7383 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7385 | 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] | 7386 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7388 | break 2 |
| 7389 | fi |
| 7390 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7391 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7392 | IFS=$as_save_IFS |
| 7393 | |
| 7394 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7395 | ;; |
| 7396 | esac |
| 7397 | fi |
| 7398 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7399 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7400 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7401 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7402 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7403 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7404 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7405 | fi |
| 7406 | |
| 7407 | |
| 7408 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7409 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7410 | cat >>confdefs.h <<\_ACEOF |
| 7411 | #define HAVE_GRAPHVIZ 1 |
| 7412 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7413 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7414 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7415 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7416 | fi |
| 7417 | |
| 7418 | cat >>confdefs.h <<_ACEOF |
| 7419 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7420 | _ACEOF |
| 7421 | |
| 7422 | fi |
| 7423 | # Extract the first word of "dot", so it can be a program name with args. |
| 7424 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7427 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7429 | else |
| 7430 | case $DOT in |
| 7431 | [\\/]* | ?:[\\/]*) |
| 7432 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7433 | ;; |
| 7434 | *) |
| 7435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7436 | for as_dir in $PATH |
| 7437 | do |
| 7438 | IFS=$as_save_IFS |
| 7439 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7441 | 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] | 7442 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7444 | break 2 |
| 7445 | fi |
| 7446 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7447 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7448 | IFS=$as_save_IFS |
| 7449 | |
| 7450 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7451 | ;; |
| 7452 | esac |
| 7453 | fi |
| 7454 | DOT=$ac_cv_path_DOT |
| 7455 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7456 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7457 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7458 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7459 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7460 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7461 | fi |
| 7462 | |
| 7463 | |
| 7464 | if test "$DOT" != "echo dot" ; then |
| 7465 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7466 | cat >>confdefs.h <<\_ACEOF |
| 7467 | #define HAVE_DOT 1 |
| 7468 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7469 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7470 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7471 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7472 | fi |
| 7473 | |
| 7474 | cat >>confdefs.h <<_ACEOF |
| 7475 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7476 | _ACEOF |
| 7477 | |
| 7478 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7479 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7480 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7483 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7485 | else |
| 7486 | case $FDP in |
| 7487 | [\\/]* | ?:[\\/]*) |
| 7488 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7489 | ;; |
| 7490 | *) |
| 7491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7492 | for as_dir in $PATH |
| 7493 | do |
| 7494 | IFS=$as_save_IFS |
| 7495 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7496 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7498 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7500 | break 2 |
| 7501 | fi |
| 7502 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7503 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7504 | IFS=$as_save_IFS |
| 7505 | |
| 7506 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7507 | ;; |
| 7508 | esac |
| 7509 | fi |
| 7510 | FDP=$ac_cv_path_FDP |
| 7511 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7512 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7513 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7514 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7516 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7517 | fi |
| 7518 | |
| 7519 | |
| 7520 | if test "$FDP" != "echo fdp" ; then |
| 7521 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7522 | cat >>confdefs.h <<\_ACEOF |
| 7523 | #define HAVE_FDP 1 |
| 7524 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7525 | |
| 7526 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7527 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7528 | fi |
| 7529 | |
| 7530 | cat >>confdefs.h <<_ACEOF |
| 7531 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7532 | _ACEOF |
| 7533 | |
| 7534 | fi |
| 7535 | # Extract the first word of "neato", so it can be a program name with args. |
| 7536 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7539 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7541 | else |
| 7542 | case $NEATO in |
| 7543 | [\\/]* | ?:[\\/]*) |
| 7544 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7545 | ;; |
| 7546 | *) |
| 7547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7548 | for as_dir in $PATH |
| 7549 | do |
| 7550 | IFS=$as_save_IFS |
| 7551 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7554 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7556 | break 2 |
| 7557 | fi |
| 7558 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7559 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7560 | IFS=$as_save_IFS |
| 7561 | |
| 7562 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7563 | ;; |
| 7564 | esac |
| 7565 | fi |
| 7566 | NEATO=$ac_cv_path_NEATO |
| 7567 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7568 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7569 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7570 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7571 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7572 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7573 | fi |
| 7574 | |
| 7575 | |
| 7576 | if test "$NEATO" != "echo neato" ; then |
| 7577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7578 | cat >>confdefs.h <<\_ACEOF |
| 7579 | #define HAVE_NEATO 1 |
| 7580 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7581 | |
| 7582 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7583 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7584 | fi |
| 7585 | |
| 7586 | cat >>confdefs.h <<_ACEOF |
| 7587 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7588 | _ACEOF |
| 7589 | |
| 7590 | fi |
| 7591 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7592 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7595 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7597 | else |
| 7598 | case $TWOPI in |
| 7599 | [\\/]* | ?:[\\/]*) |
| 7600 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7601 | ;; |
| 7602 | *) |
| 7603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7604 | for as_dir in $PATH |
| 7605 | do |
| 7606 | IFS=$as_save_IFS |
| 7607 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7610 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7612 | break 2 |
| 7613 | fi |
| 7614 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7615 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7616 | IFS=$as_save_IFS |
| 7617 | |
| 7618 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7619 | ;; |
| 7620 | esac |
| 7621 | fi |
| 7622 | TWOPI=$ac_cv_path_TWOPI |
| 7623 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7624 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7625 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7626 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7628 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7629 | fi |
| 7630 | |
| 7631 | |
| 7632 | if test "$TWOPI" != "echo twopi" ; then |
| 7633 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7634 | cat >>confdefs.h <<\_ACEOF |
| 7635 | #define HAVE_TWOPI 1 |
| 7636 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7637 | |
| 7638 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7639 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7640 | fi |
| 7641 | |
| 7642 | cat >>confdefs.h <<_ACEOF |
| 7643 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7644 | _ACEOF |
| 7645 | |
| 7646 | fi |
| 7647 | # Extract the first word of "circo", so it can be a program name with args. |
| 7648 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7649 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7651 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7653 | else |
| 7654 | case $CIRCO in |
| 7655 | [\\/]* | ?:[\\/]*) |
| 7656 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7657 | ;; |
| 7658 | *) |
| 7659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7660 | for as_dir in $PATH |
| 7661 | do |
| 7662 | IFS=$as_save_IFS |
| 7663 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7666 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7668 | break 2 |
| 7669 | fi |
| 7670 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7671 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7672 | IFS=$as_save_IFS |
| 7673 | |
| 7674 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7675 | ;; |
| 7676 | esac |
| 7677 | fi |
| 7678 | CIRCO=$ac_cv_path_CIRCO |
| 7679 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7680 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7681 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7682 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7683 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7684 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7685 | fi |
| 7686 | |
| 7687 | |
| 7688 | if test "$CIRCO" != "echo circo" ; then |
| 7689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7690 | cat >>confdefs.h <<\_ACEOF |
| 7691 | #define HAVE_CIRCO 1 |
| 7692 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7693 | |
| 7694 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7695 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7696 | fi |
| 7697 | |
| 7698 | cat >>confdefs.h <<_ACEOF |
| 7699 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7700 | _ACEOF |
| 7701 | |
| 7702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7703 | for ac_prog in gv gsview32 |
| 7704 | do |
| 7705 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7706 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7709 | if test "${ac_cv_path_GV+set}" = set; then |
| 7710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7711 | else |
| 7712 | case $GV in |
| 7713 | [\\/]* | ?:[\\/]*) |
| 7714 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7715 | ;; |
| 7716 | *) |
| 7717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7718 | for as_dir in $PATH |
| 7719 | do |
| 7720 | IFS=$as_save_IFS |
| 7721 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7722 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7723 | 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] | 7724 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7726 | break 2 |
| 7727 | fi |
| 7728 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7729 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7730 | IFS=$as_save_IFS |
| 7731 | |
| 7732 | ;; |
| 7733 | esac |
| 7734 | fi |
| 7735 | GV=$ac_cv_path_GV |
| 7736 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7737 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7738 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7739 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7740 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7741 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7742 | fi |
| 7743 | |
| 7744 | |
| 7745 | test -n "$GV" && break |
| 7746 | done |
| 7747 | test -n "$GV" || GV="echo gv" |
| 7748 | |
| 7749 | if test "$GV" != "echo gv" ; then |
| 7750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7751 | cat >>confdefs.h <<\_ACEOF |
| 7752 | #define HAVE_GV 1 |
| 7753 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7755 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7756 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7757 | fi |
| 7758 | |
| 7759 | cat >>confdefs.h <<_ACEOF |
| 7760 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7761 | _ACEOF |
| 7762 | |
| 7763 | fi |
| 7764 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7765 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7768 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7770 | else |
| 7771 | case $DOTTY in |
| 7772 | [\\/]* | ?:[\\/]*) |
| 7773 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7774 | ;; |
| 7775 | *) |
| 7776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7777 | for as_dir in $PATH |
| 7778 | do |
| 7779 | IFS=$as_save_IFS |
| 7780 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7782 | 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] | 7783 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7785 | break 2 |
| 7786 | fi |
| 7787 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7788 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7789 | IFS=$as_save_IFS |
| 7790 | |
| 7791 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7792 | ;; |
| 7793 | esac |
| 7794 | fi |
| 7795 | DOTTY=$ac_cv_path_DOTTY |
| 7796 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7797 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7798 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7800 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7801 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7802 | fi |
| 7803 | |
| 7804 | |
| 7805 | if test "$DOTTY" != "echo dotty" ; then |
| 7806 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7807 | cat >>confdefs.h <<\_ACEOF |
| 7808 | #define HAVE_DOTTY 1 |
| 7809 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7810 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7811 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7812 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7813 | fi |
| 7814 | |
| 7815 | cat >>confdefs.h <<_ACEOF |
| 7816 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7817 | _ACEOF |
| 7818 | |
| 7819 | fi |
| 7820 | |
| 7821 | |
| 7822 | # Extract the first word of "perl", so it can be a program name with args. |
| 7823 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7826 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7828 | else |
| 7829 | case $PERL in |
| 7830 | [\\/]* | ?:[\\/]*) |
| 7831 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7832 | ;; |
| 7833 | *) |
| 7834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7835 | for as_dir in $PATH |
| 7836 | do |
| 7837 | IFS=$as_save_IFS |
| 7838 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7840 | 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] | 7841 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7843 | break 2 |
| 7844 | fi |
| 7845 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7846 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7847 | IFS=$as_save_IFS |
| 7848 | |
| 7849 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7850 | ;; |
| 7851 | esac |
| 7852 | fi |
| 7853 | PERL=$ac_cv_path_PERL |
| 7854 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7855 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7856 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7857 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7858 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7859 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7860 | fi |
| 7861 | |
| 7862 | |
| 7863 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7864 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7865 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7866 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7868 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | else |
| 7870 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7871 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7872 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7873 | fi |
| 7874 | fi |
| 7875 | |
| 7876 | |
| 7877 | if test x"$PERL" = xnone; then |
| 7878 | HAVE_PERL=0 |
| 7879 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7880 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7881 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7882 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7883 | else |
| 7884 | HAVE_PERL=1 |
| 7885 | |
| 7886 | fi |
| 7887 | |
| 7888 | # Find a good install program. We prefer a C program (faster), |
| 7889 | # so one script is as good as another. But avoid the broken or |
| 7890 | # incompatible versions: |
| 7891 | # SysV /etc/install, /usr/sbin/install |
| 7892 | # SunOS /usr/etc/install |
| 7893 | # IRIX /sbin/install |
| 7894 | # AIX /bin/install |
| 7895 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7896 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7897 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7898 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7899 | # OS/2's system install, which has a completely different semantic |
| 7900 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7901 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7902 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7903 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7904 | if test "${ac_cv_path_install+set}" = set; then |
| 7905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7906 | else |
| 7907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7908 | for as_dir in $PATH |
| 7909 | do |
| 7910 | IFS=$as_save_IFS |
| 7911 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7912 | # Account for people who put trailing slashes in PATH elements. |
| 7913 | case $as_dir/ in |
| 7914 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7915 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7916 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7917 | /usr/ucb/* ) ;; |
| 7918 | *) |
| 7919 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7920 | # Don't use installbsd from OSF since it installs stuff as root |
| 7921 | # by default. |
| 7922 | for ac_prog in ginstall scoinst install; do |
| 7923 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | 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] | 7925 | if test $ac_prog = install && |
| 7926 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7927 | # AIX install. It has an incompatible calling convention. |
| 7928 | : |
| 7929 | elif test $ac_prog = install && |
| 7930 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7931 | # program-specific install script used by HP pwplus--don't use. |
| 7932 | : |
| 7933 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7934 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7935 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7936 | fi |
| 7937 | fi |
| 7938 | done |
| 7939 | done |
| 7940 | ;; |
| 7941 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7942 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7943 | IFS=$as_save_IFS |
| 7944 | |
| 7945 | |
| 7946 | fi |
| 7947 | if test "${ac_cv_path_install+set}" = set; then |
| 7948 | INSTALL=$ac_cv_path_install |
| 7949 | else |
| 7950 | # As a last resort, use the slow shell script. Don't cache a |
| 7951 | # value for INSTALL within a source directory, because that will |
| 7952 | # break other packages using the cache if that directory is |
| 7953 | # removed, or if the value is a relative name. |
| 7954 | INSTALL=$ac_install_sh |
| 7955 | fi |
| 7956 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7957 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7958 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7959 | |
| 7960 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7961 | # It thinks the first close brace ends the variable substitution. |
| 7962 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7963 | |
| 7964 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7965 | |
| 7966 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7967 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7968 | case "$INSTALL" in |
| 7969 | [\\/$]* | ?:[\\/]* ) ;; |
| 7970 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7971 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7972 | |
| 7973 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7974 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7975 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7977 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7979 | else |
| 7980 | case $BZIP2 in |
| 7981 | [\\/]* | ?:[\\/]*) |
| 7982 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7983 | ;; |
| 7984 | *) |
| 7985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7986 | for as_dir in $PATH |
| 7987 | do |
| 7988 | IFS=$as_save_IFS |
| 7989 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7991 | 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] | 7992 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7994 | break 2 |
| 7995 | fi |
| 7996 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7997 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7998 | IFS=$as_save_IFS |
| 7999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8000 | ;; |
| 8001 | esac |
| 8002 | fi |
| 8003 | BZIP2=$ac_cv_path_BZIP2 |
| 8004 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8005 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8006 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8007 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8009 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8010 | fi |
| 8011 | |
| 8012 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8013 | # Extract the first word of "cat", so it can be a program name with args. |
| 8014 | set dummy cat; ac_word=$2 |
| 8015 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8017 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8019 | else |
| 8020 | case $CAT in |
| 8021 | [\\/]* | ?:[\\/]*) |
| 8022 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8023 | ;; |
| 8024 | *) |
| 8025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8026 | for as_dir in $PATH |
| 8027 | do |
| 8028 | IFS=$as_save_IFS |
| 8029 | test -z "$as_dir" && as_dir=. |
| 8030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8032 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8034 | break 2 |
| 8035 | fi |
| 8036 | done |
| 8037 | done |
| 8038 | IFS=$as_save_IFS |
| 8039 | |
| 8040 | ;; |
| 8041 | esac |
| 8042 | fi |
| 8043 | CAT=$ac_cv_path_CAT |
| 8044 | if test -n "$CAT"; then |
| 8045 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8046 | echo "${ECHO_T}$CAT" >&6; } |
| 8047 | else |
| 8048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8049 | echo "${ECHO_T}no" >&6; } |
| 8050 | fi |
| 8051 | |
| 8052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8053 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8054 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8055 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8057 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8059 | else |
| 8060 | case $DOXYGEN in |
| 8061 | [\\/]* | ?:[\\/]*) |
| 8062 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8063 | ;; |
| 8064 | *) |
| 8065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8066 | for as_dir in $PATH |
| 8067 | do |
| 8068 | IFS=$as_save_IFS |
| 8069 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8070 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8071 | 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] | 8072 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8074 | break 2 |
| 8075 | fi |
| 8076 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8077 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8078 | IFS=$as_save_IFS |
| 8079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8080 | ;; |
| 8081 | esac |
| 8082 | fi |
| 8083 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8084 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8085 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8086 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8087 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8088 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8089 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8090 | fi |
| 8091 | |
| 8092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8093 | # Extract the first word of "groff", so it can be a program name with args. |
| 8094 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8097 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8099 | else |
| 8100 | case $GROFF in |
| 8101 | [\\/]* | ?:[\\/]*) |
| 8102 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8103 | ;; |
| 8104 | *) |
| 8105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8106 | for as_dir in $PATH |
| 8107 | do |
| 8108 | IFS=$as_save_IFS |
| 8109 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8111 | 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] | 8112 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8114 | break 2 |
| 8115 | fi |
| 8116 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8117 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8118 | IFS=$as_save_IFS |
| 8119 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | ;; |
| 8121 | esac |
| 8122 | fi |
| 8123 | GROFF=$ac_cv_path_GROFF |
| 8124 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8125 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8126 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8127 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8128 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8129 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8130 | fi |
| 8131 | |
| 8132 | |
| 8133 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8134 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8137 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | else |
| 8140 | case $GZIP in |
| 8141 | [\\/]* | ?:[\\/]*) |
| 8142 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8143 | ;; |
| 8144 | *) |
| 8145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8146 | for as_dir in $PATH |
| 8147 | do |
| 8148 | IFS=$as_save_IFS |
| 8149 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8150 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8151 | 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] | 8152 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8154 | break 2 |
| 8155 | fi |
| 8156 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8158 | IFS=$as_save_IFS |
| 8159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8160 | ;; |
| 8161 | esac |
| 8162 | fi |
| 8163 | GZIP=$ac_cv_path_GZIP |
| 8164 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8165 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8166 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8168 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8169 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | fi |
| 8171 | |
| 8172 | |
| 8173 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8174 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8177 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8179 | else |
| 8180 | case $POD2HTML in |
| 8181 | [\\/]* | ?:[\\/]*) |
| 8182 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8183 | ;; |
| 8184 | *) |
| 8185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8186 | for as_dir in $PATH |
| 8187 | do |
| 8188 | IFS=$as_save_IFS |
| 8189 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8191 | 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] | 8192 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8194 | break 2 |
| 8195 | fi |
| 8196 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8197 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8198 | IFS=$as_save_IFS |
| 8199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | ;; |
| 8201 | esac |
| 8202 | fi |
| 8203 | POD2HTML=$ac_cv_path_POD2HTML |
| 8204 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8205 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8206 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8207 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8208 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8209 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8210 | fi |
| 8211 | |
| 8212 | |
| 8213 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8214 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8217 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8219 | else |
| 8220 | case $POD2MAN in |
| 8221 | [\\/]* | ?:[\\/]*) |
| 8222 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8223 | ;; |
| 8224 | *) |
| 8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8226 | for as_dir in $PATH |
| 8227 | do |
| 8228 | IFS=$as_save_IFS |
| 8229 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8231 | 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] | 8232 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8234 | break 2 |
| 8235 | fi |
| 8236 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8237 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8238 | IFS=$as_save_IFS |
| 8239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8240 | ;; |
| 8241 | esac |
| 8242 | fi |
| 8243 | POD2MAN=$ac_cv_path_POD2MAN |
| 8244 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8245 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8246 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8247 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8249 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8250 | fi |
| 8251 | |
| 8252 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8253 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8254 | set dummy pdfroff; ac_word=$2 |
| 8255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8257 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8259 | else |
| 8260 | case $PDFROFF in |
| 8261 | [\\/]* | ?:[\\/]*) |
| 8262 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8263 | ;; |
| 8264 | *) |
| 8265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8266 | for as_dir in $PATH |
| 8267 | do |
| 8268 | IFS=$as_save_IFS |
| 8269 | test -z "$as_dir" && as_dir=. |
| 8270 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8272 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8274 | break 2 |
| 8275 | fi |
| 8276 | done |
| 8277 | done |
| 8278 | IFS=$as_save_IFS |
| 8279 | |
| 8280 | ;; |
| 8281 | esac |
| 8282 | fi |
| 8283 | PDFROFF=$ac_cv_path_PDFROFF |
| 8284 | if test -n "$PDFROFF"; then |
| 8285 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8286 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8287 | else |
| 8288 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8289 | echo "${ECHO_T}no" >&6; } |
| 8290 | fi |
| 8291 | |
| 8292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8293 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8294 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8295 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8297 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8299 | else |
| 8300 | case $RUNTEST in |
| 8301 | [\\/]* | ?:[\\/]*) |
| 8302 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8303 | ;; |
| 8304 | *) |
| 8305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8306 | for as_dir in $PATH |
| 8307 | do |
| 8308 | IFS=$as_save_IFS |
| 8309 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8311 | 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] | 8312 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8314 | break 2 |
| 8315 | fi |
| 8316 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8317 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8318 | IFS=$as_save_IFS |
| 8319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8320 | ;; |
| 8321 | esac |
| 8322 | fi |
| 8323 | RUNTEST=$ac_cv_path_RUNTEST |
| 8324 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8325 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8326 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8327 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8329 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8330 | fi |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8335 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8336 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8337 | |
| 8338 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8339 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8340 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8341 | else |
| 8342 | with_tclinclude='' |
| 8343 | fi |
| 8344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8345 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8347 | else |
| 8348 | |
| 8349 | if test x"${with_tclinclude}" != x ; then |
| 8350 | if test -f ${with_tclinclude}/tclsh ; then |
| 8351 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8352 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8353 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8354 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8355 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8356 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8357 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8358 | fi |
| 8359 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8360 | fi |
| 8361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8362 | |
| 8363 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8364 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8365 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8366 | 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 |
| 8367 | do |
| 8368 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8369 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8370 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8372 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8374 | else |
| 8375 | case $TCLSH in |
| 8376 | [\\/]* | ?:[\\/]*) |
| 8377 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8378 | ;; |
| 8379 | *) |
| 8380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8381 | for as_dir in $PATH |
| 8382 | do |
| 8383 | IFS=$as_save_IFS |
| 8384 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8386 | 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] | 8387 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8389 | break 2 |
| 8390 | fi |
| 8391 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8392 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8393 | IFS=$as_save_IFS |
| 8394 | |
| 8395 | ;; |
| 8396 | esac |
| 8397 | fi |
| 8398 | TCLSH=$ac_cv_path_TCLSH |
| 8399 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8400 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8401 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8402 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8403 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8404 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | fi |
| 8406 | |
| 8407 | |
| 8408 | test -n "$TCLSH" && break |
| 8409 | done |
| 8410 | |
| 8411 | if test x"${TCLSH}" = x ; then |
| 8412 | ac_cv_path_tclsh=''; |
| 8413 | else |
| 8414 | ac_cv_path_tclsh="${TCLSH}"; |
| 8415 | fi |
| 8416 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8417 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8418 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8419 | TCLSH="${ac_cv_path_tclsh}" |
| 8420 | |
| 8421 | fi |
| 8422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8423 | # Extract the first word of "zip", so it can be a program name with args. |
| 8424 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8425 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8427 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8429 | else |
| 8430 | case $ZIP in |
| 8431 | [\\/]* | ?:[\\/]*) |
| 8432 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8433 | ;; |
| 8434 | *) |
| 8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8436 | for as_dir in $PATH |
| 8437 | do |
| 8438 | IFS=$as_save_IFS |
| 8439 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8441 | 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] | 8442 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8444 | break 2 |
| 8445 | fi |
| 8446 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8447 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8448 | IFS=$as_save_IFS |
| 8449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8450 | ;; |
| 8451 | esac |
| 8452 | fi |
| 8453 | ZIP=$ac_cv_path_ZIP |
| 8454 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8455 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8456 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8457 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8458 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8459 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8460 | fi |
| 8461 | |
| 8462 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8463 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8464 | do |
| 8465 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8466 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8467 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8469 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8471 | else |
| 8472 | case $OCAMLC in |
| 8473 | [\\/]* | ?:[\\/]*) |
| 8474 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8475 | ;; |
| 8476 | *) |
| 8477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8478 | for as_dir in $PATH |
| 8479 | do |
| 8480 | IFS=$as_save_IFS |
| 8481 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8483 | 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] | 8484 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8486 | break 2 |
| 8487 | fi |
| 8488 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8489 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8490 | IFS=$as_save_IFS |
| 8491 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8492 | ;; |
| 8493 | esac |
| 8494 | fi |
| 8495 | OCAMLC=$ac_cv_path_OCAMLC |
| 8496 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8497 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8498 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8501 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8502 | fi |
| 8503 | |
| 8504 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8505 | test -n "$OCAMLC" && break |
| 8506 | done |
| 8507 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8508 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8509 | do |
| 8510 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8511 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8514 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8516 | else |
| 8517 | case $OCAMLOPT in |
| 8518 | [\\/]* | ?:[\\/]*) |
| 8519 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8520 | ;; |
| 8521 | *) |
| 8522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8523 | for as_dir in $PATH |
| 8524 | do |
| 8525 | IFS=$as_save_IFS |
| 8526 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8528 | 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] | 8529 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8531 | break 2 |
| 8532 | fi |
| 8533 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8534 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8535 | IFS=$as_save_IFS |
| 8536 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8537 | ;; |
| 8538 | esac |
| 8539 | fi |
| 8540 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8541 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8542 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8543 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8546 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8547 | fi |
| 8548 | |
| 8549 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8550 | test -n "$OCAMLOPT" && break |
| 8551 | done |
| 8552 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8553 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8554 | do |
| 8555 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8556 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8559 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8561 | else |
| 8562 | case $OCAMLDEP in |
| 8563 | [\\/]* | ?:[\\/]*) |
| 8564 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8565 | ;; |
| 8566 | *) |
| 8567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8568 | for as_dir in $PATH |
| 8569 | do |
| 8570 | IFS=$as_save_IFS |
| 8571 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8573 | 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] | 8574 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8576 | break 2 |
| 8577 | fi |
| 8578 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8579 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8580 | IFS=$as_save_IFS |
| 8581 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8582 | ;; |
| 8583 | esac |
| 8584 | fi |
| 8585 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8586 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8587 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8588 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8589 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8591 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8592 | fi |
| 8593 | |
| 8594 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8595 | test -n "$OCAMLDEP" && break |
| 8596 | done |
| 8597 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8598 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8599 | do |
| 8600 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8601 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8602 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8604 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8606 | else |
| 8607 | case $OCAMLDOC in |
| 8608 | [\\/]* | ?:[\\/]*) |
| 8609 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8610 | ;; |
| 8611 | *) |
| 8612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8613 | for as_dir in $PATH |
| 8614 | do |
| 8615 | IFS=$as_save_IFS |
| 8616 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8618 | 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] | 8619 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8621 | break 2 |
| 8622 | fi |
| 8623 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8624 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8625 | IFS=$as_save_IFS |
| 8626 | |
| 8627 | ;; |
| 8628 | esac |
| 8629 | fi |
| 8630 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8631 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8632 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8633 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8634 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8635 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8636 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8637 | fi |
| 8638 | |
| 8639 | |
| 8640 | test -n "$OCAMLDOC" && break |
| 8641 | done |
| 8642 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8643 | for ac_prog in gas as |
| 8644 | do |
| 8645 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8646 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8649 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8651 | else |
| 8652 | case $GAS in |
| 8653 | [\\/]* | ?:[\\/]*) |
| 8654 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8655 | ;; |
| 8656 | *) |
| 8657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8658 | for as_dir in $PATH |
| 8659 | do |
| 8660 | IFS=$as_save_IFS |
| 8661 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8663 | 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] | 8664 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8666 | break 2 |
| 8667 | fi |
| 8668 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8669 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8670 | IFS=$as_save_IFS |
| 8671 | |
| 8672 | ;; |
| 8673 | esac |
| 8674 | fi |
| 8675 | GAS=$ac_cv_path_GAS |
| 8676 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8677 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8678 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8679 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8680 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8681 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8682 | fi |
| 8683 | |
| 8684 | |
| 8685 | test -n "$GAS" && break |
| 8686 | done |
| 8687 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8688 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 8689 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 8690 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 8691 | if test "${llvm_cv_link_version+set}" = set; then |
| 8692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8693 | else |
| 8694 | |
| 8695 | version_string="$(ld -v 2>&1 | head -1)" |
| 8696 | |
| 8697 | # Check for ld64. |
| 8698 | if (echo "$version_string" | grep -q "ld64"); then |
| 8699 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 8700 | else |
| 8701 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 8702 | fi |
| 8703 | |
| 8704 | fi |
| 8705 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 8706 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 8707 | |
| 8708 | cat >>confdefs.h <<_ACEOF |
| 8709 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 8710 | _ACEOF |
| 8711 | |
| 8712 | |
| 8713 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8714 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8715 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8716 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8718 | else |
| 8719 | ac_ext=c |
| 8720 | ac_cpp='$CPP $CPPFLAGS' |
| 8721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8724 | |
| 8725 | oldcflags="$CFLAGS" |
| 8726 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8727 | cat >conftest.$ac_ext <<_ACEOF |
| 8728 | /* confdefs.h. */ |
| 8729 | _ACEOF |
| 8730 | cat confdefs.h >>conftest.$ac_ext |
| 8731 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8732 | /* end confdefs.h. */ |
| 8733 | |
| 8734 | int |
| 8735 | main () |
| 8736 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8738 | ; |
| 8739 | return 0; |
| 8740 | } |
| 8741 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8743 | if { (ac_try="$ac_link" |
| 8744 | case "(($ac_try" in |
| 8745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8746 | *) ac_try_echo=$ac_try;; |
| 8747 | esac |
| 8748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8749 | (eval "$ac_link") 2>conftest.er1 |
| 8750 | ac_status=$? |
| 8751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8752 | rm -f conftest.er1 |
| 8753 | cat conftest.err >&5 |
| 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8755 | (exit $ac_status); } && |
| 8756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8757 | { (case "(($ac_try" in |
| 8758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8759 | *) ac_try_echo=$ac_try;; |
| 8760 | esac |
| 8761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8762 | (eval "$ac_try") 2>&5 |
| 8763 | ac_status=$? |
| 8764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8765 | (exit $ac_status); }; } && |
| 8766 | { ac_try='test -s conftest$ac_exeext' |
| 8767 | { (case "(($ac_try" in |
| 8768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8769 | *) ac_try_echo=$ac_try;; |
| 8770 | esac |
| 8771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8772 | (eval "$ac_try") 2>&5 |
| 8773 | ac_status=$? |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8775 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8776 | llvm_cv_link_use_r=yes |
| 8777 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8778 | echo "$as_me: failed program was:" >&5 |
| 8779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8780 | |
| 8781 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8782 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8783 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8784 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8785 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8786 | CFLAGS="$oldcflags" |
| 8787 | ac_ext=c |
| 8788 | ac_cpp='$CPP $CPPFLAGS' |
| 8789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8792 | |
| 8793 | |
| 8794 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8795 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8796 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8797 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8799 | cat >>confdefs.h <<\_ACEOF |
| 8800 | #define HAVE_LINK_R 1 |
| 8801 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8802 | |
| 8803 | fi |
| 8804 | |
| 8805 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8806 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8807 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8808 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8810 | else |
| 8811 | ac_ext=c |
| 8812 | ac_cpp='$CPP $CPPFLAGS' |
| 8813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8816 | |
| 8817 | oldcflags="$CFLAGS" |
| 8818 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8819 | cat >conftest.$ac_ext <<_ACEOF |
| 8820 | /* confdefs.h. */ |
| 8821 | _ACEOF |
| 8822 | cat confdefs.h >>conftest.$ac_ext |
| 8823 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8824 | /* end confdefs.h. */ |
| 8825 | |
| 8826 | int |
| 8827 | main () |
| 8828 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8829 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8830 | ; |
| 8831 | return 0; |
| 8832 | } |
| 8833 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8835 | if { (ac_try="$ac_link" |
| 8836 | case "(($ac_try" in |
| 8837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8838 | *) ac_try_echo=$ac_try;; |
| 8839 | esac |
| 8840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8841 | (eval "$ac_link") 2>conftest.er1 |
| 8842 | ac_status=$? |
| 8843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8844 | rm -f conftest.er1 |
| 8845 | cat conftest.err >&5 |
| 8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8847 | (exit $ac_status); } && |
| 8848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8849 | { (case "(($ac_try" in |
| 8850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8851 | *) ac_try_echo=$ac_try;; |
| 8852 | esac |
| 8853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8854 | (eval "$ac_try") 2>&5 |
| 8855 | ac_status=$? |
| 8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8857 | (exit $ac_status); }; } && |
| 8858 | { ac_try='test -s conftest$ac_exeext' |
| 8859 | { (case "(($ac_try" in |
| 8860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8861 | *) ac_try_echo=$ac_try;; |
| 8862 | esac |
| 8863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8864 | (eval "$ac_try") 2>&5 |
| 8865 | ac_status=$? |
| 8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8867 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8868 | llvm_cv_link_use_export_dynamic=yes |
| 8869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8870 | echo "$as_me: failed program was:" >&5 |
| 8871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8872 | |
| 8873 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8874 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8875 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8876 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8877 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8878 | CFLAGS="$oldcflags" |
| 8879 | ac_ext=c |
| 8880 | ac_cpp='$CPP $CPPFLAGS' |
| 8881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8884 | |
| 8885 | |
| 8886 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8887 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8888 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8889 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8890 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8891 | cat >>confdefs.h <<\_ACEOF |
| 8892 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8893 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8894 | |
| 8895 | fi |
| 8896 | |
| 8897 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8898 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 8899 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 8900 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8902 | else |
| 8903 | ac_ext=c |
| 8904 | ac_cpp='$CPP $CPPFLAGS' |
| 8905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8908 | |
| 8909 | oldcflags="$CFLAGS" |
| 8910 | |
| 8911 | # The following code is from the autoconf manual, |
| 8912 | # "11.13: Limitations of Usual Tools". |
| 8913 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8914 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8915 | # with $RANDOM to make collisions less likely. |
| 8916 | : ${TMPDIR=/tmp} |
| 8917 | { |
| 8918 | tmp=` |
| 8919 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8920 | ` && |
| 8921 | test -n "$tmp" && test -d "$tmp" |
| 8922 | } || { |
| 8923 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8924 | (umask 077 && mkdir "$tmp") |
| 8925 | } || exit $? |
| 8926 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8927 | echo "{" > "$tmp/export.map" |
| 8928 | echo " global: main;" >> "$tmp/export.map" |
| 8929 | echo " local: *;" >> "$tmp/export.map" |
| 8930 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8931 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8932 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8933 | cat >conftest.$ac_ext <<_ACEOF |
| 8934 | /* confdefs.h. */ |
| 8935 | _ACEOF |
| 8936 | cat confdefs.h >>conftest.$ac_ext |
| 8937 | cat >>conftest.$ac_ext <<_ACEOF |
| 8938 | /* end confdefs.h. */ |
| 8939 | |
| 8940 | int |
| 8941 | main () |
| 8942 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8943 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8944 | ; |
| 8945 | return 0; |
| 8946 | } |
| 8947 | _ACEOF |
| 8948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8949 | if { (ac_try="$ac_link" |
| 8950 | case "(($ac_try" in |
| 8951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8952 | *) ac_try_echo=$ac_try;; |
| 8953 | esac |
| 8954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8955 | (eval "$ac_link") 2>conftest.er1 |
| 8956 | ac_status=$? |
| 8957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8958 | rm -f conftest.er1 |
| 8959 | cat conftest.err >&5 |
| 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8961 | (exit $ac_status); } && |
| 8962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8963 | { (case "(($ac_try" in |
| 8964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8965 | *) ac_try_echo=$ac_try;; |
| 8966 | esac |
| 8967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8968 | (eval "$ac_try") 2>&5 |
| 8969 | ac_status=$? |
| 8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8971 | (exit $ac_status); }; } && |
| 8972 | { ac_try='test -s conftest$ac_exeext' |
| 8973 | { (case "(($ac_try" in |
| 8974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8975 | *) ac_try_echo=$ac_try;; |
| 8976 | esac |
| 8977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8978 | (eval "$ac_try") 2>&5 |
| 8979 | ac_status=$? |
| 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8981 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8982 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8983 | else |
| 8984 | echo "$as_me: failed program was:" >&5 |
| 8985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8986 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8987 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8988 | fi |
| 8989 | |
| 8990 | rm -f core conftest.err conftest.$ac_objext \ |
| 8991 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8992 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8993 | rmdir "$tmp" |
| 8994 | CFLAGS="$oldcflags" |
| 8995 | ac_ext=c |
| 8996 | ac_cpp='$CPP $CPPFLAGS' |
| 8997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9000 | |
| 9001 | |
| 9002 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9003 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9004 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9005 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9006 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9007 | |
| 9008 | fi |
| 9009 | |
| 9010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9011 | |
| 9012 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9013 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9014 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9015 | if test "${ac_cv_c_const+set}" = set; then |
| 9016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9017 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9018 | cat >conftest.$ac_ext <<_ACEOF |
| 9019 | /* confdefs.h. */ |
| 9020 | _ACEOF |
| 9021 | cat confdefs.h >>conftest.$ac_ext |
| 9022 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9023 | /* end confdefs.h. */ |
| 9024 | |
| 9025 | int |
| 9026 | main () |
| 9027 | { |
| 9028 | /* FIXME: Include the comments suggested by Paul. */ |
| 9029 | #ifndef __cplusplus |
| 9030 | /* Ultrix mips cc rejects this. */ |
| 9031 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9032 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9033 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9034 | char const *const *ccp; |
| 9035 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9037 | struct point {int x, y;}; |
| 9038 | static struct point const zero = {0,0}; |
| 9039 | /* AIX XL C 1.02.0.0 rejects this. |
| 9040 | It does not let you subtract one const X* pointer from another in |
| 9041 | an arm of an if-expression whose if-part is not a constant |
| 9042 | expression */ |
| 9043 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9044 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9045 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9046 | ++ccp; |
| 9047 | p = (char**) ccp; |
| 9048 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9049 | { /* SCO 3.2v4 cc rejects this. */ |
| 9050 | char *t; |
| 9051 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9052 | |
| 9053 | *t++ = 0; |
| 9054 | if (s) return 0; |
| 9055 | } |
| 9056 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9057 | int x[] = {25, 17}; |
| 9058 | const int *foo = &x[0]; |
| 9059 | ++foo; |
| 9060 | } |
| 9061 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9062 | typedef const int *iptr; |
| 9063 | iptr p = 0; |
| 9064 | ++p; |
| 9065 | } |
| 9066 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9067 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9068 | struct s { int j; const int *ap[3]; }; |
| 9069 | struct s *b; b->j = 5; |
| 9070 | } |
| 9071 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9072 | const int foo = 10; |
| 9073 | if (!foo) return 0; |
| 9074 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9075 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9076 | #endif |
| 9077 | |
| 9078 | ; |
| 9079 | return 0; |
| 9080 | } |
| 9081 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9082 | rm -f conftest.$ac_objext |
| 9083 | if { (ac_try="$ac_compile" |
| 9084 | case "(($ac_try" in |
| 9085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9086 | *) ac_try_echo=$ac_try;; |
| 9087 | esac |
| 9088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9089 | (eval "$ac_compile") 2>conftest.er1 |
| 9090 | ac_status=$? |
| 9091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9092 | rm -f conftest.er1 |
| 9093 | cat conftest.err >&5 |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); } && |
| 9096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9097 | { (case "(($ac_try" in |
| 9098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9099 | *) ac_try_echo=$ac_try;; |
| 9100 | esac |
| 9101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9102 | (eval "$ac_try") 2>&5 |
| 9103 | ac_status=$? |
| 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9105 | (exit $ac_status); }; } && |
| 9106 | { ac_try='test -s conftest.$ac_objext' |
| 9107 | { (case "(($ac_try" in |
| 9108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9109 | *) ac_try_echo=$ac_try;; |
| 9110 | esac |
| 9111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9112 | (eval "$ac_try") 2>&5 |
| 9113 | ac_status=$? |
| 9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9115 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9116 | ac_cv_c_const=yes |
| 9117 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9118 | echo "$as_me: failed program was:" >&5 |
| 9119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9120 | |
| 9121 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9122 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9125 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9126 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9127 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | if test $ac_cv_c_const = no; then |
| 9129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9130 | cat >>confdefs.h <<\_ACEOF |
| 9131 | #define const |
| 9132 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9133 | |
| 9134 | fi |
| 9135 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9141 | ac_header_dirent=no |
| 9142 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9143 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9144 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9145 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9148 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9149 | cat >conftest.$ac_ext <<_ACEOF |
| 9150 | /* confdefs.h. */ |
| 9151 | _ACEOF |
| 9152 | cat confdefs.h >>conftest.$ac_ext |
| 9153 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9154 | /* end confdefs.h. */ |
| 9155 | #include <sys/types.h> |
| 9156 | #include <$ac_hdr> |
| 9157 | |
| 9158 | int |
| 9159 | main () |
| 9160 | { |
| 9161 | if ((DIR *) 0) |
| 9162 | return 0; |
| 9163 | ; |
| 9164 | return 0; |
| 9165 | } |
| 9166 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9167 | rm -f conftest.$ac_objext |
| 9168 | if { (ac_try="$ac_compile" |
| 9169 | case "(($ac_try" in |
| 9170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9171 | *) ac_try_echo=$ac_try;; |
| 9172 | esac |
| 9173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9174 | (eval "$ac_compile") 2>conftest.er1 |
| 9175 | ac_status=$? |
| 9176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9177 | rm -f conftest.er1 |
| 9178 | cat conftest.err >&5 |
| 9179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9180 | (exit $ac_status); } && |
| 9181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9182 | { (case "(($ac_try" in |
| 9183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9184 | *) ac_try_echo=$ac_try;; |
| 9185 | esac |
| 9186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9187 | (eval "$ac_try") 2>&5 |
| 9188 | ac_status=$? |
| 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9190 | (exit $ac_status); }; } && |
| 9191 | { ac_try='test -s conftest.$ac_objext' |
| 9192 | { (case "(($ac_try" in |
| 9193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9194 | *) ac_try_echo=$ac_try;; |
| 9195 | esac |
| 9196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9197 | (eval "$ac_try") 2>&5 |
| 9198 | ac_status=$? |
| 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9201 | eval "$as_ac_Header=yes" |
| 9202 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9203 | echo "$as_me: failed program was:" >&5 |
| 9204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9205 | |
| 9206 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9207 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9210 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9211 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9213 | echo "${ECHO_T}$ac_res" >&6; } |
| 9214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9215 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9216 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9217 | _ACEOF |
| 9218 | |
| 9219 | ac_header_dirent=$ac_hdr; break |
| 9220 | fi |
| 9221 | |
| 9222 | done |
| 9223 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9224 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9225 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9226 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9227 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9229 | else |
| 9230 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9231 | cat >conftest.$ac_ext <<_ACEOF |
| 9232 | /* confdefs.h. */ |
| 9233 | _ACEOF |
| 9234 | cat confdefs.h >>conftest.$ac_ext |
| 9235 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9236 | /* end confdefs.h. */ |
| 9237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9238 | /* Override any GCC internal prototype to avoid an error. |
| 9239 | Use char because int might match the return type of a GCC |
| 9240 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9241 | #ifdef __cplusplus |
| 9242 | extern "C" |
| 9243 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9244 | char opendir (); |
| 9245 | int |
| 9246 | main () |
| 9247 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9248 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9249 | ; |
| 9250 | return 0; |
| 9251 | } |
| 9252 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9253 | for ac_lib in '' dir; do |
| 9254 | if test -z "$ac_lib"; then |
| 9255 | ac_res="none required" |
| 9256 | else |
| 9257 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9258 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9259 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9260 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9261 | if { (ac_try="$ac_link" |
| 9262 | case "(($ac_try" in |
| 9263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9264 | *) ac_try_echo=$ac_try;; |
| 9265 | esac |
| 9266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9267 | (eval "$ac_link") 2>conftest.er1 |
| 9268 | ac_status=$? |
| 9269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9270 | rm -f conftest.er1 |
| 9271 | cat conftest.err >&5 |
| 9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9273 | (exit $ac_status); } && |
| 9274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9275 | { (case "(($ac_try" in |
| 9276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9277 | *) ac_try_echo=$ac_try;; |
| 9278 | esac |
| 9279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9280 | (eval "$ac_try") 2>&5 |
| 9281 | ac_status=$? |
| 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9283 | (exit $ac_status); }; } && |
| 9284 | { ac_try='test -s conftest$ac_exeext' |
| 9285 | { (case "(($ac_try" in |
| 9286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9287 | *) ac_try_echo=$ac_try;; |
| 9288 | esac |
| 9289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9290 | (eval "$ac_try") 2>&5 |
| 9291 | ac_status=$? |
| 9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9293 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9294 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9295 | else |
| 9296 | echo "$as_me: failed program was:" >&5 |
| 9297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9298 | |
| 9299 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9300 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9301 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9302 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9303 | conftest$ac_exeext |
| 9304 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9305 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9306 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9307 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9308 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9309 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9310 | else |
| 9311 | ac_cv_search_opendir=no |
| 9312 | fi |
| 9313 | rm conftest.$ac_ext |
| 9314 | LIBS=$ac_func_search_save_LIBS |
| 9315 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9316 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9317 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9318 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9319 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9320 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9322 | fi |
| 9323 | |
| 9324 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9325 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9326 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9327 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9329 | else |
| 9330 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9331 | cat >conftest.$ac_ext <<_ACEOF |
| 9332 | /* confdefs.h. */ |
| 9333 | _ACEOF |
| 9334 | cat confdefs.h >>conftest.$ac_ext |
| 9335 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9336 | /* end confdefs.h. */ |
| 9337 | |
| 9338 | /* Override any GCC internal prototype to avoid an error. |
| 9339 | Use char because int might match the return type of a GCC |
| 9340 | builtin and then its argument prototype would still apply. */ |
| 9341 | #ifdef __cplusplus |
| 9342 | extern "C" |
| 9343 | #endif |
| 9344 | char opendir (); |
| 9345 | int |
| 9346 | main () |
| 9347 | { |
| 9348 | return opendir (); |
| 9349 | ; |
| 9350 | return 0; |
| 9351 | } |
| 9352 | _ACEOF |
| 9353 | for ac_lib in '' x; do |
| 9354 | if test -z "$ac_lib"; then |
| 9355 | ac_res="none required" |
| 9356 | else |
| 9357 | ac_res=-l$ac_lib |
| 9358 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9361 | if { (ac_try="$ac_link" |
| 9362 | case "(($ac_try" in |
| 9363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9364 | *) ac_try_echo=$ac_try;; |
| 9365 | esac |
| 9366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9367 | (eval "$ac_link") 2>conftest.er1 |
| 9368 | ac_status=$? |
| 9369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9370 | rm -f conftest.er1 |
| 9371 | cat conftest.err >&5 |
| 9372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9373 | (exit $ac_status); } && |
| 9374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9375 | { (case "(($ac_try" in |
| 9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9377 | *) ac_try_echo=$ac_try;; |
| 9378 | esac |
| 9379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9380 | (eval "$ac_try") 2>&5 |
| 9381 | ac_status=$? |
| 9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9383 | (exit $ac_status); }; } && |
| 9384 | { ac_try='test -s conftest$ac_exeext' |
| 9385 | { (case "(($ac_try" in |
| 9386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9387 | *) ac_try_echo=$ac_try;; |
| 9388 | esac |
| 9389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9390 | (eval "$ac_try") 2>&5 |
| 9391 | ac_status=$? |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9394 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9395 | else |
| 9396 | echo "$as_me: failed program was:" >&5 |
| 9397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9398 | |
| 9399 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9400 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9401 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9402 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9403 | conftest$ac_exeext |
| 9404 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9405 | break |
| 9406 | fi |
| 9407 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9408 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9409 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9410 | else |
| 9411 | ac_cv_search_opendir=no |
| 9412 | fi |
| 9413 | rm conftest.$ac_ext |
| 9414 | LIBS=$ac_func_search_save_LIBS |
| 9415 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9416 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9417 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9418 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9419 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9420 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9421 | |
| 9422 | fi |
| 9423 | |
| 9424 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9425 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9426 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9427 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9428 | do |
| 9429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9435 | fi |
| 9436 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9437 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9438 | echo "${ECHO_T}$ac_res" >&6; } |
| 9439 | else |
| 9440 | # Is the header compilable? |
| 9441 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9443 | cat >conftest.$ac_ext <<_ACEOF |
| 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
| 9449 | $ac_includes_default |
| 9450 | #include <$ac_header> |
| 9451 | _ACEOF |
| 9452 | rm -f conftest.$ac_objext |
| 9453 | if { (ac_try="$ac_compile" |
| 9454 | case "(($ac_try" in |
| 9455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9456 | *) ac_try_echo=$ac_try;; |
| 9457 | esac |
| 9458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9459 | (eval "$ac_compile") 2>conftest.er1 |
| 9460 | ac_status=$? |
| 9461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9462 | rm -f conftest.er1 |
| 9463 | cat conftest.err >&5 |
| 9464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 | (exit $ac_status); } && |
| 9466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9467 | { (case "(($ac_try" in |
| 9468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9469 | *) ac_try_echo=$ac_try;; |
| 9470 | esac |
| 9471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9472 | (eval "$ac_try") 2>&5 |
| 9473 | ac_status=$? |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); }; } && |
| 9476 | { ac_try='test -s conftest.$ac_objext' |
| 9477 | { (case "(($ac_try" in |
| 9478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9479 | *) ac_try_echo=$ac_try;; |
| 9480 | esac |
| 9481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9482 | (eval "$ac_try") 2>&5 |
| 9483 | ac_status=$? |
| 9484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9485 | (exit $ac_status); }; }; then |
| 9486 | ac_header_compiler=yes |
| 9487 | else |
| 9488 | echo "$as_me: failed program was:" >&5 |
| 9489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9490 | |
| 9491 | ac_header_compiler=no |
| 9492 | fi |
| 9493 | |
| 9494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9495 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9496 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9497 | |
| 9498 | # Is the header present? |
| 9499 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9501 | cat >conftest.$ac_ext <<_ACEOF |
| 9502 | /* confdefs.h. */ |
| 9503 | _ACEOF |
| 9504 | cat confdefs.h >>conftest.$ac_ext |
| 9505 | cat >>conftest.$ac_ext <<_ACEOF |
| 9506 | /* end confdefs.h. */ |
| 9507 | #include <$ac_header> |
| 9508 | _ACEOF |
| 9509 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9510 | case "(($ac_try" in |
| 9511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9512 | *) ac_try_echo=$ac_try;; |
| 9513 | esac |
| 9514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9516 | ac_status=$? |
| 9517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9518 | rm -f conftest.er1 |
| 9519 | cat conftest.err >&5 |
| 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9521 | (exit $ac_status); } >/dev/null; then |
| 9522 | if test -s conftest.err; then |
| 9523 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9524 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9525 | else |
| 9526 | ac_cpp_err= |
| 9527 | fi |
| 9528 | else |
| 9529 | ac_cpp_err=yes |
| 9530 | fi |
| 9531 | if test -z "$ac_cpp_err"; then |
| 9532 | ac_header_preproc=yes |
| 9533 | else |
| 9534 | echo "$as_me: failed program was:" >&5 |
| 9535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9536 | |
| 9537 | ac_header_preproc=no |
| 9538 | fi |
| 9539 | |
| 9540 | rm -f conftest.err conftest.$ac_ext |
| 9541 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9542 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9543 | |
| 9544 | # So? What about this header? |
| 9545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9546 | yes:no: ) |
| 9547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9551 | ac_header_preproc=yes |
| 9552 | ;; |
| 9553 | no:yes:* ) |
| 9554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9565 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9566 | ( cat <<\_ASBOX |
| 9567 | ## ----------------------------------- ## |
| 9568 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9569 | ## ----------------------------------- ## |
| 9570 | _ASBOX |
| 9571 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9572 | ;; |
| 9573 | esac |
| 9574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9578 | else |
| 9579 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9580 | fi |
| 9581 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9583 | echo "${ECHO_T}$ac_res" >&6; } |
| 9584 | |
| 9585 | fi |
| 9586 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9587 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9588 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9589 | _ACEOF |
| 9590 | |
| 9591 | fi |
| 9592 | |
| 9593 | done |
| 9594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9595 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9596 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9597 | enableval=$enable_ltdl_install; |
| 9598 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9599 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9600 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9601 | |
| 9602 | |
| 9603 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9604 | INSTALL_LTDL_TRUE= |
| 9605 | INSTALL_LTDL_FALSE='#' |
| 9606 | else |
| 9607 | INSTALL_LTDL_TRUE='#' |
| 9608 | INSTALL_LTDL_FALSE= |
| 9609 | fi |
| 9610 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9611 | |
| 9612 | |
| 9613 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | CONVENIENCE_LTDL_TRUE= |
| 9615 | CONVENIENCE_LTDL_FALSE='#' |
| 9616 | else |
| 9617 | CONVENIENCE_LTDL_TRUE='#' |
| 9618 | CONVENIENCE_LTDL_FALSE= |
| 9619 | fi |
| 9620 | |
| 9621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9622 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9623 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9624 | library_names_spec= |
| 9625 | libname_spec='lib$name' |
| 9626 | soname_spec= |
| 9627 | shrext_cmds=".so" |
| 9628 | postinstall_cmds= |
| 9629 | postuninstall_cmds= |
| 9630 | finish_cmds= |
| 9631 | finish_eval= |
| 9632 | shlibpath_var= |
| 9633 | shlibpath_overrides_runpath=unknown |
| 9634 | version_type=none |
| 9635 | dynamic_linker="$host_os ld.so" |
| 9636 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9637 | if test "$GCC" = yes; then |
| 9638 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9639 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9640 | # if the path contains ";" then we assume it to be the separator |
| 9641 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9642 | # assumed that no part of a normal pathname contains ";" but that should |
| 9643 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9644 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9645 | else |
| 9646 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9647 | fi |
| 9648 | else |
| 9649 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9650 | fi |
| 9651 | need_lib_prefix=unknown |
| 9652 | hardcode_into_libs=no |
| 9653 | |
| 9654 | # when you set need_version to no, make sure it does not cause -set_version |
| 9655 | # flags to be left without arguments |
| 9656 | need_version=unknown |
| 9657 | |
| 9658 | case $host_os in |
| 9659 | aix3*) |
| 9660 | version_type=linux |
| 9661 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9662 | shlibpath_var=LIBPATH |
| 9663 | |
| 9664 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9665 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9666 | ;; |
| 9667 | |
| 9668 | aix4* | aix5*) |
| 9669 | version_type=linux |
| 9670 | need_lib_prefix=no |
| 9671 | need_version=no |
| 9672 | hardcode_into_libs=yes |
| 9673 | if test "$host_cpu" = ia64; then |
| 9674 | # AIX 5 supports IA64 |
| 9675 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9676 | shlibpath_var=LD_LIBRARY_PATH |
| 9677 | else |
| 9678 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9679 | # for dependence libraries. The import file would start with |
| 9680 | # the line `#! .'. This would cause the generated library to |
| 9681 | # depend on `.', always an invalid library. This was fixed in |
| 9682 | # development snapshots of GCC prior to 3.0. |
| 9683 | case $host_os in |
| 9684 | aix4 | aix4.[01] | aix4.[01].*) |
| 9685 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9686 | echo ' yes ' |
| 9687 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9688 | : |
| 9689 | else |
| 9690 | can_build_shared=no |
| 9691 | fi |
| 9692 | ;; |
| 9693 | esac |
| 9694 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9695 | # soname into executable. Probably we can add versioning support to |
| 9696 | # collect2, so additional links can be useful in future. |
| 9697 | if test "$aix_use_runtimelinking" = yes; then |
| 9698 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9699 | # instead of lib<name>.a to let people know that these are not |
| 9700 | # typical AIX shared libraries. |
| 9701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9702 | else |
| 9703 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9704 | # and later when we are not doing run time linking. |
| 9705 | library_names_spec='${libname}${release}.a $libname.a' |
| 9706 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9707 | fi |
| 9708 | shlibpath_var=LIBPATH |
| 9709 | fi |
| 9710 | ;; |
| 9711 | |
| 9712 | amigaos*) |
| 9713 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9714 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9715 | 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' |
| 9716 | ;; |
| 9717 | |
| 9718 | beos*) |
| 9719 | library_names_spec='${libname}${shared_ext}' |
| 9720 | dynamic_linker="$host_os ld.so" |
| 9721 | shlibpath_var=LIBRARY_PATH |
| 9722 | ;; |
| 9723 | |
| 9724 | bsdi[45]*) |
| 9725 | version_type=linux |
| 9726 | need_version=no |
| 9727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9730 | shlibpath_var=LD_LIBRARY_PATH |
| 9731 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9732 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9733 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9734 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9735 | # libtool to hard-code these into programs |
| 9736 | ;; |
| 9737 | |
| 9738 | cygwin* | mingw* | pw32*) |
| 9739 | version_type=windows |
| 9740 | shrext_cmds=".dll" |
| 9741 | need_version=no |
| 9742 | need_lib_prefix=no |
| 9743 | |
| 9744 | case $GCC,$host_os in |
| 9745 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9746 | library_names_spec='$libname.dll.a' |
| 9747 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9748 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9749 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9750 | dldir=$destdir/`dirname \$dlpath`~ |
| 9751 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9752 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9753 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9754 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9755 | dlpath=$dir/\$dldll~ |
| 9756 | $rm \$dlpath' |
| 9757 | shlibpath_overrides_runpath=yes |
| 9758 | |
| 9759 | case $host_os in |
| 9760 | cygwin*) |
| 9761 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9762 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9763 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9764 | ;; |
| 9765 | mingw*) |
| 9766 | # MinGW DLLs use traditional 'lib' prefix |
| 9767 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9768 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9769 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9770 | # It is most probably a Windows format PATH printed by |
| 9771 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9772 | # path with ; separators, and with drive letters. We can handle the |
| 9773 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9774 | # especially as we might pass files found there to a mingw objdump, |
| 9775 | # which wouldn't understand a cygwinified path. Ahh. |
| 9776 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9777 | else |
| 9778 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9779 | fi |
| 9780 | ;; |
| 9781 | pw32*) |
| 9782 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9783 | 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] | 9784 | ;; |
| 9785 | esac |
| 9786 | ;; |
| 9787 | |
| 9788 | *) |
| 9789 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9790 | ;; |
| 9791 | esac |
| 9792 | dynamic_linker='Win32 ld.exe' |
| 9793 | # FIXME: first we should search . and the directory the executable is in |
| 9794 | shlibpath_var=PATH |
| 9795 | ;; |
| 9796 | |
| 9797 | darwin* | rhapsody*) |
| 9798 | dynamic_linker="$host_os dyld" |
| 9799 | version_type=darwin |
| 9800 | need_lib_prefix=no |
| 9801 | need_version=no |
| 9802 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9803 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9804 | shlibpath_overrides_runpath=yes |
| 9805 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9806 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9807 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9808 | if test "$GCC" = yes; then |
| 9809 | 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"` |
| 9810 | else |
| 9811 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9812 | fi |
| 9813 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9814 | ;; |
| 9815 | |
| 9816 | dgux*) |
| 9817 | version_type=linux |
| 9818 | need_lib_prefix=no |
| 9819 | need_version=no |
| 9820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9821 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9822 | shlibpath_var=LD_LIBRARY_PATH |
| 9823 | ;; |
| 9824 | |
| 9825 | freebsd1*) |
| 9826 | dynamic_linker=no |
| 9827 | ;; |
| 9828 | |
| 9829 | kfreebsd*-gnu) |
| 9830 | version_type=linux |
| 9831 | need_lib_prefix=no |
| 9832 | need_version=no |
| 9833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9835 | shlibpath_var=LD_LIBRARY_PATH |
| 9836 | shlibpath_overrides_runpath=no |
| 9837 | hardcode_into_libs=yes |
| 9838 | dynamic_linker='GNU ld.so' |
| 9839 | ;; |
| 9840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9841 | freebsd* | dragonfly*) |
| 9842 | # DragonFly does not have aout. When/if they implement a new |
| 9843 | # versioning mechanism, adjust this. |
| 9844 | if test -x /usr/bin/objformat; then |
| 9845 | objformat=`/usr/bin/objformat` |
| 9846 | else |
| 9847 | case $host_os in |
| 9848 | freebsd[123]*) objformat=aout ;; |
| 9849 | *) objformat=elf ;; |
| 9850 | esac |
| 9851 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9852 | version_type=freebsd-$objformat |
| 9853 | case $version_type in |
| 9854 | freebsd-elf*) |
| 9855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9856 | need_version=no |
| 9857 | need_lib_prefix=no |
| 9858 | ;; |
| 9859 | freebsd-*) |
| 9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9861 | need_version=yes |
| 9862 | ;; |
| 9863 | esac |
| 9864 | shlibpath_var=LD_LIBRARY_PATH |
| 9865 | case $host_os in |
| 9866 | freebsd2*) |
| 9867 | shlibpath_overrides_runpath=yes |
| 9868 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9869 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9870 | shlibpath_overrides_runpath=yes |
| 9871 | hardcode_into_libs=yes |
| 9872 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9873 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9874 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | shlibpath_overrides_runpath=no |
| 9876 | hardcode_into_libs=yes |
| 9877 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9878 | freebsd*) # from 4.6 on |
| 9879 | shlibpath_overrides_runpath=yes |
| 9880 | hardcode_into_libs=yes |
| 9881 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9882 | esac |
| 9883 | ;; |
| 9884 | |
| 9885 | gnu*) |
| 9886 | version_type=linux |
| 9887 | need_lib_prefix=no |
| 9888 | need_version=no |
| 9889 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9890 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9891 | shlibpath_var=LD_LIBRARY_PATH |
| 9892 | hardcode_into_libs=yes |
| 9893 | ;; |
| 9894 | |
| 9895 | hpux9* | hpux10* | hpux11*) |
| 9896 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9897 | # link against other versions. |
| 9898 | version_type=sunos |
| 9899 | need_lib_prefix=no |
| 9900 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9901 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9902 | ia64*) |
| 9903 | shrext_cmds='.so' |
| 9904 | hardcode_into_libs=yes |
| 9905 | dynamic_linker="$host_os dld.so" |
| 9906 | shlibpath_var=LD_LIBRARY_PATH |
| 9907 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9910 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9911 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9912 | else |
| 9913 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9914 | fi |
| 9915 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9916 | ;; |
| 9917 | hppa*64*) |
| 9918 | shrext_cmds='.sl' |
| 9919 | hardcode_into_libs=yes |
| 9920 | dynamic_linker="$host_os dld.sl" |
| 9921 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9922 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9924 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9925 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9926 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9927 | ;; |
| 9928 | *) |
| 9929 | shrext_cmds='.sl' |
| 9930 | dynamic_linker="$host_os dld.sl" |
| 9931 | shlibpath_var=SHLIB_PATH |
| 9932 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9935 | ;; |
| 9936 | esac |
| 9937 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9938 | postinstall_cmds='chmod 555 $lib' |
| 9939 | ;; |
| 9940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9941 | interix3*) |
| 9942 | version_type=linux |
| 9943 | need_lib_prefix=no |
| 9944 | need_version=no |
| 9945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9946 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9947 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9948 | shlibpath_var=LD_LIBRARY_PATH |
| 9949 | shlibpath_overrides_runpath=no |
| 9950 | hardcode_into_libs=yes |
| 9951 | ;; |
| 9952 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9953 | irix5* | irix6* | nonstopux*) |
| 9954 | case $host_os in |
| 9955 | nonstopux*) version_type=nonstopux ;; |
| 9956 | *) |
| 9957 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9958 | version_type=linux |
| 9959 | else |
| 9960 | version_type=irix |
| 9961 | fi ;; |
| 9962 | esac |
| 9963 | need_lib_prefix=no |
| 9964 | need_version=no |
| 9965 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9967 | case $host_os in |
| 9968 | irix5* | nonstopux*) |
| 9969 | libsuff= shlibsuff= |
| 9970 | ;; |
| 9971 | *) |
| 9972 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9973 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9974 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9975 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9976 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9977 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9978 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9979 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9980 | esac |
| 9981 | ;; |
| 9982 | esac |
| 9983 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9984 | shlibpath_overrides_runpath=no |
| 9985 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9986 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9987 | hardcode_into_libs=yes |
| 9988 | ;; |
| 9989 | |
| 9990 | # No shared lib support for Linux oldld, aout, or coff. |
| 9991 | linux*oldld* | linux*aout* | linux*coff*) |
| 9992 | dynamic_linker=no |
| 9993 | ;; |
| 9994 | |
| 9995 | # This must be Linux ELF. |
| 9996 | linux*) |
| 9997 | version_type=linux |
| 9998 | need_lib_prefix=no |
| 9999 | need_version=no |
| 10000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10001 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10003 | shlibpath_var=LD_LIBRARY_PATH |
| 10004 | shlibpath_overrides_runpath=no |
| 10005 | # This implies no fast_install, which is unacceptable. |
| 10006 | # Some rework will be needed to allow for fast_install |
| 10007 | # before this can be enabled. |
| 10008 | hardcode_into_libs=yes |
| 10009 | |
| 10010 | # Append ld.so.conf contents to the search path |
| 10011 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10012 | 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] | 10013 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10014 | fi |
| 10015 | |
| 10016 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10017 | # powerpc, because MkLinux only supported shared libraries with the |
| 10018 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10019 | # most powerpc-linux boxes support dynamic linking these days and |
| 10020 | # people can always --disable-shared, the test was removed, and we |
| 10021 | # assume the GNU/Linux dynamic linker is in use. |
| 10022 | dynamic_linker='GNU/Linux ld.so' |
| 10023 | ;; |
| 10024 | |
| 10025 | knetbsd*-gnu) |
| 10026 | version_type=linux |
| 10027 | need_lib_prefix=no |
| 10028 | need_version=no |
| 10029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10030 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10031 | shlibpath_var=LD_LIBRARY_PATH |
| 10032 | shlibpath_overrides_runpath=no |
| 10033 | hardcode_into_libs=yes |
| 10034 | dynamic_linker='GNU ld.so' |
| 10035 | ;; |
| 10036 | |
| 10037 | netbsd*) |
| 10038 | version_type=sunos |
| 10039 | need_lib_prefix=no |
| 10040 | need_version=no |
| 10041 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10043 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10044 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10045 | else |
| 10046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10048 | dynamic_linker='NetBSD ld.elf_so' |
| 10049 | fi |
| 10050 | shlibpath_var=LD_LIBRARY_PATH |
| 10051 | shlibpath_overrides_runpath=yes |
| 10052 | hardcode_into_libs=yes |
| 10053 | ;; |
| 10054 | |
| 10055 | newsos6) |
| 10056 | version_type=linux |
| 10057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10058 | shlibpath_var=LD_LIBRARY_PATH |
| 10059 | shlibpath_overrides_runpath=yes |
| 10060 | ;; |
| 10061 | |
| 10062 | nto-qnx*) |
| 10063 | version_type=linux |
| 10064 | need_lib_prefix=no |
| 10065 | need_version=no |
| 10066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10067 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10068 | shlibpath_var=LD_LIBRARY_PATH |
| 10069 | shlibpath_overrides_runpath=yes |
| 10070 | ;; |
| 10071 | |
| 10072 | openbsd*) |
| 10073 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10074 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10075 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10076 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10077 | case $host_os in |
| 10078 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10079 | *) need_version=no ;; |
| 10080 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10082 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10083 | shlibpath_var=LD_LIBRARY_PATH |
| 10084 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10085 | case $host_os in |
| 10086 | openbsd2.[89] | openbsd2.[89].*) |
| 10087 | shlibpath_overrides_runpath=no |
| 10088 | ;; |
| 10089 | *) |
| 10090 | shlibpath_overrides_runpath=yes |
| 10091 | ;; |
| 10092 | esac |
| 10093 | else |
| 10094 | shlibpath_overrides_runpath=yes |
| 10095 | fi |
| 10096 | ;; |
| 10097 | |
| 10098 | os2*) |
| 10099 | libname_spec='$name' |
| 10100 | shrext_cmds=".dll" |
| 10101 | need_lib_prefix=no |
| 10102 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10103 | dynamic_linker='OS/2 ld.exe' |
| 10104 | shlibpath_var=LIBPATH |
| 10105 | ;; |
| 10106 | |
| 10107 | osf3* | osf4* | osf5*) |
| 10108 | version_type=osf |
| 10109 | need_lib_prefix=no |
| 10110 | need_version=no |
| 10111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10113 | shlibpath_var=LD_LIBRARY_PATH |
| 10114 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10115 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10116 | ;; |
| 10117 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10118 | solaris*) |
| 10119 | version_type=linux |
| 10120 | need_lib_prefix=no |
| 10121 | need_version=no |
| 10122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10124 | shlibpath_var=LD_LIBRARY_PATH |
| 10125 | shlibpath_overrides_runpath=yes |
| 10126 | hardcode_into_libs=yes |
| 10127 | # ldd complains unless libraries are executable |
| 10128 | postinstall_cmds='chmod +x $lib' |
| 10129 | ;; |
| 10130 | |
| 10131 | sunos4*) |
| 10132 | version_type=sunos |
| 10133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10134 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10135 | shlibpath_var=LD_LIBRARY_PATH |
| 10136 | shlibpath_overrides_runpath=yes |
| 10137 | if test "$with_gnu_ld" = yes; then |
| 10138 | need_lib_prefix=no |
| 10139 | fi |
| 10140 | need_version=yes |
| 10141 | ;; |
| 10142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10143 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10144 | version_type=linux |
| 10145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10146 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10147 | shlibpath_var=LD_LIBRARY_PATH |
| 10148 | case $host_vendor in |
| 10149 | sni) |
| 10150 | shlibpath_overrides_runpath=no |
| 10151 | need_lib_prefix=no |
| 10152 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10153 | runpath_var=LD_RUN_PATH |
| 10154 | ;; |
| 10155 | siemens) |
| 10156 | need_lib_prefix=no |
| 10157 | ;; |
| 10158 | motorola) |
| 10159 | need_lib_prefix=no |
| 10160 | need_version=no |
| 10161 | shlibpath_overrides_runpath=no |
| 10162 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10163 | ;; |
| 10164 | esac |
| 10165 | ;; |
| 10166 | |
| 10167 | sysv4*MP*) |
| 10168 | if test -d /usr/nec ;then |
| 10169 | version_type=linux |
| 10170 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10171 | soname_spec='$libname${shared_ext}.$major' |
| 10172 | shlibpath_var=LD_LIBRARY_PATH |
| 10173 | fi |
| 10174 | ;; |
| 10175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10176 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10177 | version_type=freebsd-elf |
| 10178 | need_lib_prefix=no |
| 10179 | need_version=no |
| 10180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10181 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10182 | shlibpath_var=LD_LIBRARY_PATH |
| 10183 | hardcode_into_libs=yes |
| 10184 | if test "$with_gnu_ld" = yes; then |
| 10185 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10186 | shlibpath_overrides_runpath=no |
| 10187 | else |
| 10188 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10189 | shlibpath_overrides_runpath=yes |
| 10190 | case $host_os in |
| 10191 | sco3.2v5*) |
| 10192 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10193 | ;; |
| 10194 | esac |
| 10195 | fi |
| 10196 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10197 | ;; |
| 10198 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10199 | uts4*) |
| 10200 | version_type=linux |
| 10201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10202 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10203 | shlibpath_var=LD_LIBRARY_PATH |
| 10204 | ;; |
| 10205 | |
| 10206 | *) |
| 10207 | dynamic_linker=no |
| 10208 | ;; |
| 10209 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10210 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10211 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10212 | test "$dynamic_linker" = no && can_build_shared=no |
| 10213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10214 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10215 | if test "$GCC" = yes; then |
| 10216 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10217 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10219 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10220 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10221 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10222 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10224 | else |
| 10225 | |
| 10226 | module=yes |
| 10227 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10228 | |
| 10229 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10230 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10231 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10232 | if test -n "$libltdl_cv_shlibext"; then |
| 10233 | |
| 10234 | cat >>confdefs.h <<_ACEOF |
| 10235 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10236 | _ACEOF |
| 10237 | |
| 10238 | fi |
| 10239 | |
| 10240 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10241 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10242 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10243 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10245 | else |
| 10246 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10247 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10248 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10249 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10250 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10251 | |
| 10252 | cat >>confdefs.h <<_ACEOF |
| 10253 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10254 | _ACEOF |
| 10255 | |
| 10256 | fi |
| 10257 | |
| 10258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10259 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10260 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10261 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10263 | else |
| 10264 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10265 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10266 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10267 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10269 | sys_search_path= |
| 10270 | for dir in $libltdl_cv_sys_search_path; do |
| 10271 | if test -z "$sys_search_path"; then |
| 10272 | sys_search_path="$dir" |
| 10273 | else |
| 10274 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10275 | fi |
| 10276 | done |
| 10277 | |
| 10278 | cat >>confdefs.h <<_ACEOF |
| 10279 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10280 | _ACEOF |
| 10281 | |
| 10282 | fi |
| 10283 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10284 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10285 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10286 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10288 | else |
| 10289 | libltdl_cv_objdir="$objdir" |
| 10290 | if test -n "$objdir"; then |
| 10291 | : |
| 10292 | else |
| 10293 | rm -f .libs 2>/dev/null |
| 10294 | mkdir .libs 2>/dev/null |
| 10295 | if test -d .libs; then |
| 10296 | libltdl_cv_objdir=.libs |
| 10297 | else |
| 10298 | # MS-DOS does not allow filenames that begin with a dot. |
| 10299 | libltdl_cv_objdir=_libs |
| 10300 | fi |
| 10301 | rmdir .libs 2>/dev/null |
| 10302 | fi |
| 10303 | |
| 10304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10305 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10306 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10307 | |
| 10308 | cat >>confdefs.h <<_ACEOF |
| 10309 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10310 | _ACEOF |
| 10311 | |
| 10312 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10313 | |
| 10314 | |
| 10315 | |
| 10316 | |
| 10317 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10318 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10319 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10320 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10322 | else |
| 10323 | |
| 10324 | # These are sane defaults that work on at least a few old systems. |
| 10325 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10326 | |
| 10327 | # Character class describing NM global symbol codes. |
| 10328 | symcode='[BCDEGRST]' |
| 10329 | |
| 10330 | # Regexp to match symbols that can be accessed directly from C. |
| 10331 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10332 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10333 | # Transform an extracted symbol line into a proper C declaration |
| 10334 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10335 | |
| 10336 | # Transform an extracted symbol line into symbol name and symbol address |
| 10337 | 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'" |
| 10338 | |
| 10339 | # Define system-specific variables. |
| 10340 | case $host_os in |
| 10341 | aix*) |
| 10342 | symcode='[BCDT]' |
| 10343 | ;; |
| 10344 | cygwin* | mingw* | pw32*) |
| 10345 | symcode='[ABCDGISTW]' |
| 10346 | ;; |
| 10347 | hpux*) # Its linker distinguishes data from code symbols |
| 10348 | if test "$host_cpu" = ia64; then |
| 10349 | symcode='[ABCDEGRST]' |
| 10350 | fi |
| 10351 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10352 | 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'" |
| 10353 | ;; |
| 10354 | linux*) |
| 10355 | if test "$host_cpu" = ia64; then |
| 10356 | symcode='[ABCDGIRSTW]' |
| 10357 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10358 | 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'" |
| 10359 | fi |
| 10360 | ;; |
| 10361 | irix* | nonstopux*) |
| 10362 | symcode='[BCDEGRST]' |
| 10363 | ;; |
| 10364 | osf*) |
| 10365 | symcode='[BCDEGQRST]' |
| 10366 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10367 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10368 | symcode='[BDRT]' |
| 10369 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10370 | sco3.2v5*) |
| 10371 | symcode='[DT]' |
| 10372 | ;; |
| 10373 | sysv4.2uw2*) |
| 10374 | symcode='[DT]' |
| 10375 | ;; |
| 10376 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10377 | symcode='[ABDT]' |
| 10378 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10379 | sysv4) |
| 10380 | symcode='[DFNSTU]' |
| 10381 | ;; |
| 10382 | esac |
| 10383 | |
| 10384 | # Handle CRLF in mingw tool chain |
| 10385 | opt_cr= |
| 10386 | case $build_os in |
| 10387 | mingw*) |
| 10388 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10389 | ;; |
| 10390 | esac |
| 10391 | |
| 10392 | # If we're using GNU nm, then use its standard symbol codes. |
| 10393 | case `$NM -V 2>&1` in |
| 10394 | *GNU* | *'with BFD'*) |
| 10395 | symcode='[ABCDGIRSTW]' ;; |
| 10396 | esac |
| 10397 | |
| 10398 | # Try without a prefix undercore, then with it. |
| 10399 | for ac_symprfx in "" "_"; do |
| 10400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10401 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10402 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10403 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10404 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10405 | 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] | 10406 | |
| 10407 | # Check to see that the pipe works correctly. |
| 10408 | pipe_works=no |
| 10409 | |
| 10410 | rm -f conftest* |
| 10411 | cat > conftest.$ac_ext <<EOF |
| 10412 | #ifdef __cplusplus |
| 10413 | extern "C" { |
| 10414 | #endif |
| 10415 | char nm_test_var; |
| 10416 | void nm_test_func(){} |
| 10417 | #ifdef __cplusplus |
| 10418 | } |
| 10419 | #endif |
| 10420 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10421 | EOF |
| 10422 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10424 | (eval $ac_compile) 2>&5 |
| 10425 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10428 | # Now try to grab the symbols. |
| 10429 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10430 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10431 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10432 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10434 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10435 | # Try sorting and uniquifying the output. |
| 10436 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10437 | mv -f "$nlist"T "$nlist" |
| 10438 | else |
| 10439 | rm -f "$nlist"T |
| 10440 | fi |
| 10441 | |
| 10442 | # Make sure that we snagged all the symbols we need. |
| 10443 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10444 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10445 | cat <<EOF > conftest.$ac_ext |
| 10446 | #ifdef __cplusplus |
| 10447 | extern "C" { |
| 10448 | #endif |
| 10449 | |
| 10450 | EOF |
| 10451 | # Now generate the symbol file. |
| 10452 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10453 | |
| 10454 | cat <<EOF >> conftest.$ac_ext |
| 10455 | #if defined (__STDC__) && __STDC__ |
| 10456 | # define lt_ptr_t void * |
| 10457 | #else |
| 10458 | # define lt_ptr_t char * |
| 10459 | # define const |
| 10460 | #endif |
| 10461 | |
| 10462 | /* The mapping between symbol names and symbols. */ |
| 10463 | const struct { |
| 10464 | const char *name; |
| 10465 | lt_ptr_t address; |
| 10466 | } |
| 10467 | lt_preloaded_symbols[] = |
| 10468 | { |
| 10469 | EOF |
| 10470 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10471 | cat <<\EOF >> conftest.$ac_ext |
| 10472 | {0, (lt_ptr_t) 0} |
| 10473 | }; |
| 10474 | |
| 10475 | #ifdef __cplusplus |
| 10476 | } |
| 10477 | #endif |
| 10478 | EOF |
| 10479 | # Now try linking the two files. |
| 10480 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10481 | lt_save_LIBS="$LIBS" |
| 10482 | lt_save_CFLAGS="$CFLAGS" |
| 10483 | LIBS="conftstm.$ac_objext" |
| 10484 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | (eval $ac_link) 2>&5 |
| 10487 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10489 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10490 | pipe_works=yes |
| 10491 | fi |
| 10492 | LIBS="$lt_save_LIBS" |
| 10493 | CFLAGS="$lt_save_CFLAGS" |
| 10494 | else |
| 10495 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10496 | fi |
| 10497 | else |
| 10498 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10499 | fi |
| 10500 | else |
| 10501 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10502 | fi |
| 10503 | else |
| 10504 | echo "$progname: failed program was:" >&5 |
| 10505 | cat conftest.$ac_ext >&5 |
| 10506 | fi |
| 10507 | rm -f conftest* conftst* |
| 10508 | |
| 10509 | # Do not use the global_symbol_pipe unless it works. |
| 10510 | if test "$pipe_works" = yes; then |
| 10511 | break |
| 10512 | else |
| 10513 | lt_cv_sys_global_symbol_pipe= |
| 10514 | fi |
| 10515 | done |
| 10516 | |
| 10517 | fi |
| 10518 | |
| 10519 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10520 | lt_cv_sys_global_symbol_to_cdecl= |
| 10521 | fi |
| 10522 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10523 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10524 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10526 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10527 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10528 | fi |
| 10529 | |
| 10530 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10531 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10532 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10533 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10535 | else |
| 10536 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10537 | libltdl_cv_preloaded_symbols=yes |
| 10538 | else |
| 10539 | libltdl_cv_preloaded_symbols=no |
| 10540 | fi |
| 10541 | |
| 10542 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10543 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10544 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10546 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10547 | cat >>confdefs.h <<\_ACEOF |
| 10548 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10549 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10550 | |
| 10551 | fi |
| 10552 | |
| 10553 | LIBADD_DL= |
| 10554 | |
| 10555 | ac_ext=c |
| 10556 | ac_cpp='$CPP $CPPFLAGS' |
| 10557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10560 | |
| 10561 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10562 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10563 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10564 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10566 | else |
| 10567 | cat >conftest.$ac_ext <<_ACEOF |
| 10568 | /* confdefs.h. */ |
| 10569 | _ACEOF |
| 10570 | cat confdefs.h >>conftest.$ac_ext |
| 10571 | cat >>conftest.$ac_ext <<_ACEOF |
| 10572 | /* end confdefs.h. */ |
| 10573 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10575 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10576 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10577 | /* System header to define __stub macros and hopefully few prototypes, |
| 10578 | which can conflict with char shl_load (); below. |
| 10579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10580 | <limits.h> exists even on freestanding compilers. */ |
| 10581 | |
| 10582 | #ifdef __STDC__ |
| 10583 | # include <limits.h> |
| 10584 | #else |
| 10585 | # include <assert.h> |
| 10586 | #endif |
| 10587 | |
| 10588 | #undef shl_load |
| 10589 | |
| 10590 | /* Override any GCC internal prototype to avoid an error. |
| 10591 | Use char because int might match the return type of a GCC |
| 10592 | builtin and then its argument prototype would still apply. */ |
| 10593 | #ifdef __cplusplus |
| 10594 | extern "C" |
| 10595 | #endif |
| 10596 | char shl_load (); |
| 10597 | /* The GNU C library defines this for functions which it implements |
| 10598 | to always fail with ENOSYS. Some functions are actually named |
| 10599 | something starting with __ and the normal name is an alias. */ |
| 10600 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10601 | choke me |
| 10602 | #endif |
| 10603 | |
| 10604 | int |
| 10605 | main () |
| 10606 | { |
| 10607 | return shl_load (); |
| 10608 | ; |
| 10609 | return 0; |
| 10610 | } |
| 10611 | _ACEOF |
| 10612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10613 | if { (ac_try="$ac_link" |
| 10614 | case "(($ac_try" in |
| 10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10616 | *) ac_try_echo=$ac_try;; |
| 10617 | esac |
| 10618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10619 | (eval "$ac_link") 2>conftest.er1 |
| 10620 | ac_status=$? |
| 10621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10622 | rm -f conftest.er1 |
| 10623 | cat conftest.err >&5 |
| 10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10625 | (exit $ac_status); } && |
| 10626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10627 | { (case "(($ac_try" in |
| 10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10629 | *) ac_try_echo=$ac_try;; |
| 10630 | esac |
| 10631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10632 | (eval "$ac_try") 2>&5 |
| 10633 | ac_status=$? |
| 10634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10635 | (exit $ac_status); }; } && |
| 10636 | { ac_try='test -s conftest$ac_exeext' |
| 10637 | { (case "(($ac_try" in |
| 10638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10639 | *) ac_try_echo=$ac_try;; |
| 10640 | esac |
| 10641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10642 | (eval "$ac_try") 2>&5 |
| 10643 | ac_status=$? |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10645 | (exit $ac_status); }; }; then |
| 10646 | ac_cv_func_shl_load=yes |
| 10647 | else |
| 10648 | echo "$as_me: failed program was:" >&5 |
| 10649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10650 | |
| 10651 | ac_cv_func_shl_load=no |
| 10652 | fi |
| 10653 | |
| 10654 | rm -f core conftest.err conftest.$ac_objext \ |
| 10655 | conftest$ac_exeext conftest.$ac_ext |
| 10656 | fi |
| 10657 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10658 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10659 | if test $ac_cv_func_shl_load = yes; then |
| 10660 | |
| 10661 | cat >>confdefs.h <<\_ACEOF |
| 10662 | #define HAVE_SHL_LOAD 1 |
| 10663 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10664 | |
| 10665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10666 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10667 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10668 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10670 | else |
| 10671 | ac_check_lib_save_LIBS=$LIBS |
| 10672 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10678 | /* end confdefs.h. */ |
| 10679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10680 | /* Override any GCC internal prototype to avoid an error. |
| 10681 | Use char because int might match the return type of a GCC |
| 10682 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10683 | #ifdef __cplusplus |
| 10684 | extern "C" |
| 10685 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10686 | char shl_load (); |
| 10687 | int |
| 10688 | main () |
| 10689 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10690 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10691 | ; |
| 10692 | return 0; |
| 10693 | } |
| 10694 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10696 | if { (ac_try="$ac_link" |
| 10697 | case "(($ac_try" in |
| 10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10699 | *) ac_try_echo=$ac_try;; |
| 10700 | esac |
| 10701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10702 | (eval "$ac_link") 2>conftest.er1 |
| 10703 | ac_status=$? |
| 10704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10705 | rm -f conftest.er1 |
| 10706 | cat conftest.err >&5 |
| 10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10708 | (exit $ac_status); } && |
| 10709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10710 | { (case "(($ac_try" in |
| 10711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10712 | *) ac_try_echo=$ac_try;; |
| 10713 | esac |
| 10714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10715 | (eval "$ac_try") 2>&5 |
| 10716 | ac_status=$? |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); }; } && |
| 10719 | { ac_try='test -s conftest$ac_exeext' |
| 10720 | { (case "(($ac_try" in |
| 10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10722 | *) ac_try_echo=$ac_try;; |
| 10723 | esac |
| 10724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10725 | (eval "$ac_try") 2>&5 |
| 10726 | ac_status=$? |
| 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10729 | ac_cv_lib_dld_shl_load=yes |
| 10730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10731 | echo "$as_me: failed program was:" >&5 |
| 10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10733 | |
| 10734 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10736 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10737 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10738 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10739 | LIBS=$ac_check_lib_save_LIBS |
| 10740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10741 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10742 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10743 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10745 | cat >>confdefs.h <<\_ACEOF |
| 10746 | #define HAVE_SHL_LOAD 1 |
| 10747 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10748 | |
| 10749 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10750 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10751 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10752 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10753 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10755 | else |
| 10756 | ac_check_lib_save_LIBS=$LIBS |
| 10757 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10758 | cat >conftest.$ac_ext <<_ACEOF |
| 10759 | /* confdefs.h. */ |
| 10760 | _ACEOF |
| 10761 | cat confdefs.h >>conftest.$ac_ext |
| 10762 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10763 | /* end confdefs.h. */ |
| 10764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10765 | /* Override any GCC internal prototype to avoid an error. |
| 10766 | Use char because int might match the return type of a GCC |
| 10767 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | #ifdef __cplusplus |
| 10769 | extern "C" |
| 10770 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10771 | char dlopen (); |
| 10772 | int |
| 10773 | main () |
| 10774 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10775 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10776 | ; |
| 10777 | return 0; |
| 10778 | } |
| 10779 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10781 | if { (ac_try="$ac_link" |
| 10782 | case "(($ac_try" in |
| 10783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10784 | *) ac_try_echo=$ac_try;; |
| 10785 | esac |
| 10786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10787 | (eval "$ac_link") 2>conftest.er1 |
| 10788 | ac_status=$? |
| 10789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10790 | rm -f conftest.er1 |
| 10791 | cat conftest.err >&5 |
| 10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10793 | (exit $ac_status); } && |
| 10794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10795 | { (case "(($ac_try" in |
| 10796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10797 | *) ac_try_echo=$ac_try;; |
| 10798 | esac |
| 10799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10800 | (eval "$ac_try") 2>&5 |
| 10801 | ac_status=$? |
| 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); }; } && |
| 10804 | { ac_try='test -s conftest$ac_exeext' |
| 10805 | { (case "(($ac_try" in |
| 10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10807 | *) ac_try_echo=$ac_try;; |
| 10808 | esac |
| 10809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10810 | (eval "$ac_try") 2>&5 |
| 10811 | ac_status=$? |
| 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10813 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10814 | ac_cv_lib_dl_dlopen=yes |
| 10815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10816 | echo "$as_me: failed program was:" >&5 |
| 10817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10818 | |
| 10819 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10820 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10821 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10822 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10823 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10824 | LIBS=$ac_check_lib_save_LIBS |
| 10825 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10826 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10827 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10828 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10829 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10830 | cat >>confdefs.h <<\_ACEOF |
| 10831 | #define HAVE_LIBDL 1 |
| 10832 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10833 | |
| 10834 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10835 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10836 | cat >conftest.$ac_ext <<_ACEOF |
| 10837 | /* confdefs.h. */ |
| 10838 | _ACEOF |
| 10839 | cat confdefs.h >>conftest.$ac_ext |
| 10840 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10841 | /* end confdefs.h. */ |
| 10842 | #if HAVE_DLFCN_H |
| 10843 | # include <dlfcn.h> |
| 10844 | #endif |
| 10845 | |
| 10846 | int |
| 10847 | main () |
| 10848 | { |
| 10849 | dlopen(0, 0); |
| 10850 | ; |
| 10851 | return 0; |
| 10852 | } |
| 10853 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10855 | if { (ac_try="$ac_link" |
| 10856 | case "(($ac_try" in |
| 10857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10858 | *) ac_try_echo=$ac_try;; |
| 10859 | esac |
| 10860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10861 | (eval "$ac_link") 2>conftest.er1 |
| 10862 | ac_status=$? |
| 10863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10864 | rm -f conftest.er1 |
| 10865 | cat conftest.err >&5 |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); } && |
| 10868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10869 | { (case "(($ac_try" in |
| 10870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10871 | *) ac_try_echo=$ac_try;; |
| 10872 | esac |
| 10873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10874 | (eval "$ac_try") 2>&5 |
| 10875 | ac_status=$? |
| 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); }; } && |
| 10878 | { ac_try='test -s conftest$ac_exeext' |
| 10879 | { (case "(($ac_try" in |
| 10880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10881 | *) ac_try_echo=$ac_try;; |
| 10882 | esac |
| 10883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10884 | (eval "$ac_try") 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10888 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10889 | cat >>confdefs.h <<\_ACEOF |
| 10890 | #define HAVE_LIBDL 1 |
| 10891 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10892 | libltdl_cv_func_dlopen="yes" |
| 10893 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10894 | echo "$as_me: failed program was:" >&5 |
| 10895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10896 | |
| 10897 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10898 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10899 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10901 | else |
| 10902 | ac_check_lib_save_LIBS=$LIBS |
| 10903 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10904 | cat >conftest.$ac_ext <<_ACEOF |
| 10905 | /* confdefs.h. */ |
| 10906 | _ACEOF |
| 10907 | cat confdefs.h >>conftest.$ac_ext |
| 10908 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10909 | /* end confdefs.h. */ |
| 10910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10911 | /* Override any GCC internal prototype to avoid an error. |
| 10912 | Use char because int might match the return type of a GCC |
| 10913 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10914 | #ifdef __cplusplus |
| 10915 | extern "C" |
| 10916 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10917 | char dlopen (); |
| 10918 | int |
| 10919 | main () |
| 10920 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10921 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10922 | ; |
| 10923 | return 0; |
| 10924 | } |
| 10925 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10927 | if { (ac_try="$ac_link" |
| 10928 | case "(($ac_try" in |
| 10929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10930 | *) ac_try_echo=$ac_try;; |
| 10931 | esac |
| 10932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10933 | (eval "$ac_link") 2>conftest.er1 |
| 10934 | ac_status=$? |
| 10935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10936 | rm -f conftest.er1 |
| 10937 | cat conftest.err >&5 |
| 10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10939 | (exit $ac_status); } && |
| 10940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10941 | { (case "(($ac_try" in |
| 10942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10943 | *) ac_try_echo=$ac_try;; |
| 10944 | esac |
| 10945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10946 | (eval "$ac_try") 2>&5 |
| 10947 | ac_status=$? |
| 10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); }; } && |
| 10950 | { ac_try='test -s conftest$ac_exeext' |
| 10951 | { (case "(($ac_try" in |
| 10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10953 | *) ac_try_echo=$ac_try;; |
| 10954 | esac |
| 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10956 | (eval "$ac_try") 2>&5 |
| 10957 | ac_status=$? |
| 10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10959 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10960 | ac_cv_lib_svld_dlopen=yes |
| 10961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10962 | echo "$as_me: failed program was:" >&5 |
| 10963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10964 | |
| 10965 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10967 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10968 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10969 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10970 | LIBS=$ac_check_lib_save_LIBS |
| 10971 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10972 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10973 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10974 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10976 | cat >>confdefs.h <<\_ACEOF |
| 10977 | #define HAVE_LIBDL 1 |
| 10978 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | |
| 10980 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10981 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10982 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10983 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10984 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10986 | else |
| 10987 | ac_check_lib_save_LIBS=$LIBS |
| 10988 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10989 | cat >conftest.$ac_ext <<_ACEOF |
| 10990 | /* confdefs.h. */ |
| 10991 | _ACEOF |
| 10992 | cat confdefs.h >>conftest.$ac_ext |
| 10993 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10994 | /* end confdefs.h. */ |
| 10995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10996 | /* Override any GCC internal prototype to avoid an error. |
| 10997 | Use char because int might match the return type of a GCC |
| 10998 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10999 | #ifdef __cplusplus |
| 11000 | extern "C" |
| 11001 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11002 | char dld_link (); |
| 11003 | int |
| 11004 | main () |
| 11005 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11006 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11007 | ; |
| 11008 | return 0; |
| 11009 | } |
| 11010 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11012 | if { (ac_try="$ac_link" |
| 11013 | case "(($ac_try" in |
| 11014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11015 | *) ac_try_echo=$ac_try;; |
| 11016 | esac |
| 11017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11018 | (eval "$ac_link") 2>conftest.er1 |
| 11019 | ac_status=$? |
| 11020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11021 | rm -f conftest.er1 |
| 11022 | cat conftest.err >&5 |
| 11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11024 | (exit $ac_status); } && |
| 11025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11026 | { (case "(($ac_try" in |
| 11027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11028 | *) ac_try_echo=$ac_try;; |
| 11029 | esac |
| 11030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11031 | (eval "$ac_try") 2>&5 |
| 11032 | ac_status=$? |
| 11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11034 | (exit $ac_status); }; } && |
| 11035 | { ac_try='test -s conftest$ac_exeext' |
| 11036 | { (case "(($ac_try" in |
| 11037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11038 | *) ac_try_echo=$ac_try;; |
| 11039 | esac |
| 11040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11041 | (eval "$ac_try") 2>&5 |
| 11042 | ac_status=$? |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11045 | ac_cv_lib_dld_dld_link=yes |
| 11046 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11047 | echo "$as_me: failed program was:" >&5 |
| 11048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11049 | |
| 11050 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11051 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11052 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11053 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11054 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11055 | LIBS=$ac_check_lib_save_LIBS |
| 11056 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11058 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11059 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11061 | cat >>confdefs.h <<\_ACEOF |
| 11062 | #define HAVE_DLD 1 |
| 11063 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11064 | |
| 11065 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11066 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11067 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11068 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11069 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11071 | else |
| 11072 | cat >conftest.$ac_ext <<_ACEOF |
| 11073 | /* confdefs.h. */ |
| 11074 | _ACEOF |
| 11075 | cat confdefs.h >>conftest.$ac_ext |
| 11076 | cat >>conftest.$ac_ext <<_ACEOF |
| 11077 | /* end confdefs.h. */ |
| 11078 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11080 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11081 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11082 | /* System header to define __stub macros and hopefully few prototypes, |
| 11083 | which can conflict with char _dyld_func_lookup (); below. |
| 11084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11085 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11086 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11087 | #ifdef __STDC__ |
| 11088 | # include <limits.h> |
| 11089 | #else |
| 11090 | # include <assert.h> |
| 11091 | #endif |
| 11092 | |
| 11093 | #undef _dyld_func_lookup |
| 11094 | |
| 11095 | /* Override any GCC internal prototype to avoid an error. |
| 11096 | Use char because int might match the return type of a GCC |
| 11097 | builtin and then its argument prototype would still apply. */ |
| 11098 | #ifdef __cplusplus |
| 11099 | extern "C" |
| 11100 | #endif |
| 11101 | char _dyld_func_lookup (); |
| 11102 | /* The GNU C library defines this for functions which it implements |
| 11103 | to always fail with ENOSYS. Some functions are actually named |
| 11104 | something starting with __ and the normal name is an alias. */ |
| 11105 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11106 | choke me |
| 11107 | #endif |
| 11108 | |
| 11109 | int |
| 11110 | main () |
| 11111 | { |
| 11112 | return _dyld_func_lookup (); |
| 11113 | ; |
| 11114 | return 0; |
| 11115 | } |
| 11116 | _ACEOF |
| 11117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11118 | if { (ac_try="$ac_link" |
| 11119 | case "(($ac_try" in |
| 11120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11121 | *) ac_try_echo=$ac_try;; |
| 11122 | esac |
| 11123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11124 | (eval "$ac_link") 2>conftest.er1 |
| 11125 | ac_status=$? |
| 11126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11127 | rm -f conftest.er1 |
| 11128 | cat conftest.err >&5 |
| 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11130 | (exit $ac_status); } && |
| 11131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11132 | { (case "(($ac_try" in |
| 11133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11134 | *) ac_try_echo=$ac_try;; |
| 11135 | esac |
| 11136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11137 | (eval "$ac_try") 2>&5 |
| 11138 | ac_status=$? |
| 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11140 | (exit $ac_status); }; } && |
| 11141 | { ac_try='test -s conftest$ac_exeext' |
| 11142 | { (case "(($ac_try" in |
| 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11144 | *) ac_try_echo=$ac_try;; |
| 11145 | esac |
| 11146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11147 | (eval "$ac_try") 2>&5 |
| 11148 | ac_status=$? |
| 11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11150 | (exit $ac_status); }; }; then |
| 11151 | ac_cv_func__dyld_func_lookup=yes |
| 11152 | else |
| 11153 | echo "$as_me: failed program was:" >&5 |
| 11154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11155 | |
| 11156 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11158 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11159 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11160 | conftest$ac_exeext conftest.$ac_ext |
| 11161 | fi |
| 11162 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11163 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11164 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11165 | |
| 11166 | cat >>confdefs.h <<\_ACEOF |
| 11167 | #define HAVE_DYLD 1 |
| 11168 | _ACEOF |
| 11169 | |
| 11170 | fi |
| 11171 | |
| 11172 | |
| 11173 | fi |
| 11174 | |
| 11175 | |
| 11176 | fi |
| 11177 | |
| 11178 | |
| 11179 | fi |
| 11180 | |
| 11181 | rm -f core conftest.err conftest.$ac_objext \ |
| 11182 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11183 | |
| 11184 | fi |
| 11185 | |
| 11186 | |
| 11187 | fi |
| 11188 | |
| 11189 | |
| 11190 | fi |
| 11191 | |
| 11192 | |
| 11193 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11194 | then |
| 11195 | lt_save_LIBS="$LIBS" |
| 11196 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11197 | |
| 11198 | for ac_func in dlerror |
| 11199 | do |
| 11200 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11201 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11202 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11203 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11205 | else |
| 11206 | cat >conftest.$ac_ext <<_ACEOF |
| 11207 | /* confdefs.h. */ |
| 11208 | _ACEOF |
| 11209 | cat confdefs.h >>conftest.$ac_ext |
| 11210 | cat >>conftest.$ac_ext <<_ACEOF |
| 11211 | /* end confdefs.h. */ |
| 11212 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11213 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11214 | #define $ac_func innocuous_$ac_func |
| 11215 | |
| 11216 | /* System header to define __stub macros and hopefully few prototypes, |
| 11217 | which can conflict with char $ac_func (); below. |
| 11218 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11219 | <limits.h> exists even on freestanding compilers. */ |
| 11220 | |
| 11221 | #ifdef __STDC__ |
| 11222 | # include <limits.h> |
| 11223 | #else |
| 11224 | # include <assert.h> |
| 11225 | #endif |
| 11226 | |
| 11227 | #undef $ac_func |
| 11228 | |
| 11229 | /* Override any GCC internal prototype to avoid an error. |
| 11230 | Use char because int might match the return type of a GCC |
| 11231 | builtin and then its argument prototype would still apply. */ |
| 11232 | #ifdef __cplusplus |
| 11233 | extern "C" |
| 11234 | #endif |
| 11235 | char $ac_func (); |
| 11236 | /* The GNU C library defines this for functions which it implements |
| 11237 | to always fail with ENOSYS. Some functions are actually named |
| 11238 | something starting with __ and the normal name is an alias. */ |
| 11239 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11240 | choke me |
| 11241 | #endif |
| 11242 | |
| 11243 | int |
| 11244 | main () |
| 11245 | { |
| 11246 | return $ac_func (); |
| 11247 | ; |
| 11248 | return 0; |
| 11249 | } |
| 11250 | _ACEOF |
| 11251 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11252 | if { (ac_try="$ac_link" |
| 11253 | case "(($ac_try" in |
| 11254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11255 | *) ac_try_echo=$ac_try;; |
| 11256 | esac |
| 11257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11258 | (eval "$ac_link") 2>conftest.er1 |
| 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); } && |
| 11265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11266 | { (case "(($ac_try" in |
| 11267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11268 | *) ac_try_echo=$ac_try;; |
| 11269 | esac |
| 11270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11271 | (eval "$ac_try") 2>&5 |
| 11272 | ac_status=$? |
| 11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11274 | (exit $ac_status); }; } && |
| 11275 | { ac_try='test -s conftest$ac_exeext' |
| 11276 | { (case "(($ac_try" in |
| 11277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11278 | *) ac_try_echo=$ac_try;; |
| 11279 | esac |
| 11280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11281 | (eval "$ac_try") 2>&5 |
| 11282 | ac_status=$? |
| 11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11284 | (exit $ac_status); }; }; then |
| 11285 | eval "$as_ac_var=yes" |
| 11286 | else |
| 11287 | echo "$as_me: failed program was:" >&5 |
| 11288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11289 | |
| 11290 | eval "$as_ac_var=no" |
| 11291 | fi |
| 11292 | |
| 11293 | rm -f core conftest.err conftest.$ac_objext \ |
| 11294 | conftest$ac_exeext conftest.$ac_ext |
| 11295 | fi |
| 11296 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11297 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11298 | echo "${ECHO_T}$ac_res" >&6; } |
| 11299 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11300 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11301 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11302 | _ACEOF |
| 11303 | |
| 11304 | fi |
| 11305 | done |
| 11306 | |
| 11307 | LIBS="$lt_save_LIBS" |
| 11308 | fi |
| 11309 | ac_ext=c |
| 11310 | ac_cpp='$CPP $CPPFLAGS' |
| 11311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11314 | |
| 11315 | |
| 11316 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11317 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11318 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11319 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 | else |
| 11322 | ac_cv_sys_symbol_underscore=no |
| 11323 | cat > conftest.$ac_ext <<EOF |
| 11324 | void nm_test_func(){} |
| 11325 | int main(){nm_test_func;return 0;} |
| 11326 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11328 | (eval $ac_compile) 2>&5 |
| 11329 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11331 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11332 | # Now try to grab the symbols. |
| 11333 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11334 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11335 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11336 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11338 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11339 | # See whether the symbols have a leading underscore. |
| 11340 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11341 | ac_cv_sys_symbol_underscore=yes |
| 11342 | else |
| 11343 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11344 | : |
| 11345 | else |
| 11346 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11347 | fi |
| 11348 | fi |
| 11349 | else |
| 11350 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11351 | fi |
| 11352 | else |
| 11353 | echo "configure: failed program was:" >&5 |
| 11354 | cat conftest.c >&5 |
| 11355 | fi |
| 11356 | rm -rf conftest* |
| 11357 | |
| 11358 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11359 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11360 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11361 | |
| 11362 | |
| 11363 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11364 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11365 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11366 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11367 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11368 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11370 | else |
| 11371 | libltdl_cv_need_uscore=unknown |
| 11372 | save_LIBS="$LIBS" |
| 11373 | LIBS="$LIBS $LIBADD_DL" |
| 11374 | if test "$cross_compiling" = yes; then : |
| 11375 | libltdl_cv_need_uscore=cross |
| 11376 | else |
| 11377 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11378 | lt_status=$lt_dlunknown |
| 11379 | cat > conftest.$ac_ext <<EOF |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 11380 | #line 11381 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11381 | #include "confdefs.h" |
| 11382 | |
| 11383 | #if HAVE_DLFCN_H |
| 11384 | #include <dlfcn.h> |
| 11385 | #endif |
| 11386 | |
| 11387 | #include <stdio.h> |
| 11388 | |
| 11389 | #ifdef RTLD_GLOBAL |
| 11390 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11391 | #else |
| 11392 | # ifdef DL_GLOBAL |
| 11393 | # define LT_DLGLOBAL DL_GLOBAL |
| 11394 | # else |
| 11395 | # define LT_DLGLOBAL 0 |
| 11396 | # endif |
| 11397 | #endif |
| 11398 | |
| 11399 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11400 | find out it does not work in some platform. */ |
| 11401 | #ifndef LT_DLLAZY_OR_NOW |
| 11402 | # ifdef RTLD_LAZY |
| 11403 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11404 | # else |
| 11405 | # ifdef DL_LAZY |
| 11406 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11407 | # else |
| 11408 | # ifdef RTLD_NOW |
| 11409 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11410 | # else |
| 11411 | # ifdef DL_NOW |
| 11412 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11413 | # else |
| 11414 | # define LT_DLLAZY_OR_NOW 0 |
| 11415 | # endif |
| 11416 | # endif |
| 11417 | # endif |
| 11418 | # endif |
| 11419 | #endif |
| 11420 | |
| 11421 | #ifdef __cplusplus |
| 11422 | extern "C" void exit (int); |
| 11423 | #endif |
| 11424 | |
| 11425 | void fnord() { int i=42;} |
| 11426 | int main () |
| 11427 | { |
| 11428 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11429 | int status = $lt_dlunknown; |
| 11430 | |
| 11431 | if (self) |
| 11432 | { |
| 11433 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11434 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11435 | /* dlclose (self); */ |
| 11436 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11437 | else |
| 11438 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11439 | |
| 11440 | exit (status); |
| 11441 | } |
| 11442 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11444 | (eval $ac_link) 2>&5 |
| 11445 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11447 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11448 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11449 | lt_status=$? |
| 11450 | case x$lt_status in |
| 11451 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11452 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11453 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11454 | esac |
| 11455 | else : |
| 11456 | # compilation failed |
| 11457 | |
| 11458 | fi |
| 11459 | fi |
| 11460 | rm -fr conftest* |
| 11461 | |
| 11462 | LIBS="$save_LIBS" |
| 11463 | |
| 11464 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11465 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11466 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11467 | fi |
| 11468 | fi |
| 11469 | |
| 11470 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11471 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11472 | cat >>confdefs.h <<\_ACEOF |
| 11473 | #define NEED_USCORE 1 |
| 11474 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11475 | |
| 11476 | fi |
| 11477 | |
| 11478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11479 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11480 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11481 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11483 | else |
| 11484 | # PORTME does your system automatically load deplibs for dlopen? |
| 11485 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11486 | # For now, we just catch OSes we know something about -- in the |
| 11487 | # future, we'll try test this programmatically. |
| 11488 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11489 | case "$host_os" in |
| 11490 | aix3*|aix4.1.*|aix4.2.*) |
| 11491 | # Unknown whether this is true for these versions of AIX, but |
| 11492 | # we want this `case' here to explicitly catch those versions. |
| 11493 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11494 | ;; |
| 11495 | aix[45]*) |
| 11496 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11497 | ;; |
| 11498 | darwin*) |
| 11499 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11500 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11501 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11502 | ;; |
| 11503 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11504 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11505 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11506 | ;; |
| 11507 | hpux10*|hpux11*) |
| 11508 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11509 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11510 | interix*) |
| 11511 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11512 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11513 | irix[12345]*|irix6.[01]*) |
| 11514 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11515 | # know how it worked for any of those versions. |
| 11516 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11517 | ;; |
| 11518 | irix*) |
| 11519 | # The case above catches anything before 6.2, and it's known that |
| 11520 | # at 6.2 and later dlopen does load deplibs. |
| 11521 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11522 | ;; |
| 11523 | netbsd*) |
| 11524 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11525 | ;; |
| 11526 | openbsd*) |
| 11527 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11528 | ;; |
| 11529 | osf[1234]*) |
| 11530 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11531 | # it did *not* use an RPATH in a shared library to find objects the |
| 11532 | # library depends on, so we explictly say `no'. |
| 11533 | libltdl_cv_sys_dlopen_deplibs=no |
| 11534 | ;; |
| 11535 | osf5.0|osf5.0a|osf5.1) |
| 11536 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11537 | # it even uses RPATH in a shared library to search for shared objects |
| 11538 | # that the library depends on, but there's no easy way to know if that |
| 11539 | # patch is installed. Since this is the case, all we can really |
| 11540 | # say is unknown -- it depends on the patch being installed. If |
| 11541 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11542 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11543 | ;; |
| 11544 | osf*) |
| 11545 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11546 | # the comments above for what we know about them. |
| 11547 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11548 | # is used to find them so we can finally say `yes'. |
| 11549 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11550 | ;; |
| 11551 | solaris*) |
| 11552 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11553 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11554 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11555 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11556 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11557 | esac |
| 11558 | |
| 11559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11560 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11561 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11562 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11563 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11564 | cat >>confdefs.h <<\_ACEOF |
| 11565 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11566 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11567 | |
| 11568 | fi |
| 11569 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11570 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11571 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11572 | do |
| 11573 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11574 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11575 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11576 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11579 | fi |
| 11580 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11581 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11582 | echo "${ECHO_T}$ac_res" >&6; } |
| 11583 | else |
| 11584 | # Is the header compilable? |
| 11585 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11586 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11587 | cat >conftest.$ac_ext <<_ACEOF |
| 11588 | /* confdefs.h. */ |
| 11589 | _ACEOF |
| 11590 | cat confdefs.h >>conftest.$ac_ext |
| 11591 | cat >>conftest.$ac_ext <<_ACEOF |
| 11592 | /* end confdefs.h. */ |
| 11593 | $ac_includes_default |
| 11594 | #include <$ac_header> |
| 11595 | _ACEOF |
| 11596 | rm -f conftest.$ac_objext |
| 11597 | if { (ac_try="$ac_compile" |
| 11598 | case "(($ac_try" in |
| 11599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11600 | *) ac_try_echo=$ac_try;; |
| 11601 | esac |
| 11602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11603 | (eval "$ac_compile") 2>conftest.er1 |
| 11604 | ac_status=$? |
| 11605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11606 | rm -f conftest.er1 |
| 11607 | cat conftest.err >&5 |
| 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11609 | (exit $ac_status); } && |
| 11610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11611 | { (case "(($ac_try" in |
| 11612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11613 | *) ac_try_echo=$ac_try;; |
| 11614 | esac |
| 11615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11616 | (eval "$ac_try") 2>&5 |
| 11617 | ac_status=$? |
| 11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11619 | (exit $ac_status); }; } && |
| 11620 | { ac_try='test -s conftest.$ac_objext' |
| 11621 | { (case "(($ac_try" in |
| 11622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11623 | *) ac_try_echo=$ac_try;; |
| 11624 | esac |
| 11625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11626 | (eval "$ac_try") 2>&5 |
| 11627 | ac_status=$? |
| 11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11629 | (exit $ac_status); }; }; then |
| 11630 | ac_header_compiler=yes |
| 11631 | else |
| 11632 | echo "$as_me: failed program was:" >&5 |
| 11633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11634 | |
| 11635 | ac_header_compiler=no |
| 11636 | fi |
| 11637 | |
| 11638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11639 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11640 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11641 | |
| 11642 | # Is the header present? |
| 11643 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11644 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11645 | cat >conftest.$ac_ext <<_ACEOF |
| 11646 | /* confdefs.h. */ |
| 11647 | _ACEOF |
| 11648 | cat confdefs.h >>conftest.$ac_ext |
| 11649 | cat >>conftest.$ac_ext <<_ACEOF |
| 11650 | /* end confdefs.h. */ |
| 11651 | #include <$ac_header> |
| 11652 | _ACEOF |
| 11653 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11654 | case "(($ac_try" in |
| 11655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11656 | *) ac_try_echo=$ac_try;; |
| 11657 | esac |
| 11658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11659 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11660 | ac_status=$? |
| 11661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11662 | rm -f conftest.er1 |
| 11663 | cat conftest.err >&5 |
| 11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11665 | (exit $ac_status); } >/dev/null; then |
| 11666 | if test -s conftest.err; then |
| 11667 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11668 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11669 | else |
| 11670 | ac_cpp_err= |
| 11671 | fi |
| 11672 | else |
| 11673 | ac_cpp_err=yes |
| 11674 | fi |
| 11675 | if test -z "$ac_cpp_err"; then |
| 11676 | ac_header_preproc=yes |
| 11677 | else |
| 11678 | echo "$as_me: failed program was:" >&5 |
| 11679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11680 | |
| 11681 | ac_header_preproc=no |
| 11682 | fi |
| 11683 | |
| 11684 | rm -f conftest.err conftest.$ac_ext |
| 11685 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11686 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11687 | |
| 11688 | # So? What about this header? |
| 11689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11690 | yes:no: ) |
| 11691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11695 | ac_header_preproc=yes |
| 11696 | ;; |
| 11697 | no:yes:* ) |
| 11698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11710 | ( cat <<\_ASBOX |
| 11711 | ## ----------------------------------- ## |
| 11712 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11713 | ## ----------------------------------- ## |
| 11714 | _ASBOX |
| 11715 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11716 | ;; |
| 11717 | esac |
| 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 |
| 11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11722 | else |
| 11723 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11724 | fi |
| 11725 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11726 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11727 | echo "${ECHO_T}$ac_res" >&6; } |
| 11728 | |
| 11729 | fi |
| 11730 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11731 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11732 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11733 | _ACEOF |
| 11734 | |
| 11735 | fi |
| 11736 | |
| 11737 | done |
| 11738 | |
| 11739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11740 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11741 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11742 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11744 | else |
| 11745 | cat >conftest.$ac_ext <<_ACEOF |
| 11746 | /* confdefs.h. */ |
| 11747 | _ACEOF |
| 11748 | cat confdefs.h >>conftest.$ac_ext |
| 11749 | cat >>conftest.$ac_ext <<_ACEOF |
| 11750 | /* end confdefs.h. */ |
| 11751 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11752 | # include <argz.h> |
| 11753 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11754 | |
| 11755 | typedef error_t ac__type_new_; |
| 11756 | int |
| 11757 | main () |
| 11758 | { |
| 11759 | if ((ac__type_new_ *) 0) |
| 11760 | return 0; |
| 11761 | if (sizeof (ac__type_new_)) |
| 11762 | return 0; |
| 11763 | ; |
| 11764 | return 0; |
| 11765 | } |
| 11766 | _ACEOF |
| 11767 | rm -f conftest.$ac_objext |
| 11768 | if { (ac_try="$ac_compile" |
| 11769 | case "(($ac_try" in |
| 11770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11771 | *) ac_try_echo=$ac_try;; |
| 11772 | esac |
| 11773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11774 | (eval "$ac_compile") 2>conftest.er1 |
| 11775 | ac_status=$? |
| 11776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11777 | rm -f conftest.er1 |
| 11778 | cat conftest.err >&5 |
| 11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11780 | (exit $ac_status); } && |
| 11781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11782 | { (case "(($ac_try" in |
| 11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11784 | *) ac_try_echo=$ac_try;; |
| 11785 | esac |
| 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11787 | (eval "$ac_try") 2>&5 |
| 11788 | ac_status=$? |
| 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11790 | (exit $ac_status); }; } && |
| 11791 | { ac_try='test -s conftest.$ac_objext' |
| 11792 | { (case "(($ac_try" in |
| 11793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11794 | *) ac_try_echo=$ac_try;; |
| 11795 | esac |
| 11796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11797 | (eval "$ac_try") 2>&5 |
| 11798 | ac_status=$? |
| 11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11800 | (exit $ac_status); }; }; then |
| 11801 | ac_cv_type_error_t=yes |
| 11802 | else |
| 11803 | echo "$as_me: failed program was:" >&5 |
| 11804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11805 | |
| 11806 | ac_cv_type_error_t=no |
| 11807 | fi |
| 11808 | |
| 11809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11810 | fi |
| 11811 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11812 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11813 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11814 | |
| 11815 | cat >>confdefs.h <<_ACEOF |
| 11816 | #define HAVE_ERROR_T 1 |
| 11817 | _ACEOF |
| 11818 | |
| 11819 | |
| 11820 | else |
| 11821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11822 | cat >>confdefs.h <<\_ACEOF |
| 11823 | #define error_t int |
| 11824 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11825 | |
| 11826 | fi |
| 11827 | |
| 11828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11829 | |
| 11830 | |
| 11831 | |
| 11832 | |
| 11833 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11834 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11835 | do |
| 11836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11837 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11839 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11841 | else |
| 11842 | cat >conftest.$ac_ext <<_ACEOF |
| 11843 | /* confdefs.h. */ |
| 11844 | _ACEOF |
| 11845 | cat confdefs.h >>conftest.$ac_ext |
| 11846 | cat >>conftest.$ac_ext <<_ACEOF |
| 11847 | /* end confdefs.h. */ |
| 11848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11850 | #define $ac_func innocuous_$ac_func |
| 11851 | |
| 11852 | /* System header to define __stub macros and hopefully few prototypes, |
| 11853 | which can conflict with char $ac_func (); below. |
| 11854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11855 | <limits.h> exists even on freestanding compilers. */ |
| 11856 | |
| 11857 | #ifdef __STDC__ |
| 11858 | # include <limits.h> |
| 11859 | #else |
| 11860 | # include <assert.h> |
| 11861 | #endif |
| 11862 | |
| 11863 | #undef $ac_func |
| 11864 | |
| 11865 | /* Override any GCC internal prototype to avoid an error. |
| 11866 | Use char because int might match the return type of a GCC |
| 11867 | builtin and then its argument prototype would still apply. */ |
| 11868 | #ifdef __cplusplus |
| 11869 | extern "C" |
| 11870 | #endif |
| 11871 | char $ac_func (); |
| 11872 | /* The GNU C library defines this for functions which it implements |
| 11873 | to always fail with ENOSYS. Some functions are actually named |
| 11874 | something starting with __ and the normal name is an alias. */ |
| 11875 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11876 | choke me |
| 11877 | #endif |
| 11878 | |
| 11879 | int |
| 11880 | main () |
| 11881 | { |
| 11882 | return $ac_func (); |
| 11883 | ; |
| 11884 | return 0; |
| 11885 | } |
| 11886 | _ACEOF |
| 11887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11888 | if { (ac_try="$ac_link" |
| 11889 | case "(($ac_try" in |
| 11890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11891 | *) ac_try_echo=$ac_try;; |
| 11892 | esac |
| 11893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11894 | (eval "$ac_link") 2>conftest.er1 |
| 11895 | ac_status=$? |
| 11896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11897 | rm -f conftest.er1 |
| 11898 | cat conftest.err >&5 |
| 11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11900 | (exit $ac_status); } && |
| 11901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11902 | { (case "(($ac_try" in |
| 11903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11904 | *) ac_try_echo=$ac_try;; |
| 11905 | esac |
| 11906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11907 | (eval "$ac_try") 2>&5 |
| 11908 | ac_status=$? |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); }; } && |
| 11911 | { ac_try='test -s conftest$ac_exeext' |
| 11912 | { (case "(($ac_try" in |
| 11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11914 | *) ac_try_echo=$ac_try;; |
| 11915 | esac |
| 11916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11917 | (eval "$ac_try") 2>&5 |
| 11918 | ac_status=$? |
| 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); }; }; then |
| 11921 | eval "$as_ac_var=yes" |
| 11922 | else |
| 11923 | echo "$as_me: failed program was:" >&5 |
| 11924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11925 | |
| 11926 | eval "$as_ac_var=no" |
| 11927 | fi |
| 11928 | |
| 11929 | rm -f core conftest.err conftest.$ac_objext \ |
| 11930 | conftest$ac_exeext conftest.$ac_ext |
| 11931 | fi |
| 11932 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11934 | echo "${ECHO_T}$ac_res" >&6; } |
| 11935 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11936 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11937 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11938 | _ACEOF |
| 11939 | |
| 11940 | fi |
| 11941 | done |
| 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| 11951 | |
| 11952 | |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | |
| 11961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11970 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11971 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11972 | do |
| 11973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11974 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11975 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11979 | fi |
| 11980 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11981 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11982 | echo "${ECHO_T}$ac_res" >&6; } |
| 11983 | else |
| 11984 | # Is the header compilable? |
| 11985 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11986 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11987 | cat >conftest.$ac_ext <<_ACEOF |
| 11988 | /* confdefs.h. */ |
| 11989 | _ACEOF |
| 11990 | cat confdefs.h >>conftest.$ac_ext |
| 11991 | cat >>conftest.$ac_ext <<_ACEOF |
| 11992 | /* end confdefs.h. */ |
| 11993 | $ac_includes_default |
| 11994 | #include <$ac_header> |
| 11995 | _ACEOF |
| 11996 | rm -f conftest.$ac_objext |
| 11997 | if { (ac_try="$ac_compile" |
| 11998 | case "(($ac_try" in |
| 11999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12000 | *) ac_try_echo=$ac_try;; |
| 12001 | esac |
| 12002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12003 | (eval "$ac_compile") 2>conftest.er1 |
| 12004 | ac_status=$? |
| 12005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12006 | rm -f conftest.er1 |
| 12007 | cat conftest.err >&5 |
| 12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12009 | (exit $ac_status); } && |
| 12010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12011 | { (case "(($ac_try" in |
| 12012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12013 | *) ac_try_echo=$ac_try;; |
| 12014 | esac |
| 12015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12016 | (eval "$ac_try") 2>&5 |
| 12017 | ac_status=$? |
| 12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12019 | (exit $ac_status); }; } && |
| 12020 | { ac_try='test -s conftest.$ac_objext' |
| 12021 | { (case "(($ac_try" in |
| 12022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12023 | *) ac_try_echo=$ac_try;; |
| 12024 | esac |
| 12025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12026 | (eval "$ac_try") 2>&5 |
| 12027 | ac_status=$? |
| 12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12029 | (exit $ac_status); }; }; then |
| 12030 | ac_header_compiler=yes |
| 12031 | else |
| 12032 | echo "$as_me: failed program was:" >&5 |
| 12033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12034 | |
| 12035 | ac_header_compiler=no |
| 12036 | fi |
| 12037 | |
| 12038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12039 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12040 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12041 | |
| 12042 | # Is the header present? |
| 12043 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12044 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12045 | cat >conftest.$ac_ext <<_ACEOF |
| 12046 | /* confdefs.h. */ |
| 12047 | _ACEOF |
| 12048 | cat confdefs.h >>conftest.$ac_ext |
| 12049 | cat >>conftest.$ac_ext <<_ACEOF |
| 12050 | /* end confdefs.h. */ |
| 12051 | #include <$ac_header> |
| 12052 | _ACEOF |
| 12053 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12054 | case "(($ac_try" in |
| 12055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12056 | *) ac_try_echo=$ac_try;; |
| 12057 | esac |
| 12058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12059 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12060 | ac_status=$? |
| 12061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12062 | rm -f conftest.er1 |
| 12063 | cat conftest.err >&5 |
| 12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12065 | (exit $ac_status); } >/dev/null; then |
| 12066 | if test -s conftest.err; then |
| 12067 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12069 | else |
| 12070 | ac_cpp_err= |
| 12071 | fi |
| 12072 | else |
| 12073 | ac_cpp_err=yes |
| 12074 | fi |
| 12075 | if test -z "$ac_cpp_err"; then |
| 12076 | ac_header_preproc=yes |
| 12077 | else |
| 12078 | echo "$as_me: failed program was:" >&5 |
| 12079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12080 | |
| 12081 | ac_header_preproc=no |
| 12082 | fi |
| 12083 | |
| 12084 | rm -f conftest.err conftest.$ac_ext |
| 12085 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12086 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12087 | |
| 12088 | # So? What about this header? |
| 12089 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12090 | yes:no: ) |
| 12091 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12092 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12094 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12095 | ac_header_preproc=yes |
| 12096 | ;; |
| 12097 | no:yes:* ) |
| 12098 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12099 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12100 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12101 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12102 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12103 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12104 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12105 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12107 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12108 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12109 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12110 | ( cat <<\_ASBOX |
| 12111 | ## ----------------------------------- ## |
| 12112 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12113 | ## ----------------------------------- ## |
| 12114 | _ASBOX |
| 12115 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12116 | ;; |
| 12117 | esac |
| 12118 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12119 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12120 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12122 | else |
| 12123 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12124 | fi |
| 12125 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12126 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12127 | echo "${ECHO_T}$ac_res" >&6; } |
| 12128 | |
| 12129 | fi |
| 12130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12131 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12133 | _ACEOF |
| 12134 | |
| 12135 | fi |
| 12136 | |
| 12137 | done |
| 12138 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12139 | |
| 12140 | |
| 12141 | |
| 12142 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12144 | do |
| 12145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12147 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12149 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12151 | fi |
| 12152 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12153 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12154 | echo "${ECHO_T}$ac_res" >&6; } |
| 12155 | else |
| 12156 | # Is the header compilable? |
| 12157 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12158 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12159 | cat >conftest.$ac_ext <<_ACEOF |
| 12160 | /* confdefs.h. */ |
| 12161 | _ACEOF |
| 12162 | cat confdefs.h >>conftest.$ac_ext |
| 12163 | cat >>conftest.$ac_ext <<_ACEOF |
| 12164 | /* end confdefs.h. */ |
| 12165 | $ac_includes_default |
| 12166 | #include <$ac_header> |
| 12167 | _ACEOF |
| 12168 | rm -f conftest.$ac_objext |
| 12169 | if { (ac_try="$ac_compile" |
| 12170 | case "(($ac_try" in |
| 12171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12172 | *) ac_try_echo=$ac_try;; |
| 12173 | esac |
| 12174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12175 | (eval "$ac_compile") 2>conftest.er1 |
| 12176 | ac_status=$? |
| 12177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12178 | rm -f conftest.er1 |
| 12179 | cat conftest.err >&5 |
| 12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12181 | (exit $ac_status); } && |
| 12182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12183 | { (case "(($ac_try" in |
| 12184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12185 | *) ac_try_echo=$ac_try;; |
| 12186 | esac |
| 12187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12188 | (eval "$ac_try") 2>&5 |
| 12189 | ac_status=$? |
| 12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12191 | (exit $ac_status); }; } && |
| 12192 | { ac_try='test -s conftest.$ac_objext' |
| 12193 | { (case "(($ac_try" in |
| 12194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12195 | *) ac_try_echo=$ac_try;; |
| 12196 | esac |
| 12197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12198 | (eval "$ac_try") 2>&5 |
| 12199 | ac_status=$? |
| 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12201 | (exit $ac_status); }; }; then |
| 12202 | ac_header_compiler=yes |
| 12203 | else |
| 12204 | echo "$as_me: failed program was:" >&5 |
| 12205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12206 | |
| 12207 | ac_header_compiler=no |
| 12208 | fi |
| 12209 | |
| 12210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12211 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12212 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12213 | |
| 12214 | # Is the header present? |
| 12215 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12217 | cat >conftest.$ac_ext <<_ACEOF |
| 12218 | /* confdefs.h. */ |
| 12219 | _ACEOF |
| 12220 | cat confdefs.h >>conftest.$ac_ext |
| 12221 | cat >>conftest.$ac_ext <<_ACEOF |
| 12222 | /* end confdefs.h. */ |
| 12223 | #include <$ac_header> |
| 12224 | _ACEOF |
| 12225 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12226 | case "(($ac_try" in |
| 12227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12228 | *) ac_try_echo=$ac_try;; |
| 12229 | esac |
| 12230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12231 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12232 | ac_status=$? |
| 12233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12234 | rm -f conftest.er1 |
| 12235 | cat conftest.err >&5 |
| 12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12237 | (exit $ac_status); } >/dev/null; then |
| 12238 | if test -s conftest.err; then |
| 12239 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12240 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12241 | else |
| 12242 | ac_cpp_err= |
| 12243 | fi |
| 12244 | else |
| 12245 | ac_cpp_err=yes |
| 12246 | fi |
| 12247 | if test -z "$ac_cpp_err"; then |
| 12248 | ac_header_preproc=yes |
| 12249 | else |
| 12250 | echo "$as_me: failed program was:" >&5 |
| 12251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12252 | |
| 12253 | ac_header_preproc=no |
| 12254 | fi |
| 12255 | |
| 12256 | rm -f conftest.err conftest.$ac_ext |
| 12257 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12258 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12259 | |
| 12260 | # So? What about this header? |
| 12261 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12262 | yes:no: ) |
| 12263 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12264 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12266 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12267 | ac_header_preproc=yes |
| 12268 | ;; |
| 12269 | no:yes:* ) |
| 12270 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12271 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12272 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12273 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12274 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12275 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12276 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12277 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12279 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12280 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12281 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12282 | ( cat <<\_ASBOX |
| 12283 | ## ----------------------------------- ## |
| 12284 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12285 | ## ----------------------------------- ## |
| 12286 | _ASBOX |
| 12287 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12288 | ;; |
| 12289 | esac |
| 12290 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12294 | else |
| 12295 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12296 | fi |
| 12297 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12299 | echo "${ECHO_T}$ac_res" >&6; } |
| 12300 | |
| 12301 | fi |
| 12302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12303 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12305 | _ACEOF |
| 12306 | |
| 12307 | fi |
| 12308 | |
| 12309 | done |
| 12310 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12311 | |
| 12312 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12313 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12314 | do |
| 12315 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12317 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12321 | fi |
| 12322 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12324 | echo "${ECHO_T}$ac_res" >&6; } |
| 12325 | else |
| 12326 | # Is the header compilable? |
| 12327 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12329 | cat >conftest.$ac_ext <<_ACEOF |
| 12330 | /* confdefs.h. */ |
| 12331 | _ACEOF |
| 12332 | cat confdefs.h >>conftest.$ac_ext |
| 12333 | cat >>conftest.$ac_ext <<_ACEOF |
| 12334 | /* end confdefs.h. */ |
| 12335 | $ac_includes_default |
| 12336 | #include <$ac_header> |
| 12337 | _ACEOF |
| 12338 | rm -f conftest.$ac_objext |
| 12339 | if { (ac_try="$ac_compile" |
| 12340 | case "(($ac_try" in |
| 12341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12342 | *) ac_try_echo=$ac_try;; |
| 12343 | esac |
| 12344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12345 | (eval "$ac_compile") 2>conftest.er1 |
| 12346 | ac_status=$? |
| 12347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12348 | rm -f conftest.er1 |
| 12349 | cat conftest.err >&5 |
| 12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12351 | (exit $ac_status); } && |
| 12352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12353 | { (case "(($ac_try" in |
| 12354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12355 | *) ac_try_echo=$ac_try;; |
| 12356 | esac |
| 12357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12358 | (eval "$ac_try") 2>&5 |
| 12359 | ac_status=$? |
| 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12361 | (exit $ac_status); }; } && |
| 12362 | { ac_try='test -s conftest.$ac_objext' |
| 12363 | { (case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
| 12367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12368 | (eval "$ac_try") 2>&5 |
| 12369 | ac_status=$? |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12371 | (exit $ac_status); }; }; then |
| 12372 | ac_header_compiler=yes |
| 12373 | else |
| 12374 | echo "$as_me: failed program was:" >&5 |
| 12375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12376 | |
| 12377 | ac_header_compiler=no |
| 12378 | fi |
| 12379 | |
| 12380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12381 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12382 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12383 | |
| 12384 | # Is the header present? |
| 12385 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12387 | cat >conftest.$ac_ext <<_ACEOF |
| 12388 | /* confdefs.h. */ |
| 12389 | _ACEOF |
| 12390 | cat confdefs.h >>conftest.$ac_ext |
| 12391 | cat >>conftest.$ac_ext <<_ACEOF |
| 12392 | /* end confdefs.h. */ |
| 12393 | #include <$ac_header> |
| 12394 | _ACEOF |
| 12395 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12396 | case "(($ac_try" in |
| 12397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12398 | *) ac_try_echo=$ac_try;; |
| 12399 | esac |
| 12400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12401 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12402 | ac_status=$? |
| 12403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12404 | rm -f conftest.er1 |
| 12405 | cat conftest.err >&5 |
| 12406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12407 | (exit $ac_status); } >/dev/null; then |
| 12408 | if test -s conftest.err; then |
| 12409 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12410 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12411 | else |
| 12412 | ac_cpp_err= |
| 12413 | fi |
| 12414 | else |
| 12415 | ac_cpp_err=yes |
| 12416 | fi |
| 12417 | if test -z "$ac_cpp_err"; then |
| 12418 | ac_header_preproc=yes |
| 12419 | else |
| 12420 | echo "$as_me: failed program was:" >&5 |
| 12421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12422 | |
| 12423 | ac_header_preproc=no |
| 12424 | fi |
| 12425 | |
| 12426 | rm -f conftest.err conftest.$ac_ext |
| 12427 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12428 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12429 | |
| 12430 | # So? What about this header? |
| 12431 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12432 | yes:no: ) |
| 12433 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12434 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12436 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12437 | ac_header_preproc=yes |
| 12438 | ;; |
| 12439 | no:yes:* ) |
| 12440 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12441 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12442 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12443 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12444 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12445 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12446 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12447 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12449 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12450 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12451 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12452 | ( cat <<\_ASBOX |
| 12453 | ## ----------------------------------- ## |
| 12454 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12455 | ## ----------------------------------- ## |
| 12456 | _ASBOX |
| 12457 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12458 | ;; |
| 12459 | esac |
| 12460 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12464 | else |
| 12465 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12466 | fi |
| 12467 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12469 | echo "${ECHO_T}$ac_res" >&6; } |
| 12470 | |
| 12471 | fi |
| 12472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12473 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12475 | _ACEOF |
| 12476 | break |
| 12477 | fi |
| 12478 | |
| 12479 | done |
| 12480 | |
| 12481 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12482 | |
| 12483 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12484 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12485 | do |
| 12486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12487 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12489 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12491 | else |
| 12492 | cat >conftest.$ac_ext <<_ACEOF |
| 12493 | /* confdefs.h. */ |
| 12494 | _ACEOF |
| 12495 | cat confdefs.h >>conftest.$ac_ext |
| 12496 | cat >>conftest.$ac_ext <<_ACEOF |
| 12497 | /* end confdefs.h. */ |
| 12498 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12499 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12500 | #define $ac_func innocuous_$ac_func |
| 12501 | |
| 12502 | /* System header to define __stub macros and hopefully few prototypes, |
| 12503 | which can conflict with char $ac_func (); below. |
| 12504 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12505 | <limits.h> exists even on freestanding compilers. */ |
| 12506 | |
| 12507 | #ifdef __STDC__ |
| 12508 | # include <limits.h> |
| 12509 | #else |
| 12510 | # include <assert.h> |
| 12511 | #endif |
| 12512 | |
| 12513 | #undef $ac_func |
| 12514 | |
| 12515 | /* Override any GCC internal prototype to avoid an error. |
| 12516 | Use char because int might match the return type of a GCC |
| 12517 | builtin and then its argument prototype would still apply. */ |
| 12518 | #ifdef __cplusplus |
| 12519 | extern "C" |
| 12520 | #endif |
| 12521 | char $ac_func (); |
| 12522 | /* The GNU C library defines this for functions which it implements |
| 12523 | to always fail with ENOSYS. Some functions are actually named |
| 12524 | something starting with __ and the normal name is an alias. */ |
| 12525 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12526 | choke me |
| 12527 | #endif |
| 12528 | |
| 12529 | int |
| 12530 | main () |
| 12531 | { |
| 12532 | return $ac_func (); |
| 12533 | ; |
| 12534 | return 0; |
| 12535 | } |
| 12536 | _ACEOF |
| 12537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12538 | if { (ac_try="$ac_link" |
| 12539 | case "(($ac_try" in |
| 12540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12541 | *) ac_try_echo=$ac_try;; |
| 12542 | esac |
| 12543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12544 | (eval "$ac_link") 2>conftest.er1 |
| 12545 | ac_status=$? |
| 12546 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12547 | rm -f conftest.er1 |
| 12548 | cat conftest.err >&5 |
| 12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12550 | (exit $ac_status); } && |
| 12551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12552 | { (case "(($ac_try" in |
| 12553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12554 | *) ac_try_echo=$ac_try;; |
| 12555 | esac |
| 12556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12557 | (eval "$ac_try") 2>&5 |
| 12558 | ac_status=$? |
| 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12560 | (exit $ac_status); }; } && |
| 12561 | { ac_try='test -s conftest$ac_exeext' |
| 12562 | { (case "(($ac_try" in |
| 12563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12564 | *) ac_try_echo=$ac_try;; |
| 12565 | esac |
| 12566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12567 | (eval "$ac_try") 2>&5 |
| 12568 | ac_status=$? |
| 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12570 | (exit $ac_status); }; }; then |
| 12571 | eval "$as_ac_var=yes" |
| 12572 | else |
| 12573 | echo "$as_me: failed program was:" >&5 |
| 12574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12575 | |
| 12576 | eval "$as_ac_var=no" |
| 12577 | fi |
| 12578 | |
| 12579 | rm -f core conftest.err conftest.$ac_objext \ |
| 12580 | conftest$ac_exeext conftest.$ac_ext |
| 12581 | fi |
| 12582 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12584 | echo "${ECHO_T}$ac_res" >&6; } |
| 12585 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12586 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12588 | _ACEOF |
| 12589 | break |
| 12590 | fi |
| 12591 | done |
| 12592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12593 | |
| 12594 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12595 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12596 | do |
| 12597 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12598 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12599 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12600 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12602 | else |
| 12603 | cat >conftest.$ac_ext <<_ACEOF |
| 12604 | /* confdefs.h. */ |
| 12605 | _ACEOF |
| 12606 | cat confdefs.h >>conftest.$ac_ext |
| 12607 | cat >>conftest.$ac_ext <<_ACEOF |
| 12608 | /* end confdefs.h. */ |
| 12609 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12610 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12611 | #define $ac_func innocuous_$ac_func |
| 12612 | |
| 12613 | /* System header to define __stub macros and hopefully few prototypes, |
| 12614 | which can conflict with char $ac_func (); below. |
| 12615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12616 | <limits.h> exists even on freestanding compilers. */ |
| 12617 | |
| 12618 | #ifdef __STDC__ |
| 12619 | # include <limits.h> |
| 12620 | #else |
| 12621 | # include <assert.h> |
| 12622 | #endif |
| 12623 | |
| 12624 | #undef $ac_func |
| 12625 | |
| 12626 | /* Override any GCC internal prototype to avoid an error. |
| 12627 | Use char because int might match the return type of a GCC |
| 12628 | builtin and then its argument prototype would still apply. */ |
| 12629 | #ifdef __cplusplus |
| 12630 | extern "C" |
| 12631 | #endif |
| 12632 | char $ac_func (); |
| 12633 | /* The GNU C library defines this for functions which it implements |
| 12634 | to always fail with ENOSYS. Some functions are actually named |
| 12635 | something starting with __ and the normal name is an alias. */ |
| 12636 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12637 | choke me |
| 12638 | #endif |
| 12639 | |
| 12640 | int |
| 12641 | main () |
| 12642 | { |
| 12643 | return $ac_func (); |
| 12644 | ; |
| 12645 | return 0; |
| 12646 | } |
| 12647 | _ACEOF |
| 12648 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12649 | if { (ac_try="$ac_link" |
| 12650 | case "(($ac_try" in |
| 12651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12652 | *) ac_try_echo=$ac_try;; |
| 12653 | esac |
| 12654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12655 | (eval "$ac_link") 2>conftest.er1 |
| 12656 | ac_status=$? |
| 12657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12658 | rm -f conftest.er1 |
| 12659 | cat conftest.err >&5 |
| 12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12661 | (exit $ac_status); } && |
| 12662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12663 | { (case "(($ac_try" in |
| 12664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12665 | *) ac_try_echo=$ac_try;; |
| 12666 | esac |
| 12667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12668 | (eval "$ac_try") 2>&5 |
| 12669 | ac_status=$? |
| 12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12671 | (exit $ac_status); }; } && |
| 12672 | { ac_try='test -s conftest$ac_exeext' |
| 12673 | { (case "(($ac_try" in |
| 12674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12675 | *) ac_try_echo=$ac_try;; |
| 12676 | esac |
| 12677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12678 | (eval "$ac_try") 2>&5 |
| 12679 | ac_status=$? |
| 12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12681 | (exit $ac_status); }; }; then |
| 12682 | eval "$as_ac_var=yes" |
| 12683 | else |
| 12684 | echo "$as_me: failed program was:" >&5 |
| 12685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12686 | |
| 12687 | eval "$as_ac_var=no" |
| 12688 | fi |
| 12689 | |
| 12690 | rm -f core conftest.err conftest.$ac_objext \ |
| 12691 | conftest$ac_exeext conftest.$ac_ext |
| 12692 | fi |
| 12693 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12694 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12695 | echo "${ECHO_T}$ac_res" >&6; } |
| 12696 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12697 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12698 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12699 | _ACEOF |
| 12700 | break |
| 12701 | fi |
| 12702 | done |
| 12703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12704 | |
| 12705 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12706 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12707 | do |
| 12708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12709 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12711 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12713 | else |
| 12714 | cat >conftest.$ac_ext <<_ACEOF |
| 12715 | /* confdefs.h. */ |
| 12716 | _ACEOF |
| 12717 | cat confdefs.h >>conftest.$ac_ext |
| 12718 | cat >>conftest.$ac_ext <<_ACEOF |
| 12719 | /* end confdefs.h. */ |
| 12720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12722 | #define $ac_func innocuous_$ac_func |
| 12723 | |
| 12724 | /* System header to define __stub macros and hopefully few prototypes, |
| 12725 | which can conflict with char $ac_func (); below. |
| 12726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12727 | <limits.h> exists even on freestanding compilers. */ |
| 12728 | |
| 12729 | #ifdef __STDC__ |
| 12730 | # include <limits.h> |
| 12731 | #else |
| 12732 | # include <assert.h> |
| 12733 | #endif |
| 12734 | |
| 12735 | #undef $ac_func |
| 12736 | |
| 12737 | /* Override any GCC internal prototype to avoid an error. |
| 12738 | Use char because int might match the return type of a GCC |
| 12739 | builtin and then its argument prototype would still apply. */ |
| 12740 | #ifdef __cplusplus |
| 12741 | extern "C" |
| 12742 | #endif |
| 12743 | char $ac_func (); |
| 12744 | /* The GNU C library defines this for functions which it implements |
| 12745 | to always fail with ENOSYS. Some functions are actually named |
| 12746 | something starting with __ and the normal name is an alias. */ |
| 12747 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12748 | choke me |
| 12749 | #endif |
| 12750 | |
| 12751 | int |
| 12752 | main () |
| 12753 | { |
| 12754 | return $ac_func (); |
| 12755 | ; |
| 12756 | return 0; |
| 12757 | } |
| 12758 | _ACEOF |
| 12759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12760 | if { (ac_try="$ac_link" |
| 12761 | case "(($ac_try" in |
| 12762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12763 | *) ac_try_echo=$ac_try;; |
| 12764 | esac |
| 12765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12766 | (eval "$ac_link") 2>conftest.er1 |
| 12767 | ac_status=$? |
| 12768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12769 | rm -f conftest.er1 |
| 12770 | cat conftest.err >&5 |
| 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12772 | (exit $ac_status); } && |
| 12773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12774 | { (case "(($ac_try" in |
| 12775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12776 | *) ac_try_echo=$ac_try;; |
| 12777 | esac |
| 12778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12779 | (eval "$ac_try") 2>&5 |
| 12780 | ac_status=$? |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); }; } && |
| 12783 | { ac_try='test -s conftest$ac_exeext' |
| 12784 | { (case "(($ac_try" in |
| 12785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12786 | *) ac_try_echo=$ac_try;; |
| 12787 | esac |
| 12788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12789 | (eval "$ac_try") 2>&5 |
| 12790 | ac_status=$? |
| 12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12792 | (exit $ac_status); }; }; then |
| 12793 | eval "$as_ac_var=yes" |
| 12794 | else |
| 12795 | echo "$as_me: failed program was:" >&5 |
| 12796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12797 | |
| 12798 | eval "$as_ac_var=no" |
| 12799 | fi |
| 12800 | |
| 12801 | rm -f core conftest.err conftest.$ac_objext \ |
| 12802 | conftest$ac_exeext conftest.$ac_ext |
| 12803 | fi |
| 12804 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12805 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12806 | echo "${ECHO_T}$ac_res" >&6; } |
| 12807 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12808 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12810 | _ACEOF |
| 12811 | break |
| 12812 | fi |
| 12813 | done |
| 12814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12815 | |
| 12816 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12817 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12818 | do |
| 12819 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12820 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12821 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12822 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12824 | else |
| 12825 | cat >conftest.$ac_ext <<_ACEOF |
| 12826 | /* confdefs.h. */ |
| 12827 | _ACEOF |
| 12828 | cat confdefs.h >>conftest.$ac_ext |
| 12829 | cat >>conftest.$ac_ext <<_ACEOF |
| 12830 | /* end confdefs.h. */ |
| 12831 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12833 | #define $ac_func innocuous_$ac_func |
| 12834 | |
| 12835 | /* System header to define __stub macros and hopefully few prototypes, |
| 12836 | which can conflict with char $ac_func (); below. |
| 12837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12838 | <limits.h> exists even on freestanding compilers. */ |
| 12839 | |
| 12840 | #ifdef __STDC__ |
| 12841 | # include <limits.h> |
| 12842 | #else |
| 12843 | # include <assert.h> |
| 12844 | #endif |
| 12845 | |
| 12846 | #undef $ac_func |
| 12847 | |
| 12848 | /* Override any GCC internal prototype to avoid an error. |
| 12849 | Use char because int might match the return type of a GCC |
| 12850 | builtin and then its argument prototype would still apply. */ |
| 12851 | #ifdef __cplusplus |
| 12852 | extern "C" |
| 12853 | #endif |
| 12854 | char $ac_func (); |
| 12855 | /* The GNU C library defines this for functions which it implements |
| 12856 | to always fail with ENOSYS. Some functions are actually named |
| 12857 | something starting with __ and the normal name is an alias. */ |
| 12858 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12859 | choke me |
| 12860 | #endif |
| 12861 | |
| 12862 | int |
| 12863 | main () |
| 12864 | { |
| 12865 | return $ac_func (); |
| 12866 | ; |
| 12867 | return 0; |
| 12868 | } |
| 12869 | _ACEOF |
| 12870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12871 | if { (ac_try="$ac_link" |
| 12872 | case "(($ac_try" in |
| 12873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12874 | *) ac_try_echo=$ac_try;; |
| 12875 | esac |
| 12876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12877 | (eval "$ac_link") 2>conftest.er1 |
| 12878 | ac_status=$? |
| 12879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12880 | rm -f conftest.er1 |
| 12881 | cat conftest.err >&5 |
| 12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12883 | (exit $ac_status); } && |
| 12884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12885 | { (case "(($ac_try" in |
| 12886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12887 | *) ac_try_echo=$ac_try;; |
| 12888 | esac |
| 12889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12890 | (eval "$ac_try") 2>&5 |
| 12891 | ac_status=$? |
| 12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12893 | (exit $ac_status); }; } && |
| 12894 | { ac_try='test -s conftest$ac_exeext' |
| 12895 | { (case "(($ac_try" in |
| 12896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12897 | *) ac_try_echo=$ac_try;; |
| 12898 | esac |
| 12899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12900 | (eval "$ac_try") 2>&5 |
| 12901 | ac_status=$? |
| 12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12903 | (exit $ac_status); }; }; then |
| 12904 | eval "$as_ac_var=yes" |
| 12905 | else |
| 12906 | echo "$as_me: failed program was:" >&5 |
| 12907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12908 | |
| 12909 | eval "$as_ac_var=no" |
| 12910 | fi |
| 12911 | |
| 12912 | rm -f core conftest.err conftest.$ac_objext \ |
| 12913 | conftest$ac_exeext conftest.$ac_ext |
| 12914 | fi |
| 12915 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12916 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12917 | echo "${ECHO_T}$ac_res" >&6; } |
| 12918 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12919 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12920 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12921 | _ACEOF |
| 12922 | |
| 12923 | fi |
| 12924 | done |
| 12925 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12926 | |
| 12927 | |
| 12928 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12929 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12930 | do |
| 12931 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12932 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12933 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12934 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12936 | else |
| 12937 | cat >conftest.$ac_ext <<_ACEOF |
| 12938 | /* confdefs.h. */ |
| 12939 | _ACEOF |
| 12940 | cat confdefs.h >>conftest.$ac_ext |
| 12941 | cat >>conftest.$ac_ext <<_ACEOF |
| 12942 | /* end confdefs.h. */ |
| 12943 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12944 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12945 | #define $ac_func innocuous_$ac_func |
| 12946 | |
| 12947 | /* System header to define __stub macros and hopefully few prototypes, |
| 12948 | which can conflict with char $ac_func (); below. |
| 12949 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12950 | <limits.h> exists even on freestanding compilers. */ |
| 12951 | |
| 12952 | #ifdef __STDC__ |
| 12953 | # include <limits.h> |
| 12954 | #else |
| 12955 | # include <assert.h> |
| 12956 | #endif |
| 12957 | |
| 12958 | #undef $ac_func |
| 12959 | |
| 12960 | /* Override any GCC internal prototype to avoid an error. |
| 12961 | Use char because int might match the return type of a GCC |
| 12962 | builtin and then its argument prototype would still apply. */ |
| 12963 | #ifdef __cplusplus |
| 12964 | extern "C" |
| 12965 | #endif |
| 12966 | char $ac_func (); |
| 12967 | /* The GNU C library defines this for functions which it implements |
| 12968 | to always fail with ENOSYS. Some functions are actually named |
| 12969 | something starting with __ and the normal name is an alias. */ |
| 12970 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12971 | choke me |
| 12972 | #endif |
| 12973 | |
| 12974 | int |
| 12975 | main () |
| 12976 | { |
| 12977 | return $ac_func (); |
| 12978 | ; |
| 12979 | return 0; |
| 12980 | } |
| 12981 | _ACEOF |
| 12982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12983 | if { (ac_try="$ac_link" |
| 12984 | case "(($ac_try" in |
| 12985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12986 | *) ac_try_echo=$ac_try;; |
| 12987 | esac |
| 12988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12989 | (eval "$ac_link") 2>conftest.er1 |
| 12990 | ac_status=$? |
| 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && |
| 12996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12997 | { (case "(($ac_try" in |
| 12998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12999 | *) ac_try_echo=$ac_try;; |
| 13000 | esac |
| 13001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13002 | (eval "$ac_try") 2>&5 |
| 13003 | ac_status=$? |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); }; } && |
| 13006 | { ac_try='test -s conftest$ac_exeext' |
| 13007 | { (case "(($ac_try" in |
| 13008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13009 | *) ac_try_echo=$ac_try;; |
| 13010 | esac |
| 13011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13012 | (eval "$ac_try") 2>&5 |
| 13013 | ac_status=$? |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); }; }; then |
| 13016 | eval "$as_ac_var=yes" |
| 13017 | else |
| 13018 | echo "$as_me: failed program was:" >&5 |
| 13019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13020 | |
| 13021 | eval "$as_ac_var=no" |
| 13022 | fi |
| 13023 | |
| 13024 | rm -f core conftest.err conftest.$ac_objext \ |
| 13025 | conftest$ac_exeext conftest.$ac_ext |
| 13026 | fi |
| 13027 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13029 | echo "${ECHO_T}$ac_res" >&6; } |
| 13030 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13031 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13033 | _ACEOF |
| 13034 | |
| 13035 | fi |
| 13036 | done |
| 13037 | |
| 13038 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13039 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13040 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13041 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13042 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13043 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13044 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13045 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13046 | |
| 13047 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13048 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13049 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13050 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13053 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13055 | else |
| 13056 | case $LLVMGCC in |
| 13057 | [\\/]* | ?:[\\/]*) |
| 13058 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13059 | ;; |
| 13060 | *) |
| 13061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13062 | for as_dir in $PATH |
| 13063 | do |
| 13064 | IFS=$as_save_IFS |
| 13065 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13067 | 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] | 13068 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13070 | break 2 |
| 13071 | fi |
| 13072 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13073 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13074 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13075 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13076 | ;; |
| 13077 | esac |
| 13078 | fi |
| 13079 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13080 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13081 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13082 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13083 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13084 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13085 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13086 | fi |
| 13087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13088 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13089 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13090 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13091 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13093 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13095 | else |
| 13096 | case $LLVMGXX in |
| 13097 | [\\/]* | ?:[\\/]*) |
| 13098 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13099 | ;; |
| 13100 | *) |
| 13101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13102 | for as_dir in $PATH |
| 13103 | do |
| 13104 | IFS=$as_save_IFS |
| 13105 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13107 | 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] | 13108 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13109 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13110 | break 2 |
| 13111 | fi |
| 13112 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13113 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13114 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13115 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13116 | ;; |
| 13117 | esac |
| 13118 | fi |
| 13119 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13120 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13121 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13122 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13123 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13124 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13125 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13126 | fi |
| 13127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13128 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13129 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13130 | if test -z "$LLVMGCC"; then |
| 13131 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13132 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13133 | fi |
| 13134 | if test -z "$LLVMGXX"; then |
| 13135 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13136 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13137 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13138 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13139 | LLVMGCC=$LLVMGCC |
| 13140 | |
| 13141 | LLVMGXX=$LLVMGXX |
| 13142 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13143 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13144 | |
| 13145 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13146 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13147 | fi |
| 13148 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13149 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13150 | # Check whether --with-llvmcc was given. |
| 13151 | if test "${with_llvmcc+set}" = set; then |
| 13152 | withval=$with_llvmcc; |
| 13153 | else |
| 13154 | with_llvmcc=check |
| 13155 | fi |
| 13156 | |
| 13157 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13158 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13159 | if test "$with_llvmcc" != "check"; then |
| 13160 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13161 | test "$with_llvmcc" != "clang" && |
| 13162 | test "$with_llvmcc" != "none"); then |
| 13163 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13164 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13165 | { (exit 1); exit 1; }; } |
| 13166 | fi |
| 13167 | WITH_LLVMCC="$with_llvmcc" |
| 13168 | elif test -n "$LLVMGCC"; then |
| 13169 | WITH_LLVMCC=llvm-gcc |
| 13170 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13171 | WITH_LLVMCC=clang |
| 13172 | else |
| 13173 | WITH_LLVMCC=none |
| 13174 | fi |
| 13175 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13176 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13177 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13178 | |
| 13179 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13180 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13181 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13182 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13183 | ICC=no |
| 13184 | IXX=no |
| 13185 | case $CC in |
| 13186 | icc*|icpc*) |
| 13187 | ICC=yes |
| 13188 | IXX=yes |
| 13189 | ;; |
| 13190 | *) |
| 13191 | ;; |
| 13192 | esac |
| 13193 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13194 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13195 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13196 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13197 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13198 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13199 | fi |
| 13200 | |
| 13201 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13202 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13203 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13204 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13205 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13206 | fi |
| 13207 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13208 | if test "$GCC" = "yes" |
| 13209 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13210 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13211 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13212 | #error Unsupported GCC version |
| 13213 | #endif |
| 13214 | |
| 13215 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13216 | rm -f conftest.$ac_objext |
| 13217 | if { (ac_try="$ac_compile" |
| 13218 | case "(($ac_try" in |
| 13219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13220 | *) ac_try_echo=$ac_try;; |
| 13221 | esac |
| 13222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13223 | (eval "$ac_compile") 2>conftest.er1 |
| 13224 | ac_status=$? |
| 13225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13226 | rm -f conftest.er1 |
| 13227 | cat conftest.err >&5 |
| 13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13229 | (exit $ac_status); } && |
| 13230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13231 | { (case "(($ac_try" in |
| 13232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13233 | *) ac_try_echo=$ac_try;; |
| 13234 | esac |
| 13235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13236 | (eval "$ac_try") 2>&5 |
| 13237 | ac_status=$? |
| 13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13239 | (exit $ac_status); }; } && |
| 13240 | { ac_try='test -s conftest.$ac_objext' |
| 13241 | { (case "(($ac_try" in |
| 13242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13243 | *) ac_try_echo=$ac_try;; |
| 13244 | esac |
| 13245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13246 | (eval "$ac_try") 2>&5 |
| 13247 | ac_status=$? |
| 13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13249 | (exit $ac_status); }; }; then |
| 13250 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13251 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13252 | echo "$as_me: failed program was:" >&5 |
| 13253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13254 | |
| 13255 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13256 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13257 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13258 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13259 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13261 | fi |
| 13262 | |
| 13263 | if test -z "$llvm_cv_gnu_make_command" |
| 13264 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13265 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13266 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13267 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13268 | fi |
| 13269 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13270 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13271 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13273 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13274 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13275 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13276 | |
| 13277 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13278 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13279 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13280 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13281 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13282 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13283 | |
| 13284 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13285 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13286 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13288 | else |
| 13289 | ac_check_lib_save_LIBS=$LIBS |
| 13290 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13291 | cat >conftest.$ac_ext <<_ACEOF |
| 13292 | /* confdefs.h. */ |
| 13293 | _ACEOF |
| 13294 | cat confdefs.h >>conftest.$ac_ext |
| 13295 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13296 | /* end confdefs.h. */ |
| 13297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13298 | /* Override any GCC internal prototype to avoid an error. |
| 13299 | Use char because int might match the return type of a GCC |
| 13300 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13301 | #ifdef __cplusplus |
| 13302 | extern "C" |
| 13303 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13304 | char sin (); |
| 13305 | int |
| 13306 | main () |
| 13307 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13308 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13309 | ; |
| 13310 | return 0; |
| 13311 | } |
| 13312 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13314 | if { (ac_try="$ac_link" |
| 13315 | case "(($ac_try" in |
| 13316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13317 | *) ac_try_echo=$ac_try;; |
| 13318 | esac |
| 13319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13320 | (eval "$ac_link") 2>conftest.er1 |
| 13321 | ac_status=$? |
| 13322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13323 | rm -f conftest.er1 |
| 13324 | cat conftest.err >&5 |
| 13325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13326 | (exit $ac_status); } && |
| 13327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13328 | { (case "(($ac_try" in |
| 13329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13330 | *) ac_try_echo=$ac_try;; |
| 13331 | esac |
| 13332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13333 | (eval "$ac_try") 2>&5 |
| 13334 | ac_status=$? |
| 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13336 | (exit $ac_status); }; } && |
| 13337 | { ac_try='test -s conftest$ac_exeext' |
| 13338 | { (case "(($ac_try" in |
| 13339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13340 | *) ac_try_echo=$ac_try;; |
| 13341 | esac |
| 13342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13343 | (eval "$ac_try") 2>&5 |
| 13344 | ac_status=$? |
| 13345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13346 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13347 | ac_cv_lib_m_sin=yes |
| 13348 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13349 | echo "$as_me: failed program was:" >&5 |
| 13350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13351 | |
| 13352 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13353 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13354 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13355 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13356 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13357 | LIBS=$ac_check_lib_save_LIBS |
| 13358 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13359 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13360 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13361 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13362 | cat >>confdefs.h <<_ACEOF |
| 13363 | #define HAVE_LIBM 1 |
| 13364 | _ACEOF |
| 13365 | |
| 13366 | LIBS="-lm $LIBS" |
| 13367 | |
| 13368 | fi |
| 13369 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13370 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13371 | |
| 13372 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13373 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13374 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13376 | else |
| 13377 | ac_check_lib_save_LIBS=$LIBS |
| 13378 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13379 | cat >conftest.$ac_ext <<_ACEOF |
| 13380 | /* confdefs.h. */ |
| 13381 | _ACEOF |
| 13382 | cat confdefs.h >>conftest.$ac_ext |
| 13383 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13384 | /* end confdefs.h. */ |
| 13385 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13386 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13387 | int |
| 13388 | main () |
| 13389 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13390 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13391 | ; |
| 13392 | return 0; |
| 13393 | } |
| 13394 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13395 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13396 | if { (ac_try="$ac_link" |
| 13397 | case "(($ac_try" in |
| 13398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13399 | *) ac_try_echo=$ac_try;; |
| 13400 | esac |
| 13401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13402 | (eval "$ac_link") 2>conftest.er1 |
| 13403 | ac_status=$? |
| 13404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13405 | rm -f conftest.er1 |
| 13406 | cat conftest.err >&5 |
| 13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13408 | (exit $ac_status); } && |
| 13409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13410 | { (case "(($ac_try" in |
| 13411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13412 | *) ac_try_echo=$ac_try;; |
| 13413 | esac |
| 13414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13415 | (eval "$ac_try") 2>&5 |
| 13416 | ac_status=$? |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); }; } && |
| 13419 | { ac_try='test -s conftest$ac_exeext' |
| 13420 | { (case "(($ac_try" in |
| 13421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13422 | *) ac_try_echo=$ac_try;; |
| 13423 | esac |
| 13424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13425 | (eval "$ac_try") 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13429 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13430 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13431 | echo "$as_me: failed program was:" >&5 |
| 13432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13433 | |
| 13434 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13435 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13436 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13437 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13438 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13439 | LIBS=$ac_check_lib_save_LIBS |
| 13440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13442 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13443 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13444 | cat >>confdefs.h <<_ACEOF |
| 13445 | #define HAVE_LIBIMAGEHLP 1 |
| 13446 | _ACEOF |
| 13447 | |
| 13448 | LIBS="-limagehlp $LIBS" |
| 13449 | |
| 13450 | fi |
| 13451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13452 | |
| 13453 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13454 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13455 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13457 | else |
| 13458 | ac_check_lib_save_LIBS=$LIBS |
| 13459 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13460 | cat >conftest.$ac_ext <<_ACEOF |
| 13461 | /* confdefs.h. */ |
| 13462 | _ACEOF |
| 13463 | cat confdefs.h >>conftest.$ac_ext |
| 13464 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13465 | /* end confdefs.h. */ |
| 13466 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13467 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13468 | int |
| 13469 | main () |
| 13470 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13471 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13472 | ; |
| 13473 | return 0; |
| 13474 | } |
| 13475 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13476 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13477 | if { (ac_try="$ac_link" |
| 13478 | case "(($ac_try" in |
| 13479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13480 | *) ac_try_echo=$ac_try;; |
| 13481 | esac |
| 13482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13483 | (eval "$ac_link") 2>conftest.er1 |
| 13484 | ac_status=$? |
| 13485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13486 | rm -f conftest.er1 |
| 13487 | cat conftest.err >&5 |
| 13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13489 | (exit $ac_status); } && |
| 13490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13491 | { (case "(($ac_try" in |
| 13492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13493 | *) ac_try_echo=$ac_try;; |
| 13494 | esac |
| 13495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13496 | (eval "$ac_try") 2>&5 |
| 13497 | ac_status=$? |
| 13498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13499 | (exit $ac_status); }; } && |
| 13500 | { ac_try='test -s conftest$ac_exeext' |
| 13501 | { (case "(($ac_try" in |
| 13502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13503 | *) ac_try_echo=$ac_try;; |
| 13504 | esac |
| 13505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13506 | (eval "$ac_try") 2>&5 |
| 13507 | ac_status=$? |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13509 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13510 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13511 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13512 | echo "$as_me: failed program was:" >&5 |
| 13513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13514 | |
| 13515 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13516 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13517 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13518 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13519 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13520 | LIBS=$ac_check_lib_save_LIBS |
| 13521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13522 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13523 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13524 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13525 | cat >>confdefs.h <<_ACEOF |
| 13526 | #define HAVE_LIBPSAPI 1 |
| 13527 | _ACEOF |
| 13528 | |
| 13529 | LIBS="-lpsapi $LIBS" |
| 13530 | |
| 13531 | fi |
| 13532 | |
| 13533 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13535 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13536 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13537 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13539 | else |
| 13540 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13541 | cat >conftest.$ac_ext <<_ACEOF |
| 13542 | /* confdefs.h. */ |
| 13543 | _ACEOF |
| 13544 | cat confdefs.h >>conftest.$ac_ext |
| 13545 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13546 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13548 | /* Override any GCC internal prototype to avoid an error. |
| 13549 | Use char because int might match the return type of a GCC |
| 13550 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13551 | #ifdef __cplusplus |
| 13552 | extern "C" |
| 13553 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13554 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13555 | int |
| 13556 | main () |
| 13557 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13558 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13559 | ; |
| 13560 | return 0; |
| 13561 | } |
| 13562 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13563 | for ac_lib in '' dl; do |
| 13564 | if test -z "$ac_lib"; then |
| 13565 | ac_res="none required" |
| 13566 | else |
| 13567 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13568 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13570 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13571 | if { (ac_try="$ac_link" |
| 13572 | case "(($ac_try" in |
| 13573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13574 | *) ac_try_echo=$ac_try;; |
| 13575 | esac |
| 13576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13577 | (eval "$ac_link") 2>conftest.er1 |
| 13578 | ac_status=$? |
| 13579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13580 | rm -f conftest.er1 |
| 13581 | cat conftest.err >&5 |
| 13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13583 | (exit $ac_status); } && |
| 13584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13585 | { (case "(($ac_try" in |
| 13586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13587 | *) ac_try_echo=$ac_try;; |
| 13588 | esac |
| 13589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13590 | (eval "$ac_try") 2>&5 |
| 13591 | ac_status=$? |
| 13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13593 | (exit $ac_status); }; } && |
| 13594 | { ac_try='test -s conftest$ac_exeext' |
| 13595 | { (case "(($ac_try" in |
| 13596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13597 | *) ac_try_echo=$ac_try;; |
| 13598 | esac |
| 13599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13600 | (eval "$ac_try") 2>&5 |
| 13601 | ac_status=$? |
| 13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13603 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13604 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13605 | else |
| 13606 | echo "$as_me: failed program was:" >&5 |
| 13607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13608 | |
| 13609 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13611 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13612 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13613 | conftest$ac_exeext |
| 13614 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13615 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13617 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13618 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13619 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13620 | else |
| 13621 | ac_cv_search_dlopen=no |
| 13622 | fi |
| 13623 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13624 | LIBS=$ac_func_search_save_LIBS |
| 13625 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13626 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13627 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13628 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13629 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13630 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13631 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13632 | cat >>confdefs.h <<\_ACEOF |
| 13633 | #define HAVE_DLOPEN 1 |
| 13634 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13635 | |
| 13636 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13637 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13638 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13639 | fi |
| 13640 | |
| 13641 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13642 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13643 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13644 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13645 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13647 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13648 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13649 | cat >conftest.$ac_ext <<_ACEOF |
| 13650 | /* confdefs.h. */ |
| 13651 | _ACEOF |
| 13652 | cat confdefs.h >>conftest.$ac_ext |
| 13653 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13654 | /* end confdefs.h. */ |
| 13655 | |
| 13656 | /* Override any GCC internal prototype to avoid an error. |
| 13657 | Use char because int might match the return type of a GCC |
| 13658 | builtin and then its argument prototype would still apply. */ |
| 13659 | #ifdef __cplusplus |
| 13660 | extern "C" |
| 13661 | #endif |
| 13662 | char ffi_call (); |
| 13663 | int |
| 13664 | main () |
| 13665 | { |
| 13666 | return ffi_call (); |
| 13667 | ; |
| 13668 | return 0; |
| 13669 | } |
| 13670 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13671 | for ac_lib in '' ffi; do |
| 13672 | if test -z "$ac_lib"; then |
| 13673 | ac_res="none required" |
| 13674 | else |
| 13675 | ac_res=-l$ac_lib |
| 13676 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13677 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13679 | if { (ac_try="$ac_link" |
| 13680 | case "(($ac_try" in |
| 13681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13682 | *) ac_try_echo=$ac_try;; |
| 13683 | esac |
| 13684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13685 | (eval "$ac_link") 2>conftest.er1 |
| 13686 | ac_status=$? |
| 13687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13688 | rm -f conftest.er1 |
| 13689 | cat conftest.err >&5 |
| 13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13691 | (exit $ac_status); } && |
| 13692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13693 | { (case "(($ac_try" in |
| 13694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13695 | *) ac_try_echo=$ac_try;; |
| 13696 | esac |
| 13697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13698 | (eval "$ac_try") 2>&5 |
| 13699 | ac_status=$? |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); }; } && |
| 13702 | { ac_try='test -s conftest$ac_exeext' |
| 13703 | { (case "(($ac_try" in |
| 13704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13705 | *) ac_try_echo=$ac_try;; |
| 13706 | esac |
| 13707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13708 | (eval "$ac_try") 2>&5 |
| 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13712 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13713 | else |
| 13714 | echo "$as_me: failed program was:" >&5 |
| 13715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13716 | |
| 13717 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13719 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13720 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13721 | conftest$ac_exeext |
| 13722 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13723 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13724 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13725 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13726 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13727 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13728 | else |
| 13729 | ac_cv_search_ffi_call=no |
| 13730 | fi |
| 13731 | rm conftest.$ac_ext |
| 13732 | LIBS=$ac_func_search_save_LIBS |
| 13733 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13734 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13735 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13736 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13737 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13738 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13739 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13740 | cat >>confdefs.h <<\_ACEOF |
| 13741 | #define HAVE_FFI_CALL 1 |
| 13742 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13743 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13744 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13745 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13746 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13747 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13748 | fi |
| 13749 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13750 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13752 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13753 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13754 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13756 | else |
| 13757 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13758 | cat >conftest.$ac_ext <<_ACEOF |
| 13759 | /* confdefs.h. */ |
| 13760 | _ACEOF |
| 13761 | cat confdefs.h >>conftest.$ac_ext |
| 13762 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13763 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13765 | /* Override any GCC internal prototype to avoid an error. |
| 13766 | Use char because int might match the return type of a GCC |
| 13767 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13768 | #ifdef __cplusplus |
| 13769 | extern "C" |
| 13770 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13771 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13772 | int |
| 13773 | main () |
| 13774 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13775 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13776 | ; |
| 13777 | return 0; |
| 13778 | } |
| 13779 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13780 | for ac_lib in '' malloc; do |
| 13781 | if test -z "$ac_lib"; then |
| 13782 | ac_res="none required" |
| 13783 | else |
| 13784 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13785 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13786 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13788 | if { (ac_try="$ac_link" |
| 13789 | case "(($ac_try" in |
| 13790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13791 | *) ac_try_echo=$ac_try;; |
| 13792 | esac |
| 13793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13794 | (eval "$ac_link") 2>conftest.er1 |
| 13795 | ac_status=$? |
| 13796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13797 | rm -f conftest.er1 |
| 13798 | cat conftest.err >&5 |
| 13799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13800 | (exit $ac_status); } && |
| 13801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13802 | { (case "(($ac_try" in |
| 13803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13804 | *) ac_try_echo=$ac_try;; |
| 13805 | esac |
| 13806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13807 | (eval "$ac_try") 2>&5 |
| 13808 | ac_status=$? |
| 13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13810 | (exit $ac_status); }; } && |
| 13811 | { ac_try='test -s conftest$ac_exeext' |
| 13812 | { (case "(($ac_try" in |
| 13813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13814 | *) ac_try_echo=$ac_try;; |
| 13815 | esac |
| 13816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13817 | (eval "$ac_try") 2>&5 |
| 13818 | ac_status=$? |
| 13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13820 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13821 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13822 | else |
| 13823 | echo "$as_me: failed program was:" >&5 |
| 13824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13825 | |
| 13826 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13828 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13829 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13830 | conftest$ac_exeext |
| 13831 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13832 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13834 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13835 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13836 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13837 | else |
| 13838 | ac_cv_search_mallinfo=no |
| 13839 | fi |
| 13840 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13841 | LIBS=$ac_func_search_save_LIBS |
| 13842 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13843 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13844 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13845 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13846 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13847 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13849 | cat >>confdefs.h <<\_ACEOF |
| 13850 | #define HAVE_MALLINFO 1 |
| 13851 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13852 | |
| 13853 | fi |
| 13854 | |
| 13855 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13856 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13857 | |
| 13858 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13859 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13860 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13862 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13863 | ac_check_lib_save_LIBS=$LIBS |
| 13864 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13865 | cat >conftest.$ac_ext <<_ACEOF |
| 13866 | /* confdefs.h. */ |
| 13867 | _ACEOF |
| 13868 | cat confdefs.h >>conftest.$ac_ext |
| 13869 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13870 | /* end confdefs.h. */ |
| 13871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13872 | /* Override any GCC internal prototype to avoid an error. |
| 13873 | Use char because int might match the return type of a GCC |
| 13874 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13875 | #ifdef __cplusplus |
| 13876 | extern "C" |
| 13877 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13878 | char pthread_mutex_init (); |
| 13879 | int |
| 13880 | main () |
| 13881 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13882 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13883 | ; |
| 13884 | return 0; |
| 13885 | } |
| 13886 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13887 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13888 | if { (ac_try="$ac_link" |
| 13889 | case "(($ac_try" in |
| 13890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13891 | *) ac_try_echo=$ac_try;; |
| 13892 | esac |
| 13893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13894 | (eval "$ac_link") 2>conftest.er1 |
| 13895 | ac_status=$? |
| 13896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13897 | rm -f conftest.er1 |
| 13898 | cat conftest.err >&5 |
| 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13900 | (exit $ac_status); } && |
| 13901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13902 | { (case "(($ac_try" in |
| 13903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13904 | *) ac_try_echo=$ac_try;; |
| 13905 | esac |
| 13906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13907 | (eval "$ac_try") 2>&5 |
| 13908 | ac_status=$? |
| 13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13910 | (exit $ac_status); }; } && |
| 13911 | { ac_try='test -s conftest$ac_exeext' |
| 13912 | { (case "(($ac_try" in |
| 13913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13914 | *) ac_try_echo=$ac_try;; |
| 13915 | esac |
| 13916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13917 | (eval "$ac_try") 2>&5 |
| 13918 | ac_status=$? |
| 13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13920 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13921 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13923 | echo "$as_me: failed program was:" >&5 |
| 13924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13925 | |
| 13926 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13928 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13929 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13930 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13931 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13932 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13933 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13934 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13935 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13936 | cat >>confdefs.h <<_ACEOF |
| 13937 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13938 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13939 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13940 | LIBS="-lpthread $LIBS" |
| 13941 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13942 | fi |
| 13943 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13944 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13945 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13946 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13948 | else |
| 13949 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13950 | cat >conftest.$ac_ext <<_ACEOF |
| 13951 | /* confdefs.h. */ |
| 13952 | _ACEOF |
| 13953 | cat confdefs.h >>conftest.$ac_ext |
| 13954 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13955 | /* end confdefs.h. */ |
| 13956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13957 | /* Override any GCC internal prototype to avoid an error. |
| 13958 | Use char because int might match the return type of a GCC |
| 13959 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13960 | #ifdef __cplusplus |
| 13961 | extern "C" |
| 13962 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13963 | char pthread_mutex_lock (); |
| 13964 | int |
| 13965 | main () |
| 13966 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13967 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13968 | ; |
| 13969 | return 0; |
| 13970 | } |
| 13971 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13972 | for ac_lib in '' pthread; do |
| 13973 | if test -z "$ac_lib"; then |
| 13974 | ac_res="none required" |
| 13975 | else |
| 13976 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13977 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13978 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13980 | if { (ac_try="$ac_link" |
| 13981 | case "(($ac_try" in |
| 13982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13983 | *) ac_try_echo=$ac_try;; |
| 13984 | esac |
| 13985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13986 | (eval "$ac_link") 2>conftest.er1 |
| 13987 | ac_status=$? |
| 13988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13989 | rm -f conftest.er1 |
| 13990 | cat conftest.err >&5 |
| 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13992 | (exit $ac_status); } && |
| 13993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13994 | { (case "(($ac_try" in |
| 13995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13996 | *) ac_try_echo=$ac_try;; |
| 13997 | esac |
| 13998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13999 | (eval "$ac_try") 2>&5 |
| 14000 | ac_status=$? |
| 14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14002 | (exit $ac_status); }; } && |
| 14003 | { ac_try='test -s conftest$ac_exeext' |
| 14004 | { (case "(($ac_try" in |
| 14005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14006 | *) ac_try_echo=$ac_try;; |
| 14007 | esac |
| 14008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14009 | (eval "$ac_try") 2>&5 |
| 14010 | ac_status=$? |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14013 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14014 | else |
| 14015 | echo "$as_me: failed program was:" >&5 |
| 14016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14017 | |
| 14018 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14019 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14020 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14021 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14022 | conftest$ac_exeext |
| 14023 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14024 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14025 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14026 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14027 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14028 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14029 | else |
| 14030 | ac_cv_search_pthread_mutex_lock=no |
| 14031 | fi |
| 14032 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14033 | LIBS=$ac_func_search_save_LIBS |
| 14034 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14035 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14036 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14037 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14038 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14039 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14040 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | cat >>confdefs.h <<\_ACEOF |
| 14042 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14043 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14044 | |
| 14045 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14046 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14047 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14048 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14049 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14051 | else |
| 14052 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14053 | cat >conftest.$ac_ext <<_ACEOF |
| 14054 | /* confdefs.h. */ |
| 14055 | _ACEOF |
| 14056 | cat confdefs.h >>conftest.$ac_ext |
| 14057 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14058 | /* end confdefs.h. */ |
| 14059 | |
| 14060 | /* Override any GCC internal prototype to avoid an error. |
| 14061 | Use char because int might match the return type of a GCC |
| 14062 | builtin and then its argument prototype would still apply. */ |
| 14063 | #ifdef __cplusplus |
| 14064 | extern "C" |
| 14065 | #endif |
| 14066 | char pthread_rwlock_init (); |
| 14067 | int |
| 14068 | main () |
| 14069 | { |
| 14070 | return pthread_rwlock_init (); |
| 14071 | ; |
| 14072 | return 0; |
| 14073 | } |
| 14074 | _ACEOF |
| 14075 | for ac_lib in '' pthread; do |
| 14076 | if test -z "$ac_lib"; then |
| 14077 | ac_res="none required" |
| 14078 | else |
| 14079 | ac_res=-l$ac_lib |
| 14080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14081 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14083 | if { (ac_try="$ac_link" |
| 14084 | case "(($ac_try" in |
| 14085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14086 | *) ac_try_echo=$ac_try;; |
| 14087 | esac |
| 14088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14089 | (eval "$ac_link") 2>conftest.er1 |
| 14090 | ac_status=$? |
| 14091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14092 | rm -f conftest.er1 |
| 14093 | cat conftest.err >&5 |
| 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14095 | (exit $ac_status); } && |
| 14096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14097 | { (case "(($ac_try" in |
| 14098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14099 | *) ac_try_echo=$ac_try;; |
| 14100 | esac |
| 14101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14102 | (eval "$ac_try") 2>&5 |
| 14103 | ac_status=$? |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); }; } && |
| 14106 | { ac_try='test -s conftest$ac_exeext' |
| 14107 | { (case "(($ac_try" in |
| 14108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14109 | *) ac_try_echo=$ac_try;; |
| 14110 | esac |
| 14111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14112 | (eval "$ac_try") 2>&5 |
| 14113 | ac_status=$? |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14116 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14117 | else |
| 14118 | echo "$as_me: failed program was:" >&5 |
| 14119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14120 | |
| 14121 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14122 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14123 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14124 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14125 | conftest$ac_exeext |
| 14126 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14127 | break |
| 14128 | fi |
| 14129 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14130 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14131 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14132 | else |
| 14133 | ac_cv_search_pthread_rwlock_init=no |
| 14134 | fi |
| 14135 | rm conftest.$ac_ext |
| 14136 | LIBS=$ac_func_search_save_LIBS |
| 14137 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14138 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14139 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14140 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14141 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14142 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14143 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14144 | cat >>confdefs.h <<\_ACEOF |
| 14145 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14146 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14147 | |
| 14148 | fi |
| 14149 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14150 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14151 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14152 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14154 | else |
| 14155 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14156 | cat >conftest.$ac_ext <<_ACEOF |
| 14157 | /* confdefs.h. */ |
| 14158 | _ACEOF |
| 14159 | cat confdefs.h >>conftest.$ac_ext |
| 14160 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14161 | /* end confdefs.h. */ |
| 14162 | |
| 14163 | /* Override any GCC internal prototype to avoid an error. |
| 14164 | Use char because int might match the return type of a GCC |
| 14165 | builtin and then its argument prototype would still apply. */ |
| 14166 | #ifdef __cplusplus |
| 14167 | extern "C" |
| 14168 | #endif |
| 14169 | char pthread_getspecific (); |
| 14170 | int |
| 14171 | main () |
| 14172 | { |
| 14173 | return pthread_getspecific (); |
| 14174 | ; |
| 14175 | return 0; |
| 14176 | } |
| 14177 | _ACEOF |
| 14178 | for ac_lib in '' pthread; do |
| 14179 | if test -z "$ac_lib"; then |
| 14180 | ac_res="none required" |
| 14181 | else |
| 14182 | ac_res=-l$ac_lib |
| 14183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14184 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14186 | if { (ac_try="$ac_link" |
| 14187 | case "(($ac_try" in |
| 14188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14189 | *) ac_try_echo=$ac_try;; |
| 14190 | esac |
| 14191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14192 | (eval "$ac_link") 2>conftest.er1 |
| 14193 | ac_status=$? |
| 14194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14195 | rm -f conftest.er1 |
| 14196 | cat conftest.err >&5 |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } && |
| 14199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14200 | { (case "(($ac_try" in |
| 14201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14202 | *) ac_try_echo=$ac_try;; |
| 14203 | esac |
| 14204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14205 | (eval "$ac_try") 2>&5 |
| 14206 | ac_status=$? |
| 14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14208 | (exit $ac_status); }; } && |
| 14209 | { ac_try='test -s conftest$ac_exeext' |
| 14210 | { (case "(($ac_try" in |
| 14211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14212 | *) ac_try_echo=$ac_try;; |
| 14213 | esac |
| 14214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14215 | (eval "$ac_try") 2>&5 |
| 14216 | ac_status=$? |
| 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14218 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14219 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14220 | else |
| 14221 | echo "$as_me: failed program was:" >&5 |
| 14222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14223 | |
| 14224 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14225 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14226 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14227 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14228 | conftest$ac_exeext |
| 14229 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14230 | break |
| 14231 | fi |
| 14232 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14233 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14234 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14235 | else |
| 14236 | ac_cv_search_pthread_getspecific=no |
| 14237 | fi |
| 14238 | rm conftest.$ac_ext |
| 14239 | LIBS=$ac_func_search_save_LIBS |
| 14240 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14241 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14242 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14243 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14244 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14245 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14246 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14247 | cat >>confdefs.h <<\_ACEOF |
| 14248 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14249 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14250 | |
| 14251 | fi |
| 14252 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14253 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14254 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14255 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14256 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14257 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14258 | withval=$with_udis86; |
| 14259 | USE_UDIS86=1 |
| 14260 | |
| 14261 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14262 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14263 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14264 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14265 | |
| 14266 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14267 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14268 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14270 | else |
| 14271 | ac_check_lib_save_LIBS=$LIBS |
| 14272 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14273 | cat >conftest.$ac_ext <<_ACEOF |
| 14274 | /* confdefs.h. */ |
| 14275 | _ACEOF |
| 14276 | cat confdefs.h >>conftest.$ac_ext |
| 14277 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14278 | /* end confdefs.h. */ |
| 14279 | |
| 14280 | /* Override any GCC internal prototype to avoid an error. |
| 14281 | Use char because int might match the return type of a GCC |
| 14282 | builtin and then its argument prototype would still apply. */ |
| 14283 | #ifdef __cplusplus |
| 14284 | extern "C" |
| 14285 | #endif |
| 14286 | char ud_init (); |
| 14287 | int |
| 14288 | main () |
| 14289 | { |
| 14290 | return ud_init (); |
| 14291 | ; |
| 14292 | return 0; |
| 14293 | } |
| 14294 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14295 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14296 | if { (ac_try="$ac_link" |
| 14297 | case "(($ac_try" in |
| 14298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14299 | *) ac_try_echo=$ac_try;; |
| 14300 | esac |
| 14301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14302 | (eval "$ac_link") 2>conftest.er1 |
| 14303 | ac_status=$? |
| 14304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14305 | rm -f conftest.er1 |
| 14306 | cat conftest.err >&5 |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); } && |
| 14309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14310 | { (case "(($ac_try" in |
| 14311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14312 | *) ac_try_echo=$ac_try;; |
| 14313 | esac |
| 14314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14315 | (eval "$ac_try") 2>&5 |
| 14316 | ac_status=$? |
| 14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14318 | (exit $ac_status); }; } && |
| 14319 | { ac_try='test -s conftest$ac_exeext' |
| 14320 | { (case "(($ac_try" in |
| 14321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14322 | *) ac_try_echo=$ac_try;; |
| 14323 | esac |
| 14324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14325 | (eval "$ac_try") 2>&5 |
| 14326 | ac_status=$? |
| 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14328 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14329 | ac_cv_lib_udis86_ud_init=yes |
| 14330 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14331 | echo "$as_me: failed program was:" >&5 |
| 14332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14333 | |
| 14334 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14335 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14336 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14337 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14338 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14339 | LIBS=$ac_check_lib_save_LIBS |
| 14340 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14341 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14342 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14343 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14344 | cat >>confdefs.h <<_ACEOF |
| 14345 | #define HAVE_LIBUDIS86 1 |
| 14346 | _ACEOF |
| 14347 | |
| 14348 | LIBS="-ludis86 $LIBS" |
| 14349 | |
| 14350 | else |
| 14351 | |
| 14352 | echo "Error! You need to have libudis86 around." |
| 14353 | exit -1 |
| 14354 | |
| 14355 | fi |
| 14356 | |
| 14357 | |
| 14358 | else |
| 14359 | USE_UDIS86=0 |
| 14360 | |
| 14361 | fi |
| 14362 | |
| 14363 | |
| 14364 | cat >>confdefs.h <<_ACEOF |
| 14365 | #define USE_UDIS86 $USE_UDIS86 |
| 14366 | _ACEOF |
| 14367 | |
| 14368 | |
| 14369 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14370 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14371 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14372 | withval=$with_oprofile; |
| 14373 | USE_OPROFILE=1 |
| 14374 | |
| 14375 | case "$withval" in |
| 14376 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14377 | no) llvm_cv_oppath= |
| 14378 | USE_OPROFILE=0 |
| 14379 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14380 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14381 | CPPFLAGS="-I${withval}/include";; |
| 14382 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14383 | if test -n "$llvm_cv_oppath" ; then |
| 14384 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14385 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14386 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14387 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14389 | else |
| 14390 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14391 | cat >conftest.$ac_ext <<_ACEOF |
| 14392 | /* confdefs.h. */ |
| 14393 | _ACEOF |
| 14394 | cat confdefs.h >>conftest.$ac_ext |
| 14395 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14396 | /* end confdefs.h. */ |
| 14397 | |
| 14398 | /* Override any GCC internal prototype to avoid an error. |
| 14399 | Use char because int might match the return type of a GCC |
| 14400 | builtin and then its argument prototype would still apply. */ |
| 14401 | #ifdef __cplusplus |
| 14402 | extern "C" |
| 14403 | #endif |
| 14404 | char bfd_init (); |
| 14405 | int |
| 14406 | main () |
| 14407 | { |
| 14408 | return bfd_init (); |
| 14409 | ; |
| 14410 | return 0; |
| 14411 | } |
| 14412 | _ACEOF |
| 14413 | for ac_lib in '' bfd; do |
| 14414 | if test -z "$ac_lib"; then |
| 14415 | ac_res="none required" |
| 14416 | else |
| 14417 | ac_res=-l$ac_lib |
| 14418 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14419 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14421 | if { (ac_try="$ac_link" |
| 14422 | case "(($ac_try" in |
| 14423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14424 | *) ac_try_echo=$ac_try;; |
| 14425 | esac |
| 14426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14427 | (eval "$ac_link") 2>conftest.er1 |
| 14428 | ac_status=$? |
| 14429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14430 | rm -f conftest.er1 |
| 14431 | cat conftest.err >&5 |
| 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); } && |
| 14434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14435 | { (case "(($ac_try" in |
| 14436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14437 | *) ac_try_echo=$ac_try;; |
| 14438 | esac |
| 14439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14440 | (eval "$ac_try") 2>&5 |
| 14441 | ac_status=$? |
| 14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14443 | (exit $ac_status); }; } && |
| 14444 | { ac_try='test -s conftest$ac_exeext' |
| 14445 | { (case "(($ac_try" in |
| 14446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14447 | *) ac_try_echo=$ac_try;; |
| 14448 | esac |
| 14449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14450 | (eval "$ac_try") 2>&5 |
| 14451 | ac_status=$? |
| 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14453 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14454 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14455 | else |
| 14456 | echo "$as_me: failed program was:" >&5 |
| 14457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14458 | |
| 14459 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14461 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14462 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14463 | conftest$ac_exeext |
| 14464 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14465 | break |
| 14466 | fi |
| 14467 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14468 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14469 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14470 | else |
| 14471 | ac_cv_search_bfd_init=no |
| 14472 | fi |
| 14473 | rm conftest.$ac_ext |
| 14474 | LIBS=$ac_func_search_save_LIBS |
| 14475 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14476 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14477 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14478 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14479 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14480 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14481 | |
| 14482 | fi |
| 14483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14484 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14485 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14486 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14488 | else |
| 14489 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14490 | cat >conftest.$ac_ext <<_ACEOF |
| 14491 | /* confdefs.h. */ |
| 14492 | _ACEOF |
| 14493 | cat confdefs.h >>conftest.$ac_ext |
| 14494 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14495 | /* end confdefs.h. */ |
| 14496 | |
| 14497 | /* Override any GCC internal prototype to avoid an error. |
| 14498 | Use char because int might match the return type of a GCC |
| 14499 | builtin and then its argument prototype would still apply. */ |
| 14500 | #ifdef __cplusplus |
| 14501 | extern "C" |
| 14502 | #endif |
| 14503 | char op_open_agent (); |
| 14504 | int |
| 14505 | main () |
| 14506 | { |
| 14507 | return op_open_agent (); |
| 14508 | ; |
| 14509 | return 0; |
| 14510 | } |
| 14511 | _ACEOF |
| 14512 | for ac_lib in '' opagent; do |
| 14513 | if test -z "$ac_lib"; then |
| 14514 | ac_res="none required" |
| 14515 | else |
| 14516 | ac_res=-l$ac_lib |
| 14517 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14518 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14519 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14520 | if { (ac_try="$ac_link" |
| 14521 | case "(($ac_try" in |
| 14522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14523 | *) ac_try_echo=$ac_try;; |
| 14524 | esac |
| 14525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14526 | (eval "$ac_link") 2>conftest.er1 |
| 14527 | ac_status=$? |
| 14528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14529 | rm -f conftest.er1 |
| 14530 | cat conftest.err >&5 |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); } && |
| 14533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14534 | { (case "(($ac_try" in |
| 14535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14536 | *) ac_try_echo=$ac_try;; |
| 14537 | esac |
| 14538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14539 | (eval "$ac_try") 2>&5 |
| 14540 | ac_status=$? |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); }; } && |
| 14543 | { ac_try='test -s conftest$ac_exeext' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14553 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14554 | else |
| 14555 | echo "$as_me: failed program was:" >&5 |
| 14556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14557 | |
| 14558 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14559 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14560 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14561 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14562 | conftest$ac_exeext |
| 14563 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14564 | break |
| 14565 | fi |
| 14566 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14567 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14568 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14569 | else |
| 14570 | ac_cv_search_op_open_agent=no |
| 14571 | fi |
| 14572 | rm conftest.$ac_ext |
| 14573 | LIBS=$ac_func_search_save_LIBS |
| 14574 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14575 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14576 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14577 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14578 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14579 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14580 | |
| 14581 | else |
| 14582 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14583 | echo "Error! You need to have libopagent around." |
| 14584 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14585 | |
| 14586 | fi |
| 14587 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14588 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14589 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14590 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14591 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14593 | fi |
| 14594 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14595 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14596 | else |
| 14597 | # Is the header compilable? |
| 14598 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14599 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14600 | cat >conftest.$ac_ext <<_ACEOF |
| 14601 | /* confdefs.h. */ |
| 14602 | _ACEOF |
| 14603 | cat confdefs.h >>conftest.$ac_ext |
| 14604 | cat >>conftest.$ac_ext <<_ACEOF |
| 14605 | /* end confdefs.h. */ |
| 14606 | $ac_includes_default |
| 14607 | #include <opagent.h> |
| 14608 | _ACEOF |
| 14609 | rm -f conftest.$ac_objext |
| 14610 | if { (ac_try="$ac_compile" |
| 14611 | case "(($ac_try" in |
| 14612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14613 | *) ac_try_echo=$ac_try;; |
| 14614 | esac |
| 14615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14616 | (eval "$ac_compile") 2>conftest.er1 |
| 14617 | ac_status=$? |
| 14618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14619 | rm -f conftest.er1 |
| 14620 | cat conftest.err >&5 |
| 14621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14622 | (exit $ac_status); } && |
| 14623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14624 | { (case "(($ac_try" in |
| 14625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14626 | *) ac_try_echo=$ac_try;; |
| 14627 | esac |
| 14628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14629 | (eval "$ac_try") 2>&5 |
| 14630 | ac_status=$? |
| 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); }; } && |
| 14633 | { ac_try='test -s conftest.$ac_objext' |
| 14634 | { (case "(($ac_try" in |
| 14635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14636 | *) ac_try_echo=$ac_try;; |
| 14637 | esac |
| 14638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14639 | (eval "$ac_try") 2>&5 |
| 14640 | ac_status=$? |
| 14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); }; }; then |
| 14643 | ac_header_compiler=yes |
| 14644 | else |
| 14645 | echo "$as_me: failed program was:" >&5 |
| 14646 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14648 | ac_header_compiler=no |
| 14649 | fi |
| 14650 | |
| 14651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14653 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14654 | |
| 14655 | # Is the header present? |
| 14656 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14657 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14658 | cat >conftest.$ac_ext <<_ACEOF |
| 14659 | /* confdefs.h. */ |
| 14660 | _ACEOF |
| 14661 | cat confdefs.h >>conftest.$ac_ext |
| 14662 | cat >>conftest.$ac_ext <<_ACEOF |
| 14663 | /* end confdefs.h. */ |
| 14664 | #include <opagent.h> |
| 14665 | _ACEOF |
| 14666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14667 | case "(($ac_try" in |
| 14668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14669 | *) ac_try_echo=$ac_try;; |
| 14670 | esac |
| 14671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14673 | ac_status=$? |
| 14674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14675 | rm -f conftest.er1 |
| 14676 | cat conftest.err >&5 |
| 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14678 | (exit $ac_status); } >/dev/null; then |
| 14679 | if test -s conftest.err; then |
| 14680 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14682 | else |
| 14683 | ac_cpp_err= |
| 14684 | fi |
| 14685 | else |
| 14686 | ac_cpp_err=yes |
| 14687 | fi |
| 14688 | if test -z "$ac_cpp_err"; then |
| 14689 | ac_header_preproc=yes |
| 14690 | else |
| 14691 | echo "$as_me: failed program was:" >&5 |
| 14692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14693 | |
| 14694 | ac_header_preproc=no |
| 14695 | fi |
| 14696 | |
| 14697 | rm -f conftest.err conftest.$ac_ext |
| 14698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14699 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14700 | |
| 14701 | # So? What about this header? |
| 14702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14703 | yes:no: ) |
| 14704 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14705 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14706 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14707 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14708 | ac_header_preproc=yes |
| 14709 | ;; |
| 14710 | no:yes:* ) |
| 14711 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14712 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14713 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14714 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14715 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14716 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14717 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14718 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14719 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14720 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14721 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14722 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14723 | ( cat <<\_ASBOX |
| 14724 | ## ----------------------------------- ## |
| 14725 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14726 | ## ----------------------------------- ## |
| 14727 | _ASBOX |
| 14728 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14729 | ;; |
| 14730 | esac |
| 14731 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14732 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14733 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14735 | else |
| 14736 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14737 | fi |
| 14738 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14739 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14740 | |
| 14741 | fi |
| 14742 | if test $ac_cv_header_opagent_h = yes; then |
| 14743 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14744 | else |
| 14745 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14746 | echo "Error! You need to have opagent.h around." |
| 14747 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14748 | |
| 14749 | fi |
| 14750 | |
| 14751 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14752 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14753 | |
| 14754 | else |
| 14755 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14756 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14757 | |
| 14758 | |
| 14759 | fi |
| 14760 | |
| 14761 | |
| 14762 | cat >>confdefs.h <<_ACEOF |
| 14763 | #define USE_OPROFILE $USE_OPROFILE |
| 14764 | _ACEOF |
| 14765 | |
| 14766 | |
| 14767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14768 | |
| 14769 | |
| 14770 | |
| 14771 | |
| 14772 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14773 | ac_header_dirent=no |
| 14774 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14775 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14776 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14777 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14780 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14781 | cat >conftest.$ac_ext <<_ACEOF |
| 14782 | /* confdefs.h. */ |
| 14783 | _ACEOF |
| 14784 | cat confdefs.h >>conftest.$ac_ext |
| 14785 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14786 | /* end confdefs.h. */ |
| 14787 | #include <sys/types.h> |
| 14788 | #include <$ac_hdr> |
| 14789 | |
| 14790 | int |
| 14791 | main () |
| 14792 | { |
| 14793 | if ((DIR *) 0) |
| 14794 | return 0; |
| 14795 | ; |
| 14796 | return 0; |
| 14797 | } |
| 14798 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14799 | rm -f conftest.$ac_objext |
| 14800 | if { (ac_try="$ac_compile" |
| 14801 | case "(($ac_try" in |
| 14802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14803 | *) ac_try_echo=$ac_try;; |
| 14804 | esac |
| 14805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14806 | (eval "$ac_compile") 2>conftest.er1 |
| 14807 | ac_status=$? |
| 14808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14809 | rm -f conftest.er1 |
| 14810 | cat conftest.err >&5 |
| 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); } && |
| 14813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14814 | { (case "(($ac_try" in |
| 14815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14816 | *) ac_try_echo=$ac_try;; |
| 14817 | esac |
| 14818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14819 | (eval "$ac_try") 2>&5 |
| 14820 | ac_status=$? |
| 14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14822 | (exit $ac_status); }; } && |
| 14823 | { ac_try='test -s conftest.$ac_objext' |
| 14824 | { (case "(($ac_try" in |
| 14825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14826 | *) ac_try_echo=$ac_try;; |
| 14827 | esac |
| 14828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14829 | (eval "$ac_try") 2>&5 |
| 14830 | ac_status=$? |
| 14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14832 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14833 | eval "$as_ac_Header=yes" |
| 14834 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14835 | echo "$as_me: failed program was:" >&5 |
| 14836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14837 | |
| 14838 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14839 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14842 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14843 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14845 | echo "${ECHO_T}$ac_res" >&6; } |
| 14846 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14847 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14848 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14849 | _ACEOF |
| 14850 | |
| 14851 | ac_header_dirent=$ac_hdr; break |
| 14852 | fi |
| 14853 | |
| 14854 | done |
| 14855 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14856 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14857 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14858 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14859 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14861 | else |
| 14862 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14863 | cat >conftest.$ac_ext <<_ACEOF |
| 14864 | /* confdefs.h. */ |
| 14865 | _ACEOF |
| 14866 | cat confdefs.h >>conftest.$ac_ext |
| 14867 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14868 | /* end confdefs.h. */ |
| 14869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14870 | /* Override any GCC internal prototype to avoid an error. |
| 14871 | Use char because int might match the return type of a GCC |
| 14872 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14873 | #ifdef __cplusplus |
| 14874 | extern "C" |
| 14875 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14876 | char opendir (); |
| 14877 | int |
| 14878 | main () |
| 14879 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14880 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14881 | ; |
| 14882 | return 0; |
| 14883 | } |
| 14884 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14885 | for ac_lib in '' dir; do |
| 14886 | if test -z "$ac_lib"; then |
| 14887 | ac_res="none required" |
| 14888 | else |
| 14889 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14890 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14891 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14893 | if { (ac_try="$ac_link" |
| 14894 | case "(($ac_try" in |
| 14895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14896 | *) ac_try_echo=$ac_try;; |
| 14897 | esac |
| 14898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14899 | (eval "$ac_link") 2>conftest.er1 |
| 14900 | ac_status=$? |
| 14901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14902 | rm -f conftest.er1 |
| 14903 | cat conftest.err >&5 |
| 14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14905 | (exit $ac_status); } && |
| 14906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14907 | { (case "(($ac_try" in |
| 14908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14909 | *) ac_try_echo=$ac_try;; |
| 14910 | esac |
| 14911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14912 | (eval "$ac_try") 2>&5 |
| 14913 | ac_status=$? |
| 14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14915 | (exit $ac_status); }; } && |
| 14916 | { ac_try='test -s conftest$ac_exeext' |
| 14917 | { (case "(($ac_try" in |
| 14918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14919 | *) ac_try_echo=$ac_try;; |
| 14920 | esac |
| 14921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14922 | (eval "$ac_try") 2>&5 |
| 14923 | ac_status=$? |
| 14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14925 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14926 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14927 | else |
| 14928 | echo "$as_me: failed program was:" >&5 |
| 14929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14930 | |
| 14931 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14932 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14933 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14934 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14935 | conftest$ac_exeext |
| 14936 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14937 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14939 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14940 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14941 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14942 | else |
| 14943 | ac_cv_search_opendir=no |
| 14944 | fi |
| 14945 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14946 | LIBS=$ac_func_search_save_LIBS |
| 14947 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14948 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14949 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14950 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14951 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14952 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14953 | |
| 14954 | fi |
| 14955 | |
| 14956 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14957 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14958 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14959 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14961 | else |
| 14962 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14963 | cat >conftest.$ac_ext <<_ACEOF |
| 14964 | /* confdefs.h. */ |
| 14965 | _ACEOF |
| 14966 | cat confdefs.h >>conftest.$ac_ext |
| 14967 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14968 | /* end confdefs.h. */ |
| 14969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14970 | /* Override any GCC internal prototype to avoid an error. |
| 14971 | Use char because int might match the return type of a GCC |
| 14972 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14973 | #ifdef __cplusplus |
| 14974 | extern "C" |
| 14975 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14976 | char opendir (); |
| 14977 | int |
| 14978 | main () |
| 14979 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14981 | ; |
| 14982 | return 0; |
| 14983 | } |
| 14984 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14985 | for ac_lib in '' x; do |
| 14986 | if test -z "$ac_lib"; then |
| 14987 | ac_res="none required" |
| 14988 | else |
| 14989 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14990 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14993 | if { (ac_try="$ac_link" |
| 14994 | case "(($ac_try" in |
| 14995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14996 | *) ac_try_echo=$ac_try;; |
| 14997 | esac |
| 14998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14999 | (eval "$ac_link") 2>conftest.er1 |
| 15000 | ac_status=$? |
| 15001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15002 | rm -f conftest.er1 |
| 15003 | cat conftest.err >&5 |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); } && |
| 15006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15007 | { (case "(($ac_try" in |
| 15008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15009 | *) ac_try_echo=$ac_try;; |
| 15010 | esac |
| 15011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15012 | (eval "$ac_try") 2>&5 |
| 15013 | ac_status=$? |
| 15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15015 | (exit $ac_status); }; } && |
| 15016 | { ac_try='test -s conftest$ac_exeext' |
| 15017 | { (case "(($ac_try" in |
| 15018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15019 | *) ac_try_echo=$ac_try;; |
| 15020 | esac |
| 15021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15022 | (eval "$ac_try") 2>&5 |
| 15023 | ac_status=$? |
| 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15026 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15027 | else |
| 15028 | echo "$as_me: failed program was:" >&5 |
| 15029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15030 | |
| 15031 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15033 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15034 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15035 | conftest$ac_exeext |
| 15036 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15037 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15038 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15039 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15040 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15041 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15042 | else |
| 15043 | ac_cv_search_opendir=no |
| 15044 | fi |
| 15045 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15046 | LIBS=$ac_func_search_save_LIBS |
| 15047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15048 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15049 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15050 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15051 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15052 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15053 | |
| 15054 | fi |
| 15055 | |
| 15056 | fi |
| 15057 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15058 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15059 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15060 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15062 | else |
| 15063 | ac_ext=c |
| 15064 | ac_cpp='$CPP $CPPFLAGS' |
| 15065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15068 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15069 | cat >conftest.$ac_ext <<_ACEOF |
| 15070 | /* confdefs.h. */ |
| 15071 | _ACEOF |
| 15072 | cat confdefs.h >>conftest.$ac_ext |
| 15073 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15074 | /* end confdefs.h. */ |
| 15075 | #include <sys/mman.h> |
| 15076 | #include <unistd.h> |
| 15077 | #include <fcntl.h> |
| 15078 | int |
| 15079 | main () |
| 15080 | { |
| 15081 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15082 | ; |
| 15083 | return 0; |
| 15084 | } |
| 15085 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15086 | rm -f conftest.$ac_objext |
| 15087 | if { (ac_try="$ac_compile" |
| 15088 | case "(($ac_try" in |
| 15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15090 | *) ac_try_echo=$ac_try;; |
| 15091 | esac |
| 15092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15093 | (eval "$ac_compile") 2>conftest.er1 |
| 15094 | ac_status=$? |
| 15095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15096 | rm -f conftest.er1 |
| 15097 | cat conftest.err >&5 |
| 15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15099 | (exit $ac_status); } && |
| 15100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15101 | { (case "(($ac_try" in |
| 15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15103 | *) ac_try_echo=$ac_try;; |
| 15104 | esac |
| 15105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15106 | (eval "$ac_try") 2>&5 |
| 15107 | ac_status=$? |
| 15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15109 | (exit $ac_status); }; } && |
| 15110 | { ac_try='test -s conftest.$ac_objext' |
| 15111 | { (case "(($ac_try" in |
| 15112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15113 | *) ac_try_echo=$ac_try;; |
| 15114 | esac |
| 15115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15116 | (eval "$ac_try") 2>&5 |
| 15117 | ac_status=$? |
| 15118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15119 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15120 | ac_cv_header_mmap_anon=yes |
| 15121 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15122 | echo "$as_me: failed program was:" >&5 |
| 15123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15124 | |
| 15125 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15126 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15129 | ac_ext=c |
| 15130 | ac_cpp='$CPP $CPPFLAGS' |
| 15131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15134 | |
| 15135 | |
| 15136 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15137 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15138 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15139 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15140 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15141 | cat >>confdefs.h <<\_ACEOF |
| 15142 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15143 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15144 | |
| 15145 | fi |
| 15146 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15147 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15148 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15149 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15151 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15152 | cat >conftest.$ac_ext <<_ACEOF |
| 15153 | /* confdefs.h. */ |
| 15154 | _ACEOF |
| 15155 | cat confdefs.h >>conftest.$ac_ext |
| 15156 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15157 | /* end confdefs.h. */ |
| 15158 | #include <sys/types.h> |
| 15159 | #include <sys/stat.h> |
| 15160 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15161 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15162 | # if S_ISBLK (S_IFDIR) |
| 15163 | You lose. |
| 15164 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15165 | #endif |
| 15166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15167 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15168 | # if S_ISBLK (S_IFCHR) |
| 15169 | You lose. |
| 15170 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15171 | #endif |
| 15172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15173 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15174 | # if S_ISLNK (S_IFREG) |
| 15175 | You lose. |
| 15176 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15177 | #endif |
| 15178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15179 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15180 | # if S_ISSOCK (S_IFREG) |
| 15181 | You lose. |
| 15182 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15183 | #endif |
| 15184 | |
| 15185 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15187 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15188 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15189 | else |
| 15190 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15191 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15192 | rm -f conftest* |
| 15193 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15195 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15196 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15197 | if test $ac_cv_header_stat_broken = yes; then |
| 15198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15199 | cat >>confdefs.h <<\_ACEOF |
| 15200 | #define STAT_MACROS_BROKEN 1 |
| 15201 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15202 | |
| 15203 | fi |
| 15204 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15205 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15206 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15207 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15209 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15210 | cat >conftest.$ac_ext <<_ACEOF |
| 15211 | /* confdefs.h. */ |
| 15212 | _ACEOF |
| 15213 | cat confdefs.h >>conftest.$ac_ext |
| 15214 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15215 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15216 | #include <stdlib.h> |
| 15217 | #include <stdarg.h> |
| 15218 | #include <string.h> |
| 15219 | #include <float.h> |
| 15220 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15221 | int |
| 15222 | main () |
| 15223 | { |
| 15224 | |
| 15225 | ; |
| 15226 | return 0; |
| 15227 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15228 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15229 | rm -f conftest.$ac_objext |
| 15230 | if { (ac_try="$ac_compile" |
| 15231 | case "(($ac_try" in |
| 15232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15233 | *) ac_try_echo=$ac_try;; |
| 15234 | esac |
| 15235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15236 | (eval "$ac_compile") 2>conftest.er1 |
| 15237 | ac_status=$? |
| 15238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15239 | rm -f conftest.er1 |
| 15240 | cat conftest.err >&5 |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); } && |
| 15243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15244 | { (case "(($ac_try" in |
| 15245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15246 | *) ac_try_echo=$ac_try;; |
| 15247 | esac |
| 15248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15249 | (eval "$ac_try") 2>&5 |
| 15250 | ac_status=$? |
| 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15252 | (exit $ac_status); }; } && |
| 15253 | { ac_try='test -s conftest.$ac_objext' |
| 15254 | { (case "(($ac_try" in |
| 15255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15256 | *) ac_try_echo=$ac_try;; |
| 15257 | esac |
| 15258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15259 | (eval "$ac_try") 2>&5 |
| 15260 | ac_status=$? |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15263 | ac_cv_header_stdc=yes |
| 15264 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15265 | echo "$as_me: failed program was:" >&5 |
| 15266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15267 | |
| 15268 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15269 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15272 | |
| 15273 | if test $ac_cv_header_stdc = yes; then |
| 15274 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15275 | cat >conftest.$ac_ext <<_ACEOF |
| 15276 | /* confdefs.h. */ |
| 15277 | _ACEOF |
| 15278 | cat confdefs.h >>conftest.$ac_ext |
| 15279 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15280 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15281 | #include <string.h> |
| 15282 | |
| 15283 | _ACEOF |
| 15284 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15285 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15286 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15287 | else |
| 15288 | ac_cv_header_stdc=no |
| 15289 | fi |
| 15290 | rm -f conftest* |
| 15291 | |
| 15292 | fi |
| 15293 | |
| 15294 | if test $ac_cv_header_stdc = yes; then |
| 15295 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15296 | cat >conftest.$ac_ext <<_ACEOF |
| 15297 | /* confdefs.h. */ |
| 15298 | _ACEOF |
| 15299 | cat confdefs.h >>conftest.$ac_ext |
| 15300 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15301 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15302 | #include <stdlib.h> |
| 15303 | |
| 15304 | _ACEOF |
| 15305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15306 | $EGREP "free" >/dev/null 2>&1; then |
| 15307 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15308 | else |
| 15309 | ac_cv_header_stdc=no |
| 15310 | fi |
| 15311 | rm -f conftest* |
| 15312 | |
| 15313 | fi |
| 15314 | |
| 15315 | if test $ac_cv_header_stdc = yes; then |
| 15316 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15317 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15318 | : |
| 15319 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15320 | cat >conftest.$ac_ext <<_ACEOF |
| 15321 | /* confdefs.h. */ |
| 15322 | _ACEOF |
| 15323 | cat confdefs.h >>conftest.$ac_ext |
| 15324 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15325 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15326 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15327 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15328 | #if ((' ' & 0x0FF) == 0x020) |
| 15329 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15330 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15331 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15332 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15333 | (('a' <= (c) && (c) <= 'i') \ |
| 15334 | || ('j' <= (c) && (c) <= 'r') \ |
| 15335 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15336 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15337 | #endif |
| 15338 | |
| 15339 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15340 | int |
| 15341 | main () |
| 15342 | { |
| 15343 | int i; |
| 15344 | for (i = 0; i < 256; i++) |
| 15345 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15346 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15347 | return 2; |
| 15348 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15349 | } |
| 15350 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15351 | rm -f conftest$ac_exeext |
| 15352 | if { (ac_try="$ac_link" |
| 15353 | case "(($ac_try" in |
| 15354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15355 | *) ac_try_echo=$ac_try;; |
| 15356 | esac |
| 15357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15358 | (eval "$ac_link") 2>&5 |
| 15359 | ac_status=$? |
| 15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15362 | { (case "(($ac_try" in |
| 15363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15364 | *) ac_try_echo=$ac_try;; |
| 15365 | esac |
| 15366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15367 | (eval "$ac_try") 2>&5 |
| 15368 | ac_status=$? |
| 15369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15370 | (exit $ac_status); }; }; then |
| 15371 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15373 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15374 | echo "$as_me: failed program was:" >&5 |
| 15375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15376 | |
| 15377 | ( exit $ac_status ) |
| 15378 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15379 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15381 | fi |
| 15382 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15384 | fi |
| 15385 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15386 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15387 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15388 | if test $ac_cv_header_stdc = yes; then |
| 15389 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15390 | cat >>confdefs.h <<\_ACEOF |
| 15391 | #define STDC_HEADERS 1 |
| 15392 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15393 | |
| 15394 | fi |
| 15395 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15396 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15397 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15398 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15400 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15401 | cat >conftest.$ac_ext <<_ACEOF |
| 15402 | /* confdefs.h. */ |
| 15403 | _ACEOF |
| 15404 | cat confdefs.h >>conftest.$ac_ext |
| 15405 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15406 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15407 | #include <sys/types.h> |
| 15408 | #include <sys/wait.h> |
| 15409 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15410 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15411 | #endif |
| 15412 | #ifndef WIFEXITED |
| 15413 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15414 | #endif |
| 15415 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15416 | int |
| 15417 | main () |
| 15418 | { |
| 15419 | int s; |
| 15420 | wait (&s); |
| 15421 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15422 | ; |
| 15423 | return 0; |
| 15424 | } |
| 15425 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15426 | rm -f conftest.$ac_objext |
| 15427 | if { (ac_try="$ac_compile" |
| 15428 | case "(($ac_try" in |
| 15429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15430 | *) ac_try_echo=$ac_try;; |
| 15431 | esac |
| 15432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15433 | (eval "$ac_compile") 2>conftest.er1 |
| 15434 | ac_status=$? |
| 15435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15436 | rm -f conftest.er1 |
| 15437 | cat conftest.err >&5 |
| 15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15439 | (exit $ac_status); } && |
| 15440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15441 | { (case "(($ac_try" in |
| 15442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15443 | *) ac_try_echo=$ac_try;; |
| 15444 | esac |
| 15445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15446 | (eval "$ac_try") 2>&5 |
| 15447 | ac_status=$? |
| 15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); }; } && |
| 15450 | { ac_try='test -s conftest.$ac_objext' |
| 15451 | { (case "(($ac_try" in |
| 15452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15453 | *) ac_try_echo=$ac_try;; |
| 15454 | esac |
| 15455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15456 | (eval "$ac_try") 2>&5 |
| 15457 | ac_status=$? |
| 15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15459 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15460 | ac_cv_header_sys_wait_h=yes |
| 15461 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15462 | echo "$as_me: failed program was:" >&5 |
| 15463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15464 | |
| 15465 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15466 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15469 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15470 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15471 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15472 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15473 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15474 | cat >>confdefs.h <<\_ACEOF |
| 15475 | #define HAVE_SYS_WAIT_H 1 |
| 15476 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15477 | |
| 15478 | fi |
| 15479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15480 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15481 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15482 | if test "${ac_cv_header_time+set}" = set; then |
| 15483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15484 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15485 | cat >conftest.$ac_ext <<_ACEOF |
| 15486 | /* confdefs.h. */ |
| 15487 | _ACEOF |
| 15488 | cat confdefs.h >>conftest.$ac_ext |
| 15489 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15490 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15491 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15492 | #include <sys/time.h> |
| 15493 | #include <time.h> |
| 15494 | |
| 15495 | int |
| 15496 | main () |
| 15497 | { |
| 15498 | if ((struct tm *) 0) |
| 15499 | return 0; |
| 15500 | ; |
| 15501 | return 0; |
| 15502 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15503 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15504 | rm -f conftest.$ac_objext |
| 15505 | if { (ac_try="$ac_compile" |
| 15506 | case "(($ac_try" in |
| 15507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15508 | *) ac_try_echo=$ac_try;; |
| 15509 | esac |
| 15510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15511 | (eval "$ac_compile") 2>conftest.er1 |
| 15512 | ac_status=$? |
| 15513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15514 | rm -f conftest.er1 |
| 15515 | cat conftest.err >&5 |
| 15516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15517 | (exit $ac_status); } && |
| 15518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15519 | { (case "(($ac_try" in |
| 15520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15521 | *) ac_try_echo=$ac_try;; |
| 15522 | esac |
| 15523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15524 | (eval "$ac_try") 2>&5 |
| 15525 | ac_status=$? |
| 15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15527 | (exit $ac_status); }; } && |
| 15528 | { ac_try='test -s conftest.$ac_objext' |
| 15529 | { (case "(($ac_try" in |
| 15530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15531 | *) ac_try_echo=$ac_try;; |
| 15532 | esac |
| 15533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15534 | (eval "$ac_try") 2>&5 |
| 15535 | ac_status=$? |
| 15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15537 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15538 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15539 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15540 | echo "$as_me: failed program was:" >&5 |
| 15541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15542 | |
| 15543 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15544 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15547 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15548 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15549 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15550 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15551 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15552 | cat >>confdefs.h <<\_ACEOF |
| 15553 | #define TIME_WITH_SYS_TIME 1 |
| 15554 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15555 | |
| 15556 | fi |
| 15557 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15559 | |
| 15560 | |
| 15561 | |
| 15562 | |
| 15563 | |
| 15564 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15565 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15566 | do |
| 15567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15573 | fi |
| 15574 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15576 | echo "${ECHO_T}$ac_res" >&6; } |
| 15577 | else |
| 15578 | # Is the header compilable? |
| 15579 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15580 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15581 | cat >conftest.$ac_ext <<_ACEOF |
| 15582 | /* confdefs.h. */ |
| 15583 | _ACEOF |
| 15584 | cat confdefs.h >>conftest.$ac_ext |
| 15585 | cat >>conftest.$ac_ext <<_ACEOF |
| 15586 | /* end confdefs.h. */ |
| 15587 | $ac_includes_default |
| 15588 | #include <$ac_header> |
| 15589 | _ACEOF |
| 15590 | rm -f conftest.$ac_objext |
| 15591 | if { (ac_try="$ac_compile" |
| 15592 | case "(($ac_try" in |
| 15593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15594 | *) ac_try_echo=$ac_try;; |
| 15595 | esac |
| 15596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15597 | (eval "$ac_compile") 2>conftest.er1 |
| 15598 | ac_status=$? |
| 15599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15600 | rm -f conftest.er1 |
| 15601 | cat conftest.err >&5 |
| 15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15603 | (exit $ac_status); } && |
| 15604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15605 | { (case "(($ac_try" in |
| 15606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15607 | *) ac_try_echo=$ac_try;; |
| 15608 | esac |
| 15609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15610 | (eval "$ac_try") 2>&5 |
| 15611 | ac_status=$? |
| 15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15613 | (exit $ac_status); }; } && |
| 15614 | { ac_try='test -s conftest.$ac_objext' |
| 15615 | { (case "(($ac_try" in |
| 15616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15617 | *) ac_try_echo=$ac_try;; |
| 15618 | esac |
| 15619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15620 | (eval "$ac_try") 2>&5 |
| 15621 | ac_status=$? |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); }; }; then |
| 15624 | ac_header_compiler=yes |
| 15625 | else |
| 15626 | echo "$as_me: failed program was:" >&5 |
| 15627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15628 | |
| 15629 | ac_header_compiler=no |
| 15630 | fi |
| 15631 | |
| 15632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15633 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15634 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15635 | |
| 15636 | # Is the header present? |
| 15637 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15638 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15639 | cat >conftest.$ac_ext <<_ACEOF |
| 15640 | /* confdefs.h. */ |
| 15641 | _ACEOF |
| 15642 | cat confdefs.h >>conftest.$ac_ext |
| 15643 | cat >>conftest.$ac_ext <<_ACEOF |
| 15644 | /* end confdefs.h. */ |
| 15645 | #include <$ac_header> |
| 15646 | _ACEOF |
| 15647 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15648 | case "(($ac_try" in |
| 15649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15650 | *) ac_try_echo=$ac_try;; |
| 15651 | esac |
| 15652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15654 | ac_status=$? |
| 15655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15656 | rm -f conftest.er1 |
| 15657 | cat conftest.err >&5 |
| 15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15659 | (exit $ac_status); } >/dev/null; then |
| 15660 | if test -s conftest.err; then |
| 15661 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15663 | else |
| 15664 | ac_cpp_err= |
| 15665 | fi |
| 15666 | else |
| 15667 | ac_cpp_err=yes |
| 15668 | fi |
| 15669 | if test -z "$ac_cpp_err"; then |
| 15670 | ac_header_preproc=yes |
| 15671 | else |
| 15672 | echo "$as_me: failed program was:" >&5 |
| 15673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15674 | |
| 15675 | ac_header_preproc=no |
| 15676 | fi |
| 15677 | |
| 15678 | rm -f conftest.err conftest.$ac_ext |
| 15679 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15680 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15681 | |
| 15682 | # So? What about this header? |
| 15683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15684 | yes:no: ) |
| 15685 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15686 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15688 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15689 | ac_header_preproc=yes |
| 15690 | ;; |
| 15691 | no:yes:* ) |
| 15692 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15693 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15694 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15695 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15697 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15699 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15702 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15703 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15704 | ( cat <<\_ASBOX |
| 15705 | ## ----------------------------------- ## |
| 15706 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15707 | ## ----------------------------------- ## |
| 15708 | _ASBOX |
| 15709 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15710 | ;; |
| 15711 | esac |
| 15712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15716 | else |
| 15717 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15718 | fi |
| 15719 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15721 | echo "${ECHO_T}$ac_res" >&6; } |
| 15722 | |
| 15723 | fi |
| 15724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15725 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15727 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15728 | |
| 15729 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15730 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15731 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15732 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15733 | |
| 15734 | |
| 15735 | |
| 15736 | |
| 15737 | |
| 15738 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15739 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15740 | do |
| 15741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15743 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15747 | fi |
| 15748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15750 | echo "${ECHO_T}$ac_res" >&6; } |
| 15751 | else |
| 15752 | # Is the header compilable? |
| 15753 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15755 | cat >conftest.$ac_ext <<_ACEOF |
| 15756 | /* confdefs.h. */ |
| 15757 | _ACEOF |
| 15758 | cat confdefs.h >>conftest.$ac_ext |
| 15759 | cat >>conftest.$ac_ext <<_ACEOF |
| 15760 | /* end confdefs.h. */ |
| 15761 | $ac_includes_default |
| 15762 | #include <$ac_header> |
| 15763 | _ACEOF |
| 15764 | rm -f conftest.$ac_objext |
| 15765 | if { (ac_try="$ac_compile" |
| 15766 | case "(($ac_try" in |
| 15767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15768 | *) ac_try_echo=$ac_try;; |
| 15769 | esac |
| 15770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15771 | (eval "$ac_compile") 2>conftest.er1 |
| 15772 | ac_status=$? |
| 15773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15774 | rm -f conftest.er1 |
| 15775 | cat conftest.err >&5 |
| 15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15777 | (exit $ac_status); } && |
| 15778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15779 | { (case "(($ac_try" in |
| 15780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15781 | *) ac_try_echo=$ac_try;; |
| 15782 | esac |
| 15783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15784 | (eval "$ac_try") 2>&5 |
| 15785 | ac_status=$? |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); }; } && |
| 15788 | { ac_try='test -s conftest.$ac_objext' |
| 15789 | { (case "(($ac_try" in |
| 15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15791 | *) ac_try_echo=$ac_try;; |
| 15792 | esac |
| 15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15794 | (eval "$ac_try") 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; }; then |
| 15798 | ac_header_compiler=yes |
| 15799 | else |
| 15800 | echo "$as_me: failed program was:" >&5 |
| 15801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15802 | |
| 15803 | ac_header_compiler=no |
| 15804 | fi |
| 15805 | |
| 15806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15807 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15808 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15809 | |
| 15810 | # Is the header present? |
| 15811 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15812 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15813 | cat >conftest.$ac_ext <<_ACEOF |
| 15814 | /* confdefs.h. */ |
| 15815 | _ACEOF |
| 15816 | cat confdefs.h >>conftest.$ac_ext |
| 15817 | cat >>conftest.$ac_ext <<_ACEOF |
| 15818 | /* end confdefs.h. */ |
| 15819 | #include <$ac_header> |
| 15820 | _ACEOF |
| 15821 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15822 | case "(($ac_try" in |
| 15823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15824 | *) ac_try_echo=$ac_try;; |
| 15825 | esac |
| 15826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15827 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15828 | ac_status=$? |
| 15829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15830 | rm -f conftest.er1 |
| 15831 | cat conftest.err >&5 |
| 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); } >/dev/null; then |
| 15834 | if test -s conftest.err; then |
| 15835 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15837 | else |
| 15838 | ac_cpp_err= |
| 15839 | fi |
| 15840 | else |
| 15841 | ac_cpp_err=yes |
| 15842 | fi |
| 15843 | if test -z "$ac_cpp_err"; then |
| 15844 | ac_header_preproc=yes |
| 15845 | else |
| 15846 | echo "$as_me: failed program was:" >&5 |
| 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
| 15849 | ac_header_preproc=no |
| 15850 | fi |
| 15851 | |
| 15852 | rm -f conftest.err conftest.$ac_ext |
| 15853 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15854 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15855 | |
| 15856 | # So? What about this header? |
| 15857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15858 | yes:no: ) |
| 15859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15863 | ac_header_preproc=yes |
| 15864 | ;; |
| 15865 | no:yes:* ) |
| 15866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15878 | ( cat <<\_ASBOX |
| 15879 | ## ----------------------------------- ## |
| 15880 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15881 | ## ----------------------------------- ## |
| 15882 | _ASBOX |
| 15883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15884 | ;; |
| 15885 | esac |
| 15886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15890 | else |
| 15891 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15892 | fi |
| 15893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15895 | echo "${ECHO_T}$ac_res" >&6; } |
| 15896 | |
| 15897 | fi |
| 15898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15899 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15901 | _ACEOF |
| 15902 | |
| 15903 | fi |
| 15904 | |
| 15905 | done |
| 15906 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15907 | |
| 15908 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15909 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15910 | do |
| 15911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15913 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15915 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15917 | fi |
| 15918 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15919 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15920 | echo "${ECHO_T}$ac_res" >&6; } |
| 15921 | else |
| 15922 | # Is the header compilable? |
| 15923 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15924 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15925 | cat >conftest.$ac_ext <<_ACEOF |
| 15926 | /* confdefs.h. */ |
| 15927 | _ACEOF |
| 15928 | cat confdefs.h >>conftest.$ac_ext |
| 15929 | cat >>conftest.$ac_ext <<_ACEOF |
| 15930 | /* end confdefs.h. */ |
| 15931 | $ac_includes_default |
| 15932 | #include <$ac_header> |
| 15933 | _ACEOF |
| 15934 | rm -f conftest.$ac_objext |
| 15935 | if { (ac_try="$ac_compile" |
| 15936 | case "(($ac_try" in |
| 15937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15938 | *) ac_try_echo=$ac_try;; |
| 15939 | esac |
| 15940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15941 | (eval "$ac_compile") 2>conftest.er1 |
| 15942 | ac_status=$? |
| 15943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15944 | rm -f conftest.er1 |
| 15945 | cat conftest.err >&5 |
| 15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15947 | (exit $ac_status); } && |
| 15948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15949 | { (case "(($ac_try" in |
| 15950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15951 | *) ac_try_echo=$ac_try;; |
| 15952 | esac |
| 15953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15954 | (eval "$ac_try") 2>&5 |
| 15955 | ac_status=$? |
| 15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15957 | (exit $ac_status); }; } && |
| 15958 | { ac_try='test -s conftest.$ac_objext' |
| 15959 | { (case "(($ac_try" in |
| 15960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15961 | *) ac_try_echo=$ac_try;; |
| 15962 | esac |
| 15963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15964 | (eval "$ac_try") 2>&5 |
| 15965 | ac_status=$? |
| 15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15967 | (exit $ac_status); }; }; then |
| 15968 | ac_header_compiler=yes |
| 15969 | else |
| 15970 | echo "$as_me: failed program was:" >&5 |
| 15971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15972 | |
| 15973 | ac_header_compiler=no |
| 15974 | fi |
| 15975 | |
| 15976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15977 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15978 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15979 | |
| 15980 | # Is the header present? |
| 15981 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15983 | cat >conftest.$ac_ext <<_ACEOF |
| 15984 | /* confdefs.h. */ |
| 15985 | _ACEOF |
| 15986 | cat confdefs.h >>conftest.$ac_ext |
| 15987 | cat >>conftest.$ac_ext <<_ACEOF |
| 15988 | /* end confdefs.h. */ |
| 15989 | #include <$ac_header> |
| 15990 | _ACEOF |
| 15991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15992 | case "(($ac_try" in |
| 15993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15994 | *) ac_try_echo=$ac_try;; |
| 15995 | esac |
| 15996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15998 | ac_status=$? |
| 15999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16000 | rm -f conftest.er1 |
| 16001 | cat conftest.err >&5 |
| 16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16003 | (exit $ac_status); } >/dev/null; then |
| 16004 | if test -s conftest.err; then |
| 16005 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16006 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16007 | else |
| 16008 | ac_cpp_err= |
| 16009 | fi |
| 16010 | else |
| 16011 | ac_cpp_err=yes |
| 16012 | fi |
| 16013 | if test -z "$ac_cpp_err"; then |
| 16014 | ac_header_preproc=yes |
| 16015 | else |
| 16016 | echo "$as_me: failed program was:" >&5 |
| 16017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16018 | |
| 16019 | ac_header_preproc=no |
| 16020 | fi |
| 16021 | |
| 16022 | rm -f conftest.err conftest.$ac_ext |
| 16023 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16024 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16025 | |
| 16026 | # So? What about this header? |
| 16027 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16028 | yes:no: ) |
| 16029 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16030 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16032 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16033 | ac_header_preproc=yes |
| 16034 | ;; |
| 16035 | no:yes:* ) |
| 16036 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16037 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16038 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16039 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16040 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16041 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16042 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16043 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16046 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16047 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16048 | ( cat <<\_ASBOX |
| 16049 | ## ----------------------------------- ## |
| 16050 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16051 | ## ----------------------------------- ## |
| 16052 | _ASBOX |
| 16053 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16054 | ;; |
| 16055 | esac |
| 16056 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16060 | else |
| 16061 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16062 | fi |
| 16063 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16065 | echo "${ECHO_T}$ac_res" >&6; } |
| 16066 | |
| 16067 | fi |
| 16068 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16069 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16070 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16071 | _ACEOF |
| 16072 | |
| 16073 | fi |
| 16074 | |
| 16075 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16076 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16077 | |
| 16078 | |
| 16079 | |
| 16080 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16081 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16082 | do |
| 16083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16085 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16087 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16089 | fi |
| 16090 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16092 | echo "${ECHO_T}$ac_res" >&6; } |
| 16093 | else |
| 16094 | # Is the header compilable? |
| 16095 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16096 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16097 | cat >conftest.$ac_ext <<_ACEOF |
| 16098 | /* confdefs.h. */ |
| 16099 | _ACEOF |
| 16100 | cat confdefs.h >>conftest.$ac_ext |
| 16101 | cat >>conftest.$ac_ext <<_ACEOF |
| 16102 | /* end confdefs.h. */ |
| 16103 | $ac_includes_default |
| 16104 | #include <$ac_header> |
| 16105 | _ACEOF |
| 16106 | rm -f conftest.$ac_objext |
| 16107 | if { (ac_try="$ac_compile" |
| 16108 | case "(($ac_try" in |
| 16109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16110 | *) ac_try_echo=$ac_try;; |
| 16111 | esac |
| 16112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16113 | (eval "$ac_compile") 2>conftest.er1 |
| 16114 | ac_status=$? |
| 16115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16116 | rm -f conftest.er1 |
| 16117 | cat conftest.err >&5 |
| 16118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16119 | (exit $ac_status); } && |
| 16120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16121 | { (case "(($ac_try" in |
| 16122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16123 | *) ac_try_echo=$ac_try;; |
| 16124 | esac |
| 16125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16126 | (eval "$ac_try") 2>&5 |
| 16127 | ac_status=$? |
| 16128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16129 | (exit $ac_status); }; } && |
| 16130 | { ac_try='test -s conftest.$ac_objext' |
| 16131 | { (case "(($ac_try" in |
| 16132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16133 | *) ac_try_echo=$ac_try;; |
| 16134 | esac |
| 16135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16136 | (eval "$ac_try") 2>&5 |
| 16137 | ac_status=$? |
| 16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16139 | (exit $ac_status); }; }; then |
| 16140 | ac_header_compiler=yes |
| 16141 | else |
| 16142 | echo "$as_me: failed program was:" >&5 |
| 16143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16144 | |
| 16145 | ac_header_compiler=no |
| 16146 | fi |
| 16147 | |
| 16148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16149 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16150 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16151 | |
| 16152 | # Is the header present? |
| 16153 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16154 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16155 | cat >conftest.$ac_ext <<_ACEOF |
| 16156 | /* confdefs.h. */ |
| 16157 | _ACEOF |
| 16158 | cat confdefs.h >>conftest.$ac_ext |
| 16159 | cat >>conftest.$ac_ext <<_ACEOF |
| 16160 | /* end confdefs.h. */ |
| 16161 | #include <$ac_header> |
| 16162 | _ACEOF |
| 16163 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16164 | case "(($ac_try" in |
| 16165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16166 | *) ac_try_echo=$ac_try;; |
| 16167 | esac |
| 16168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16169 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16170 | ac_status=$? |
| 16171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16172 | rm -f conftest.er1 |
| 16173 | cat conftest.err >&5 |
| 16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16175 | (exit $ac_status); } >/dev/null; then |
| 16176 | if test -s conftest.err; then |
| 16177 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16178 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16179 | else |
| 16180 | ac_cpp_err= |
| 16181 | fi |
| 16182 | else |
| 16183 | ac_cpp_err=yes |
| 16184 | fi |
| 16185 | if test -z "$ac_cpp_err"; then |
| 16186 | ac_header_preproc=yes |
| 16187 | else |
| 16188 | echo "$as_me: failed program was:" >&5 |
| 16189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16190 | |
| 16191 | ac_header_preproc=no |
| 16192 | fi |
| 16193 | |
| 16194 | rm -f conftest.err conftest.$ac_ext |
| 16195 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16196 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16197 | |
| 16198 | # So? What about this header? |
| 16199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16200 | yes:no: ) |
| 16201 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16202 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16204 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16205 | ac_header_preproc=yes |
| 16206 | ;; |
| 16207 | no:yes:* ) |
| 16208 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16209 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16210 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16211 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16212 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16213 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16214 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16215 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16217 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16218 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16219 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16220 | ( cat <<\_ASBOX |
| 16221 | ## ----------------------------------- ## |
| 16222 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16223 | ## ----------------------------------- ## |
| 16224 | _ASBOX |
| 16225 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16226 | ;; |
| 16227 | esac |
| 16228 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16230 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16232 | else |
| 16233 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16234 | fi |
| 16235 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16236 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16237 | echo "${ECHO_T}$ac_res" >&6; } |
| 16238 | |
| 16239 | fi |
| 16240 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16241 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16242 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16243 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16244 | |
| 16245 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16246 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16247 | done |
| 16248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16249 | |
| 16250 | |
| 16251 | |
| 16252 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16253 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16254 | do |
| 16255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16257 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16261 | fi |
| 16262 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16264 | echo "${ECHO_T}$ac_res" >&6; } |
| 16265 | else |
| 16266 | # Is the header compilable? |
| 16267 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16269 | cat >conftest.$ac_ext <<_ACEOF |
| 16270 | /* confdefs.h. */ |
| 16271 | _ACEOF |
| 16272 | cat confdefs.h >>conftest.$ac_ext |
| 16273 | cat >>conftest.$ac_ext <<_ACEOF |
| 16274 | /* end confdefs.h. */ |
| 16275 | $ac_includes_default |
| 16276 | #include <$ac_header> |
| 16277 | _ACEOF |
| 16278 | rm -f conftest.$ac_objext |
| 16279 | if { (ac_try="$ac_compile" |
| 16280 | case "(($ac_try" in |
| 16281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16282 | *) ac_try_echo=$ac_try;; |
| 16283 | esac |
| 16284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16285 | (eval "$ac_compile") 2>conftest.er1 |
| 16286 | ac_status=$? |
| 16287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16288 | rm -f conftest.er1 |
| 16289 | cat conftest.err >&5 |
| 16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16291 | (exit $ac_status); } && |
| 16292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16293 | { (case "(($ac_try" in |
| 16294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16295 | *) ac_try_echo=$ac_try;; |
| 16296 | esac |
| 16297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16298 | (eval "$ac_try") 2>&5 |
| 16299 | ac_status=$? |
| 16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16301 | (exit $ac_status); }; } && |
| 16302 | { ac_try='test -s conftest.$ac_objext' |
| 16303 | { (case "(($ac_try" in |
| 16304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16305 | *) ac_try_echo=$ac_try;; |
| 16306 | esac |
| 16307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16308 | (eval "$ac_try") 2>&5 |
| 16309 | ac_status=$? |
| 16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16311 | (exit $ac_status); }; }; then |
| 16312 | ac_header_compiler=yes |
| 16313 | else |
| 16314 | echo "$as_me: failed program was:" >&5 |
| 16315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16316 | |
| 16317 | ac_header_compiler=no |
| 16318 | fi |
| 16319 | |
| 16320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16321 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16322 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16323 | |
| 16324 | # Is the header present? |
| 16325 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16326 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16327 | cat >conftest.$ac_ext <<_ACEOF |
| 16328 | /* confdefs.h. */ |
| 16329 | _ACEOF |
| 16330 | cat confdefs.h >>conftest.$ac_ext |
| 16331 | cat >>conftest.$ac_ext <<_ACEOF |
| 16332 | /* end confdefs.h. */ |
| 16333 | #include <$ac_header> |
| 16334 | _ACEOF |
| 16335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16336 | case "(($ac_try" in |
| 16337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16338 | *) ac_try_echo=$ac_try;; |
| 16339 | esac |
| 16340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16342 | ac_status=$? |
| 16343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16344 | rm -f conftest.er1 |
| 16345 | cat conftest.err >&5 |
| 16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16347 | (exit $ac_status); } >/dev/null; then |
| 16348 | if test -s conftest.err; then |
| 16349 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16351 | else |
| 16352 | ac_cpp_err= |
| 16353 | fi |
| 16354 | else |
| 16355 | ac_cpp_err=yes |
| 16356 | fi |
| 16357 | if test -z "$ac_cpp_err"; then |
| 16358 | ac_header_preproc=yes |
| 16359 | else |
| 16360 | echo "$as_me: failed program was:" >&5 |
| 16361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16362 | |
| 16363 | ac_header_preproc=no |
| 16364 | fi |
| 16365 | |
| 16366 | rm -f conftest.err conftest.$ac_ext |
| 16367 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16368 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16369 | |
| 16370 | # So? What about this header? |
| 16371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16372 | yes:no: ) |
| 16373 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16374 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16376 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16377 | ac_header_preproc=yes |
| 16378 | ;; |
| 16379 | no:yes:* ) |
| 16380 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16381 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16382 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16383 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16384 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16385 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16386 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16387 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16390 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16391 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16392 | ( cat <<\_ASBOX |
| 16393 | ## ----------------------------------- ## |
| 16394 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16395 | ## ----------------------------------- ## |
| 16396 | _ASBOX |
| 16397 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16398 | ;; |
| 16399 | esac |
| 16400 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16404 | else |
| 16405 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16406 | fi |
| 16407 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16409 | echo "${ECHO_T}$ac_res" >&6; } |
| 16410 | |
| 16411 | fi |
| 16412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16413 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16415 | _ACEOF |
| 16416 | |
| 16417 | fi |
| 16418 | |
| 16419 | done |
| 16420 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16421 | |
| 16422 | for ac_header in valgrind/valgrind.h |
| 16423 | do |
| 16424 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16425 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16426 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16427 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16430 | fi |
| 16431 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16432 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16433 | echo "${ECHO_T}$ac_res" >&6; } |
| 16434 | else |
| 16435 | # Is the header compilable? |
| 16436 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16437 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16438 | cat >conftest.$ac_ext <<_ACEOF |
| 16439 | /* confdefs.h. */ |
| 16440 | _ACEOF |
| 16441 | cat confdefs.h >>conftest.$ac_ext |
| 16442 | cat >>conftest.$ac_ext <<_ACEOF |
| 16443 | /* end confdefs.h. */ |
| 16444 | $ac_includes_default |
| 16445 | #include <$ac_header> |
| 16446 | _ACEOF |
| 16447 | rm -f conftest.$ac_objext |
| 16448 | if { (ac_try="$ac_compile" |
| 16449 | case "(($ac_try" in |
| 16450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16451 | *) ac_try_echo=$ac_try;; |
| 16452 | esac |
| 16453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16454 | (eval "$ac_compile") 2>conftest.er1 |
| 16455 | ac_status=$? |
| 16456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16457 | rm -f conftest.er1 |
| 16458 | cat conftest.err >&5 |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); } && |
| 16461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16462 | { (case "(($ac_try" in |
| 16463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16464 | *) ac_try_echo=$ac_try;; |
| 16465 | esac |
| 16466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16467 | (eval "$ac_try") 2>&5 |
| 16468 | ac_status=$? |
| 16469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16470 | (exit $ac_status); }; } && |
| 16471 | { ac_try='test -s conftest.$ac_objext' |
| 16472 | { (case "(($ac_try" in |
| 16473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16474 | *) ac_try_echo=$ac_try;; |
| 16475 | esac |
| 16476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16477 | (eval "$ac_try") 2>&5 |
| 16478 | ac_status=$? |
| 16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16480 | (exit $ac_status); }; }; then |
| 16481 | ac_header_compiler=yes |
| 16482 | else |
| 16483 | echo "$as_me: failed program was:" >&5 |
| 16484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16485 | |
| 16486 | ac_header_compiler=no |
| 16487 | fi |
| 16488 | |
| 16489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16490 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16491 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16492 | |
| 16493 | # Is the header present? |
| 16494 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16495 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16496 | cat >conftest.$ac_ext <<_ACEOF |
| 16497 | /* confdefs.h. */ |
| 16498 | _ACEOF |
| 16499 | cat confdefs.h >>conftest.$ac_ext |
| 16500 | cat >>conftest.$ac_ext <<_ACEOF |
| 16501 | /* end confdefs.h. */ |
| 16502 | #include <$ac_header> |
| 16503 | _ACEOF |
| 16504 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16505 | case "(($ac_try" in |
| 16506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16507 | *) ac_try_echo=$ac_try;; |
| 16508 | esac |
| 16509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16511 | ac_status=$? |
| 16512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16513 | rm -f conftest.er1 |
| 16514 | cat conftest.err >&5 |
| 16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16516 | (exit $ac_status); } >/dev/null; then |
| 16517 | if test -s conftest.err; then |
| 16518 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16520 | else |
| 16521 | ac_cpp_err= |
| 16522 | fi |
| 16523 | else |
| 16524 | ac_cpp_err=yes |
| 16525 | fi |
| 16526 | if test -z "$ac_cpp_err"; then |
| 16527 | ac_header_preproc=yes |
| 16528 | else |
| 16529 | echo "$as_me: failed program was:" >&5 |
| 16530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16531 | |
| 16532 | ac_header_preproc=no |
| 16533 | fi |
| 16534 | |
| 16535 | rm -f conftest.err conftest.$ac_ext |
| 16536 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16537 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16538 | |
| 16539 | # So? What about this header? |
| 16540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16541 | yes:no: ) |
| 16542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16546 | ac_header_preproc=yes |
| 16547 | ;; |
| 16548 | no:yes:* ) |
| 16549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16556 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16558 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16561 | ( cat <<\_ASBOX |
| 16562 | ## ----------------------------------- ## |
| 16563 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16564 | ## ----------------------------------- ## |
| 16565 | _ASBOX |
| 16566 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16567 | ;; |
| 16568 | esac |
| 16569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16573 | else |
| 16574 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16575 | fi |
| 16576 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16577 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16578 | echo "${ECHO_T}$ac_res" >&6; } |
| 16579 | |
| 16580 | fi |
| 16581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16582 | cat >>confdefs.h <<_ACEOF |
| 16583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16584 | _ACEOF |
| 16585 | |
| 16586 | fi |
| 16587 | |
| 16588 | done |
| 16589 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16590 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16591 | |
| 16592 | for ac_header in pthread.h |
| 16593 | do |
| 16594 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16596 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16600 | fi |
| 16601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16603 | echo "${ECHO_T}$ac_res" >&6; } |
| 16604 | else |
| 16605 | # Is the header compilable? |
| 16606 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16608 | cat >conftest.$ac_ext <<_ACEOF |
| 16609 | /* confdefs.h. */ |
| 16610 | _ACEOF |
| 16611 | cat confdefs.h >>conftest.$ac_ext |
| 16612 | cat >>conftest.$ac_ext <<_ACEOF |
| 16613 | /* end confdefs.h. */ |
| 16614 | $ac_includes_default |
| 16615 | #include <$ac_header> |
| 16616 | _ACEOF |
| 16617 | rm -f conftest.$ac_objext |
| 16618 | if { (ac_try="$ac_compile" |
| 16619 | case "(($ac_try" in |
| 16620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16621 | *) ac_try_echo=$ac_try;; |
| 16622 | esac |
| 16623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16624 | (eval "$ac_compile") 2>conftest.er1 |
| 16625 | ac_status=$? |
| 16626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16627 | rm -f conftest.er1 |
| 16628 | cat conftest.err >&5 |
| 16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16630 | (exit $ac_status); } && |
| 16631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16632 | { (case "(($ac_try" in |
| 16633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16634 | *) ac_try_echo=$ac_try;; |
| 16635 | esac |
| 16636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16637 | (eval "$ac_try") 2>&5 |
| 16638 | ac_status=$? |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); }; } && |
| 16641 | { ac_try='test -s conftest.$ac_objext' |
| 16642 | { (case "(($ac_try" in |
| 16643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16644 | *) ac_try_echo=$ac_try;; |
| 16645 | esac |
| 16646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16647 | (eval "$ac_try") 2>&5 |
| 16648 | ac_status=$? |
| 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); }; }; then |
| 16651 | ac_header_compiler=yes |
| 16652 | else |
| 16653 | echo "$as_me: failed program was:" >&5 |
| 16654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16655 | |
| 16656 | ac_header_compiler=no |
| 16657 | fi |
| 16658 | |
| 16659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16661 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16662 | |
| 16663 | # Is the header present? |
| 16664 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16666 | cat >conftest.$ac_ext <<_ACEOF |
| 16667 | /* confdefs.h. */ |
| 16668 | _ACEOF |
| 16669 | cat confdefs.h >>conftest.$ac_ext |
| 16670 | cat >>conftest.$ac_ext <<_ACEOF |
| 16671 | /* end confdefs.h. */ |
| 16672 | #include <$ac_header> |
| 16673 | _ACEOF |
| 16674 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16675 | case "(($ac_try" in |
| 16676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16677 | *) ac_try_echo=$ac_try;; |
| 16678 | esac |
| 16679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16681 | ac_status=$? |
| 16682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16683 | rm -f conftest.er1 |
| 16684 | cat conftest.err >&5 |
| 16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16686 | (exit $ac_status); } >/dev/null; then |
| 16687 | if test -s conftest.err; then |
| 16688 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16690 | else |
| 16691 | ac_cpp_err= |
| 16692 | fi |
| 16693 | else |
| 16694 | ac_cpp_err=yes |
| 16695 | fi |
| 16696 | if test -z "$ac_cpp_err"; then |
| 16697 | ac_header_preproc=yes |
| 16698 | else |
| 16699 | echo "$as_me: failed program was:" >&5 |
| 16700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16701 | |
| 16702 | ac_header_preproc=no |
| 16703 | fi |
| 16704 | |
| 16705 | rm -f conftest.err conftest.$ac_ext |
| 16706 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16707 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16708 | |
| 16709 | # So? What about this header? |
| 16710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16711 | yes:no: ) |
| 16712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16716 | ac_header_preproc=yes |
| 16717 | ;; |
| 16718 | no:yes:* ) |
| 16719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16731 | ( cat <<\_ASBOX |
| 16732 | ## ----------------------------------- ## |
| 16733 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16734 | ## ----------------------------------- ## |
| 16735 | _ASBOX |
| 16736 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16737 | ;; |
| 16738 | esac |
| 16739 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16741 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16743 | else |
| 16744 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16745 | fi |
| 16746 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16747 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16748 | echo "${ECHO_T}$ac_res" >&6; } |
| 16749 | |
| 16750 | fi |
| 16751 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16752 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16753 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16754 | _ACEOF |
| 16755 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16756 | |
| 16757 | else |
| 16758 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16759 | |
| 16760 | fi |
| 16761 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16762 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16763 | |
| 16764 | else |
| 16765 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16766 | |
| 16767 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16768 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16769 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16770 | |
| 16771 | |
| 16772 | for ac_header in ffi.h ffi/ffi.h |
| 16773 | do |
| 16774 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16776 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16780 | fi |
| 16781 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16782 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16783 | echo "${ECHO_T}$ac_res" >&6; } |
| 16784 | else |
| 16785 | # Is the header compilable? |
| 16786 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16787 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16788 | cat >conftest.$ac_ext <<_ACEOF |
| 16789 | /* confdefs.h. */ |
| 16790 | _ACEOF |
| 16791 | cat confdefs.h >>conftest.$ac_ext |
| 16792 | cat >>conftest.$ac_ext <<_ACEOF |
| 16793 | /* end confdefs.h. */ |
| 16794 | $ac_includes_default |
| 16795 | #include <$ac_header> |
| 16796 | _ACEOF |
| 16797 | rm -f conftest.$ac_objext |
| 16798 | if { (ac_try="$ac_compile" |
| 16799 | case "(($ac_try" in |
| 16800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16801 | *) ac_try_echo=$ac_try;; |
| 16802 | esac |
| 16803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16804 | (eval "$ac_compile") 2>conftest.er1 |
| 16805 | ac_status=$? |
| 16806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16807 | rm -f conftest.er1 |
| 16808 | cat conftest.err >&5 |
| 16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16810 | (exit $ac_status); } && |
| 16811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16812 | { (case "(($ac_try" in |
| 16813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16814 | *) ac_try_echo=$ac_try;; |
| 16815 | esac |
| 16816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16817 | (eval "$ac_try") 2>&5 |
| 16818 | ac_status=$? |
| 16819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16820 | (exit $ac_status); }; } && |
| 16821 | { ac_try='test -s conftest.$ac_objext' |
| 16822 | { (case "(($ac_try" in |
| 16823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16824 | *) ac_try_echo=$ac_try;; |
| 16825 | esac |
| 16826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16827 | (eval "$ac_try") 2>&5 |
| 16828 | ac_status=$? |
| 16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16830 | (exit $ac_status); }; }; then |
| 16831 | ac_header_compiler=yes |
| 16832 | else |
| 16833 | echo "$as_me: failed program was:" >&5 |
| 16834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16835 | |
| 16836 | ac_header_compiler=no |
| 16837 | fi |
| 16838 | |
| 16839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16840 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16841 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16842 | |
| 16843 | # Is the header present? |
| 16844 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16845 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16846 | cat >conftest.$ac_ext <<_ACEOF |
| 16847 | /* confdefs.h. */ |
| 16848 | _ACEOF |
| 16849 | cat confdefs.h >>conftest.$ac_ext |
| 16850 | cat >>conftest.$ac_ext <<_ACEOF |
| 16851 | /* end confdefs.h. */ |
| 16852 | #include <$ac_header> |
| 16853 | _ACEOF |
| 16854 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16855 | case "(($ac_try" in |
| 16856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16857 | *) ac_try_echo=$ac_try;; |
| 16858 | esac |
| 16859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16860 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16861 | ac_status=$? |
| 16862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16863 | rm -f conftest.er1 |
| 16864 | cat conftest.err >&5 |
| 16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16866 | (exit $ac_status); } >/dev/null; then |
| 16867 | if test -s conftest.err; then |
| 16868 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16869 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16870 | else |
| 16871 | ac_cpp_err= |
| 16872 | fi |
| 16873 | else |
| 16874 | ac_cpp_err=yes |
| 16875 | fi |
| 16876 | if test -z "$ac_cpp_err"; then |
| 16877 | ac_header_preproc=yes |
| 16878 | else |
| 16879 | echo "$as_me: failed program was:" >&5 |
| 16880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16881 | |
| 16882 | ac_header_preproc=no |
| 16883 | fi |
| 16884 | |
| 16885 | rm -f conftest.err conftest.$ac_ext |
| 16886 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16887 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16888 | |
| 16889 | # So? What about this header? |
| 16890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16891 | yes:no: ) |
| 16892 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16893 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16895 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16896 | ac_header_preproc=yes |
| 16897 | ;; |
| 16898 | no:yes:* ) |
| 16899 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16900 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16901 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16902 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16903 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16904 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16905 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16906 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16908 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16909 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16910 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16911 | ( cat <<\_ASBOX |
| 16912 | ## ----------------------------------- ## |
| 16913 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16914 | ## ----------------------------------- ## |
| 16915 | _ASBOX |
| 16916 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16917 | ;; |
| 16918 | esac |
| 16919 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16921 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16923 | else |
| 16924 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16925 | fi |
| 16926 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16927 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16928 | echo "${ECHO_T}$ac_res" >&6; } |
| 16929 | |
| 16930 | fi |
| 16931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16932 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16934 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16935 | |
| 16936 | fi |
| 16937 | |
| 16938 | done |
| 16939 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16940 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16941 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16942 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16943 | for ac_header in CrashReporterClient.h |
| 16944 | do |
| 16945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16947 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16951 | fi |
| 16952 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16953 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16954 | echo "${ECHO_T}$ac_res" >&6; } |
| 16955 | else |
| 16956 | # Is the header compilable? |
| 16957 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16958 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16959 | cat >conftest.$ac_ext <<_ACEOF |
| 16960 | /* confdefs.h. */ |
| 16961 | _ACEOF |
| 16962 | cat confdefs.h >>conftest.$ac_ext |
| 16963 | cat >>conftest.$ac_ext <<_ACEOF |
| 16964 | /* end confdefs.h. */ |
| 16965 | $ac_includes_default |
| 16966 | #include <$ac_header> |
| 16967 | _ACEOF |
| 16968 | rm -f conftest.$ac_objext |
| 16969 | if { (ac_try="$ac_compile" |
| 16970 | case "(($ac_try" in |
| 16971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16972 | *) ac_try_echo=$ac_try;; |
| 16973 | esac |
| 16974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16975 | (eval "$ac_compile") 2>conftest.er1 |
| 16976 | ac_status=$? |
| 16977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16978 | rm -f conftest.er1 |
| 16979 | cat conftest.err >&5 |
| 16980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16981 | (exit $ac_status); } && |
| 16982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16983 | { (case "(($ac_try" in |
| 16984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16985 | *) ac_try_echo=$ac_try;; |
| 16986 | esac |
| 16987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16988 | (eval "$ac_try") 2>&5 |
| 16989 | ac_status=$? |
| 16990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16991 | (exit $ac_status); }; } && |
| 16992 | { ac_try='test -s conftest.$ac_objext' |
| 16993 | { (case "(($ac_try" in |
| 16994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16995 | *) ac_try_echo=$ac_try;; |
| 16996 | esac |
| 16997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16998 | (eval "$ac_try") 2>&5 |
| 16999 | ac_status=$? |
| 17000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17001 | (exit $ac_status); }; }; then |
| 17002 | ac_header_compiler=yes |
| 17003 | else |
| 17004 | echo "$as_me: failed program was:" >&5 |
| 17005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17006 | |
| 17007 | ac_header_compiler=no |
| 17008 | fi |
| 17009 | |
| 17010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17011 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17012 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17013 | |
| 17014 | # Is the header present? |
| 17015 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17017 | cat >conftest.$ac_ext <<_ACEOF |
| 17018 | /* confdefs.h. */ |
| 17019 | _ACEOF |
| 17020 | cat confdefs.h >>conftest.$ac_ext |
| 17021 | cat >>conftest.$ac_ext <<_ACEOF |
| 17022 | /* end confdefs.h. */ |
| 17023 | #include <$ac_header> |
| 17024 | _ACEOF |
| 17025 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17026 | case "(($ac_try" in |
| 17027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17028 | *) ac_try_echo=$ac_try;; |
| 17029 | esac |
| 17030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17031 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17032 | ac_status=$? |
| 17033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17034 | rm -f conftest.er1 |
| 17035 | cat conftest.err >&5 |
| 17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17037 | (exit $ac_status); } >/dev/null; then |
| 17038 | if test -s conftest.err; then |
| 17039 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17040 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17041 | else |
| 17042 | ac_cpp_err= |
| 17043 | fi |
| 17044 | else |
| 17045 | ac_cpp_err=yes |
| 17046 | fi |
| 17047 | if test -z "$ac_cpp_err"; then |
| 17048 | ac_header_preproc=yes |
| 17049 | else |
| 17050 | echo "$as_me: failed program was:" >&5 |
| 17051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17052 | |
| 17053 | ac_header_preproc=no |
| 17054 | fi |
| 17055 | |
| 17056 | rm -f conftest.err conftest.$ac_ext |
| 17057 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17058 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17059 | |
| 17060 | # So? What about this header? |
| 17061 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17062 | yes:no: ) |
| 17063 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17064 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17066 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17067 | ac_header_preproc=yes |
| 17068 | ;; |
| 17069 | no:yes:* ) |
| 17070 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17071 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17072 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17073 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17074 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17075 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17076 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17077 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17078 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17079 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17080 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17081 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17082 | ( cat <<\_ASBOX |
| 17083 | ## ----------------------------------- ## |
| 17084 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17085 | ## ----------------------------------- ## |
| 17086 | _ASBOX |
| 17087 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17088 | ;; |
| 17089 | esac |
| 17090 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17092 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17094 | else |
| 17095 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17096 | fi |
| 17097 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17098 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17099 | echo "${ECHO_T}$ac_res" >&6; } |
| 17100 | |
| 17101 | fi |
| 17102 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17103 | cat >>confdefs.h <<_ACEOF |
| 17104 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17105 | _ACEOF |
| 17106 | |
| 17107 | fi |
| 17108 | |
| 17109 | done |
| 17110 | |
| 17111 | |
| 17112 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17113 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17115 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17116 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17117 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17119 | else |
| 17120 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17121 | ac_ext=cpp |
| 17122 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17126 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17127 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17128 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17129 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17130 | ac_cv_huge_val_sanity=yes |
| 17131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17132 | cat >conftest.$ac_ext <<_ACEOF |
| 17133 | /* confdefs.h. */ |
| 17134 | _ACEOF |
| 17135 | cat confdefs.h >>conftest.$ac_ext |
| 17136 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17137 | /* end confdefs.h. */ |
| 17138 | #include <math.h> |
| 17139 | int |
| 17140 | main () |
| 17141 | { |
| 17142 | double x = HUGE_VAL; return x != x; |
| 17143 | ; |
| 17144 | return 0; |
| 17145 | } |
| 17146 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17147 | rm -f conftest$ac_exeext |
| 17148 | if { (ac_try="$ac_link" |
| 17149 | case "(($ac_try" in |
| 17150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17151 | *) ac_try_echo=$ac_try;; |
| 17152 | esac |
| 17153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17154 | (eval "$ac_link") 2>&5 |
| 17155 | ac_status=$? |
| 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17158 | { (case "(($ac_try" in |
| 17159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17160 | *) ac_try_echo=$ac_try;; |
| 17161 | esac |
| 17162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17163 | (eval "$ac_try") 2>&5 |
| 17164 | ac_status=$? |
| 17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17166 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17167 | ac_cv_huge_val_sanity=yes |
| 17168 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17169 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17170 | echo "$as_me: failed program was:" >&5 |
| 17171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17172 | |
| 17173 | ( exit $ac_status ) |
| 17174 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17175 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17177 | fi |
| 17178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17179 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17180 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17181 | ac_ext=c |
| 17182 | ac_cpp='$CPP $CPPFLAGS' |
| 17183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17186 | |
| 17187 | |
| 17188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17189 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17190 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17191 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17192 | |
| 17193 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17194 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17195 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17196 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17198 | else |
| 17199 | cat >conftest.$ac_ext <<_ACEOF |
| 17200 | /* confdefs.h. */ |
| 17201 | _ACEOF |
| 17202 | cat confdefs.h >>conftest.$ac_ext |
| 17203 | cat >>conftest.$ac_ext <<_ACEOF |
| 17204 | /* end confdefs.h. */ |
| 17205 | $ac_includes_default |
| 17206 | typedef pid_t ac__type_new_; |
| 17207 | int |
| 17208 | main () |
| 17209 | { |
| 17210 | if ((ac__type_new_ *) 0) |
| 17211 | return 0; |
| 17212 | if (sizeof (ac__type_new_)) |
| 17213 | return 0; |
| 17214 | ; |
| 17215 | return 0; |
| 17216 | } |
| 17217 | _ACEOF |
| 17218 | rm -f conftest.$ac_objext |
| 17219 | if { (ac_try="$ac_compile" |
| 17220 | case "(($ac_try" in |
| 17221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17222 | *) ac_try_echo=$ac_try;; |
| 17223 | esac |
| 17224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17225 | (eval "$ac_compile") 2>conftest.er1 |
| 17226 | ac_status=$? |
| 17227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17228 | rm -f conftest.er1 |
| 17229 | cat conftest.err >&5 |
| 17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17231 | (exit $ac_status); } && |
| 17232 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17233 | { (case "(($ac_try" in |
| 17234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17235 | *) ac_try_echo=$ac_try;; |
| 17236 | esac |
| 17237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17238 | (eval "$ac_try") 2>&5 |
| 17239 | ac_status=$? |
| 17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17241 | (exit $ac_status); }; } && |
| 17242 | { ac_try='test -s conftest.$ac_objext' |
| 17243 | { (case "(($ac_try" in |
| 17244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17245 | *) ac_try_echo=$ac_try;; |
| 17246 | esac |
| 17247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17248 | (eval "$ac_try") 2>&5 |
| 17249 | ac_status=$? |
| 17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17251 | (exit $ac_status); }; }; then |
| 17252 | ac_cv_type_pid_t=yes |
| 17253 | else |
| 17254 | echo "$as_me: failed program was:" >&5 |
| 17255 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17257 | ac_cv_type_pid_t=no |
| 17258 | fi |
| 17259 | |
| 17260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17261 | fi |
| 17262 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17263 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17264 | if test $ac_cv_type_pid_t = yes; then |
| 17265 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17266 | else |
| 17267 | |
| 17268 | cat >>confdefs.h <<_ACEOF |
| 17269 | #define pid_t int |
| 17270 | _ACEOF |
| 17271 | |
| 17272 | fi |
| 17273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17274 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17275 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17276 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17278 | else |
| 17279 | cat >conftest.$ac_ext <<_ACEOF |
| 17280 | /* confdefs.h. */ |
| 17281 | _ACEOF |
| 17282 | cat confdefs.h >>conftest.$ac_ext |
| 17283 | cat >>conftest.$ac_ext <<_ACEOF |
| 17284 | /* end confdefs.h. */ |
| 17285 | $ac_includes_default |
| 17286 | typedef size_t ac__type_new_; |
| 17287 | int |
| 17288 | main () |
| 17289 | { |
| 17290 | if ((ac__type_new_ *) 0) |
| 17291 | return 0; |
| 17292 | if (sizeof (ac__type_new_)) |
| 17293 | return 0; |
| 17294 | ; |
| 17295 | return 0; |
| 17296 | } |
| 17297 | _ACEOF |
| 17298 | rm -f conftest.$ac_objext |
| 17299 | if { (ac_try="$ac_compile" |
| 17300 | case "(($ac_try" in |
| 17301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17302 | *) ac_try_echo=$ac_try;; |
| 17303 | esac |
| 17304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17305 | (eval "$ac_compile") 2>conftest.er1 |
| 17306 | ac_status=$? |
| 17307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17308 | rm -f conftest.er1 |
| 17309 | cat conftest.err >&5 |
| 17310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17311 | (exit $ac_status); } && |
| 17312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17313 | { (case "(($ac_try" in |
| 17314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17315 | *) ac_try_echo=$ac_try;; |
| 17316 | esac |
| 17317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17318 | (eval "$ac_try") 2>&5 |
| 17319 | ac_status=$? |
| 17320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17321 | (exit $ac_status); }; } && |
| 17322 | { ac_try='test -s conftest.$ac_objext' |
| 17323 | { (case "(($ac_try" in |
| 17324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17325 | *) ac_try_echo=$ac_try;; |
| 17326 | esac |
| 17327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17328 | (eval "$ac_try") 2>&5 |
| 17329 | ac_status=$? |
| 17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17331 | (exit $ac_status); }; }; then |
| 17332 | ac_cv_type_size_t=yes |
| 17333 | else |
| 17334 | echo "$as_me: failed program was:" >&5 |
| 17335 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17336 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17337 | ac_cv_type_size_t=no |
| 17338 | fi |
| 17339 | |
| 17340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17341 | fi |
| 17342 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17343 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17344 | if test $ac_cv_type_size_t = yes; then |
| 17345 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17346 | else |
| 17347 | |
| 17348 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17349 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17350 | _ACEOF |
| 17351 | |
| 17352 | fi |
| 17353 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17354 | |
| 17355 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17356 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17357 | _ACEOF |
| 17358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17359 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17360 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17361 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17364 | cat >conftest.$ac_ext <<_ACEOF |
| 17365 | /* confdefs.h. */ |
| 17366 | _ACEOF |
| 17367 | cat confdefs.h >>conftest.$ac_ext |
| 17368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17369 | /* end confdefs.h. */ |
| 17370 | #include <sys/types.h> |
| 17371 | #include <time.h> |
| 17372 | |
| 17373 | int |
| 17374 | main () |
| 17375 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17376 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17377 | ; |
| 17378 | return 0; |
| 17379 | } |
| 17380 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17381 | rm -f conftest.$ac_objext |
| 17382 | if { (ac_try="$ac_compile" |
| 17383 | case "(($ac_try" in |
| 17384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17385 | *) ac_try_echo=$ac_try;; |
| 17386 | esac |
| 17387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17388 | (eval "$ac_compile") 2>conftest.er1 |
| 17389 | ac_status=$? |
| 17390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17391 | rm -f conftest.er1 |
| 17392 | cat conftest.err >&5 |
| 17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17394 | (exit $ac_status); } && |
| 17395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 17405 | { ac_try='test -s conftest.$ac_objext' |
| 17406 | { (case "(($ac_try" in |
| 17407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17408 | *) ac_try_echo=$ac_try;; |
| 17409 | esac |
| 17410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17411 | (eval "$ac_try") 2>&5 |
| 17412 | ac_status=$? |
| 17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17414 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17415 | ac_cv_struct_tm=time.h |
| 17416 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17417 | echo "$as_me: failed program was:" >&5 |
| 17418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17419 | |
| 17420 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17421 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17424 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17425 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17426 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17427 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17428 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17429 | cat >>confdefs.h <<\_ACEOF |
| 17430 | #define TM_IN_SYS_TIME 1 |
| 17431 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17432 | |
| 17433 | fi |
| 17434 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17435 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17436 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17437 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17439 | else |
| 17440 | cat >conftest.$ac_ext <<_ACEOF |
| 17441 | /* confdefs.h. */ |
| 17442 | _ACEOF |
| 17443 | cat confdefs.h >>conftest.$ac_ext |
| 17444 | cat >>conftest.$ac_ext <<_ACEOF |
| 17445 | /* end confdefs.h. */ |
| 17446 | $ac_includes_default |
| 17447 | typedef int64_t ac__type_new_; |
| 17448 | int |
| 17449 | main () |
| 17450 | { |
| 17451 | if ((ac__type_new_ *) 0) |
| 17452 | return 0; |
| 17453 | if (sizeof (ac__type_new_)) |
| 17454 | return 0; |
| 17455 | ; |
| 17456 | return 0; |
| 17457 | } |
| 17458 | _ACEOF |
| 17459 | rm -f conftest.$ac_objext |
| 17460 | if { (ac_try="$ac_compile" |
| 17461 | case "(($ac_try" in |
| 17462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17463 | *) ac_try_echo=$ac_try;; |
| 17464 | esac |
| 17465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17466 | (eval "$ac_compile") 2>conftest.er1 |
| 17467 | ac_status=$? |
| 17468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17469 | rm -f conftest.er1 |
| 17470 | cat conftest.err >&5 |
| 17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17472 | (exit $ac_status); } && |
| 17473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 17480 | ac_status=$? |
| 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17482 | (exit $ac_status); }; } && |
| 17483 | { ac_try='test -s conftest.$ac_objext' |
| 17484 | { (case "(($ac_try" in |
| 17485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17486 | *) ac_try_echo=$ac_try;; |
| 17487 | esac |
| 17488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17489 | (eval "$ac_try") 2>&5 |
| 17490 | ac_status=$? |
| 17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17492 | (exit $ac_status); }; }; then |
| 17493 | ac_cv_type_int64_t=yes |
| 17494 | else |
| 17495 | echo "$as_me: failed program was:" >&5 |
| 17496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17497 | |
| 17498 | ac_cv_type_int64_t=no |
| 17499 | fi |
| 17500 | |
| 17501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17502 | fi |
| 17503 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17504 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17505 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17506 | |
| 17507 | cat >>confdefs.h <<_ACEOF |
| 17508 | #define HAVE_INT64_T 1 |
| 17509 | _ACEOF |
| 17510 | |
| 17511 | |
| 17512 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17513 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17514 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17515 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17516 | fi |
| 17517 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17518 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17519 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17520 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17522 | else |
| 17523 | cat >conftest.$ac_ext <<_ACEOF |
| 17524 | /* confdefs.h. */ |
| 17525 | _ACEOF |
| 17526 | cat confdefs.h >>conftest.$ac_ext |
| 17527 | cat >>conftest.$ac_ext <<_ACEOF |
| 17528 | /* end confdefs.h. */ |
| 17529 | $ac_includes_default |
| 17530 | typedef uint64_t ac__type_new_; |
| 17531 | int |
| 17532 | main () |
| 17533 | { |
| 17534 | if ((ac__type_new_ *) 0) |
| 17535 | return 0; |
| 17536 | if (sizeof (ac__type_new_)) |
| 17537 | return 0; |
| 17538 | ; |
| 17539 | return 0; |
| 17540 | } |
| 17541 | _ACEOF |
| 17542 | rm -f conftest.$ac_objext |
| 17543 | if { (ac_try="$ac_compile" |
| 17544 | case "(($ac_try" in |
| 17545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17546 | *) ac_try_echo=$ac_try;; |
| 17547 | esac |
| 17548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17549 | (eval "$ac_compile") 2>conftest.er1 |
| 17550 | ac_status=$? |
| 17551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17552 | rm -f conftest.er1 |
| 17553 | cat conftest.err >&5 |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); } && |
| 17556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17557 | { (case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
| 17561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17562 | (eval "$ac_try") 2>&5 |
| 17563 | ac_status=$? |
| 17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17565 | (exit $ac_status); }; } && |
| 17566 | { ac_try='test -s conftest.$ac_objext' |
| 17567 | { (case "(($ac_try" in |
| 17568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17569 | *) ac_try_echo=$ac_try;; |
| 17570 | esac |
| 17571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17572 | (eval "$ac_try") 2>&5 |
| 17573 | ac_status=$? |
| 17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17575 | (exit $ac_status); }; }; then |
| 17576 | ac_cv_type_uint64_t=yes |
| 17577 | else |
| 17578 | echo "$as_me: failed program was:" >&5 |
| 17579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17580 | |
| 17581 | ac_cv_type_uint64_t=no |
| 17582 | fi |
| 17583 | |
| 17584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17585 | fi |
| 17586 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17587 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17588 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17589 | |
| 17590 | cat >>confdefs.h <<_ACEOF |
| 17591 | #define HAVE_UINT64_T 1 |
| 17592 | _ACEOF |
| 17593 | |
| 17594 | |
| 17595 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17596 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17597 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17598 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17600 | else |
| 17601 | cat >conftest.$ac_ext <<_ACEOF |
| 17602 | /* confdefs.h. */ |
| 17603 | _ACEOF |
| 17604 | cat confdefs.h >>conftest.$ac_ext |
| 17605 | cat >>conftest.$ac_ext <<_ACEOF |
| 17606 | /* end confdefs.h. */ |
| 17607 | $ac_includes_default |
| 17608 | typedef u_int64_t ac__type_new_; |
| 17609 | int |
| 17610 | main () |
| 17611 | { |
| 17612 | if ((ac__type_new_ *) 0) |
| 17613 | return 0; |
| 17614 | if (sizeof (ac__type_new_)) |
| 17615 | return 0; |
| 17616 | ; |
| 17617 | return 0; |
| 17618 | } |
| 17619 | _ACEOF |
| 17620 | rm -f conftest.$ac_objext |
| 17621 | if { (ac_try="$ac_compile" |
| 17622 | case "(($ac_try" in |
| 17623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17624 | *) ac_try_echo=$ac_try;; |
| 17625 | esac |
| 17626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17627 | (eval "$ac_compile") 2>conftest.er1 |
| 17628 | ac_status=$? |
| 17629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17630 | rm -f conftest.er1 |
| 17631 | cat conftest.err >&5 |
| 17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17633 | (exit $ac_status); } && |
| 17634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17635 | { (case "(($ac_try" in |
| 17636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17637 | *) ac_try_echo=$ac_try;; |
| 17638 | esac |
| 17639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17640 | (eval "$ac_try") 2>&5 |
| 17641 | ac_status=$? |
| 17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17643 | (exit $ac_status); }; } && |
| 17644 | { ac_try='test -s conftest.$ac_objext' |
| 17645 | { (case "(($ac_try" in |
| 17646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17647 | *) ac_try_echo=$ac_try;; |
| 17648 | esac |
| 17649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17650 | (eval "$ac_try") 2>&5 |
| 17651 | ac_status=$? |
| 17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17653 | (exit $ac_status); }; }; then |
| 17654 | ac_cv_type_u_int64_t=yes |
| 17655 | else |
| 17656 | echo "$as_me: failed program was:" >&5 |
| 17657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17658 | |
| 17659 | ac_cv_type_u_int64_t=no |
| 17660 | fi |
| 17661 | |
| 17662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17663 | fi |
| 17664 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17665 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17666 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17667 | |
| 17668 | cat >>confdefs.h <<_ACEOF |
| 17669 | #define HAVE_U_INT64_T 1 |
| 17670 | _ACEOF |
| 17671 | |
| 17672 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17673 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17674 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17675 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17676 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17677 | fi |
| 17678 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17679 | fi |
| 17680 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17681 | |
| 17682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17683 | |
| 17684 | |
| 17685 | |
| 17686 | |
| 17687 | |
| 17688 | |
| 17689 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17690 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17691 | do |
| 17692 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17693 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17694 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17695 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17697 | else |
| 17698 | cat >conftest.$ac_ext <<_ACEOF |
| 17699 | /* confdefs.h. */ |
| 17700 | _ACEOF |
| 17701 | cat confdefs.h >>conftest.$ac_ext |
| 17702 | cat >>conftest.$ac_ext <<_ACEOF |
| 17703 | /* end confdefs.h. */ |
| 17704 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17706 | #define $ac_func innocuous_$ac_func |
| 17707 | |
| 17708 | /* System header to define __stub macros and hopefully few prototypes, |
| 17709 | which can conflict with char $ac_func (); below. |
| 17710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17711 | <limits.h> exists even on freestanding compilers. */ |
| 17712 | |
| 17713 | #ifdef __STDC__ |
| 17714 | # include <limits.h> |
| 17715 | #else |
| 17716 | # include <assert.h> |
| 17717 | #endif |
| 17718 | |
| 17719 | #undef $ac_func |
| 17720 | |
| 17721 | /* Override any GCC internal prototype to avoid an error. |
| 17722 | Use char because int might match the return type of a GCC |
| 17723 | builtin and then its argument prototype would still apply. */ |
| 17724 | #ifdef __cplusplus |
| 17725 | extern "C" |
| 17726 | #endif |
| 17727 | char $ac_func (); |
| 17728 | /* The GNU C library defines this for functions which it implements |
| 17729 | to always fail with ENOSYS. Some functions are actually named |
| 17730 | something starting with __ and the normal name is an alias. */ |
| 17731 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17732 | choke me |
| 17733 | #endif |
| 17734 | |
| 17735 | int |
| 17736 | main () |
| 17737 | { |
| 17738 | return $ac_func (); |
| 17739 | ; |
| 17740 | return 0; |
| 17741 | } |
| 17742 | _ACEOF |
| 17743 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17744 | if { (ac_try="$ac_link" |
| 17745 | case "(($ac_try" in |
| 17746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17747 | *) ac_try_echo=$ac_try;; |
| 17748 | esac |
| 17749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17750 | (eval "$ac_link") 2>conftest.er1 |
| 17751 | ac_status=$? |
| 17752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17753 | rm -f conftest.er1 |
| 17754 | cat conftest.err >&5 |
| 17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17756 | (exit $ac_status); } && |
| 17757 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17758 | { (case "(($ac_try" in |
| 17759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17760 | *) ac_try_echo=$ac_try;; |
| 17761 | esac |
| 17762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17763 | (eval "$ac_try") 2>&5 |
| 17764 | ac_status=$? |
| 17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17766 | (exit $ac_status); }; } && |
| 17767 | { ac_try='test -s conftest$ac_exeext' |
| 17768 | { (case "(($ac_try" in |
| 17769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17770 | *) ac_try_echo=$ac_try;; |
| 17771 | esac |
| 17772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17773 | (eval "$ac_try") 2>&5 |
| 17774 | ac_status=$? |
| 17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17776 | (exit $ac_status); }; }; then |
| 17777 | eval "$as_ac_var=yes" |
| 17778 | else |
| 17779 | echo "$as_me: failed program was:" >&5 |
| 17780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17781 | |
| 17782 | eval "$as_ac_var=no" |
| 17783 | fi |
| 17784 | |
| 17785 | rm -f core conftest.err conftest.$ac_objext \ |
| 17786 | conftest$ac_exeext conftest.$ac_ext |
| 17787 | fi |
| 17788 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17790 | echo "${ECHO_T}$ac_res" >&6; } |
| 17791 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17792 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17794 | _ACEOF |
| 17795 | |
| 17796 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17797 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17799 | |
| 17800 | |
| 17801 | |
| 17802 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17803 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17804 | do |
| 17805 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17806 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17807 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17808 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17810 | else |
| 17811 | cat >conftest.$ac_ext <<_ACEOF |
| 17812 | /* confdefs.h. */ |
| 17813 | _ACEOF |
| 17814 | cat confdefs.h >>conftest.$ac_ext |
| 17815 | cat >>conftest.$ac_ext <<_ACEOF |
| 17816 | /* end confdefs.h. */ |
| 17817 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17818 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17819 | #define $ac_func innocuous_$ac_func |
| 17820 | |
| 17821 | /* System header to define __stub macros and hopefully few prototypes, |
| 17822 | which can conflict with char $ac_func (); below. |
| 17823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17824 | <limits.h> exists even on freestanding compilers. */ |
| 17825 | |
| 17826 | #ifdef __STDC__ |
| 17827 | # include <limits.h> |
| 17828 | #else |
| 17829 | # include <assert.h> |
| 17830 | #endif |
| 17831 | |
| 17832 | #undef $ac_func |
| 17833 | |
| 17834 | /* Override any GCC internal prototype to avoid an error. |
| 17835 | Use char because int might match the return type of a GCC |
| 17836 | builtin and then its argument prototype would still apply. */ |
| 17837 | #ifdef __cplusplus |
| 17838 | extern "C" |
| 17839 | #endif |
| 17840 | char $ac_func (); |
| 17841 | /* The GNU C library defines this for functions which it implements |
| 17842 | to always fail with ENOSYS. Some functions are actually named |
| 17843 | something starting with __ and the normal name is an alias. */ |
| 17844 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17845 | choke me |
| 17846 | #endif |
| 17847 | |
| 17848 | int |
| 17849 | main () |
| 17850 | { |
| 17851 | return $ac_func (); |
| 17852 | ; |
| 17853 | return 0; |
| 17854 | } |
| 17855 | _ACEOF |
| 17856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17857 | if { (ac_try="$ac_link" |
| 17858 | case "(($ac_try" in |
| 17859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17860 | *) ac_try_echo=$ac_try;; |
| 17861 | esac |
| 17862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17863 | (eval "$ac_link") 2>conftest.er1 |
| 17864 | ac_status=$? |
| 17865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17866 | rm -f conftest.er1 |
| 17867 | cat conftest.err >&5 |
| 17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17869 | (exit $ac_status); } && |
| 17870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17871 | { (case "(($ac_try" in |
| 17872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17873 | *) ac_try_echo=$ac_try;; |
| 17874 | esac |
| 17875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17876 | (eval "$ac_try") 2>&5 |
| 17877 | ac_status=$? |
| 17878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17879 | (exit $ac_status); }; } && |
| 17880 | { ac_try='test -s conftest$ac_exeext' |
| 17881 | { (case "(($ac_try" in |
| 17882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17883 | *) ac_try_echo=$ac_try;; |
| 17884 | esac |
| 17885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17886 | (eval "$ac_try") 2>&5 |
| 17887 | ac_status=$? |
| 17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17889 | (exit $ac_status); }; }; then |
| 17890 | eval "$as_ac_var=yes" |
| 17891 | else |
| 17892 | echo "$as_me: failed program was:" >&5 |
| 17893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17894 | |
| 17895 | eval "$as_ac_var=no" |
| 17896 | fi |
| 17897 | |
| 17898 | rm -f core conftest.err conftest.$ac_objext \ |
| 17899 | conftest$ac_exeext conftest.$ac_ext |
| 17900 | fi |
| 17901 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17902 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17903 | echo "${ECHO_T}$ac_res" >&6; } |
| 17904 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17905 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17907 | _ACEOF |
| 17908 | |
| 17909 | fi |
| 17910 | done |
| 17911 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17912 | |
| 17913 | |
| 17914 | |
| 17915 | |
| 17916 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17917 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17918 | do |
| 17919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17920 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17922 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17924 | else |
| 17925 | cat >conftest.$ac_ext <<_ACEOF |
| 17926 | /* confdefs.h. */ |
| 17927 | _ACEOF |
| 17928 | cat confdefs.h >>conftest.$ac_ext |
| 17929 | cat >>conftest.$ac_ext <<_ACEOF |
| 17930 | /* end confdefs.h. */ |
| 17931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17933 | #define $ac_func innocuous_$ac_func |
| 17934 | |
| 17935 | /* System header to define __stub macros and hopefully few prototypes, |
| 17936 | which can conflict with char $ac_func (); below. |
| 17937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17938 | <limits.h> exists even on freestanding compilers. */ |
| 17939 | |
| 17940 | #ifdef __STDC__ |
| 17941 | # include <limits.h> |
| 17942 | #else |
| 17943 | # include <assert.h> |
| 17944 | #endif |
| 17945 | |
| 17946 | #undef $ac_func |
| 17947 | |
| 17948 | /* Override any GCC internal prototype to avoid an error. |
| 17949 | Use char because int might match the return type of a GCC |
| 17950 | builtin and then its argument prototype would still apply. */ |
| 17951 | #ifdef __cplusplus |
| 17952 | extern "C" |
| 17953 | #endif |
| 17954 | char $ac_func (); |
| 17955 | /* The GNU C library defines this for functions which it implements |
| 17956 | to always fail with ENOSYS. Some functions are actually named |
| 17957 | something starting with __ and the normal name is an alias. */ |
| 17958 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17959 | choke me |
| 17960 | #endif |
| 17961 | |
| 17962 | int |
| 17963 | main () |
| 17964 | { |
| 17965 | return $ac_func (); |
| 17966 | ; |
| 17967 | return 0; |
| 17968 | } |
| 17969 | _ACEOF |
| 17970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17971 | if { (ac_try="$ac_link" |
| 17972 | case "(($ac_try" in |
| 17973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17974 | *) ac_try_echo=$ac_try;; |
| 17975 | esac |
| 17976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17977 | (eval "$ac_link") 2>conftest.er1 |
| 17978 | ac_status=$? |
| 17979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17980 | rm -f conftest.er1 |
| 17981 | cat conftest.err >&5 |
| 17982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17983 | (exit $ac_status); } && |
| 17984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17985 | { (case "(($ac_try" in |
| 17986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17987 | *) ac_try_echo=$ac_try;; |
| 17988 | esac |
| 17989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17990 | (eval "$ac_try") 2>&5 |
| 17991 | ac_status=$? |
| 17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17993 | (exit $ac_status); }; } && |
| 17994 | { ac_try='test -s conftest$ac_exeext' |
| 17995 | { (case "(($ac_try" in |
| 17996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17997 | *) ac_try_echo=$ac_try;; |
| 17998 | esac |
| 17999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18000 | (eval "$ac_try") 2>&5 |
| 18001 | ac_status=$? |
| 18002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18003 | (exit $ac_status); }; }; then |
| 18004 | eval "$as_ac_var=yes" |
| 18005 | else |
| 18006 | echo "$as_me: failed program was:" >&5 |
| 18007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18008 | |
| 18009 | eval "$as_ac_var=no" |
| 18010 | fi |
| 18011 | |
| 18012 | rm -f core conftest.err conftest.$ac_objext \ |
| 18013 | conftest$ac_exeext conftest.$ac_ext |
| 18014 | fi |
| 18015 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18016 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18017 | echo "${ECHO_T}$ac_res" >&6; } |
| 18018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18019 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18021 | _ACEOF |
| 18022 | |
| 18023 | fi |
| 18024 | done |
| 18025 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18026 | |
| 18027 | |
| 18028 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18029 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18030 | do |
| 18031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18032 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18034 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18036 | else |
| 18037 | cat >conftest.$ac_ext <<_ACEOF |
| 18038 | /* confdefs.h. */ |
| 18039 | _ACEOF |
| 18040 | cat confdefs.h >>conftest.$ac_ext |
| 18041 | cat >>conftest.$ac_ext <<_ACEOF |
| 18042 | /* end confdefs.h. */ |
| 18043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18045 | #define $ac_func innocuous_$ac_func |
| 18046 | |
| 18047 | /* System header to define __stub macros and hopefully few prototypes, |
| 18048 | which can conflict with char $ac_func (); below. |
| 18049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18050 | <limits.h> exists even on freestanding compilers. */ |
| 18051 | |
| 18052 | #ifdef __STDC__ |
| 18053 | # include <limits.h> |
| 18054 | #else |
| 18055 | # include <assert.h> |
| 18056 | #endif |
| 18057 | |
| 18058 | #undef $ac_func |
| 18059 | |
| 18060 | /* Override any GCC internal prototype to avoid an error. |
| 18061 | Use char because int might match the return type of a GCC |
| 18062 | builtin and then its argument prototype would still apply. */ |
| 18063 | #ifdef __cplusplus |
| 18064 | extern "C" |
| 18065 | #endif |
| 18066 | char $ac_func (); |
| 18067 | /* The GNU C library defines this for functions which it implements |
| 18068 | to always fail with ENOSYS. Some functions are actually named |
| 18069 | something starting with __ and the normal name is an alias. */ |
| 18070 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18071 | choke me |
| 18072 | #endif |
| 18073 | |
| 18074 | int |
| 18075 | main () |
| 18076 | { |
| 18077 | return $ac_func (); |
| 18078 | ; |
| 18079 | return 0; |
| 18080 | } |
| 18081 | _ACEOF |
| 18082 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18083 | if { (ac_try="$ac_link" |
| 18084 | case "(($ac_try" in |
| 18085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18086 | *) ac_try_echo=$ac_try;; |
| 18087 | esac |
| 18088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18089 | (eval "$ac_link") 2>conftest.er1 |
| 18090 | ac_status=$? |
| 18091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18092 | rm -f conftest.er1 |
| 18093 | cat conftest.err >&5 |
| 18094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18095 | (exit $ac_status); } && |
| 18096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18097 | { (case "(($ac_try" in |
| 18098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18099 | *) ac_try_echo=$ac_try;; |
| 18100 | esac |
| 18101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18102 | (eval "$ac_try") 2>&5 |
| 18103 | ac_status=$? |
| 18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18105 | (exit $ac_status); }; } && |
| 18106 | { ac_try='test -s conftest$ac_exeext' |
| 18107 | { (case "(($ac_try" in |
| 18108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18109 | *) ac_try_echo=$ac_try;; |
| 18110 | esac |
| 18111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18112 | (eval "$ac_try") 2>&5 |
| 18113 | ac_status=$? |
| 18114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18115 | (exit $ac_status); }; }; then |
| 18116 | eval "$as_ac_var=yes" |
| 18117 | else |
| 18118 | echo "$as_me: failed program was:" >&5 |
| 18119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18120 | |
| 18121 | eval "$as_ac_var=no" |
| 18122 | fi |
| 18123 | |
| 18124 | rm -f core conftest.err conftest.$ac_objext \ |
| 18125 | conftest$ac_exeext conftest.$ac_ext |
| 18126 | fi |
| 18127 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18129 | echo "${ECHO_T}$ac_res" >&6; } |
| 18130 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18131 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18133 | _ACEOF |
| 18134 | |
| 18135 | fi |
| 18136 | done |
| 18137 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18138 | |
| 18139 | |
| 18140 | |
| 18141 | |
| 18142 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18143 | |
| 18144 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18145 | do |
| 18146 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18147 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18148 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18149 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18151 | else |
| 18152 | cat >conftest.$ac_ext <<_ACEOF |
| 18153 | /* confdefs.h. */ |
| 18154 | _ACEOF |
| 18155 | cat confdefs.h >>conftest.$ac_ext |
| 18156 | cat >>conftest.$ac_ext <<_ACEOF |
| 18157 | /* end confdefs.h. */ |
| 18158 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18159 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18160 | #define $ac_func innocuous_$ac_func |
| 18161 | |
| 18162 | /* System header to define __stub macros and hopefully few prototypes, |
| 18163 | which can conflict with char $ac_func (); below. |
| 18164 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18165 | <limits.h> exists even on freestanding compilers. */ |
| 18166 | |
| 18167 | #ifdef __STDC__ |
| 18168 | # include <limits.h> |
| 18169 | #else |
| 18170 | # include <assert.h> |
| 18171 | #endif |
| 18172 | |
| 18173 | #undef $ac_func |
| 18174 | |
| 18175 | /* Override any GCC internal prototype to avoid an error. |
| 18176 | Use char because int might match the return type of a GCC |
| 18177 | builtin and then its argument prototype would still apply. */ |
| 18178 | #ifdef __cplusplus |
| 18179 | extern "C" |
| 18180 | #endif |
| 18181 | char $ac_func (); |
| 18182 | /* The GNU C library defines this for functions which it implements |
| 18183 | to always fail with ENOSYS. Some functions are actually named |
| 18184 | something starting with __ and the normal name is an alias. */ |
| 18185 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18186 | choke me |
| 18187 | #endif |
| 18188 | |
| 18189 | int |
| 18190 | main () |
| 18191 | { |
| 18192 | return $ac_func (); |
| 18193 | ; |
| 18194 | return 0; |
| 18195 | } |
| 18196 | _ACEOF |
| 18197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18198 | if { (ac_try="$ac_link" |
| 18199 | case "(($ac_try" in |
| 18200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18201 | *) ac_try_echo=$ac_try;; |
| 18202 | esac |
| 18203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18204 | (eval "$ac_link") 2>conftest.er1 |
| 18205 | ac_status=$? |
| 18206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18207 | rm -f conftest.er1 |
| 18208 | cat conftest.err >&5 |
| 18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18210 | (exit $ac_status); } && |
| 18211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18212 | { (case "(($ac_try" in |
| 18213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18214 | *) ac_try_echo=$ac_try;; |
| 18215 | esac |
| 18216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18217 | (eval "$ac_try") 2>&5 |
| 18218 | ac_status=$? |
| 18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18220 | (exit $ac_status); }; } && |
| 18221 | { ac_try='test -s conftest$ac_exeext' |
| 18222 | { (case "(($ac_try" in |
| 18223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18224 | *) ac_try_echo=$ac_try;; |
| 18225 | esac |
| 18226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18227 | (eval "$ac_try") 2>&5 |
| 18228 | ac_status=$? |
| 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18230 | (exit $ac_status); }; }; then |
| 18231 | eval "$as_ac_var=yes" |
| 18232 | else |
| 18233 | echo "$as_me: failed program was:" >&5 |
| 18234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18235 | |
| 18236 | eval "$as_ac_var=no" |
| 18237 | fi |
| 18238 | |
| 18239 | rm -f core conftest.err conftest.$ac_objext \ |
| 18240 | conftest$ac_exeext conftest.$ac_ext |
| 18241 | fi |
| 18242 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18244 | echo "${ECHO_T}$ac_res" >&6; } |
| 18245 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18246 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18247 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18248 | _ACEOF |
| 18249 | |
| 18250 | fi |
| 18251 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18253 | |
| 18254 | |
| 18255 | |
| 18256 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18257 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18258 | do |
| 18259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18260 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18262 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18264 | else |
| 18265 | cat >conftest.$ac_ext <<_ACEOF |
| 18266 | /* confdefs.h. */ |
| 18267 | _ACEOF |
| 18268 | cat confdefs.h >>conftest.$ac_ext |
| 18269 | cat >>conftest.$ac_ext <<_ACEOF |
| 18270 | /* end confdefs.h. */ |
| 18271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18273 | #define $ac_func innocuous_$ac_func |
| 18274 | |
| 18275 | /* System header to define __stub macros and hopefully few prototypes, |
| 18276 | which can conflict with char $ac_func (); below. |
| 18277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18278 | <limits.h> exists even on freestanding compilers. */ |
| 18279 | |
| 18280 | #ifdef __STDC__ |
| 18281 | # include <limits.h> |
| 18282 | #else |
| 18283 | # include <assert.h> |
| 18284 | #endif |
| 18285 | |
| 18286 | #undef $ac_func |
| 18287 | |
| 18288 | /* Override any GCC internal prototype to avoid an error. |
| 18289 | Use char because int might match the return type of a GCC |
| 18290 | builtin and then its argument prototype would still apply. */ |
| 18291 | #ifdef __cplusplus |
| 18292 | extern "C" |
| 18293 | #endif |
| 18294 | char $ac_func (); |
| 18295 | /* The GNU C library defines this for functions which it implements |
| 18296 | to always fail with ENOSYS. Some functions are actually named |
| 18297 | something starting with __ and the normal name is an alias. */ |
| 18298 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18299 | choke me |
| 18300 | #endif |
| 18301 | |
| 18302 | int |
| 18303 | main () |
| 18304 | { |
| 18305 | return $ac_func (); |
| 18306 | ; |
| 18307 | return 0; |
| 18308 | } |
| 18309 | _ACEOF |
| 18310 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18311 | if { (ac_try="$ac_link" |
| 18312 | case "(($ac_try" in |
| 18313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18314 | *) ac_try_echo=$ac_try;; |
| 18315 | esac |
| 18316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18317 | (eval "$ac_link") 2>conftest.er1 |
| 18318 | ac_status=$? |
| 18319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18320 | rm -f conftest.er1 |
| 18321 | cat conftest.err >&5 |
| 18322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18323 | (exit $ac_status); } && |
| 18324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18325 | { (case "(($ac_try" in |
| 18326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18327 | *) ac_try_echo=$ac_try;; |
| 18328 | esac |
| 18329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18330 | (eval "$ac_try") 2>&5 |
| 18331 | ac_status=$? |
| 18332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18333 | (exit $ac_status); }; } && |
| 18334 | { ac_try='test -s conftest$ac_exeext' |
| 18335 | { (case "(($ac_try" in |
| 18336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18337 | *) ac_try_echo=$ac_try;; |
| 18338 | esac |
| 18339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18340 | (eval "$ac_try") 2>&5 |
| 18341 | ac_status=$? |
| 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); }; }; then |
| 18344 | eval "$as_ac_var=yes" |
| 18345 | else |
| 18346 | echo "$as_me: failed program was:" >&5 |
| 18347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18348 | |
| 18349 | eval "$as_ac_var=no" |
| 18350 | fi |
| 18351 | |
| 18352 | rm -f core conftest.err conftest.$ac_objext \ |
| 18353 | conftest$ac_exeext conftest.$ac_ext |
| 18354 | fi |
| 18355 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18357 | echo "${ECHO_T}$ac_res" >&6; } |
| 18358 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18359 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18361 | _ACEOF |
| 18362 | |
| 18363 | fi |
| 18364 | done |
| 18365 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18366 | |
| 18367 | |
| 18368 | |
| 18369 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18370 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18371 | do |
| 18372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18373 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18375 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18377 | else |
| 18378 | cat >conftest.$ac_ext <<_ACEOF |
| 18379 | /* confdefs.h. */ |
| 18380 | _ACEOF |
| 18381 | cat confdefs.h >>conftest.$ac_ext |
| 18382 | cat >>conftest.$ac_ext <<_ACEOF |
| 18383 | /* end confdefs.h. */ |
| 18384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18386 | #define $ac_func innocuous_$ac_func |
| 18387 | |
| 18388 | /* System header to define __stub macros and hopefully few prototypes, |
| 18389 | which can conflict with char $ac_func (); below. |
| 18390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18391 | <limits.h> exists even on freestanding compilers. */ |
| 18392 | |
| 18393 | #ifdef __STDC__ |
| 18394 | # include <limits.h> |
| 18395 | #else |
| 18396 | # include <assert.h> |
| 18397 | #endif |
| 18398 | |
| 18399 | #undef $ac_func |
| 18400 | |
| 18401 | /* Override any GCC internal prototype to avoid an error. |
| 18402 | Use char because int might match the return type of a GCC |
| 18403 | builtin and then its argument prototype would still apply. */ |
| 18404 | #ifdef __cplusplus |
| 18405 | extern "C" |
| 18406 | #endif |
| 18407 | char $ac_func (); |
| 18408 | /* The GNU C library defines this for functions which it implements |
| 18409 | to always fail with ENOSYS. Some functions are actually named |
| 18410 | something starting with __ and the normal name is an alias. */ |
| 18411 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18412 | choke me |
| 18413 | #endif |
| 18414 | |
| 18415 | int |
| 18416 | main () |
| 18417 | { |
| 18418 | return $ac_func (); |
| 18419 | ; |
| 18420 | return 0; |
| 18421 | } |
| 18422 | _ACEOF |
| 18423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18424 | if { (ac_try="$ac_link" |
| 18425 | case "(($ac_try" in |
| 18426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18427 | *) ac_try_echo=$ac_try;; |
| 18428 | esac |
| 18429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18430 | (eval "$ac_link") 2>conftest.er1 |
| 18431 | ac_status=$? |
| 18432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18433 | rm -f conftest.er1 |
| 18434 | cat conftest.err >&5 |
| 18435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18436 | (exit $ac_status); } && |
| 18437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18438 | { (case "(($ac_try" in |
| 18439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18440 | *) ac_try_echo=$ac_try;; |
| 18441 | esac |
| 18442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18443 | (eval "$ac_try") 2>&5 |
| 18444 | ac_status=$? |
| 18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18446 | (exit $ac_status); }; } && |
| 18447 | { ac_try='test -s conftest$ac_exeext' |
| 18448 | { (case "(($ac_try" in |
| 18449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18450 | *) ac_try_echo=$ac_try;; |
| 18451 | esac |
| 18452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18453 | (eval "$ac_try") 2>&5 |
| 18454 | ac_status=$? |
| 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18456 | (exit $ac_status); }; }; then |
| 18457 | eval "$as_ac_var=yes" |
| 18458 | else |
| 18459 | echo "$as_me: failed program was:" >&5 |
| 18460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18461 | |
| 18462 | eval "$as_ac_var=no" |
| 18463 | fi |
| 18464 | |
| 18465 | rm -f core conftest.err conftest.$ac_objext \ |
| 18466 | conftest$ac_exeext conftest.$ac_ext |
| 18467 | fi |
| 18468 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18470 | echo "${ECHO_T}$ac_res" >&6; } |
| 18471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18472 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18474 | _ACEOF |
| 18475 | |
| 18476 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18477 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18479 | |
| 18480 | |
| 18481 | |
| 18482 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18483 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18484 | do |
| 18485 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18486 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18487 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18488 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18490 | else |
| 18491 | cat >conftest.$ac_ext <<_ACEOF |
| 18492 | /* confdefs.h. */ |
| 18493 | _ACEOF |
| 18494 | cat confdefs.h >>conftest.$ac_ext |
| 18495 | cat >>conftest.$ac_ext <<_ACEOF |
| 18496 | /* end confdefs.h. */ |
| 18497 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18499 | #define $ac_func innocuous_$ac_func |
| 18500 | |
| 18501 | /* System header to define __stub macros and hopefully few prototypes, |
| 18502 | which can conflict with char $ac_func (); below. |
| 18503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18504 | <limits.h> exists even on freestanding compilers. */ |
| 18505 | |
| 18506 | #ifdef __STDC__ |
| 18507 | # include <limits.h> |
| 18508 | #else |
| 18509 | # include <assert.h> |
| 18510 | #endif |
| 18511 | |
| 18512 | #undef $ac_func |
| 18513 | |
| 18514 | /* Override any GCC internal prototype to avoid an error. |
| 18515 | Use char because int might match the return type of a GCC |
| 18516 | builtin and then its argument prototype would still apply. */ |
| 18517 | #ifdef __cplusplus |
| 18518 | extern "C" |
| 18519 | #endif |
| 18520 | char $ac_func (); |
| 18521 | /* The GNU C library defines this for functions which it implements |
| 18522 | to always fail with ENOSYS. Some functions are actually named |
| 18523 | something starting with __ and the normal name is an alias. */ |
| 18524 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18525 | choke me |
| 18526 | #endif |
| 18527 | |
| 18528 | int |
| 18529 | main () |
| 18530 | { |
| 18531 | return $ac_func (); |
| 18532 | ; |
| 18533 | return 0; |
| 18534 | } |
| 18535 | _ACEOF |
| 18536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18537 | if { (ac_try="$ac_link" |
| 18538 | case "(($ac_try" in |
| 18539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18540 | *) ac_try_echo=$ac_try;; |
| 18541 | esac |
| 18542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18543 | (eval "$ac_link") 2>conftest.er1 |
| 18544 | ac_status=$? |
| 18545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18546 | rm -f conftest.er1 |
| 18547 | cat conftest.err >&5 |
| 18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18549 | (exit $ac_status); } && |
| 18550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18551 | { (case "(($ac_try" in |
| 18552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18553 | *) ac_try_echo=$ac_try;; |
| 18554 | esac |
| 18555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18556 | (eval "$ac_try") 2>&5 |
| 18557 | ac_status=$? |
| 18558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18559 | (exit $ac_status); }; } && |
| 18560 | { ac_try='test -s conftest$ac_exeext' |
| 18561 | { (case "(($ac_try" in |
| 18562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18563 | *) ac_try_echo=$ac_try;; |
| 18564 | esac |
| 18565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18566 | (eval "$ac_try") 2>&5 |
| 18567 | ac_status=$? |
| 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18569 | (exit $ac_status); }; }; then |
| 18570 | eval "$as_ac_var=yes" |
| 18571 | else |
| 18572 | echo "$as_me: failed program was:" >&5 |
| 18573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18574 | |
| 18575 | eval "$as_ac_var=no" |
| 18576 | fi |
| 18577 | |
| 18578 | rm -f core conftest.err conftest.$ac_objext \ |
| 18579 | conftest$ac_exeext conftest.$ac_ext |
| 18580 | fi |
| 18581 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18583 | echo "${ECHO_T}$ac_res" >&6; } |
| 18584 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18585 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18586 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18587 | _ACEOF |
| 18588 | |
| 18589 | fi |
| 18590 | done |
| 18591 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18592 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18593 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18594 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18596 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18597 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18598 | ac_cpp='$CPP $CPPFLAGS' |
| 18599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18602 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18603 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18604 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18605 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18606 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18607 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18608 | /* confdefs.h. */ |
| 18609 | _ACEOF |
| 18610 | cat confdefs.h >>conftest.$ac_ext |
| 18611 | cat >>conftest.$ac_ext <<_ACEOF |
| 18612 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18613 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18614 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18615 | #include <stdlib.h> |
| 18616 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18617 | int |
| 18618 | main () |
| 18619 | { |
| 18620 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18621 | volatile double A, B; |
| 18622 | char Buffer[100]; |
| 18623 | A = 1; |
| 18624 | A /= 10.0; |
| 18625 | sprintf(Buffer, "%a", A); |
| 18626 | B = atof(Buffer); |
| 18627 | if (A != B) |
| 18628 | return (1); |
| 18629 | if (A != 0x1.999999999999ap-4) |
| 18630 | return (1); |
| 18631 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18632 | ; |
| 18633 | return 0; |
| 18634 | } |
| 18635 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18636 | rm -f conftest$ac_exeext |
| 18637 | if { (ac_try="$ac_link" |
| 18638 | case "(($ac_try" in |
| 18639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18640 | *) ac_try_echo=$ac_try;; |
| 18641 | esac |
| 18642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18643 | (eval "$ac_link") 2>&5 |
| 18644 | ac_status=$? |
| 18645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18647 | { (case "(($ac_try" in |
| 18648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18649 | *) ac_try_echo=$ac_try;; |
| 18650 | esac |
| 18651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18652 | (eval "$ac_try") 2>&5 |
| 18653 | ac_status=$? |
| 18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18655 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18656 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18657 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18659 | echo "$as_me: failed program was:" >&5 |
| 18660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18661 | |
| 18662 | ( exit $ac_status ) |
| 18663 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18664 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18665 | 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] | 18666 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18668 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18669 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18670 | ac_cpp='$CPP $CPPFLAGS' |
| 18671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18674 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18675 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18676 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18677 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18678 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18680 | cat >>confdefs.h <<\_ACEOF |
| 18681 | #define HAVE_PRINTF_A 1 |
| 18682 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18683 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18684 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18685 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18686 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18687 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18688 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18689 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18691 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18692 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18693 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18698 | cat >conftest.$ac_ext <<_ACEOF |
| 18699 | /* confdefs.h. */ |
| 18700 | _ACEOF |
| 18701 | cat confdefs.h >>conftest.$ac_ext |
| 18702 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18703 | /* end confdefs.h. */ |
| 18704 | #include <stdlib.h> |
| 18705 | int |
| 18706 | main () |
| 18707 | { |
| 18708 | srand48(0);lrand48();drand48(); |
| 18709 | ; |
| 18710 | return 0; |
| 18711 | } |
| 18712 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18713 | rm -f conftest.$ac_objext |
| 18714 | if { (ac_try="$ac_compile" |
| 18715 | case "(($ac_try" in |
| 18716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18717 | *) ac_try_echo=$ac_try;; |
| 18718 | esac |
| 18719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18720 | (eval "$ac_compile") 2>conftest.er1 |
| 18721 | ac_status=$? |
| 18722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18723 | rm -f conftest.er1 |
| 18724 | cat conftest.err >&5 |
| 18725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18726 | (exit $ac_status); } && |
| 18727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18728 | { (case "(($ac_try" in |
| 18729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18730 | *) ac_try_echo=$ac_try;; |
| 18731 | esac |
| 18732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18733 | (eval "$ac_try") 2>&5 |
| 18734 | ac_status=$? |
| 18735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18736 | (exit $ac_status); }; } && |
| 18737 | { ac_try='test -s conftest.$ac_objext' |
| 18738 | { (case "(($ac_try" in |
| 18739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18740 | *) ac_try_echo=$ac_try;; |
| 18741 | esac |
| 18742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18743 | (eval "$ac_try") 2>&5 |
| 18744 | ac_status=$? |
| 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18746 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18747 | ac_cv_func_rand48=yes |
| 18748 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18749 | echo "$as_me: failed program was:" >&5 |
| 18750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18751 | |
| 18752 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18756 | ac_ext=c |
| 18757 | ac_cpp='$CPP $CPPFLAGS' |
| 18758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18761 | |
| 18762 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18763 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18764 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18765 | |
| 18766 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18768 | cat >>confdefs.h <<\_ACEOF |
| 18769 | #define HAVE_RAND48 1 |
| 18770 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18771 | |
| 18772 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18773 | |
| 18774 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18776 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18777 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18778 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18780 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18781 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18782 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18783 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18784 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18785 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18787 | cat >conftest.$ac_ext <<_ACEOF |
| 18788 | /* confdefs.h. */ |
| 18789 | _ACEOF |
| 18790 | cat confdefs.h >>conftest.$ac_ext |
| 18791 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18792 | /* end confdefs.h. */ |
| 18793 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18794 | int |
| 18795 | main () |
| 18796 | { |
| 18797 | float f; isnan(f); |
| 18798 | ; |
| 18799 | return 0; |
| 18800 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18801 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18802 | rm -f conftest.$ac_objext |
| 18803 | if { (ac_try="$ac_compile" |
| 18804 | case "(($ac_try" in |
| 18805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18806 | *) ac_try_echo=$ac_try;; |
| 18807 | esac |
| 18808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18809 | (eval "$ac_compile") 2>conftest.er1 |
| 18810 | ac_status=$? |
| 18811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18812 | rm -f conftest.er1 |
| 18813 | cat conftest.err >&5 |
| 18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18815 | (exit $ac_status); } && |
| 18816 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18817 | { (case "(($ac_try" in |
| 18818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18819 | *) ac_try_echo=$ac_try;; |
| 18820 | esac |
| 18821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18822 | (eval "$ac_try") 2>&5 |
| 18823 | ac_status=$? |
| 18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18825 | (exit $ac_status); }; } && |
| 18826 | { ac_try='test -s conftest.$ac_objext' |
| 18827 | { (case "(($ac_try" in |
| 18828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18829 | *) ac_try_echo=$ac_try;; |
| 18830 | esac |
| 18831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18832 | (eval "$ac_try") 2>&5 |
| 18833 | ac_status=$? |
| 18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18835 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18836 | ac_cv_func_isnan_in_math_h=yes |
| 18837 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18838 | echo "$as_me: failed program was:" >&5 |
| 18839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18840 | |
| 18841 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18842 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18845 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18846 | ac_cpp='$CPP $CPPFLAGS' |
| 18847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18850 | |
| 18851 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18852 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18853 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18854 | |
| 18855 | |
| 18856 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18857 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18858 | cat >>confdefs.h <<\_ACEOF |
| 18859 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18860 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18861 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18862 | fi |
| 18863 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18864 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18865 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18866 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18868 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18869 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18870 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18871 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18872 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18873 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18875 | cat >conftest.$ac_ext <<_ACEOF |
| 18876 | /* confdefs.h. */ |
| 18877 | _ACEOF |
| 18878 | cat confdefs.h >>conftest.$ac_ext |
| 18879 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18880 | /* end confdefs.h. */ |
| 18881 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18882 | int |
| 18883 | main () |
| 18884 | { |
| 18885 | float f; isnan(f); |
| 18886 | ; |
| 18887 | return 0; |
| 18888 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18889 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18890 | rm -f conftest.$ac_objext |
| 18891 | if { (ac_try="$ac_compile" |
| 18892 | case "(($ac_try" in |
| 18893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18894 | *) ac_try_echo=$ac_try;; |
| 18895 | esac |
| 18896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18897 | (eval "$ac_compile") 2>conftest.er1 |
| 18898 | ac_status=$? |
| 18899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18900 | rm -f conftest.er1 |
| 18901 | cat conftest.err >&5 |
| 18902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18903 | (exit $ac_status); } && |
| 18904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18905 | { (case "(($ac_try" in |
| 18906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18907 | *) ac_try_echo=$ac_try;; |
| 18908 | esac |
| 18909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18910 | (eval "$ac_try") 2>&5 |
| 18911 | ac_status=$? |
| 18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18913 | (exit $ac_status); }; } && |
| 18914 | { ac_try='test -s conftest.$ac_objext' |
| 18915 | { (case "(($ac_try" in |
| 18916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18917 | *) ac_try_echo=$ac_try;; |
| 18918 | esac |
| 18919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18920 | (eval "$ac_try") 2>&5 |
| 18921 | ac_status=$? |
| 18922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18923 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18924 | ac_cv_func_isnan_in_cmath=yes |
| 18925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18926 | echo "$as_me: failed program was:" >&5 |
| 18927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18928 | |
| 18929 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18930 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18933 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18934 | ac_cpp='$CPP $CPPFLAGS' |
| 18935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18938 | |
| 18939 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18940 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18941 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18942 | |
| 18943 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18944 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18945 | cat >>confdefs.h <<\_ACEOF |
| 18946 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18947 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18948 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18949 | fi |
| 18950 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18951 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18952 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18953 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18955 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18956 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18957 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18962 | cat >conftest.$ac_ext <<_ACEOF |
| 18963 | /* confdefs.h. */ |
| 18964 | _ACEOF |
| 18965 | cat confdefs.h >>conftest.$ac_ext |
| 18966 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18967 | /* end confdefs.h. */ |
| 18968 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18969 | int |
| 18970 | main () |
| 18971 | { |
| 18972 | float f; std::isnan(f); |
| 18973 | ; |
| 18974 | return 0; |
| 18975 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18976 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18977 | rm -f conftest.$ac_objext |
| 18978 | if { (ac_try="$ac_compile" |
| 18979 | case "(($ac_try" in |
| 18980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18981 | *) ac_try_echo=$ac_try;; |
| 18982 | esac |
| 18983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18984 | (eval "$ac_compile") 2>conftest.er1 |
| 18985 | ac_status=$? |
| 18986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18987 | rm -f conftest.er1 |
| 18988 | cat conftest.err >&5 |
| 18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18990 | (exit $ac_status); } && |
| 18991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18992 | { (case "(($ac_try" in |
| 18993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18994 | *) ac_try_echo=$ac_try;; |
| 18995 | esac |
| 18996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18997 | (eval "$ac_try") 2>&5 |
| 18998 | ac_status=$? |
| 18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19000 | (exit $ac_status); }; } && |
| 19001 | { ac_try='test -s conftest.$ac_objext' |
| 19002 | { (case "(($ac_try" in |
| 19003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19004 | *) ac_try_echo=$ac_try;; |
| 19005 | esac |
| 19006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19007 | (eval "$ac_try") 2>&5 |
| 19008 | ac_status=$? |
| 19009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19010 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19011 | ac_cv_func_std_isnan_in_cmath=yes |
| 19012 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19013 | echo "$as_me: failed program was:" >&5 |
| 19014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19015 | |
| 19016 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19017 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19020 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19021 | ac_cpp='$CPP $CPPFLAGS' |
| 19022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19025 | |
| 19026 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19027 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19028 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19029 | |
| 19030 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19032 | cat >>confdefs.h <<\_ACEOF |
| 19033 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19034 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19035 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19036 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19037 | |
| 19038 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19039 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19040 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19041 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19043 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19044 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19045 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19046 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19047 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19048 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19050 | cat >conftest.$ac_ext <<_ACEOF |
| 19051 | /* confdefs.h. */ |
| 19052 | _ACEOF |
| 19053 | cat confdefs.h >>conftest.$ac_ext |
| 19054 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19055 | /* end confdefs.h. */ |
| 19056 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19057 | int |
| 19058 | main () |
| 19059 | { |
| 19060 | float f; isinf(f); |
| 19061 | ; |
| 19062 | return 0; |
| 19063 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19064 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19065 | rm -f conftest.$ac_objext |
| 19066 | if { (ac_try="$ac_compile" |
| 19067 | case "(($ac_try" in |
| 19068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19069 | *) ac_try_echo=$ac_try;; |
| 19070 | esac |
| 19071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19072 | (eval "$ac_compile") 2>conftest.er1 |
| 19073 | ac_status=$? |
| 19074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19075 | rm -f conftest.er1 |
| 19076 | cat conftest.err >&5 |
| 19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19078 | (exit $ac_status); } && |
| 19079 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19080 | { (case "(($ac_try" in |
| 19081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19082 | *) ac_try_echo=$ac_try;; |
| 19083 | esac |
| 19084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19085 | (eval "$ac_try") 2>&5 |
| 19086 | ac_status=$? |
| 19087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19088 | (exit $ac_status); }; } && |
| 19089 | { ac_try='test -s conftest.$ac_objext' |
| 19090 | { (case "(($ac_try" in |
| 19091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19092 | *) ac_try_echo=$ac_try;; |
| 19093 | esac |
| 19094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19095 | (eval "$ac_try") 2>&5 |
| 19096 | ac_status=$? |
| 19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19098 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19099 | ac_cv_func_isinf_in_math_h=yes |
| 19100 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19101 | echo "$as_me: failed program was:" >&5 |
| 19102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19103 | |
| 19104 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19105 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19108 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19109 | ac_cpp='$CPP $CPPFLAGS' |
| 19110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19113 | |
| 19114 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19115 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19116 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19117 | |
| 19118 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19119 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19120 | cat >>confdefs.h <<\_ACEOF |
| 19121 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19122 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19123 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19124 | fi |
| 19125 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19126 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19127 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19128 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19130 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19131 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19132 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19136 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19137 | cat >conftest.$ac_ext <<_ACEOF |
| 19138 | /* confdefs.h. */ |
| 19139 | _ACEOF |
| 19140 | cat confdefs.h >>conftest.$ac_ext |
| 19141 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19142 | /* end confdefs.h. */ |
| 19143 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19144 | int |
| 19145 | main () |
| 19146 | { |
| 19147 | float f; isinf(f); |
| 19148 | ; |
| 19149 | return 0; |
| 19150 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19151 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19152 | rm -f conftest.$ac_objext |
| 19153 | if { (ac_try="$ac_compile" |
| 19154 | case "(($ac_try" in |
| 19155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19156 | *) ac_try_echo=$ac_try;; |
| 19157 | esac |
| 19158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19159 | (eval "$ac_compile") 2>conftest.er1 |
| 19160 | ac_status=$? |
| 19161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19162 | rm -f conftest.er1 |
| 19163 | cat conftest.err >&5 |
| 19164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19165 | (exit $ac_status); } && |
| 19166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19167 | { (case "(($ac_try" in |
| 19168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19169 | *) ac_try_echo=$ac_try;; |
| 19170 | esac |
| 19171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19172 | (eval "$ac_try") 2>&5 |
| 19173 | ac_status=$? |
| 19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19175 | (exit $ac_status); }; } && |
| 19176 | { ac_try='test -s conftest.$ac_objext' |
| 19177 | { (case "(($ac_try" in |
| 19178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19179 | *) ac_try_echo=$ac_try;; |
| 19180 | esac |
| 19181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19182 | (eval "$ac_try") 2>&5 |
| 19183 | ac_status=$? |
| 19184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19185 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19186 | ac_cv_func_isinf_in_cmath=yes |
| 19187 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19188 | echo "$as_me: failed program was:" >&5 |
| 19189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19190 | |
| 19191 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19195 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19196 | ac_cpp='$CPP $CPPFLAGS' |
| 19197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19200 | |
| 19201 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19203 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19204 | |
| 19205 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19206 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19207 | cat >>confdefs.h <<\_ACEOF |
| 19208 | #define HAVE_ISINF_IN_CMATH 1 |
| 19209 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19210 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19211 | fi |
| 19212 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19213 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19214 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19215 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19217 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19218 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19219 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19220 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19221 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19222 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19223 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19224 | cat >conftest.$ac_ext <<_ACEOF |
| 19225 | /* confdefs.h. */ |
| 19226 | _ACEOF |
| 19227 | cat confdefs.h >>conftest.$ac_ext |
| 19228 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19229 | /* end confdefs.h. */ |
| 19230 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19231 | int |
| 19232 | main () |
| 19233 | { |
| 19234 | float f; std::isinf(f)} |
| 19235 | ; |
| 19236 | return 0; |
| 19237 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19238 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19239 | rm -f conftest.$ac_objext |
| 19240 | if { (ac_try="$ac_compile" |
| 19241 | case "(($ac_try" in |
| 19242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19243 | *) ac_try_echo=$ac_try;; |
| 19244 | esac |
| 19245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19246 | (eval "$ac_compile") 2>conftest.er1 |
| 19247 | ac_status=$? |
| 19248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19249 | rm -f conftest.er1 |
| 19250 | cat conftest.err >&5 |
| 19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19252 | (exit $ac_status); } && |
| 19253 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19254 | { (case "(($ac_try" in |
| 19255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19256 | *) ac_try_echo=$ac_try;; |
| 19257 | esac |
| 19258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19259 | (eval "$ac_try") 2>&5 |
| 19260 | ac_status=$? |
| 19261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19262 | (exit $ac_status); }; } && |
| 19263 | { ac_try='test -s conftest.$ac_objext' |
| 19264 | { (case "(($ac_try" in |
| 19265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19266 | *) ac_try_echo=$ac_try;; |
| 19267 | esac |
| 19268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19269 | (eval "$ac_try") 2>&5 |
| 19270 | ac_status=$? |
| 19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19272 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19273 | ac_cv_func_std_isinf_in_cmath=yes |
| 19274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19275 | echo "$as_me: failed program was:" >&5 |
| 19276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19277 | |
| 19278 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19279 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19282 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19283 | ac_cpp='$CPP $CPPFLAGS' |
| 19284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19287 | |
| 19288 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19289 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19290 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19291 | |
| 19292 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19293 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19294 | cat >>confdefs.h <<\_ACEOF |
| 19295 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19296 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19297 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19298 | fi |
| 19299 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19300 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19301 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19302 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19304 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19305 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19306 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19307 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19308 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19309 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19310 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19311 | cat >conftest.$ac_ext <<_ACEOF |
| 19312 | /* confdefs.h. */ |
| 19313 | _ACEOF |
| 19314 | cat confdefs.h >>conftest.$ac_ext |
| 19315 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19316 | /* end confdefs.h. */ |
| 19317 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19318 | int |
| 19319 | main () |
| 19320 | { |
| 19321 | float f; finite(f); |
| 19322 | ; |
| 19323 | return 0; |
| 19324 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19325 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19326 | rm -f conftest.$ac_objext |
| 19327 | if { (ac_try="$ac_compile" |
| 19328 | case "(($ac_try" in |
| 19329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19330 | *) ac_try_echo=$ac_try;; |
| 19331 | esac |
| 19332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19333 | (eval "$ac_compile") 2>conftest.er1 |
| 19334 | ac_status=$? |
| 19335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19336 | rm -f conftest.er1 |
| 19337 | cat conftest.err >&5 |
| 19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19339 | (exit $ac_status); } && |
| 19340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19341 | { (case "(($ac_try" in |
| 19342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19343 | *) ac_try_echo=$ac_try;; |
| 19344 | esac |
| 19345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19346 | (eval "$ac_try") 2>&5 |
| 19347 | ac_status=$? |
| 19348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19349 | (exit $ac_status); }; } && |
| 19350 | { ac_try='test -s conftest.$ac_objext' |
| 19351 | { (case "(($ac_try" in |
| 19352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19353 | *) ac_try_echo=$ac_try;; |
| 19354 | esac |
| 19355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19356 | (eval "$ac_try") 2>&5 |
| 19357 | ac_status=$? |
| 19358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19359 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19360 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19361 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19362 | echo "$as_me: failed program was:" >&5 |
| 19363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19364 | |
| 19365 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19366 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19369 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19370 | ac_cpp='$CPP $CPPFLAGS' |
| 19371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19374 | |
| 19375 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19376 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19377 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19378 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19379 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19380 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19381 | cat >>confdefs.h <<\_ACEOF |
| 19382 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19383 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19384 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19385 | fi |
| 19386 | |
| 19387 | |
| 19388 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19389 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19390 | |
| 19391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19392 | for ac_header in stdlib.h unistd.h |
| 19393 | do |
| 19394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19400 | fi |
| 19401 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19402 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19403 | echo "${ECHO_T}$ac_res" >&6; } |
| 19404 | else |
| 19405 | # Is the header compilable? |
| 19406 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19408 | cat >conftest.$ac_ext <<_ACEOF |
| 19409 | /* confdefs.h. */ |
| 19410 | _ACEOF |
| 19411 | cat confdefs.h >>conftest.$ac_ext |
| 19412 | cat >>conftest.$ac_ext <<_ACEOF |
| 19413 | /* end confdefs.h. */ |
| 19414 | $ac_includes_default |
| 19415 | #include <$ac_header> |
| 19416 | _ACEOF |
| 19417 | rm -f conftest.$ac_objext |
| 19418 | if { (ac_try="$ac_compile" |
| 19419 | case "(($ac_try" in |
| 19420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19421 | *) ac_try_echo=$ac_try;; |
| 19422 | esac |
| 19423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19424 | (eval "$ac_compile") 2>conftest.er1 |
| 19425 | ac_status=$? |
| 19426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19427 | rm -f conftest.er1 |
| 19428 | cat conftest.err >&5 |
| 19429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19430 | (exit $ac_status); } && |
| 19431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19432 | { (case "(($ac_try" in |
| 19433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19434 | *) ac_try_echo=$ac_try;; |
| 19435 | esac |
| 19436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19437 | (eval "$ac_try") 2>&5 |
| 19438 | ac_status=$? |
| 19439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19440 | (exit $ac_status); }; } && |
| 19441 | { ac_try='test -s conftest.$ac_objext' |
| 19442 | { (case "(($ac_try" in |
| 19443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19444 | *) ac_try_echo=$ac_try;; |
| 19445 | esac |
| 19446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19447 | (eval "$ac_try") 2>&5 |
| 19448 | ac_status=$? |
| 19449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19450 | (exit $ac_status); }; }; then |
| 19451 | ac_header_compiler=yes |
| 19452 | else |
| 19453 | echo "$as_me: failed program was:" >&5 |
| 19454 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19455 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19456 | ac_header_compiler=no |
| 19457 | fi |
| 19458 | |
| 19459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19461 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19462 | |
| 19463 | # Is the header present? |
| 19464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19466 | cat >conftest.$ac_ext <<_ACEOF |
| 19467 | /* confdefs.h. */ |
| 19468 | _ACEOF |
| 19469 | cat confdefs.h >>conftest.$ac_ext |
| 19470 | cat >>conftest.$ac_ext <<_ACEOF |
| 19471 | /* end confdefs.h. */ |
| 19472 | #include <$ac_header> |
| 19473 | _ACEOF |
| 19474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19475 | case "(($ac_try" in |
| 19476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19477 | *) ac_try_echo=$ac_try;; |
| 19478 | esac |
| 19479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19481 | ac_status=$? |
| 19482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19483 | rm -f conftest.er1 |
| 19484 | cat conftest.err >&5 |
| 19485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19486 | (exit $ac_status); } >/dev/null; then |
| 19487 | if test -s conftest.err; then |
| 19488 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19490 | else |
| 19491 | ac_cpp_err= |
| 19492 | fi |
| 19493 | else |
| 19494 | ac_cpp_err=yes |
| 19495 | fi |
| 19496 | if test -z "$ac_cpp_err"; then |
| 19497 | ac_header_preproc=yes |
| 19498 | else |
| 19499 | echo "$as_me: failed program was:" >&5 |
| 19500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19501 | |
| 19502 | ac_header_preproc=no |
| 19503 | fi |
| 19504 | |
| 19505 | rm -f conftest.err conftest.$ac_ext |
| 19506 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19507 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19508 | |
| 19509 | # So? What about this header? |
| 19510 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19511 | yes:no: ) |
| 19512 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19513 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19515 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19516 | ac_header_preproc=yes |
| 19517 | ;; |
| 19518 | no:yes:* ) |
| 19519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19523 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19524 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19525 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19526 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19528 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19529 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19530 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19531 | ( cat <<\_ASBOX |
| 19532 | ## ----------------------------------- ## |
| 19533 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19534 | ## ----------------------------------- ## |
| 19535 | _ASBOX |
| 19536 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19537 | ;; |
| 19538 | esac |
| 19539 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19543 | else |
| 19544 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19545 | fi |
| 19546 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19547 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19548 | echo "${ECHO_T}$ac_res" >&6; } |
| 19549 | |
| 19550 | fi |
| 19551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19552 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19554 | _ACEOF |
| 19555 | |
| 19556 | fi |
| 19557 | |
| 19558 | done |
| 19559 | |
| 19560 | |
| 19561 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19562 | do |
| 19563 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19564 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19565 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19566 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19568 | else |
| 19569 | cat >conftest.$ac_ext <<_ACEOF |
| 19570 | /* confdefs.h. */ |
| 19571 | _ACEOF |
| 19572 | cat confdefs.h >>conftest.$ac_ext |
| 19573 | cat >>conftest.$ac_ext <<_ACEOF |
| 19574 | /* end confdefs.h. */ |
| 19575 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19577 | #define $ac_func innocuous_$ac_func |
| 19578 | |
| 19579 | /* System header to define __stub macros and hopefully few prototypes, |
| 19580 | which can conflict with char $ac_func (); below. |
| 19581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19582 | <limits.h> exists even on freestanding compilers. */ |
| 19583 | |
| 19584 | #ifdef __STDC__ |
| 19585 | # include <limits.h> |
| 19586 | #else |
| 19587 | # include <assert.h> |
| 19588 | #endif |
| 19589 | |
| 19590 | #undef $ac_func |
| 19591 | |
| 19592 | /* Override any GCC internal prototype to avoid an error. |
| 19593 | Use char because int might match the return type of a GCC |
| 19594 | builtin and then its argument prototype would still apply. */ |
| 19595 | #ifdef __cplusplus |
| 19596 | extern "C" |
| 19597 | #endif |
| 19598 | char $ac_func (); |
| 19599 | /* The GNU C library defines this for functions which it implements |
| 19600 | to always fail with ENOSYS. Some functions are actually named |
| 19601 | something starting with __ and the normal name is an alias. */ |
| 19602 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19603 | choke me |
| 19604 | #endif |
| 19605 | |
| 19606 | int |
| 19607 | main () |
| 19608 | { |
| 19609 | return $ac_func (); |
| 19610 | ; |
| 19611 | return 0; |
| 19612 | } |
| 19613 | _ACEOF |
| 19614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19615 | if { (ac_try="$ac_link" |
| 19616 | case "(($ac_try" in |
| 19617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19618 | *) ac_try_echo=$ac_try;; |
| 19619 | esac |
| 19620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19621 | (eval "$ac_link") 2>conftest.er1 |
| 19622 | ac_status=$? |
| 19623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19624 | rm -f conftest.er1 |
| 19625 | cat conftest.err >&5 |
| 19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19627 | (exit $ac_status); } && |
| 19628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19629 | { (case "(($ac_try" in |
| 19630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19631 | *) ac_try_echo=$ac_try;; |
| 19632 | esac |
| 19633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19634 | (eval "$ac_try") 2>&5 |
| 19635 | ac_status=$? |
| 19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19637 | (exit $ac_status); }; } && |
| 19638 | { ac_try='test -s conftest$ac_exeext' |
| 19639 | { (case "(($ac_try" in |
| 19640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19641 | *) ac_try_echo=$ac_try;; |
| 19642 | esac |
| 19643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19644 | (eval "$ac_try") 2>&5 |
| 19645 | ac_status=$? |
| 19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19647 | (exit $ac_status); }; }; then |
| 19648 | eval "$as_ac_var=yes" |
| 19649 | else |
| 19650 | echo "$as_me: failed program was:" >&5 |
| 19651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19652 | |
| 19653 | eval "$as_ac_var=no" |
| 19654 | fi |
| 19655 | |
| 19656 | rm -f core conftest.err conftest.$ac_objext \ |
| 19657 | conftest$ac_exeext conftest.$ac_ext |
| 19658 | fi |
| 19659 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19660 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19661 | echo "${ECHO_T}$ac_res" >&6; } |
| 19662 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19663 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19664 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19665 | _ACEOF |
| 19666 | |
| 19667 | fi |
| 19668 | done |
| 19669 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19670 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19671 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19672 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19674 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19675 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19676 | ac_cv_func_mmap_fixed_mapped=no |
| 19677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19678 | cat >conftest.$ac_ext <<_ACEOF |
| 19679 | /* confdefs.h. */ |
| 19680 | _ACEOF |
| 19681 | cat confdefs.h >>conftest.$ac_ext |
| 19682 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19683 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19684 | $ac_includes_default |
| 19685 | /* malloc might have been renamed as rpl_malloc. */ |
| 19686 | #undef malloc |
| 19687 | |
| 19688 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19689 | Here is a matrix of mmap possibilities: |
| 19690 | mmap private not fixed |
| 19691 | mmap private fixed at somewhere currently unmapped |
| 19692 | mmap private fixed at somewhere already mapped |
| 19693 | mmap shared not fixed |
| 19694 | mmap shared fixed at somewhere currently unmapped |
| 19695 | mmap shared fixed at somewhere already mapped |
| 19696 | For private mappings, we should verify that changes cannot be read() |
| 19697 | back from the file, nor mmap's back from the file at a different |
| 19698 | address. (There have been systems where private was not correctly |
| 19699 | implemented like the infamous i386 svr4.0, and systems where the |
| 19700 | VM page cache was not coherent with the file system buffer cache |
| 19701 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19702 | For shared mappings, we should conversely verify that changes get |
| 19703 | propagated back to all the places they're supposed to be. |
| 19704 | |
| 19705 | Grep wants private fixed already mapped. |
| 19706 | The main things grep needs to know about mmap are: |
| 19707 | * does it exist and is it safe to write into the mmap'd area |
| 19708 | * how to use it (BSD variants) */ |
| 19709 | |
| 19710 | #include <fcntl.h> |
| 19711 | #include <sys/mman.h> |
| 19712 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19713 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19714 | char *malloc (); |
| 19715 | #endif |
| 19716 | |
| 19717 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19718 | #if !HAVE_GETPAGESIZE |
| 19719 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19720 | # if !HAVE_SYS_PARAM_H |
| 19721 | # define HAVE_SYS_PARAM_H 1 |
| 19722 | # endif |
| 19723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19724 | # ifdef _SC_PAGESIZE |
| 19725 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19726 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19727 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19728 | # include <sys/param.h> |
| 19729 | # ifdef EXEC_PAGESIZE |
| 19730 | # define getpagesize() EXEC_PAGESIZE |
| 19731 | # else /* no EXEC_PAGESIZE */ |
| 19732 | # ifdef NBPG |
| 19733 | # define getpagesize() NBPG * CLSIZE |
| 19734 | # ifndef CLSIZE |
| 19735 | # define CLSIZE 1 |
| 19736 | # endif /* no CLSIZE */ |
| 19737 | # else /* no NBPG */ |
| 19738 | # ifdef NBPC |
| 19739 | # define getpagesize() NBPC |
| 19740 | # else /* no NBPC */ |
| 19741 | # ifdef PAGESIZE |
| 19742 | # define getpagesize() PAGESIZE |
| 19743 | # endif /* PAGESIZE */ |
| 19744 | # endif /* no NBPC */ |
| 19745 | # endif /* no NBPG */ |
| 19746 | # endif /* no EXEC_PAGESIZE */ |
| 19747 | # else /* no HAVE_SYS_PARAM_H */ |
| 19748 | # define getpagesize() 8192 /* punt totally */ |
| 19749 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19750 | # endif /* no _SC_PAGESIZE */ |
| 19751 | |
| 19752 | #endif /* no HAVE_GETPAGESIZE */ |
| 19753 | |
| 19754 | int |
| 19755 | main () |
| 19756 | { |
| 19757 | char *data, *data2, *data3; |
| 19758 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19759 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19760 | |
| 19761 | pagesize = getpagesize (); |
| 19762 | |
| 19763 | /* First, make a file with some known garbage in it. */ |
| 19764 | data = (char *) malloc (pagesize); |
| 19765 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19766 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19767 | for (i = 0; i < pagesize; ++i) |
| 19768 | *(data + i) = rand (); |
| 19769 | umask (0); |
| 19770 | fd = creat ("conftest.mmap", 0600); |
| 19771 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19772 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19773 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19774 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19775 | close (fd); |
| 19776 | |
| 19777 | /* Next, try to mmap the file at a fixed address which already has |
| 19778 | something else allocated at it. If we can, also make sure that |
| 19779 | we see the same garbage. */ |
| 19780 | fd = open ("conftest.mmap", O_RDWR); |
| 19781 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19782 | return 1; |
| 19783 | data2 = (char *) malloc (2 * pagesize); |
| 19784 | if (!data2) |
| 19785 | return 1; |
| 19786 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19787 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19788 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19789 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19790 | for (i = 0; i < pagesize; ++i) |
| 19791 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19792 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19793 | |
| 19794 | /* Finally, make sure that changes to the mapped area do not |
| 19795 | percolate back to the file as seen by read(). (This is a bug on |
| 19796 | some variants of i386 svr4.0.) */ |
| 19797 | for (i = 0; i < pagesize; ++i) |
| 19798 | *(data2 + i) = *(data2 + i) + 1; |
| 19799 | data3 = (char *) malloc (pagesize); |
| 19800 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19801 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19802 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19803 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19804 | for (i = 0; i < pagesize; ++i) |
| 19805 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19806 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19807 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19808 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19809 | } |
| 19810 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19811 | rm -f conftest$ac_exeext |
| 19812 | if { (ac_try="$ac_link" |
| 19813 | case "(($ac_try" in |
| 19814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19815 | *) ac_try_echo=$ac_try;; |
| 19816 | esac |
| 19817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19818 | (eval "$ac_link") 2>&5 |
| 19819 | ac_status=$? |
| 19820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19822 | { (case "(($ac_try" in |
| 19823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19824 | *) ac_try_echo=$ac_try;; |
| 19825 | esac |
| 19826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19827 | (eval "$ac_try") 2>&5 |
| 19828 | ac_status=$? |
| 19829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19830 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19831 | ac_cv_func_mmap_fixed_mapped=yes |
| 19832 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19834 | echo "$as_me: failed program was:" >&5 |
| 19835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19836 | |
| 19837 | ( exit $ac_status ) |
| 19838 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19839 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19840 | 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] | 19841 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19842 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19843 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19844 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19845 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19846 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19847 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19849 | cat >>confdefs.h <<\_ACEOF |
| 19850 | #define HAVE_MMAP 1 |
| 19851 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19852 | |
| 19853 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19854 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19856 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19857 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19858 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19860 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19861 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19862 | ac_cpp='$CPP $CPPFLAGS' |
| 19863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19866 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19867 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19868 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19870 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19872 | /* confdefs.h. */ |
| 19873 | _ACEOF |
| 19874 | cat confdefs.h >>conftest.$ac_ext |
| 19875 | cat >>conftest.$ac_ext <<_ACEOF |
| 19876 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19877 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19878 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19879 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19880 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19881 | |
| 19882 | int |
| 19883 | main () |
| 19884 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19885 | |
| 19886 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19887 | fd = creat ("foo",0777); |
| 19888 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19889 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19890 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19891 | ; |
| 19892 | return 0; |
| 19893 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19894 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19895 | rm -f conftest$ac_exeext |
| 19896 | if { (ac_try="$ac_link" |
| 19897 | case "(($ac_try" in |
| 19898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19899 | *) ac_try_echo=$ac_try;; |
| 19900 | esac |
| 19901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19902 | (eval "$ac_link") 2>&5 |
| 19903 | ac_status=$? |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19906 | { (case "(($ac_try" in |
| 19907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19908 | *) ac_try_echo=$ac_try;; |
| 19909 | esac |
| 19910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19911 | (eval "$ac_try") 2>&5 |
| 19912 | ac_status=$? |
| 19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19914 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19915 | ac_cv_func_mmap_file=yes |
| 19916 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19917 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19918 | echo "$as_me: failed program was:" >&5 |
| 19919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19920 | |
| 19921 | ( exit $ac_status ) |
| 19922 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19923 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19924 | 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] | 19925 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19927 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19928 | ac_ext=c |
| 19929 | ac_cpp='$CPP $CPPFLAGS' |
| 19930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19933 | |
| 19934 | |
| 19935 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19936 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19937 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19938 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19939 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19940 | cat >>confdefs.h <<\_ACEOF |
| 19941 | #define HAVE_MMAP_FILE |
| 19942 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19943 | |
| 19944 | MMAP_FILE=yes |
| 19945 | |
| 19946 | fi |
| 19947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19948 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19949 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19950 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19952 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19953 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19954 | ac_cv_need_dev_zero_for_mmap=yes |
| 19955 | else |
| 19956 | ac_cv_need_dev_zero_for_mmap=no |
| 19957 | fi |
| 19958 | |
| 19959 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19960 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19961 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19962 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19963 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19964 | cat >>confdefs.h <<\_ACEOF |
| 19965 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19966 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19967 | |
| 19968 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19969 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19970 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19971 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19972 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19973 | 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] | 19974 | fi |
| 19975 | if test "$ac_cv_func_mmap_file" = "no" |
| 19976 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19977 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19978 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19979 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19980 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19981 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19982 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19983 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 19984 | ac_ext=cpp |
| 19985 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19986 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19987 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19988 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19990 | cat >conftest.$ac_ext <<_ACEOF |
| 19991 | /* confdefs.h. */ |
| 19992 | _ACEOF |
| 19993 | cat confdefs.h >>conftest.$ac_ext |
| 19994 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19995 | /* end confdefs.h. */ |
| 19996 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19997 | volatile unsigned long val = 1; |
| 19998 | __sync_synchronize(); |
| 19999 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20000 | __sync_add_and_fetch(&val, 1); |
| 20001 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20002 | return 0; |
| 20003 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20004 | |
| 20005 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20007 | if { (ac_try="$ac_link" |
| 20008 | case "(($ac_try" in |
| 20009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20010 | *) ac_try_echo=$ac_try;; |
| 20011 | esac |
| 20012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20013 | (eval "$ac_link") 2>conftest.er1 |
| 20014 | ac_status=$? |
| 20015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20016 | rm -f conftest.er1 |
| 20017 | cat conftest.err >&5 |
| 20018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20019 | (exit $ac_status); } && |
| 20020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20021 | { (case "(($ac_try" in |
| 20022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20023 | *) ac_try_echo=$ac_try;; |
| 20024 | esac |
| 20025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20026 | (eval "$ac_try") 2>&5 |
| 20027 | ac_status=$? |
| 20028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20029 | (exit $ac_status); }; } && |
| 20030 | { ac_try='test -s conftest$ac_exeext' |
| 20031 | { (case "(($ac_try" in |
| 20032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20033 | *) ac_try_echo=$ac_try;; |
| 20034 | esac |
| 20035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20036 | (eval "$ac_try") 2>&5 |
| 20037 | ac_status=$? |
| 20038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20039 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20040 | ac_ext=c |
| 20041 | ac_cpp='$CPP $CPPFLAGS' |
| 20042 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20043 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20045 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20046 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20047 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20048 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20049 | cat >>confdefs.h <<\_ACEOF |
| 20050 | #define LLVM_MULTITHREADED 1 |
| 20051 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20052 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20053 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20054 | echo "$as_me: failed program was:" >&5 |
| 20055 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20057 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20058 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20059 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20060 | cat >>confdefs.h <<\_ACEOF |
| 20061 | #define LLVM_MULTITHREADED 0 |
| 20062 | _ACEOF |
| 20063 | |
| 20064 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20065 | 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] | 20066 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20067 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20068 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20069 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20071 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20072 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20073 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20074 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20075 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20077 | else |
| 20078 | ac_ext=c |
| 20079 | ac_cpp='$CPP $CPPFLAGS' |
| 20080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20084 | cat >conftest.$ac_ext <<_ACEOF |
| 20085 | /* confdefs.h. */ |
| 20086 | _ACEOF |
| 20087 | cat confdefs.h >>conftest.$ac_ext |
| 20088 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20089 | /* end confdefs.h. */ |
| 20090 | #ifndef __x86_64__ |
| 20091 | error: Not x86-64 even if uname says so! |
| 20092 | #endif |
| 20093 | |
| 20094 | int |
| 20095 | main () |
| 20096 | { |
| 20097 | |
| 20098 | ; |
| 20099 | return 0; |
| 20100 | } |
| 20101 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | rm -f conftest.$ac_objext |
| 20103 | if { (ac_try="$ac_compile" |
| 20104 | case "(($ac_try" in |
| 20105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20106 | *) ac_try_echo=$ac_try;; |
| 20107 | esac |
| 20108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20109 | (eval "$ac_compile") 2>conftest.er1 |
| 20110 | ac_status=$? |
| 20111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20112 | rm -f conftest.er1 |
| 20113 | cat conftest.err >&5 |
| 20114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20115 | (exit $ac_status); } && |
| 20116 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20117 | { (case "(($ac_try" in |
| 20118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20119 | *) ac_try_echo=$ac_try;; |
| 20120 | esac |
| 20121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20122 | (eval "$ac_try") 2>&5 |
| 20123 | ac_status=$? |
| 20124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20125 | (exit $ac_status); }; } && |
| 20126 | { ac_try='test -s conftest.$ac_objext' |
| 20127 | { (case "(($ac_try" in |
| 20128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20129 | *) ac_try_echo=$ac_try;; |
| 20130 | esac |
| 20131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20132 | (eval "$ac_try") 2>&5 |
| 20133 | ac_status=$? |
| 20134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20135 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20136 | llvm_cv_linux_mixed=no |
| 20137 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20138 | echo "$as_me: failed program was:" >&5 |
| 20139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20140 | |
| 20141 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20142 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20143 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20145 | ac_ext=c |
| 20146 | ac_cpp='$CPP $CPPFLAGS' |
| 20147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20150 | |
| 20151 | |
| 20152 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20153 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20154 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20155 | |
| 20156 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20157 | llvm_cv_target_arch="x86" |
| 20158 | ARCH="x86" |
| 20159 | fi |
| 20160 | fi |
| 20161 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20162 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20163 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20164 | do |
| 20165 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20166 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20167 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20168 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20170 | else |
| 20171 | cat >conftest.$ac_ext <<_ACEOF |
| 20172 | /* confdefs.h. */ |
| 20173 | _ACEOF |
| 20174 | cat confdefs.h >>conftest.$ac_ext |
| 20175 | cat >>conftest.$ac_ext <<_ACEOF |
| 20176 | /* end confdefs.h. */ |
| 20177 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20179 | #define $ac_func innocuous_$ac_func |
| 20180 | |
| 20181 | /* System header to define __stub macros and hopefully few prototypes, |
| 20182 | which can conflict with char $ac_func (); below. |
| 20183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20184 | <limits.h> exists even on freestanding compilers. */ |
| 20185 | |
| 20186 | #ifdef __STDC__ |
| 20187 | # include <limits.h> |
| 20188 | #else |
| 20189 | # include <assert.h> |
| 20190 | #endif |
| 20191 | |
| 20192 | #undef $ac_func |
| 20193 | |
| 20194 | /* Override any GCC internal prototype to avoid an error. |
| 20195 | Use char because int might match the return type of a GCC |
| 20196 | builtin and then its argument prototype would still apply. */ |
| 20197 | #ifdef __cplusplus |
| 20198 | extern "C" |
| 20199 | #endif |
| 20200 | char $ac_func (); |
| 20201 | /* The GNU C library defines this for functions which it implements |
| 20202 | to always fail with ENOSYS. Some functions are actually named |
| 20203 | something starting with __ and the normal name is an alias. */ |
| 20204 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20205 | choke me |
| 20206 | #endif |
| 20207 | |
| 20208 | int |
| 20209 | main () |
| 20210 | { |
| 20211 | return $ac_func (); |
| 20212 | ; |
| 20213 | return 0; |
| 20214 | } |
| 20215 | _ACEOF |
| 20216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20217 | if { (ac_try="$ac_link" |
| 20218 | case "(($ac_try" in |
| 20219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20220 | *) ac_try_echo=$ac_try;; |
| 20221 | esac |
| 20222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20223 | (eval "$ac_link") 2>conftest.er1 |
| 20224 | ac_status=$? |
| 20225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20226 | rm -f conftest.er1 |
| 20227 | cat conftest.err >&5 |
| 20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20229 | (exit $ac_status); } && |
| 20230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20231 | { (case "(($ac_try" in |
| 20232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20233 | *) ac_try_echo=$ac_try;; |
| 20234 | esac |
| 20235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20236 | (eval "$ac_try") 2>&5 |
| 20237 | ac_status=$? |
| 20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20239 | (exit $ac_status); }; } && |
| 20240 | { ac_try='test -s conftest$ac_exeext' |
| 20241 | { (case "(($ac_try" in |
| 20242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20243 | *) ac_try_echo=$ac_try;; |
| 20244 | esac |
| 20245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20246 | (eval "$ac_try") 2>&5 |
| 20247 | ac_status=$? |
| 20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20249 | (exit $ac_status); }; }; then |
| 20250 | eval "$as_ac_var=yes" |
| 20251 | else |
| 20252 | echo "$as_me: failed program was:" >&5 |
| 20253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20254 | |
| 20255 | eval "$as_ac_var=no" |
| 20256 | fi |
| 20257 | |
| 20258 | rm -f core conftest.err conftest.$ac_objext \ |
| 20259 | conftest$ac_exeext conftest.$ac_ext |
| 20260 | fi |
| 20261 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20262 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20263 | echo "${ECHO_T}$ac_res" >&6; } |
| 20264 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20265 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20267 | _ACEOF |
| 20268 | |
| 20269 | fi |
| 20270 | done |
| 20271 | |
| 20272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20273 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20274 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20275 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20277 | else |
| 20278 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20279 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20280 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20281 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 20282 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20283 | if test $? -eq 0 ; then |
| 20284 | llvm_cv_llvmgcc_sanity="yes" |
| 20285 | fi |
| 20286 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20287 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20288 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20289 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20290 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20291 | |
| 20292 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20293 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20294 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20295 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20296 | LLVMCC1=$llvmcc1path |
| 20297 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20298 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20299 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20300 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20301 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20302 | LLVMGCCDIR=$llvmgccdir |
| 20303 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 20304 | 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] | 20305 | LLVMGCC_LANGS=$llvmgcclangs |
| 20306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20307 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20308 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20309 | fi |
| 20310 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20311 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20312 | |
| 20313 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20314 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20315 | |
| 20316 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20317 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20318 | # information into substitutions that will end up in Makefile.config.in |
| 20319 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20320 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20321 | prefix="/usr/local" |
| 20322 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20323 | eval LLVM_PREFIX="${prefix}"; |
| 20324 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20325 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20326 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20327 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20328 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20329 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20330 | eval LLVM_INFODIR="${prefix}/info"; |
| 20331 | eval LLVM_MANDIR="${prefix}/man"; |
| 20332 | LLVM_CONFIGTIME=`date` |
| 20333 | |
| 20334 | |
| 20335 | |
| 20336 | |
| 20337 | |
| 20338 | |
| 20339 | |
| 20340 | |
| 20341 | |
| 20342 | |
| 20343 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20344 | # Place the various directores into the config.h file as #defines so that we |
| 20345 | # can know about the installation paths within LLVM. |
| 20346 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20347 | cat >>confdefs.h <<_ACEOF |
| 20348 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20349 | _ACEOF |
| 20350 | |
| 20351 | |
| 20352 | cat >>confdefs.h <<_ACEOF |
| 20353 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20354 | _ACEOF |
| 20355 | |
| 20356 | |
| 20357 | cat >>confdefs.h <<_ACEOF |
| 20358 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20359 | _ACEOF |
| 20360 | |
| 20361 | |
| 20362 | cat >>confdefs.h <<_ACEOF |
| 20363 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20364 | _ACEOF |
| 20365 | |
| 20366 | |
| 20367 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20368 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20369 | _ACEOF |
| 20370 | |
| 20371 | |
| 20372 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20373 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20374 | _ACEOF |
| 20375 | |
| 20376 | |
| 20377 | cat >>confdefs.h <<_ACEOF |
| 20378 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20379 | _ACEOF |
| 20380 | |
| 20381 | |
| 20382 | cat >>confdefs.h <<_ACEOF |
| 20383 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20384 | _ACEOF |
| 20385 | |
| 20386 | |
| 20387 | cat >>confdefs.h <<_ACEOF |
| 20388 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20389 | _ACEOF |
| 20390 | |
| 20391 | |
| 20392 | cat >>confdefs.h <<_ACEOF |
| 20393 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20394 | _ACEOF |
| 20395 | |
| 20396 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20397 | cat >>confdefs.h <<_ACEOF |
| 20398 | #define LLVM_HOSTTRIPLE "$host" |
| 20399 | _ACEOF |
| 20400 | |
| 20401 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20402 | # Determine which bindings to build. |
| 20403 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20404 | BINDINGS_TO_BUILD="" |
| 20405 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20406 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20407 | fi |
| 20408 | fi |
| 20409 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20410 | |
| 20411 | |
| 20412 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20413 | # other files. |
| 20414 | ALL_BINDINGS=ocaml |
| 20415 | |
| 20416 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20417 | # Do any work necessary to ensure that bindings have what they need. |
| 20418 | binding_prereqs_failed=0 |
| 20419 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20420 | case "$a_binding" in |
| 20421 | ocaml) |
| 20422 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20423 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20424 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20425 | binding_prereqs_failed=1 |
| 20426 | fi |
| 20427 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20428 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20429 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20430 | binding_prereqs_failed=1 |
| 20431 | fi |
| 20432 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20433 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20434 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20435 | fi |
| 20436 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20437 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20438 | |
| 20439 | else |
| 20440 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20441 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20442 | then |
| 20443 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20444 | OCAML_LIBDIR=$ocaml_stdlib |
| 20445 | |
| 20446 | else |
| 20447 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20448 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20449 | |
| 20450 | fi |
| 20451 | fi |
| 20452 | ;; |
| 20453 | esac |
| 20454 | done |
| 20455 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20456 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20457 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20458 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20459 | fi |
| 20460 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20461 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20462 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20463 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20465 | else |
| 20466 | ac_ext=cpp |
| 20467 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20468 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20469 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20470 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20471 | |
| 20472 | oldcxxflags="$CXXFLAGS" |
| 20473 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20474 | cat >conftest.$ac_ext <<_ACEOF |
| 20475 | /* confdefs.h. */ |
| 20476 | _ACEOF |
| 20477 | cat confdefs.h >>conftest.$ac_ext |
| 20478 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20479 | /* end confdefs.h. */ |
| 20480 | |
| 20481 | int |
| 20482 | main () |
| 20483 | { |
| 20484 | |
| 20485 | ; |
| 20486 | return 0; |
| 20487 | } |
| 20488 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20489 | rm -f conftest.$ac_objext |
| 20490 | if { (ac_try="$ac_compile" |
| 20491 | case "(($ac_try" in |
| 20492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20493 | *) ac_try_echo=$ac_try;; |
| 20494 | esac |
| 20495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20496 | (eval "$ac_compile") 2>conftest.er1 |
| 20497 | ac_status=$? |
| 20498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20499 | rm -f conftest.er1 |
| 20500 | cat conftest.err >&5 |
| 20501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20502 | (exit $ac_status); } && |
| 20503 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20504 | { (case "(($ac_try" in |
| 20505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20506 | *) ac_try_echo=$ac_try;; |
| 20507 | esac |
| 20508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20509 | (eval "$ac_try") 2>&5 |
| 20510 | ac_status=$? |
| 20511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20512 | (exit $ac_status); }; } && |
| 20513 | { ac_try='test -s conftest.$ac_objext' |
| 20514 | { (case "(($ac_try" in |
| 20515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20516 | *) ac_try_echo=$ac_try;; |
| 20517 | esac |
| 20518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20519 | (eval "$ac_try") 2>&5 |
| 20520 | ac_status=$? |
| 20521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20522 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20523 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20524 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20525 | echo "$as_me: failed program was:" >&5 |
| 20526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20527 | |
| 20528 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20529 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20530 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20532 | CXXFLAGS="$oldcxxflags" |
| 20533 | ac_ext=c |
| 20534 | ac_cpp='$CPP $CPPFLAGS' |
| 20535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20538 | |
| 20539 | |
| 20540 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20541 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20542 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20543 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20544 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20545 | |
| 20546 | else |
| 20547 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20548 | |
| 20549 | fi |
| 20550 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20551 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20552 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20553 | RPATH="-Wl,-R" |
| 20554 | else |
| 20555 | RPATH="-Wl,-rpath" |
| 20556 | fi |
| 20557 | |
| 20558 | |
| 20559 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20560 | RDYNAMIC="-Wl,-export-dynamic" |
| 20561 | else |
| 20562 | RDYNAMIC="" |
| 20563 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20564 | |
| 20565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20566 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 20567 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20568 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 20569 | |
| 20570 | |
| 20571 | |
| 20572 | |
| 20573 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20574 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20575 | |
| 20576 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20577 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20578 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20579 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20580 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20581 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20582 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20583 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20585 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20586 | |
| 20587 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20588 | ac_config_files="$ac_config_files llvm.spec" |
| 20589 | |
| 20590 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 20591 | ac_config_files="$ac_config_files tools/llvmc/src/Base.td" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20592 | |
| 20593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20594 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20595 | |
| 20596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20597 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20599 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20600 | |
| 20601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20602 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20603 | |
| 20604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20605 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20606 | |
| 20607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20608 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20609 | |
| 20610 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20611 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20612 | |
| 20613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20614 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20615 | |
| 20616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20617 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20618 | |
| 20619 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20620 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20621 | |
| 20622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20623 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20624 | |
| 20625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20626 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20627 | |
| 20628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20629 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20630 | |
| 20631 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20632 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20633 | |
| 20634 | |
| 20635 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20636 | |
| 20637 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20638 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20639 | cat >confcache <<\_ACEOF |
| 20640 | # This file is a shell script that caches the results of configure |
| 20641 | # tests run on this system so they can be shared between configure |
| 20642 | # scripts and configure runs, see configure's option --config-cache. |
| 20643 | # It is not useful on other systems. If it contains results you don't |
| 20644 | # want to keep, you may remove or edit it. |
| 20645 | # |
| 20646 | # config.status only pays attention to the cache file if you give it |
| 20647 | # the --recheck option to rerun configure. |
| 20648 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20649 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20650 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20651 | # following values. |
| 20652 | |
| 20653 | _ACEOF |
| 20654 | |
| 20655 | # The following way of writing the cache mishandles newlines in values, |
| 20656 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20657 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20658 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20659 | # 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] | 20660 | ( |
| 20661 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20662 | eval ac_val=\$$ac_var |
| 20663 | case $ac_val in #( |
| 20664 | *${as_nl}*) |
| 20665 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20666 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20667 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20668 | esac |
| 20669 | case $ac_var in #( |
| 20670 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20671 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20672 | esac ;; |
| 20673 | esac |
| 20674 | done |
| 20675 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20676 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20677 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20678 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20679 | # `set' does not quote correctly, so add quotes (double-quote |
| 20680 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20681 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20682 | "s/'/'\\\\''/g; |
| 20683 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20684 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20685 | *) |
| 20686 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20687 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20688 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20689 | esac | |
| 20690 | sort |
| 20691 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20692 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20693 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20694 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20695 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20696 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20697 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20698 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20699 | :end' >>confcache |
| 20700 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20701 | if test -w "$cache_file"; then |
| 20702 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20703 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20704 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20705 | cat confcache >$cache_file |
| 20706 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20707 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20708 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20709 | fi |
| 20710 | fi |
| 20711 | rm -f confcache |
| 20712 | |
| 20713 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20714 | # Let make expand exec_prefix. |
| 20715 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20717 | DEFS=-DHAVE_CONFIG_H |
| 20718 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20719 | ac_libobjs= |
| 20720 | ac_ltlibobjs= |
| 20721 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20722 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20723 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20724 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20725 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20726 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20727 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20728 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20729 | done |
| 20730 | LIBOBJS=$ac_libobjs |
| 20731 | |
| 20732 | LTLIBOBJS=$ac_ltlibobjs |
| 20733 | |
| 20734 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20735 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20736 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20737 | Usually this means the macro was only invoked conditionally." >&5 |
| 20738 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20739 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20740 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20741 | fi |
| 20742 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20743 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20744 | Usually this means the macro was only invoked conditionally." >&5 |
| 20745 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20746 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20747 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20748 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20749 | |
| 20750 | : ${CONFIG_STATUS=./config.status} |
| 20751 | ac_clean_files_save=$ac_clean_files |
| 20752 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20753 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20754 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20755 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20756 | #! $SHELL |
| 20757 | # Generated by $as_me. |
| 20758 | # Run this file to recreate the current configuration. |
| 20759 | # Compiler output produced by configure, useful for debugging |
| 20760 | # configure, is in config.log if it exists. |
| 20761 | |
| 20762 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20763 | ac_cs_recheck=false |
| 20764 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20765 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20766 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20768 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20769 | ## --------------------- ## |
| 20770 | ## M4sh Initialization. ## |
| 20771 | ## --------------------- ## |
| 20772 | |
| 20773 | # Be Bourne compatible |
| 20774 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20775 | emulate sh |
| 20776 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20777 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20778 | # is contrary to our usage. Disable this feature. |
| 20779 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20780 | setopt NO_GLOB_SUBST |
| 20781 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20782 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20783 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20784 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20785 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20788 | # PATH needs CR |
| 20789 | # Avoid depending upon Character Ranges. |
| 20790 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20791 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20792 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20793 | as_cr_digits='0123456789' |
| 20794 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20795 | |
| 20796 | # The user is always right. |
| 20797 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20798 | echo "#! /bin/sh" >conf$$.sh |
| 20799 | echo "exit 0" >>conf$$.sh |
| 20800 | chmod +x conf$$.sh |
| 20801 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20802 | PATH_SEPARATOR=';' |
| 20803 | else |
| 20804 | PATH_SEPARATOR=: |
| 20805 | fi |
| 20806 | rm -f conf$$.sh |
| 20807 | fi |
| 20808 | |
| 20809 | # Support unset when possible. |
| 20810 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20811 | as_unset=unset |
| 20812 | else |
| 20813 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20814 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20816 | |
| 20817 | # IFS |
| 20818 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20819 | # there to prevent editors from complaining about space-tab. |
| 20820 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20821 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20822 | as_nl=' |
| 20823 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20824 | IFS=" "" $as_nl" |
| 20825 | |
| 20826 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20827 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20828 | *[\\/]* ) as_myself=$0 ;; |
| 20829 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20830 | for as_dir in $PATH |
| 20831 | do |
| 20832 | IFS=$as_save_IFS |
| 20833 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20834 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20835 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20836 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20837 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20838 | ;; |
| 20839 | esac |
| 20840 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20841 | # in which case we are not to be found in the path. |
| 20842 | if test "x$as_myself" = x; then |
| 20843 | as_myself=$0 |
| 20844 | fi |
| 20845 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20846 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20847 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20848 | fi |
| 20849 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20850 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20851 | for as_var in ENV MAIL MAILPATH |
| 20852 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20853 | done |
| 20854 | PS1='$ ' |
| 20855 | PS2='> ' |
| 20856 | PS4='+ ' |
| 20857 | |
| 20858 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20859 | for as_var in \ |
| 20860 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20861 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20862 | LC_TELEPHONE LC_TIME |
| 20863 | do |
| 20864 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20865 | eval $as_var=C; export $as_var |
| 20866 | else |
| 20867 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20868 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20869 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20872 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20873 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20874 | as_expr=expr |
| 20875 | else |
| 20876 | as_expr=false |
| 20877 | fi |
| 20878 | |
| 20879 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20880 | as_basename=basename |
| 20881 | else |
| 20882 | as_basename=false |
| 20883 | fi |
| 20884 | |
| 20885 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20886 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20887 | as_me=`$as_basename -- "$0" || |
| 20888 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20889 | X"$0" : 'X\(//\)$' \| \ |
| 20890 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20891 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20892 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20893 | s//\1/ |
| 20894 | q |
| 20895 | } |
| 20896 | /^X\/\(\/\/\)$/{ |
| 20897 | s//\1/ |
| 20898 | q |
| 20899 | } |
| 20900 | /^X\/\(\/\).*/{ |
| 20901 | s//\1/ |
| 20902 | q |
| 20903 | } |
| 20904 | s/.*/./; q'` |
| 20905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20906 | # CDPATH. |
| 20907 | $as_unset CDPATH |
| 20908 | |
| 20909 | |
| 20910 | |
| 20911 | as_lineno_1=$LINENO |
| 20912 | as_lineno_2=$LINENO |
| 20913 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20914 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20915 | |
| 20916 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20917 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20918 | # line-number line after each line using $LINENO; the second 'sed' |
| 20919 | # does the real work. The second script uses 'N' to pair each |
| 20920 | # line-number line with the line containing $LINENO, and appends |
| 20921 | # trailing '-' during substitution so that $LINENO is not a special |
| 20922 | # case at line end. |
| 20923 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20924 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20925 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20926 | sed -n ' |
| 20927 | p |
| 20928 | /[$]LINENO/= |
| 20929 | ' <$as_myself | |
| 20930 | sed ' |
| 20931 | s/[$]LINENO.*/&-/ |
| 20932 | t lineno |
| 20933 | b |
| 20934 | :lineno |
| 20935 | N |
| 20936 | :loop |
| 20937 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20938 | t loop |
| 20939 | s/-\n.*// |
| 20940 | ' >$as_me.lineno && |
| 20941 | chmod +x "$as_me.lineno" || |
| 20942 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20943 | { (exit 1); exit 1; }; } |
| 20944 | |
| 20945 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20946 | # (the dirname of $[0] is not the place where we might find the |
| 20947 | # original and so on. Autoconf is especially sensitive to this). |
| 20948 | . "./$as_me.lineno" |
| 20949 | # Exit status is that of the last command. |
| 20950 | exit |
| 20951 | } |
| 20952 | |
| 20953 | |
| 20954 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20955 | as_dirname=dirname |
| 20956 | else |
| 20957 | as_dirname=false |
| 20958 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20959 | |
| 20960 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20961 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20962 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20963 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20964 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20965 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20966 | esac;; |
| 20967 | *) |
| 20968 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20969 | esac |
| 20970 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20971 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20972 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20973 | as_expr=expr |
| 20974 | else |
| 20975 | as_expr=false |
| 20976 | fi |
| 20977 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20978 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20979 | if test -d conf$$.dir; then |
| 20980 | rm -f conf$$.dir/conf$$.file |
| 20981 | else |
| 20982 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20983 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20984 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20985 | echo >conf$$.file |
| 20986 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20987 | as_ln_s='ln -s' |
| 20988 | # ... but there are two gotchas: |
| 20989 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20990 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20991 | # In both cases, we have to default to `cp -p'. |
| 20992 | 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] | 20993 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20994 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20995 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20996 | else |
| 20997 | as_ln_s='cp -p' |
| 20998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20999 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21000 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21001 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21002 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21003 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21004 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21005 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21006 | as_mkdir_p=false |
| 21007 | fi |
| 21008 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21009 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21010 | # systems may use methods other than mode bits to determine executability. |
| 21011 | cat >conf$$.file <<_ASEOF |
| 21012 | #! /bin/sh |
| 21013 | exit 0 |
| 21014 | _ASEOF |
| 21015 | chmod +x conf$$.file |
| 21016 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21017 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21018 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21019 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21020 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21021 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21022 | |
| 21023 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21024 | 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] | 21025 | |
| 21026 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21027 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21028 | |
| 21029 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21030 | exec 6>&1 |
| 21031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21032 | # 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] | 21033 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21034 | # values after options handling. |
| 21035 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21036 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21037 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21038 | |
| 21039 | CONFIG_FILES = $CONFIG_FILES |
| 21040 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21041 | CONFIG_LINKS = $CONFIG_LINKS |
| 21042 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21043 | $ $0 $@ |
| 21044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21045 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21046 | " |
| 21047 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21048 | _ACEOF |
| 21049 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21050 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21051 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21052 | config_files="$ac_config_files" |
| 21053 | config_headers="$ac_config_headers" |
| 21054 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21055 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21056 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21057 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21058 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21059 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21060 | \`$as_me' instantiates files from templates according to the |
| 21061 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21062 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21063 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21064 | |
| 21065 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21066 | -V, --version print version number, then exit |
| 21067 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21068 | -d, --debug don't remove temporary files |
| 21069 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21070 | --file=FILE[:TEMPLATE] |
| 21071 | instantiate the configuration file FILE |
| 21072 | --header=FILE[:TEMPLATE] |
| 21073 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21074 | |
| 21075 | Configuration files: |
| 21076 | $config_files |
| 21077 | |
| 21078 | Configuration headers: |
| 21079 | $config_headers |
| 21080 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21081 | Configuration commands: |
| 21082 | $config_commands |
| 21083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21084 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21086 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21087 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21088 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21089 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21090 | configured by $0, generated by GNU Autoconf 2.60, |
| 21091 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21092 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21093 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21094 | This config.status script is free software; the Free Software Foundation |
| 21095 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21096 | |
| 21097 | ac_pwd='$ac_pwd' |
| 21098 | srcdir='$srcdir' |
| 21099 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21100 | _ACEOF |
| 21101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21102 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21103 | # If no file are specified by the user, then we need to provide default |
| 21104 | # value. By we need to know if files were specified by the user. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21105 | ac_need_defaults=: |
| 21106 | while test $# != 0 |
| 21107 | do |
| 21108 | case $1 in |
| 21109 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21110 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21111 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21112 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21113 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21114 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21115 | ac_option=$1 |
| 21116 | ac_optarg=$2 |
| 21117 | ac_shift=shift |
| 21118 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21119 | esac |
| 21120 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21121 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21122 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21123 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21124 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21125 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21126 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21127 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21128 | debug=: ;; |
| 21129 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21130 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21131 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21132 | ac_need_defaults=false;; |
| 21133 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21134 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21135 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21136 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21137 | --he | --h) |
| 21138 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21139 | { echo "$as_me: error: ambiguous option: $1 |
| 21140 | Try \`$0 --help' for more information." >&2 |
| 21141 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21142 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21143 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21145 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21146 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21147 | |
| 21148 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21149 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21150 | Try \`$0 --help' for more information." >&2 |
| 21151 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21152 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21153 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21154 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21155 | |
| 21156 | esac |
| 21157 | shift |
| 21158 | done |
| 21159 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21160 | ac_configure_extra_args= |
| 21161 | |
| 21162 | if $ac_cs_silent; then |
| 21163 | exec 6>/dev/null |
| 21164 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21165 | fi |
| 21166 | |
| 21167 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21168 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21169 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21170 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21171 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21172 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21173 | 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] | 21174 | fi |
| 21175 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21176 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21177 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21178 | exec 5>>config.log |
| 21179 | { |
| 21180 | echo |
| 21181 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21182 | ## Running $as_me. ## |
| 21183 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21184 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21185 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21187 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21188 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21189 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21191 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21192 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21193 | |
| 21194 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21195 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21196 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21197 | |
| 21198 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21199 | for ac_config_target in $ac_config_targets |
| 21200 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | case $ac_config_target in |
| 21202 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21203 | "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21204 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21205 | "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] | 21206 | "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] | 21207 | "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] | 21208 | "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] | 21209 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21210 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 21211 | "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21212 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21213 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21214 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21215 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21216 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21217 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21218 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21219 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21220 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21221 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21222 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21223 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21224 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21225 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21226 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21227 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21228 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21229 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21230 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21231 | esac |
| 21232 | done |
| 21233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21235 | # If the user did not use the arguments to specify the items to instantiate, |
| 21236 | # then the envvar interface is used. Set only those that are not. |
| 21237 | # We use the long form for the default assignment because of an extremely |
| 21238 | # bizarre bug on SunOS 4.1.3. |
| 21239 | if $ac_need_defaults; then |
| 21240 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21241 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21242 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21243 | fi |
| 21244 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21245 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21246 | # 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] | 21247 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21248 | # Hook for its removal unless debugging. |
| 21249 | # Note that there is a small window in which the directory will not be cleaned: |
| 21250 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21251 | $debug || |
| 21252 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21253 | tmp= |
| 21254 | trap 'exit_status=$? |
| 21255 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21256 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21257 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21258 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21259 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21260 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21261 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21262 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21263 | test -n "$tmp" && test -d "$tmp" |
| 21264 | } || |
| 21265 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21266 | tmp=./conf$$-$RANDOM |
| 21267 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21268 | } || |
| 21269 | { |
| 21270 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21271 | { (exit 1); exit 1; } |
| 21272 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21273 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21274 | # |
| 21275 | # Set up the sed scripts for CONFIG_FILES section. |
| 21276 | # |
| 21277 | |
| 21278 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21279 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21280 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21281 | |
| 21282 | _ACEOF |
| 21283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21284 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21286 | ac_delim='%!_!# ' |
| 21287 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21288 | cat >conf$$subs.sed <<_ACEOF |
| 21289 | SHELL!$SHELL$ac_delim |
| 21290 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21291 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21292 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21293 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21294 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21295 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21296 | exec_prefix!$exec_prefix$ac_delim |
| 21297 | prefix!$prefix$ac_delim |
| 21298 | program_transform_name!$program_transform_name$ac_delim |
| 21299 | bindir!$bindir$ac_delim |
| 21300 | sbindir!$sbindir$ac_delim |
| 21301 | libexecdir!$libexecdir$ac_delim |
| 21302 | datarootdir!$datarootdir$ac_delim |
| 21303 | datadir!$datadir$ac_delim |
| 21304 | sysconfdir!$sysconfdir$ac_delim |
| 21305 | sharedstatedir!$sharedstatedir$ac_delim |
| 21306 | localstatedir!$localstatedir$ac_delim |
| 21307 | includedir!$includedir$ac_delim |
| 21308 | oldincludedir!$oldincludedir$ac_delim |
| 21309 | docdir!$docdir$ac_delim |
| 21310 | infodir!$infodir$ac_delim |
| 21311 | htmldir!$htmldir$ac_delim |
| 21312 | dvidir!$dvidir$ac_delim |
| 21313 | pdfdir!$pdfdir$ac_delim |
| 21314 | psdir!$psdir$ac_delim |
| 21315 | libdir!$libdir$ac_delim |
| 21316 | localedir!$localedir$ac_delim |
| 21317 | mandir!$mandir$ac_delim |
| 21318 | DEFS!$DEFS$ac_delim |
| 21319 | ECHO_C!$ECHO_C$ac_delim |
| 21320 | ECHO_N!$ECHO_N$ac_delim |
| 21321 | ECHO_T!$ECHO_T$ac_delim |
| 21322 | LIBS!$LIBS$ac_delim |
| 21323 | build_alias!$build_alias$ac_delim |
| 21324 | host_alias!$host_alias$ac_delim |
| 21325 | target_alias!$target_alias$ac_delim |
| 21326 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21327 | subdirs!$subdirs$ac_delim |
| 21328 | build!$build$ac_delim |
| 21329 | build_cpu!$build_cpu$ac_delim |
| 21330 | build_vendor!$build_vendor$ac_delim |
| 21331 | build_os!$build_os$ac_delim |
| 21332 | host!$host$ac_delim |
| 21333 | host_cpu!$host_cpu$ac_delim |
| 21334 | host_vendor!$host_vendor$ac_delim |
| 21335 | host_os!$host_os$ac_delim |
| 21336 | target!$target$ac_delim |
| 21337 | target_cpu!$target_cpu$ac_delim |
| 21338 | target_vendor!$target_vendor$ac_delim |
| 21339 | target_os!$target_os$ac_delim |
| 21340 | OS!$OS$ac_delim |
| 21341 | HOST_OS!$HOST_OS$ac_delim |
| 21342 | TARGET_OS!$TARGET_OS$ac_delim |
| 21343 | LINKALL!$LINKALL$ac_delim |
| 21344 | NOLINKALL!$NOLINKALL$ac_delim |
| 21345 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21346 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21347 | ARCH!$ARCH$ac_delim |
| 21348 | ENDIAN!$ENDIAN$ac_delim |
| 21349 | CC!$CC$ac_delim |
| 21350 | CFLAGS!$CFLAGS$ac_delim |
| 21351 | LDFLAGS!$LDFLAGS$ac_delim |
| 21352 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21353 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21354 | EXEEXT!$EXEEXT$ac_delim |
| 21355 | OBJEXT!$OBJEXT$ac_delim |
| 21356 | CPP!$CPP$ac_delim |
| 21357 | GREP!$GREP$ac_delim |
| 21358 | EGREP!$EGREP$ac_delim |
| 21359 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21360 | BUILD_CC!$BUILD_CC$ac_delim |
| 21361 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21362 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21363 | CVSBUILD!$CVSBUILD$ac_delim |
| 21364 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21365 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21366 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21367 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21368 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21369 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21370 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21371 | JIT!$JIT$ac_delim |
| 21372 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21373 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21374 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21375 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21376 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21377 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21378 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21379 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21380 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21381 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21382 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21383 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21384 | CLANGPATH!$CLANGPATH$ac_delim |
| 21385 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21386 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21387 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21388 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21389 | break |
| 21390 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21391 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21392 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21393 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21394 | else |
| 21395 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21396 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21397 | done |
| 21398 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21399 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21400 | if test -n "$ac_eof"; then |
| 21401 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21402 | ac_eof=`expr $ac_eof + 1` |
| 21403 | fi |
| 21404 | |
| 21405 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21406 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21407 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21408 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21409 | sed ' |
| 21410 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21411 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21412 | :n |
| 21413 | t n |
| 21414 | s/'"$ac_delim"'$/,g/; t |
| 21415 | s/$/\\/; p |
| 21416 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21417 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21418 | rm -f conf$$subs.sed |
| 21419 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21420 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21421 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21422 | |
| 21423 | |
| 21424 | ac_delim='%!_!# ' |
| 21425 | for ac_last_try in false false false false false :; do |
| 21426 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21427 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21428 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21429 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21430 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21431 | CXX!$CXX$ac_delim |
| 21432 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21433 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21434 | NM!$NM$ac_delim |
| 21435 | ifGNUmake!$ifGNUmake$ac_delim |
| 21436 | LN_S!$LN_S$ac_delim |
| 21437 | CMP!$CMP$ac_delim |
| 21438 | CP!$CP$ac_delim |
| 21439 | DATE!$DATE$ac_delim |
| 21440 | FIND!$FIND$ac_delim |
| 21441 | MKDIR!$MKDIR$ac_delim |
| 21442 | MV!$MV$ac_delim |
| 21443 | RANLIB!$RANLIB$ac_delim |
| 21444 | AR!$AR$ac_delim |
| 21445 | RM!$RM$ac_delim |
| 21446 | SED!$SED$ac_delim |
| 21447 | TAR!$TAR$ac_delim |
| 21448 | BINPWD!$BINPWD$ac_delim |
| 21449 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21450 | DOT!$DOT$ac_delim |
| 21451 | FDP!$FDP$ac_delim |
| 21452 | NEATO!$NEATO$ac_delim |
| 21453 | TWOPI!$TWOPI$ac_delim |
| 21454 | CIRCO!$CIRCO$ac_delim |
| 21455 | GV!$GV$ac_delim |
| 21456 | DOTTY!$DOTTY$ac_delim |
| 21457 | PERL!$PERL$ac_delim |
| 21458 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21459 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21460 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21461 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21462 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21463 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21464 | DOXYGEN!$DOXYGEN$ac_delim |
| 21465 | GROFF!$GROFF$ac_delim |
| 21466 | GZIP!$GZIP$ac_delim |
| 21467 | POD2HTML!$POD2HTML$ac_delim |
| 21468 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21469 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21470 | RUNTEST!$RUNTEST$ac_delim |
| 21471 | TCLSH!$TCLSH$ac_delim |
| 21472 | ZIP!$ZIP$ac_delim |
| 21473 | OCAMLC!$OCAMLC$ac_delim |
| 21474 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21475 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21476 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21477 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21478 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21479 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21480 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21481 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21482 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21483 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21484 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21485 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21486 | LLVMGCC!$LLVMGCC$ac_delim |
| 21487 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21488 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21489 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21490 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21491 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21492 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21493 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21494 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21495 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21496 | LLVMCC1!$LLVMCC1$ac_delim |
| 21497 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21498 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21499 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21500 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21501 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21502 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21503 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21504 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21505 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21506 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21507 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21508 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21509 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21510 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21511 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21512 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21513 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21514 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21515 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21516 | RPATH!$RPATH$ac_delim |
| 21517 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21518 | LIBOBJS!$LIBOBJS$ac_delim |
| 21519 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21520 | _ACEOF |
| 21521 | |
Mikhail Glushenkov | 4b643c0 | 2010-08-15 07:07:17 +0000 | [diff] [blame] | 21522 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21523 | break |
| 21524 | elif $ac_last_try; then |
| 21525 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21526 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21527 | { (exit 1); exit 1; }; } |
| 21528 | else |
| 21529 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21530 | fi |
| 21531 | done |
| 21532 | |
| 21533 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21534 | if test -n "$ac_eof"; then |
| 21535 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21536 | ac_eof=`expr $ac_eof + 1` |
| 21537 | fi |
| 21538 | |
| 21539 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21540 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21541 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21542 | _ACEOF |
| 21543 | sed ' |
| 21544 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21545 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21546 | :n |
| 21547 | t n |
| 21548 | s/'"$ac_delim"'$/,g/; t |
| 21549 | s/$/\\/; p |
| 21550 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21551 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21552 | rm -f conf$$subs.sed |
| 21553 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21554 | :end |
| 21555 | s/|#_!!_#|//g |
| 21556 | CEOF$ac_eof |
| 21557 | _ACEOF |
| 21558 | |
| 21559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21560 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21561 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21562 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21563 | # (actually we leave an empty line to preserve line numbers). |
| 21564 | if test "x$srcdir" = x.; then |
| 21565 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21566 | s/:*\$(srcdir):*/:/ |
| 21567 | s/:*\${srcdir}:*/:/ |
| 21568 | s/:*@srcdir@:*/:/ |
| 21569 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21570 | s/:*$// |
| 21571 | s/^[^=]*=[ ]*$// |
| 21572 | }' |
| 21573 | fi |
| 21574 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21575 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21576 | fi # test -n "$CONFIG_FILES" |
| 21577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21578 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21579 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21580 | do |
| 21581 | case $ac_tag in |
| 21582 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21583 | esac |
| 21584 | case $ac_mode$ac_tag in |
| 21585 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21586 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21587 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21588 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21589 | :[FH]-) ac_tag=-:-;; |
| 21590 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21591 | esac |
| 21592 | ac_save_IFS=$IFS |
| 21593 | IFS=: |
| 21594 | set x $ac_tag |
| 21595 | IFS=$ac_save_IFS |
| 21596 | shift |
| 21597 | ac_file=$1 |
| 21598 | shift |
| 21599 | |
| 21600 | case $ac_mode in |
| 21601 | :L) ac_source=$1;; |
| 21602 | :[FH]) |
| 21603 | ac_file_inputs= |
| 21604 | for ac_f |
| 21605 | do |
| 21606 | case $ac_f in |
| 21607 | -) ac_f="$tmp/stdin";; |
| 21608 | *) # Look for the file first in the build tree, then in the source tree |
| 21609 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21610 | # because $ac_f cannot contain `:'. |
| 21611 | test -f "$ac_f" || |
| 21612 | case $ac_f in |
| 21613 | [\\/$]*) false;; |
| 21614 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21615 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21616 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21617 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21618 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21619 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21620 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21621 | done |
| 21622 | |
| 21623 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21624 | # use $as_me), people would be surprised to read: |
| 21625 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21626 | configure_input="Generated from "`IFS=: |
| 21627 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21628 | if test x"$ac_file" != x-; then |
| 21629 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21630 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21631 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21632 | fi |
| 21633 | |
| 21634 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21635 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21636 | esac |
| 21637 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21638 | esac |
| 21639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21640 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21641 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21642 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21643 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21645 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21647 | s//\1/ |
| 21648 | q |
| 21649 | } |
| 21650 | /^X\(\/\/\)[^/].*/{ |
| 21651 | s//\1/ |
| 21652 | q |
| 21653 | } |
| 21654 | /^X\(\/\/\)$/{ |
| 21655 | s//\1/ |
| 21656 | q |
| 21657 | } |
| 21658 | /^X\(\/\).*/{ |
| 21659 | s//\1/ |
| 21660 | q |
| 21661 | } |
| 21662 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21663 | { as_dir="$ac_dir" |
| 21664 | case $as_dir in #( |
| 21665 | -*) as_dir=./$as_dir;; |
| 21666 | esac |
| 21667 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21668 | as_dirs= |
| 21669 | while :; do |
| 21670 | case $as_dir in #( |
| 21671 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21672 | *) as_qdir=$as_dir;; |
| 21673 | esac |
| 21674 | as_dirs="'$as_qdir' $as_dirs" |
| 21675 | as_dir=`$as_dirname -- "$as_dir" || |
| 21676 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21677 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21678 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21679 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21680 | echo X"$as_dir" | |
| 21681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21682 | s//\1/ |
| 21683 | q |
| 21684 | } |
| 21685 | /^X\(\/\/\)[^/].*/{ |
| 21686 | s//\1/ |
| 21687 | q |
| 21688 | } |
| 21689 | /^X\(\/\/\)$/{ |
| 21690 | s//\1/ |
| 21691 | q |
| 21692 | } |
| 21693 | /^X\(\/\).*/{ |
| 21694 | s//\1/ |
| 21695 | q |
| 21696 | } |
| 21697 | s/.*/./; q'` |
| 21698 | test -d "$as_dir" && break |
| 21699 | done |
| 21700 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21701 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21702 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21703 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21704 | ac_builddir=. |
| 21705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21706 | case "$ac_dir" in |
| 21707 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21708 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21709 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21710 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21711 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21712 | case $ac_top_builddir_sub in |
| 21713 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21714 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21715 | esac ;; |
| 21716 | esac |
| 21717 | ac_abs_top_builddir=$ac_pwd |
| 21718 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21719 | # for backward compatibility: |
| 21720 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21721 | |
| 21722 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21723 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21724 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21725 | ac_top_srcdir=$ac_top_builddir_sub |
| 21726 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21727 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21728 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21729 | ac_top_srcdir=$srcdir |
| 21730 | ac_abs_top_srcdir=$srcdir ;; |
| 21731 | *) # Relative name. |
| 21732 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21733 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21734 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21735 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21736 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21738 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21739 | case $ac_mode in |
| 21740 | :F) |
| 21741 | # |
| 21742 | # CONFIG_FILE |
| 21743 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21744 | |
| 21745 | case $INSTALL in |
| 21746 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21747 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21748 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21749 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21751 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21752 | # If the template does not know about datarootdir, expand it. |
| 21753 | # FIXME: This hack should be removed a few years after 2.60. |
| 21754 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21755 | |
| 21756 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21757 | p |
| 21758 | q |
| 21759 | } |
| 21760 | /@datadir@/p |
| 21761 | /@docdir@/p |
| 21762 | /@infodir@/p |
| 21763 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21764 | /@mandir@/p |
| 21765 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21766 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21767 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21768 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21769 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21771 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21772 | ac_datarootdir_hack=' |
| 21773 | s&@datadir@&$datadir&g |
| 21774 | s&@docdir@&$docdir&g |
| 21775 | s&@infodir@&$infodir&g |
| 21776 | s&@localedir@&$localedir&g |
| 21777 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21778 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21779 | esac |
| 21780 | _ACEOF |
| 21781 | |
| 21782 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21783 | # Shell code in configure.ac might set extrasub. |
| 21784 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21785 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21786 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21787 | $extrasub |
| 21788 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21789 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21790 | :t |
| 21791 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21792 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21793 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21794 | s&@srcdir@&$ac_srcdir&;t t |
| 21795 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21796 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21797 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21798 | s&@builddir@&$ac_builddir&;t t |
| 21799 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21800 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21801 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21802 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21803 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21805 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21806 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21807 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21808 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21809 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21810 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21811 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21813 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21814 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21816 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21817 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21818 | ;; |
| 21819 | :H) |
| 21820 | # |
| 21821 | # CONFIG_HEADER |
| 21822 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21823 | _ACEOF |
| 21824 | |
| 21825 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21826 | # substitutes the proper values into config.h.in to produce config.h. |
| 21827 | rm -f conftest.defines conftest.tail |
| 21828 | # First, append a space to every undef/define line, to ease matching. |
| 21829 | echo 's/$/ /' >conftest.defines |
| 21830 | # Then, protect against being on the right side of a sed subst, or in |
| 21831 | # an unquoted here document, in config.status. If some macros were |
| 21832 | # called several times there might be several #defines for the same |
| 21833 | # symbol, which is useless. But do not sort them, since the last |
| 21834 | # AC_DEFINE must be honored. |
| 21835 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21836 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21837 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21838 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21839 | # just an empty string. |
| 21840 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21841 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21842 | ac_dC=' ' |
| 21843 | ac_dD=' ,' |
| 21844 | |
| 21845 | uniq confdefs.h | |
| 21846 | sed -n ' |
| 21847 | t rset |
| 21848 | :rset |
| 21849 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21850 | t ok |
| 21851 | d |
| 21852 | :ok |
| 21853 | s/[\\&,]/\\&/g |
| 21854 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21855 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21856 | ' >>conftest.defines |
| 21857 | |
| 21858 | # Remove the space that was appended to ease matching. |
| 21859 | # Then replace #undef with comments. This is necessary, for |
| 21860 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21861 | # on some systems where configure will not decide to define it. |
| 21862 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21863 | echo 's/ $// |
| 21864 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21865 | |
| 21866 | # Break up conftest.defines: |
| 21867 | ac_max_sed_lines=50 |
| 21868 | |
| 21869 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21870 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21871 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21872 | # et cetera. |
| 21873 | ac_in='$ac_file_inputs' |
| 21874 | ac_out='"$tmp/out1"' |
| 21875 | ac_nxt='"$tmp/out2"' |
| 21876 | |
| 21877 | while : |
| 21878 | do |
| 21879 | # Write a here document: |
| 21880 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21881 | # First, check the format of the line: |
| 21882 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21883 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21884 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21885 | b |
| 21886 | :def |
| 21887 | _ACEOF |
| 21888 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21889 | echo 'CEOF |
| 21890 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21891 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21892 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21893 | grep . conftest.tail >/dev/null || break |
| 21894 | rm -f conftest.defines |
| 21895 | mv conftest.tail conftest.defines |
| 21896 | done |
| 21897 | rm -f conftest.defines conftest.tail |
| 21898 | |
| 21899 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21900 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21901 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21902 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21903 | cat "$ac_result" >>"$tmp/config.h" |
| 21904 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21905 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21906 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21907 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21908 | rm -f $ac_file |
| 21909 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21910 | fi |
| 21911 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21912 | echo "/* $configure_input */" |
| 21913 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21914 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21915 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21916 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21917 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21918 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21919 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21920 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21921 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21923 | |
| 21924 | case $ac_file$ac_mode in |
| 21925 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21926 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21927 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21928 | ${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] | 21929 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21930 | ${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] | 21931 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21932 | ${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] | 21933 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21934 | ${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] | 21935 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21936 | ${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] | 21937 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21938 | ${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] | 21939 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21940 | ${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] | 21941 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21942 | ${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] | 21943 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21944 | ${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] | 21945 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21946 | ${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] | 21947 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21948 | ${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] | 21949 | "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] | 21950 | ${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] | 21951 | |
| 21952 | esac |
| 21953 | done # for ac_tag |
| 21954 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21956 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21957 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21958 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21959 | ac_clean_files=$ac_clean_files_save |
| 21960 | |
| 21961 | |
| 21962 | # configure is writing to config.log, and then calls config.status. |
| 21963 | # config.status does its own redirection, appending to config.log. |
| 21964 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21965 | # by configure, so config.status won't be able to write to it; its |
| 21966 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21967 | # effectively closing config.log, so it can be properly (re)opened and |
| 21968 | # appended to by config.status. When coming back to configure, we |
| 21969 | # need to make the FD available again. |
| 21970 | if test "$no_create" != yes; then |
| 21971 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21972 | ac_config_status_args= |
| 21973 | test "$silent" = yes && |
| 21974 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21975 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21976 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21977 | exec 5>>config.log |
| 21978 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21979 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21980 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21981 | fi |
| 21982 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21983 | # |
| 21984 | # CONFIG_SUBDIRS section. |
| 21985 | # |
| 21986 | if test "$no_recursion" != yes; then |
| 21987 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21988 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21989 | ac_sub_configure_args= |
| 21990 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21991 | eval "set x $ac_configure_args" |
| 21992 | shift |
| 21993 | for ac_arg |
| 21994 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21995 | if test -n "$ac_prev"; then |
| 21996 | ac_prev= |
| 21997 | continue |
| 21998 | fi |
| 21999 | case $ac_arg in |
| 22000 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22001 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22002 | ac_prev=cache_file ;; |
| 22003 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22004 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22005 | | --c=*) |
| 22006 | ;; |
| 22007 | --config-cache | -C) |
| 22008 | ;; |
| 22009 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22010 | ac_prev=srcdir ;; |
| 22011 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22012 | ;; |
| 22013 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22014 | ac_prev=prefix ;; |
| 22015 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22016 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22017 | *) |
| 22018 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22019 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22020 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22021 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22022 | esac |
| 22023 | done |
| 22024 | |
| 22025 | # Always prepend --prefix to ensure using the same prefix |
| 22026 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22027 | ac_arg="--prefix=$prefix" |
| 22028 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22029 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22030 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22031 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22032 | |
| 22033 | ac_popdir=`pwd` |
| 22034 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22035 | |
| 22036 | # Do not complain, so a configure script can configure whichever |
| 22037 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22038 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22040 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22041 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22042 | echo "$ac_msg" >&6 |
| 22043 | { as_dir="$ac_dir" |
| 22044 | case $as_dir in #( |
| 22045 | -*) as_dir=./$as_dir;; |
| 22046 | esac |
| 22047 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22048 | as_dirs= |
| 22049 | while :; do |
| 22050 | case $as_dir in #( |
| 22051 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22052 | *) as_qdir=$as_dir;; |
| 22053 | esac |
| 22054 | as_dirs="'$as_qdir' $as_dirs" |
| 22055 | as_dir=`$as_dirname -- "$as_dir" || |
| 22056 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22057 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22058 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22059 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22060 | echo X"$as_dir" | |
| 22061 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22062 | s//\1/ |
| 22063 | q |
| 22064 | } |
| 22065 | /^X\(\/\/\)[^/].*/{ |
| 22066 | s//\1/ |
| 22067 | q |
| 22068 | } |
| 22069 | /^X\(\/\/\)$/{ |
| 22070 | s//\1/ |
| 22071 | q |
| 22072 | } |
| 22073 | /^X\(\/\).*/{ |
| 22074 | s//\1/ |
| 22075 | q |
| 22076 | } |
| 22077 | s/.*/./; q'` |
| 22078 | test -d "$as_dir" && break |
| 22079 | done |
| 22080 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22081 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22082 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22083 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22084 | ac_builddir=. |
| 22085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22086 | case "$ac_dir" in |
| 22087 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22088 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22089 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22090 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22091 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22092 | case $ac_top_builddir_sub in |
| 22093 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22094 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22095 | esac ;; |
| 22096 | esac |
| 22097 | ac_abs_top_builddir=$ac_pwd |
| 22098 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22099 | # for backward compatibility: |
| 22100 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22101 | |
| 22102 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22103 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22104 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22105 | ac_top_srcdir=$ac_top_builddir_sub |
| 22106 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22107 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22108 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22109 | ac_top_srcdir=$srcdir |
| 22110 | ac_abs_top_srcdir=$srcdir ;; |
| 22111 | *) # Relative name. |
| 22112 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22113 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22114 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22115 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22116 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22117 | |
| 22118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22119 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22120 | |
| 22121 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22122 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22123 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22124 | elif test -f "$ac_srcdir/configure"; then |
| 22125 | ac_sub_configure=$ac_srcdir/configure |
| 22126 | elif test -f "$ac_srcdir/configure.in"; then |
| 22127 | # This should be Cygnus configure. |
| 22128 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22129 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22130 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22131 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22132 | ac_sub_configure= |
| 22133 | fi |
| 22134 | |
| 22135 | # The recursion is here. |
| 22136 | if test -n "$ac_sub_configure"; then |
| 22137 | # Make the cache file name correct relative to the subdirectory. |
| 22138 | case $cache_file in |
| 22139 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22140 | *) # Relative name. |
| 22141 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22142 | esac |
| 22143 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22144 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22145 | 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] | 22146 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22147 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22148 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22149 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22150 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22151 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22152 | fi |
| 22153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22154 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22155 | done |
| 22156 | fi |
| 22157 | |