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. |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.2svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 5 | # Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | # |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2012 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. |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='LLVM' |
| 563 | PACKAGE_TARNAME='llvm' |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.2svn' |
| 565 | PACKAGE_STRING='LLVM 3.2svn' |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 566 | PACKAGE_BUGREPORT='http://llvm.org/bugs/' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 643 | program_prefix |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 644 | CC |
| 645 | CFLAGS |
| 646 | LDFLAGS |
| 647 | CPPFLAGS |
| 648 | ac_ct_CC |
| 649 | EXEEXT |
| 650 | OBJEXT |
| 651 | CXX |
| 652 | CXXFLAGS |
| 653 | ac_ct_CXX |
| 654 | CPP |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 655 | subdirs |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 656 | ENABLE_POLLY |
| 657 | LLVM_HAS_POLLY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 658 | build |
| 659 | build_cpu |
| 660 | build_vendor |
| 661 | build_os |
| 662 | host |
| 663 | host_cpu |
| 664 | host_vendor |
| 665 | host_os |
| 666 | target |
| 667 | target_cpu |
| 668 | target_vendor |
| 669 | target_os |
| 670 | OS |
| 671 | HOST_OS |
| 672 | TARGET_OS |
| 673 | LINKALL |
| 674 | NOLINKALL |
| 675 | LLVM_ON_UNIX |
| 676 | LLVM_ON_WIN32 |
| 677 | ARCH |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 678 | HOST_ARCH |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 679 | ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 680 | GREP |
| 681 | EGREP |
| 682 | LLVM_CROSS_COMPILING |
| 683 | BUILD_CC |
| 684 | BUILD_EXEEXT |
| 685 | BUILD_CXX |
| 686 | CVSBUILD |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 687 | ENABLE_LIBCPP |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 688 | ENABLE_CXX11 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 689 | ENABLE_OPTIMIZED |
| 690 | ENABLE_PROFILING |
| 691 | DISABLE_ASSERTIONS |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 692 | ENABLE_WERROR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 693 | ENABLE_EXPENSIVE_CHECKS |
| 694 | EXPENSIVE_CHECKS |
| 695 | DEBUG_RUNTIME |
| 696 | DEBUG_SYMBOLS |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 697 | KEEP_SYMBOLS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 698 | JIT |
| 699 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 700 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 701 | ENABLE_DOXYGEN |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 702 | LLVM_ENABLE_THREADS |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 703 | ENABLE_PTHREADS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 704 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 705 | ENABLE_SHARED |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 706 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 707 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 708 | TARGETS_TO_BUILD |
| 709 | LLVM_ENUM_TARGETS |
| 710 | LLVM_ENUM_ASM_PRINTERS |
| 711 | LLVM_ENUM_ASM_PARSERS |
| 712 | LLVM_ENUM_DISASSEMBLERS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 713 | OPTIMIZE_OPTION |
| 714 | EXTRA_OPTIONS |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 715 | EXTRA_LD_OPTIONS |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 716 | CLANG_SRC_ROOT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 717 | BINUTILS_INCDIR |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 718 | INTERNAL_PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 719 | NM |
| 720 | ifGNUmake |
| 721 | LN_S |
| 722 | CMP |
| 723 | CP |
| 724 | DATE |
| 725 | FIND |
| 726 | MKDIR |
| 727 | MV |
| 728 | RANLIB |
| 729 | AR |
| 730 | RM |
| 731 | SED |
| 732 | TAR |
| 733 | BINPWD |
| 734 | GRAPHVIZ |
| 735 | DOT |
| 736 | FDP |
| 737 | NEATO |
| 738 | TWOPI |
| 739 | CIRCO |
| 740 | GV |
| 741 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 742 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 743 | INSTALL_PROGRAM |
| 744 | INSTALL_SCRIPT |
| 745 | INSTALL_DATA |
| 746 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 747 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 748 | DOXYGEN |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 749 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 750 | GZIPBIN |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 751 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 752 | ZIP |
| 753 | OCAMLC |
| 754 | OCAMLOPT |
| 755 | OCAMLDEP |
| 756 | OCAMLDOC |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 757 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 758 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 759 | INSTALL_LTDL_TRUE |
| 760 | INSTALL_LTDL_FALSE |
| 761 | CONVENIENCE_LTDL_TRUE |
| 762 | CONVENIENCE_LTDL_FALSE |
| 763 | LIBADD_DL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 764 | NO_VARIADIC_MACROS |
| 765 | NO_MISSING_FIELD_INITIALIZERS |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 766 | COVERED_SWITCH_DEFAULT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 767 | USE_UDIS86 |
| 768 | USE_OPROFILE |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 769 | USE_INTEL_JITEVENTS |
| 770 | INTEL_JITEVENTS_INCDIR |
| 771 | INTEL_JITEVENTS_LIBDIR |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 772 | XML2CONFIG |
| 773 | LIBXML2_LIBS |
| 774 | LIBXML2_INC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 775 | HAVE_PTHREAD |
| 776 | HUGE_VAL_SANITY |
| 777 | MMAP_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 778 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 779 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 780 | LLVM_PREFIX |
| 781 | LLVM_BINDIR |
| 782 | LLVM_LIBDIR |
| 783 | LLVM_DATADIR |
| 784 | LLVM_DOCSDIR |
| 785 | LLVM_ETCDIR |
| 786 | LLVM_INCLUDEDIR |
| 787 | LLVM_INFODIR |
| 788 | LLVM_MANDIR |
| 789 | LLVM_CONFIGTIME |
| 790 | BINDINGS_TO_BUILD |
| 791 | ALL_BINDINGS |
| 792 | OCAML_LIBDIR |
| 793 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 794 | RPATH |
| 795 | RDYNAMIC |
| 796 | LIBOBJS |
| 797 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 798 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 799 | ac_precious_vars='build_alias |
| 800 | host_alias |
| 801 | target_alias |
| 802 | CC |
| 803 | CFLAGS |
| 804 | LDFLAGS |
| 805 | CPPFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 806 | CXX |
| 807 | CXXFLAGS |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 808 | CCC |
| 809 | CPP' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 810 | ac_subdirs_all='projects/llvm-gcc |
| 811 | projects/test-suite |
| 812 | projects/llvm-test |
| 813 | projects/poolalloc |
| 814 | projects/llvm-poolalloc |
| 815 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 816 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 817 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 818 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 819 | projects/llvm-java |
| 820 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 821 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 822 | projects/llvm-kernel |
| 823 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 824 | |
| 825 | # Initialize some variables set by options. |
| 826 | ac_init_help= |
| 827 | ac_init_version=false |
| 828 | # The variables have the same names as the options, with |
| 829 | # dashes changed to underlines. |
| 830 | cache_file=/dev/null |
| 831 | exec_prefix=NONE |
| 832 | no_create= |
| 833 | no_recursion= |
| 834 | prefix=NONE |
| 835 | program_prefix=NONE |
| 836 | program_suffix=NONE |
| 837 | program_transform_name=s,x,x, |
| 838 | silent= |
| 839 | site= |
| 840 | srcdir= |
| 841 | verbose= |
| 842 | x_includes=NONE |
| 843 | x_libraries=NONE |
| 844 | |
| 845 | # Installation directory options. |
| 846 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 847 | # and all the variables that are supposed to be based on exec_prefix |
| 848 | # by default will actually change. |
| 849 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 850 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 851 | bindir='${exec_prefix}/bin' |
| 852 | sbindir='${exec_prefix}/sbin' |
| 853 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 854 | datarootdir='${prefix}/share' |
| 855 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 856 | sysconfdir='${prefix}/etc' |
| 857 | sharedstatedir='${prefix}/com' |
| 858 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 859 | includedir='${prefix}/include' |
| 860 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 861 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 862 | infodir='${datarootdir}/info' |
| 863 | htmldir='${docdir}' |
| 864 | dvidir='${docdir}' |
| 865 | pdfdir='${docdir}' |
| 866 | psdir='${docdir}' |
| 867 | libdir='${exec_prefix}/lib' |
| 868 | localedir='${datarootdir}/locale' |
| 869 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 870 | |
| 871 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 872 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 873 | for ac_option |
| 874 | do |
| 875 | # If the previous option needs an argument, assign it. |
| 876 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 877 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 878 | ac_prev= |
| 879 | continue |
| 880 | fi |
| 881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 882 | case $ac_option in |
| 883 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 884 | *) ac_optarg=yes ;; |
| 885 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 886 | |
| 887 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 889 | case $ac_dashdash$ac_option in |
| 890 | --) |
| 891 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 892 | |
| 893 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 894 | ac_prev=bindir ;; |
| 895 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 896 | bindir=$ac_optarg ;; |
| 897 | |
| 898 | -build | --build | --buil | --bui | --bu) |
| 899 | ac_prev=build_alias ;; |
| 900 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 901 | build_alias=$ac_optarg ;; |
| 902 | |
| 903 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 904 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 905 | ac_prev=cache_file ;; |
| 906 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 907 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 908 | cache_file=$ac_optarg ;; |
| 909 | |
| 910 | --config-cache | -C) |
| 911 | cache_file=config.cache ;; |
| 912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 913 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 914 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 915 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 916 | datadir=$ac_optarg ;; |
| 917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 918 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 919 | | --dataroo | --dataro | --datar) |
| 920 | ac_prev=datarootdir ;; |
| 921 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 922 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 923 | datarootdir=$ac_optarg ;; |
| 924 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 925 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 926 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 927 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 928 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 929 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 930 | { (exit 1); exit 1; }; } |
| 931 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 932 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 933 | |
| 934 | -docdir | --docdir | --docdi | --doc | --do) |
| 935 | ac_prev=docdir ;; |
| 936 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 937 | docdir=$ac_optarg ;; |
| 938 | |
| 939 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 940 | ac_prev=dvidir ;; |
| 941 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 942 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 943 | |
| 944 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 945 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 946 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 947 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 948 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 949 | { (exit 1); exit 1; }; } |
| 950 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 951 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 952 | |
| 953 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 954 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 955 | | --exec | --exe | --ex) |
| 956 | ac_prev=exec_prefix ;; |
| 957 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 958 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 959 | | --exec=* | --exe=* | --ex=*) |
| 960 | exec_prefix=$ac_optarg ;; |
| 961 | |
| 962 | -gas | --gas | --ga | --g) |
| 963 | # Obsolete; use --with-gas. |
| 964 | with_gas=yes ;; |
| 965 | |
| 966 | -help | --help | --hel | --he | -h) |
| 967 | ac_init_help=long ;; |
| 968 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 969 | ac_init_help=recursive ;; |
| 970 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 971 | ac_init_help=short ;; |
| 972 | |
| 973 | -host | --host | --hos | --ho) |
| 974 | ac_prev=host_alias ;; |
| 975 | -host=* | --host=* | --hos=* | --ho=*) |
| 976 | host_alias=$ac_optarg ;; |
| 977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 978 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 979 | ac_prev=htmldir ;; |
| 980 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 981 | | --ht=*) |
| 982 | htmldir=$ac_optarg ;; |
| 983 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 984 | -includedir | --includedir | --includedi | --included | --include \ |
| 985 | | --includ | --inclu | --incl | --inc) |
| 986 | ac_prev=includedir ;; |
| 987 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 988 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 989 | includedir=$ac_optarg ;; |
| 990 | |
| 991 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 992 | ac_prev=infodir ;; |
| 993 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 994 | infodir=$ac_optarg ;; |
| 995 | |
| 996 | -libdir | --libdir | --libdi | --libd) |
| 997 | ac_prev=libdir ;; |
| 998 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 999 | libdir=$ac_optarg ;; |
| 1000 | |
| 1001 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1002 | | --libexe | --libex | --libe) |
| 1003 | ac_prev=libexecdir ;; |
| 1004 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1005 | | --libexe=* | --libex=* | --libe=*) |
| 1006 | libexecdir=$ac_optarg ;; |
| 1007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1008 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1009 | ac_prev=localedir ;; |
| 1010 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1011 | localedir=$ac_optarg ;; |
| 1012 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1014 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1015 | ac_prev=localstatedir ;; |
| 1016 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1017 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1018 | localstatedir=$ac_optarg ;; |
| 1019 | |
| 1020 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1021 | ac_prev=mandir ;; |
| 1022 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1023 | mandir=$ac_optarg ;; |
| 1024 | |
| 1025 | -nfp | --nfp | --nf) |
| 1026 | # Obsolete; use --without-fp. |
| 1027 | with_fp=no ;; |
| 1028 | |
| 1029 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1030 | | --no-cr | --no-c | -n) |
| 1031 | no_create=yes ;; |
| 1032 | |
| 1033 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1034 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1035 | no_recursion=yes ;; |
| 1036 | |
| 1037 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1038 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1039 | | --oldin | --oldi | --old | --ol | --o) |
| 1040 | ac_prev=oldincludedir ;; |
| 1041 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1042 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1043 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1044 | oldincludedir=$ac_optarg ;; |
| 1045 | |
| 1046 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1047 | ac_prev=prefix ;; |
| 1048 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1049 | prefix=$ac_optarg ;; |
| 1050 | |
| 1051 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1052 | | --program-pre | --program-pr | --program-p) |
| 1053 | ac_prev=program_prefix ;; |
| 1054 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1055 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1056 | program_prefix=$ac_optarg ;; |
| 1057 | |
| 1058 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1059 | | --program-suf | --program-su | --program-s) |
| 1060 | ac_prev=program_suffix ;; |
| 1061 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1062 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1063 | program_suffix=$ac_optarg ;; |
| 1064 | |
| 1065 | -program-transform-name | --program-transform-name \ |
| 1066 | | --program-transform-nam | --program-transform-na \ |
| 1067 | | --program-transform-n | --program-transform- \ |
| 1068 | | --program-transform | --program-transfor \ |
| 1069 | | --program-transfo | --program-transf \ |
| 1070 | | --program-trans | --program-tran \ |
| 1071 | | --progr-tra | --program-tr | --program-t) |
| 1072 | ac_prev=program_transform_name ;; |
| 1073 | -program-transform-name=* | --program-transform-name=* \ |
| 1074 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1075 | | --program-transform-n=* | --program-transform-=* \ |
| 1076 | | --program-transform=* | --program-transfor=* \ |
| 1077 | | --program-transfo=* | --program-transf=* \ |
| 1078 | | --program-trans=* | --program-tran=* \ |
| 1079 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1080 | program_transform_name=$ac_optarg ;; |
| 1081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1082 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1083 | ac_prev=pdfdir ;; |
| 1084 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1085 | pdfdir=$ac_optarg ;; |
| 1086 | |
| 1087 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1088 | ac_prev=psdir ;; |
| 1089 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1090 | psdir=$ac_optarg ;; |
| 1091 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1092 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1093 | | -silent | --silent | --silen | --sile | --sil) |
| 1094 | silent=yes ;; |
| 1095 | |
| 1096 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1097 | ac_prev=sbindir ;; |
| 1098 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1099 | | --sbi=* | --sb=*) |
| 1100 | sbindir=$ac_optarg ;; |
| 1101 | |
| 1102 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1103 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1104 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1105 | | --sha | --sh) |
| 1106 | ac_prev=sharedstatedir ;; |
| 1107 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1108 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1109 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1110 | | --sha=* | --sh=*) |
| 1111 | sharedstatedir=$ac_optarg ;; |
| 1112 | |
| 1113 | -site | --site | --sit) |
| 1114 | ac_prev=site ;; |
| 1115 | -site=* | --site=* | --sit=*) |
| 1116 | site=$ac_optarg ;; |
| 1117 | |
| 1118 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1119 | ac_prev=srcdir ;; |
| 1120 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1121 | srcdir=$ac_optarg ;; |
| 1122 | |
| 1123 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1124 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1125 | ac_prev=sysconfdir ;; |
| 1126 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1127 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1128 | sysconfdir=$ac_optarg ;; |
| 1129 | |
| 1130 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1131 | ac_prev=target_alias ;; |
| 1132 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1133 | target_alias=$ac_optarg ;; |
| 1134 | |
| 1135 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1136 | verbose=yes ;; |
| 1137 | |
| 1138 | -version | --version | --versio | --versi | --vers | -V) |
| 1139 | ac_init_version=: ;; |
| 1140 | |
| 1141 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1142 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1143 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1144 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1145 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1146 | { (exit 1); exit 1; }; } |
| 1147 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1148 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 | |
| 1150 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1151 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1152 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1153 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1154 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1155 | { (exit 1); exit 1; }; } |
| 1156 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1157 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1158 | |
| 1159 | --x) |
| 1160 | # Obsolete; use --with-x. |
| 1161 | with_x=yes ;; |
| 1162 | |
| 1163 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1164 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1165 | ac_prev=x_includes ;; |
| 1166 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1167 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1168 | x_includes=$ac_optarg ;; |
| 1169 | |
| 1170 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1171 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1172 | ac_prev=x_libraries ;; |
| 1173 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1174 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1175 | x_libraries=$ac_optarg ;; |
| 1176 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1177 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1178 | Try \`$0 --help' for more information." >&2 |
| 1179 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1180 | ;; |
| 1181 | |
| 1182 | *=*) |
| 1183 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1184 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1185 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1186 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1187 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1188 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1189 | export $ac_envvar ;; |
| 1190 | |
| 1191 | *) |
| 1192 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1193 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1194 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1195 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1196 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1197 | ;; |
| 1198 | |
| 1199 | esac |
| 1200 | done |
| 1201 | |
| 1202 | if test -n "$ac_prev"; then |
| 1203 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1204 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1205 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1206 | fi |
| 1207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1208 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1209 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1210 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1211 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1212 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1214 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1215 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1216 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1217 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1218 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1219 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1220 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1221 | done |
| 1222 | |
| 1223 | # There might be people who depend on the old broken behavior: `$host' |
| 1224 | # used to hold the argument of --host etc. |
| 1225 | # FIXME: To remove some day. |
| 1226 | build=$build_alias |
| 1227 | host=$host_alias |
| 1228 | target=$target_alias |
| 1229 | |
| 1230 | # FIXME: To remove some day. |
| 1231 | if test "x$host_alias" != x; then |
| 1232 | if test "x$build_alias" = x; then |
| 1233 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1234 | 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] | 1235 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1236 | elif test "x$build_alias" != "x$host_alias"; then |
| 1237 | cross_compiling=yes |
| 1238 | fi |
| 1239 | fi |
| 1240 | |
| 1241 | ac_tool_prefix= |
| 1242 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1243 | |
| 1244 | test "$silent" = yes && exec 6>/dev/null |
| 1245 | |
| 1246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1247 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1248 | ac_ls_di=`ls -di .` && |
| 1249 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1250 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1251 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1252 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1253 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1254 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1255 | |
| 1256 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1257 | # Find the source files, if location was not specified. |
| 1258 | if test -z "$srcdir"; then |
| 1259 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1260 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1261 | ac_confdir=`$as_dirname -- "$0" || |
| 1262 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1263 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1264 | X"$0" : 'X\(//\)$' \| \ |
| 1265 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1266 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1267 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1268 | s//\1/ |
| 1269 | q |
| 1270 | } |
| 1271 | /^X\(\/\/\)[^/].*/{ |
| 1272 | s//\1/ |
| 1273 | q |
| 1274 | } |
| 1275 | /^X\(\/\/\)$/{ |
| 1276 | s//\1/ |
| 1277 | q |
| 1278 | } |
| 1279 | /^X\(\/\).*/{ |
| 1280 | s//\1/ |
| 1281 | q |
| 1282 | } |
| 1283 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1284 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | srcdir=.. |
| 1287 | fi |
| 1288 | else |
| 1289 | ac_srcdir_defaulted=no |
| 1290 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1291 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1292 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1293 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1294 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1295 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1296 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1297 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1298 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1299 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1300 | pwd)` |
| 1301 | # When building in place, set srcdir=. |
| 1302 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1303 | srcdir=. |
| 1304 | fi |
| 1305 | # Remove unnecessary trailing slashes from srcdir. |
| 1306 | # Double slashes in file names in object file debugging info |
| 1307 | # mess up M-x gdb in Emacs. |
| 1308 | case $srcdir in |
| 1309 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1310 | esac |
| 1311 | for ac_var in $ac_precious_vars; do |
| 1312 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1313 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1314 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1315 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1316 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1317 | |
| 1318 | # |
| 1319 | # Report the --help message. |
| 1320 | # |
| 1321 | if test "$ac_init_help" = "long"; then |
| 1322 | # Omit some internal or obsolete options to make the list less imposing. |
| 1323 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1324 | cat <<_ACEOF |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1325 | \`configure' configures LLVM 3.2svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1326 | |
| 1327 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1328 | |
| 1329 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1330 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1331 | |
| 1332 | Defaults for the options are specified in brackets. |
| 1333 | |
| 1334 | Configuration: |
| 1335 | -h, --help display this help and exit |
| 1336 | --help=short display options specific to this package |
| 1337 | --help=recursive display the short help of all the included packages |
| 1338 | -V, --version display version information and exit |
| 1339 | -q, --quiet, --silent do not print \`checking...' messages |
| 1340 | --cache-file=FILE cache test results in FILE [disabled] |
| 1341 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1342 | -n, --no-create do not create output files |
| 1343 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 | Installation directories: |
| 1346 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1347 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1348 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1349 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1350 | |
| 1351 | By default, \`make install' will install all the files in |
| 1352 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1353 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1354 | for instance \`--prefix=\$HOME'. |
| 1355 | |
| 1356 | For better control, use the options below. |
| 1357 | |
| 1358 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1359 | --bindir=DIR user executables [EPREFIX/bin] |
| 1360 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1361 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1362 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1363 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1364 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1365 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1366 | --includedir=DIR C header files [PREFIX/include] |
| 1367 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1368 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1369 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1370 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1371 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1372 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1373 | --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1374 | --htmldir=DIR html documentation [DOCDIR] |
| 1375 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1376 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1377 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1378 | _ACEOF |
| 1379 | |
| 1380 | cat <<\_ACEOF |
| 1381 | |
| 1382 | System types: |
| 1383 | --build=BUILD configure for building on BUILD [guessed] |
| 1384 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1385 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1386 | _ACEOF |
| 1387 | fi |
| 1388 | |
| 1389 | if test -n "$ac_init_help"; then |
| 1390 | case $ac_init_help in |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1391 | short | recursive ) echo "Configuration of LLVM 3.2svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1392 | esac |
| 1393 | cat <<\_ACEOF |
| 1394 | |
| 1395 | Optional Features: |
| 1396 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1397 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1398 | --enable-polly Use polly if available (default is YES) |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1399 | --enable-libcpp Use libc++ if available (default is NO) |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 1400 | --enable-cxx11 Use c++11 if available (default is NO) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1401 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1402 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1403 | --enable-assertions Compile with assertion checks enabled (default is |
| 1404 | YES) |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 1405 | --enable-werror Compile with -Werror enabled (default is NO) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1406 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1407 | Compile with expensive debug checks enabled (default |
| 1408 | is NO) |
| 1409 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1410 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1411 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1412 | optimization is on and YES if it's off) |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 1413 | --enable-keep-symbols Do not strip installed executables) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1414 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1415 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1416 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1417 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1418 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1419 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1420 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1421 | --enable-shared Build a shared library and link tools against it |
| 1422 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1423 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1424 | Win32 DLL (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1425 | --enable-timestamps Enable embedding timestamp information in build |
| 1426 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1427 | --enable-targets Build specific host targets: all or |
| 1428 | target1,target2,... Valid targets are: host, x86, |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1429 | x86_64, sparc, powerpc, arm, mips, spu, hexagon, |
Tom Stellard | 38cda13 | 2012-07-16 18:19:46 +0000 | [diff] [blame] | 1430 | xcore, msp430, nvptx, and cpp (default=all) |
Victor Oliveira | 0e80e18 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 1431 | --enable-experimental-targets |
| 1432 | Build experimental host targets: disable or |
| 1433 | target1,target2,... (default=disable) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1434 | --enable-bindings Build specific language bindings: |
| 1435 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1436 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1437 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1438 | |
| 1439 | Optional Packages: |
| 1440 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1441 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1442 | --with-optimize-option Select the compiler options to use for optimized |
| 1443 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1444 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1445 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1446 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1447 | is stdlib) |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1448 | --with-clang-srcdir Directory to the out-of-tree Clang source |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1449 | --with-clang-resource-dir |
| 1450 | Relative directory from the Clang binary for |
| 1451 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1452 | --with-c-include-dirs Colon separated list of directories clang will |
| 1453 | search for headers |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1454 | --with-gcc-toolchain Directory where gcc is installed. |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 1455 | --with-default-sysroot Add --sysroot=<path> to all compiler invocations. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1456 | --with-binutils-include Specify path to binutils/include/ containing |
| 1457 | plugin-api.h file for gold plugin. |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1458 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1459 | submitted (default=http://llvm.org/bugs/) |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1460 | --with-internal-prefix Installation directory for internal files |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1461 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1462 | --with-oprofile=<prefix> |
| 1463 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 1464 | --with-intel-jitevents=<vtune-amplifier-dir> |
| 1465 | Specify location of run-time support library for |
| 1466 | Intel JIT API |
| 1467 | (default=/opt/intel/vtune_amplifier_xe_2011) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1468 | |
| 1469 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1470 | CC C compiler command |
| 1471 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1473 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1474 | 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] | 1475 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1476 | CXX C++ compiler command |
| 1477 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1478 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1479 | |
| 1480 | Use these variables to override the choices made by `configure' or to help |
| 1481 | it to find libraries and programs with nonstandard names/locations. |
| 1482 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1483 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1485 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | fi |
| 1487 | |
| 1488 | if test "$ac_init_help" = "recursive"; then |
| 1489 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1490 | 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] | 1491 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1492 | ac_builddir=. |
| 1493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1494 | case "$ac_dir" in |
| 1495 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1496 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1497 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1498 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1499 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1500 | case $ac_top_builddir_sub in |
| 1501 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1502 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1503 | esac ;; |
| 1504 | esac |
| 1505 | ac_abs_top_builddir=$ac_pwd |
| 1506 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1507 | # for backward compatibility: |
| 1508 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1509 | |
| 1510 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1511 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1512 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1513 | ac_top_srcdir=$ac_top_builddir_sub |
| 1514 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1515 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1516 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1517 | ac_top_srcdir=$srcdir |
| 1518 | ac_abs_top_srcdir=$srcdir ;; |
| 1519 | *) # Relative name. |
| 1520 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1521 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1522 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1523 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1524 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1526 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1527 | # Check for guested configure. |
| 1528 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1529 | echo && |
| 1530 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1531 | elif test -f "$ac_srcdir/configure"; then |
| 1532 | echo && |
| 1533 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1534 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1535 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1536 | fi || ac_status=$? |
| 1537 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1538 | done |
| 1539 | fi |
| 1540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1541 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1542 | if $ac_init_version; then |
| 1543 | cat <<\_ACEOF |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1544 | LLVM configure 3.2svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1545 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1547 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1548 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | This configure script is free software; the Free Software Foundation |
| 1550 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1551 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1552 | Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1556 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1557 | This file contains any messages produced by compilers while |
| 1558 | running configure, to aid debugging if configure makes a mistake. |
| 1559 | |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1560 | It was created by LLVM $as_me 3.2svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1561 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1562 | |
| 1563 | $ $0 $@ |
| 1564 | |
| 1565 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1566 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | { |
| 1568 | cat <<_ASUNAME |
| 1569 | ## --------- ## |
| 1570 | ## Platform. ## |
| 1571 | ## --------- ## |
| 1572 | |
| 1573 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1574 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1575 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1576 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1577 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1578 | |
| 1579 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1580 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1581 | |
| 1582 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1583 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1584 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1585 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1586 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1587 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1588 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1589 | |
| 1590 | _ASUNAME |
| 1591 | |
| 1592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1593 | for as_dir in $PATH |
| 1594 | do |
| 1595 | IFS=$as_save_IFS |
| 1596 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1597 | echo "PATH: $as_dir" |
| 1598 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1599 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1600 | |
| 1601 | } >&5 |
| 1602 | |
| 1603 | cat >&5 <<_ACEOF |
| 1604 | |
| 1605 | |
| 1606 | ## ----------- ## |
| 1607 | ## Core tests. ## |
| 1608 | ## ----------- ## |
| 1609 | |
| 1610 | _ACEOF |
| 1611 | |
| 1612 | |
| 1613 | # Keep a trace of the command line. |
| 1614 | # 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] | 1615 | # 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] | 1616 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1618 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | ac_configure_args0= |
| 1620 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1621 | ac_must_keep_next=false |
| 1622 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | for ac_arg |
| 1625 | do |
| 1626 | case $ac_arg in |
| 1627 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1628 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1629 | | -silent | --silent | --silen | --sile | --sil) |
| 1630 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1631 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1632 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1633 | esac |
| 1634 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1635 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1636 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1637 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1638 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1639 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1640 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1641 | case $ac_arg in |
| 1642 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1643 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1644 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1645 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1646 | case "$ac_configure_args0 " in |
| 1647 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1648 | esac |
| 1649 | ;; |
| 1650 | -* ) ac_must_keep_next=true ;; |
| 1651 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1652 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1653 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1654 | ;; |
| 1655 | esac |
| 1656 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1657 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1658 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1659 | $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] | 1660 | |
| 1661 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1662 | # config.log. We remove comments because anyway the quotes in there |
| 1663 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1664 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1665 | # 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] | 1666 | trap 'exit_status=$? |
| 1667 | # Save into config.log some information that might help in debugging. |
| 1668 | { |
| 1669 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1670 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1671 | cat <<\_ASBOX |
| 1672 | ## ---------------- ## |
| 1673 | ## Cache variables. ## |
| 1674 | ## ---------------- ## |
| 1675 | _ASBOX |
| 1676 | echo |
| 1677 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1678 | ( |
| 1679 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1680 | eval ac_val=\$$ac_var |
| 1681 | case $ac_val in #( |
| 1682 | *${as_nl}*) |
| 1683 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1684 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1685 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1686 | esac |
| 1687 | case $ac_var in #( |
| 1688 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1689 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1690 | esac ;; |
| 1691 | esac |
| 1692 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1693 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1694 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1695 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1696 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1697 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1698 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1699 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1700 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1701 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1702 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1703 | esac | |
| 1704 | sort |
| 1705 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1706 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1707 | |
| 1708 | cat <<\_ASBOX |
| 1709 | ## ----------------- ## |
| 1710 | ## Output variables. ## |
| 1711 | ## ----------------- ## |
| 1712 | _ASBOX |
| 1713 | echo |
| 1714 | for ac_var in $ac_subst_vars |
| 1715 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1716 | eval ac_val=\$$ac_var |
| 1717 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1718 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1719 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1720 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | done | sort |
| 1722 | echo |
| 1723 | |
| 1724 | if test -n "$ac_subst_files"; then |
| 1725 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1726 | ## ------------------- ## |
| 1727 | ## File substitutions. ## |
| 1728 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1729 | _ASBOX |
| 1730 | echo |
| 1731 | for ac_var in $ac_subst_files |
| 1732 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1733 | eval ac_val=\$$ac_var |
| 1734 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1735 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1736 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1737 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1738 | done | sort |
| 1739 | echo |
| 1740 | fi |
| 1741 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1742 | if test -s confdefs.h; then |
| 1743 | cat <<\_ASBOX |
| 1744 | ## ----------- ## |
| 1745 | ## confdefs.h. ## |
| 1746 | ## ----------- ## |
| 1747 | _ASBOX |
| 1748 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1749 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | echo |
| 1751 | fi |
| 1752 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1753 | echo "$as_me: caught signal $ac_signal" |
| 1754 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1756 | rm -f core *.core core.conftest.* && |
| 1757 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1759 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1761 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | done |
| 1763 | ac_signal=0 |
| 1764 | |
| 1765 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1766 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | |
| 1768 | # Predefined preprocessor variables. |
| 1769 | |
| 1770 | cat >>confdefs.h <<_ACEOF |
| 1771 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1772 | _ACEOF |
| 1773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1774 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1775 | cat >>confdefs.h <<_ACEOF |
| 1776 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1777 | _ACEOF |
| 1778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1780 | cat >>confdefs.h <<_ACEOF |
| 1781 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1782 | _ACEOF |
| 1783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1784 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | cat >>confdefs.h <<_ACEOF |
| 1786 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1787 | _ACEOF |
| 1788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1790 | cat >>confdefs.h <<_ACEOF |
| 1791 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1792 | _ACEOF |
| 1793 | |
| 1794 | |
| 1795 | # 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] | 1796 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1797 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1798 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1801 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1802 | set x "$ac_default_prefix/share/config.site" \ |
| 1803 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1804 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1805 | shift |
| 1806 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1807 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1808 | if test -r "$ac_site_file"; then |
| 1809 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1810 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1812 | . "$ac_site_file" |
| 1813 | fi |
| 1814 | done |
| 1815 | |
| 1816 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1817 | # Some versions of bash will fail to source /dev/null (special |
| 1818 | # files actually), so we avoid doing that. |
| 1819 | if test -f "$cache_file"; then |
| 1820 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1821 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1822 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1823 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1824 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | esac |
| 1826 | fi |
| 1827 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1828 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1829 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1830 | >$cache_file |
| 1831 | fi |
| 1832 | |
| 1833 | # Check that the precious variables saved in the cache have kept the same |
| 1834 | # value. |
| 1835 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1836 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1838 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1839 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1840 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | case $ac_old_set,$ac_new_set in |
| 1842 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1843 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1844 | 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] | 1845 | ac_cache_corrupted=: ;; |
| 1846 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1847 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1848 | 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] | 1849 | ac_cache_corrupted=: ;; |
| 1850 | ,);; |
| 1851 | *) |
| 1852 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1853 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1854 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1855 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1856 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1857 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1858 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1859 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1860 | fi;; |
| 1861 | esac |
| 1862 | # Pass precious variables to config.status. |
| 1863 | if test "$ac_new_set" = set; then |
| 1864 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1865 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1866 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1867 | esac |
| 1868 | case " $ac_configure_args " in |
| 1869 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1870 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1871 | esac |
| 1872 | fi |
| 1873 | done |
| 1874 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1875 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1876 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1877 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1878 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1879 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1880 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1906 | ac_ext=c |
| 1907 | ac_cpp='$CPP $CPPFLAGS' |
| 1908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1911 | |
| 1912 | |
| 1913 | |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1914 | cat >>confdefs.h <<\_ACEOF |
| 1915 | #define LLVM_VERSION_MAJOR 3 |
| 1916 | _ACEOF |
| 1917 | |
| 1918 | |
| 1919 | cat >>confdefs.h <<\_ACEOF |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 1920 | #define LLVM_VERSION_MINOR 2 |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1921 | _ACEOF |
| 1922 | |
| 1923 | |
NAKAMURA Takumi | 45ba165 | 2012-01-01 08:16:56 +0000 | [diff] [blame] | 1924 | LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 1932 | |
| 1933 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1934 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1936 | if test -f "$ac_dir/install-sh"; then |
| 1937 | ac_aux_dir=$ac_dir |
| 1938 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1939 | break |
| 1940 | elif test -f "$ac_dir/install.sh"; then |
| 1941 | ac_aux_dir=$ac_dir |
| 1942 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1943 | break |
| 1944 | elif test -f "$ac_dir/shtool"; then |
| 1945 | ac_aux_dir=$ac_dir |
| 1946 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1947 | break |
| 1948 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1949 | done |
| 1950 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1951 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1952 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1953 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1955 | |
| 1956 | # These three variables are undocumented and unsupported, |
| 1957 | # and are intended to be withdrawn in a future Autoconf release. |
| 1958 | # They can cause serious problems if a builder's source tree is in a directory |
| 1959 | # whose full name contains unusual characters. |
| 1960 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1961 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1962 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1964 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1965 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1966 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1967 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1968 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1969 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1970 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1971 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1972 | fi |
| 1973 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1974 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1975 | ac_cpp='$CPP $CPPFLAGS' |
| 1976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1979 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1980 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1981 | do |
| 1982 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1983 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1986 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1988 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1989 | if test -n "$CC"; then |
| 1990 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | else |
| 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1993 | for as_dir in $PATH |
| 1994 | do |
| 1995 | IFS=$as_save_IFS |
| 1996 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1997 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1998 | 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] | 1999 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2000 | 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] | 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2004 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2005 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2006 | |
| 2007 | fi |
| 2008 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2009 | CC=$ac_cv_prog_CC |
| 2010 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2011 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2012 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2013 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2015 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2016 | fi |
| 2017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2018 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2019 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2020 | done |
| 2021 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2022 | if test -z "$CC"; then |
| 2023 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2024 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | do |
| 2026 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2027 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2030 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2033 | if test -n "$ac_ct_CC"; then |
| 2034 | 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] | 2035 | else |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2042 | 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] | 2043 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2044 | 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] | 2045 | break 2 |
| 2046 | fi |
| 2047 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2048 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2049 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2050 | |
| 2051 | fi |
| 2052 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2053 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2054 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2055 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2056 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2057 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2058 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2059 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2060 | fi |
| 2061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2063 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2064 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | if test "x$ac_ct_CC" = x; then |
| 2067 | CC="" |
| 2068 | else |
| 2069 | case $cross_compiling:$ac_tool_warned in |
| 2070 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2072 | whose name does not start with the host triplet. If you think this |
| 2073 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2074 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2075 | whose name does not start with the host triplet. If you think this |
| 2076 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2077 | ac_tool_warned=yes ;; |
| 2078 | esac |
| 2079 | CC=$ac_ct_CC |
| 2080 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2081 | fi |
| 2082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2084 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2085 | See \`config.log' for more details." >&5 |
| 2086 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2087 | See \`config.log' for more details." >&2;} |
| 2088 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2090 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2091 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2092 | ac_compiler=`set X $ac_compile; echo $2` |
| 2093 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2094 | case "(($ac_try" in |
| 2095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2096 | *) ac_try_echo=$ac_try;; |
| 2097 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2099 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2100 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2102 | (exit $ac_status); } |
| 2103 | { (ac_try="$ac_compiler -v >&5" |
| 2104 | case "(($ac_try" in |
| 2105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2106 | *) ac_try_echo=$ac_try;; |
| 2107 | esac |
| 2108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2109 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2110 | ac_status=$? |
| 2111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2112 | (exit $ac_status); } |
| 2113 | { (ac_try="$ac_compiler -V >&5" |
| 2114 | case "(($ac_try" in |
| 2115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2116 | *) ac_try_echo=$ac_try;; |
| 2117 | esac |
| 2118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2119 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2120 | ac_status=$? |
| 2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2122 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2124 | cat >conftest.$ac_ext <<_ACEOF |
| 2125 | /* confdefs.h. */ |
| 2126 | _ACEOF |
| 2127 | cat confdefs.h >>conftest.$ac_ext |
| 2128 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2129 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2130 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2131 | int |
| 2132 | main () |
| 2133 | { |
| 2134 | |
| 2135 | ; |
| 2136 | return 0; |
| 2137 | } |
| 2138 | _ACEOF |
| 2139 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2140 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2141 | # Try to create an executable without -o first, disregard a.out. |
| 2142 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2143 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2144 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2145 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2146 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2147 | # |
| 2148 | # List of possible output files, starting from the most likely. |
| 2149 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2150 | # only as a last resort. b.out is created by i960 compilers. |
| 2151 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2152 | # |
| 2153 | # The IRIX 6 linker writes into existing files which may not be |
| 2154 | # executable, retaining their permissions. Remove them first so a |
| 2155 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | ac_rmfiles= |
| 2157 | for ac_file in $ac_files |
| 2158 | do |
| 2159 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2160 | *.$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] | 2161 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2162 | esac |
| 2163 | done |
| 2164 | rm -f $ac_rmfiles |
| 2165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2166 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2167 | case "(($ac_try" in |
| 2168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2169 | *) ac_try_echo=$ac_try;; |
| 2170 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2172 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2173 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2175 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2176 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2177 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2178 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2179 | # so that the user can short-circuit this test for compilers unknown to |
| 2180 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2181 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2182 | do |
| 2183 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2184 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2185 | *.$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] | 2186 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2188 | # We found the default executable, but exeext='' is most |
| 2189 | # certainly right. |
| 2190 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2191 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2192 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2193 | then :; else |
| 2194 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2195 | fi |
| 2196 | # We set ac_cv_exeext here because the later test for it is not |
| 2197 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2198 | # argument, so we may need to know it at that point already. |
| 2199 | # Even if this section looks crufty: it has the advantage of |
| 2200 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2201 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2202 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2203 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2204 | esac |
| 2205 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2206 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2207 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2208 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2209 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2211 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2212 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2213 | See \`config.log' for more details." >&5 |
| 2214 | echo "$as_me: error: C compiler cannot create executables |
| 2215 | See \`config.log' for more details." >&2;} |
| 2216 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2217 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2218 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2219 | ac_exeext=$ac_cv_exeext |
| 2220 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2221 | echo "${ECHO_T}$ac_file" >&6; } |
| 2222 | |
| 2223 | # Check that the compiler produces executables we can run. If not, either |
| 2224 | # the compiler is broken, or we cross compile. |
| 2225 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2226 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2227 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2228 | # If not cross compiling, check that we can run a simple program. |
| 2229 | if test "$cross_compiling" != yes; then |
| 2230 | if { ac_try='./$ac_file' |
| 2231 | { (case "(($ac_try" in |
| 2232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2233 | *) ac_try_echo=$ac_try;; |
| 2234 | esac |
| 2235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2236 | (eval "$ac_try") 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); }; }; then |
| 2240 | cross_compiling=no |
| 2241 | else |
| 2242 | if test "$cross_compiling" = maybe; then |
| 2243 | cross_compiling=yes |
| 2244 | else |
| 2245 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2246 | If you meant to cross compile, use \`--host'. |
| 2247 | See \`config.log' for more details." >&5 |
| 2248 | echo "$as_me: error: cannot run C compiled programs. |
| 2249 | If you meant to cross compile, use \`--host'. |
| 2250 | See \`config.log' for more details." >&2;} |
| 2251 | { (exit 1); exit 1; }; } |
| 2252 | fi |
| 2253 | fi |
| 2254 | fi |
| 2255 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2256 | echo "${ECHO_T}yes" >&6; } |
| 2257 | |
| 2258 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2259 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2260 | # Check that the compiler produces executables we can run. If not, either |
| 2261 | # the compiler is broken, or we cross compile. |
| 2262 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2263 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2264 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2265 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2266 | |
| 2267 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2268 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2269 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2270 | case "(($ac_try" in |
| 2271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2272 | *) ac_try_echo=$ac_try;; |
| 2273 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2275 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2276 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2279 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2280 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2281 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2282 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2283 | for ac_file in conftest.exe conftest conftest.*; do |
| 2284 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2285 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2286 | *.$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] | 2287 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2288 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2289 | * ) break;; |
| 2290 | esac |
| 2291 | done |
| 2292 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2293 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2294 | See \`config.log' for more details." >&5 |
| 2295 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2296 | See \`config.log' for more details." >&2;} |
| 2297 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2299 | |
| 2300 | rm -f conftest$ac_cv_exeext |
| 2301 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2302 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | |
| 2304 | rm -f conftest.$ac_ext |
| 2305 | EXEEXT=$ac_cv_exeext |
| 2306 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2307 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2308 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2309 | if test "${ac_cv_objext+set}" = set; then |
| 2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2311 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2312 | cat >conftest.$ac_ext <<_ACEOF |
| 2313 | /* confdefs.h. */ |
| 2314 | _ACEOF |
| 2315 | cat confdefs.h >>conftest.$ac_ext |
| 2316 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2317 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2318 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2319 | int |
| 2320 | main () |
| 2321 | { |
| 2322 | |
| 2323 | ; |
| 2324 | return 0; |
| 2325 | } |
| 2326 | _ACEOF |
| 2327 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2328 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2329 | case "(($ac_try" in |
| 2330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2331 | *) ac_try_echo=$ac_try;; |
| 2332 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2334 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2337 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2338 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2339 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2342 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2343 | break;; |
| 2344 | esac |
| 2345 | done |
| 2346 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2347 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2350 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2351 | See \`config.log' for more details." >&5 |
| 2352 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2353 | See \`config.log' for more details." >&2;} |
| 2354 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2355 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2356 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2357 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2358 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2359 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2360 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2361 | OBJEXT=$ac_cv_objext |
| 2362 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2363 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2364 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2365 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2367 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2368 | cat >conftest.$ac_ext <<_ACEOF |
| 2369 | /* confdefs.h. */ |
| 2370 | _ACEOF |
| 2371 | cat confdefs.h >>conftest.$ac_ext |
| 2372 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2373 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2374 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2375 | int |
| 2376 | main () |
| 2377 | { |
| 2378 | #ifndef __GNUC__ |
| 2379 | choke me |
| 2380 | #endif |
| 2381 | |
| 2382 | ; |
| 2383 | return 0; |
| 2384 | } |
| 2385 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2386 | rm -f conftest.$ac_objext |
| 2387 | if { (ac_try="$ac_compile" |
| 2388 | case "(($ac_try" in |
| 2389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2390 | *) ac_try_echo=$ac_try;; |
| 2391 | esac |
| 2392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2393 | (eval "$ac_compile") 2>conftest.er1 |
| 2394 | ac_status=$? |
| 2395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2396 | rm -f conftest.er1 |
| 2397 | cat conftest.err >&5 |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); } && |
| 2400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2401 | { (case "(($ac_try" in |
| 2402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2403 | *) ac_try_echo=$ac_try;; |
| 2404 | esac |
| 2405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2406 | (eval "$ac_try") 2>&5 |
| 2407 | ac_status=$? |
| 2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2409 | (exit $ac_status); }; } && |
| 2410 | { ac_try='test -s conftest.$ac_objext' |
| 2411 | { (case "(($ac_try" in |
| 2412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2413 | *) ac_try_echo=$ac_try;; |
| 2414 | esac |
| 2415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2416 | (eval "$ac_try") 2>&5 |
| 2417 | ac_status=$? |
| 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2419 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2420 | ac_compiler_gnu=yes |
| 2421 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2422 | echo "$as_me: failed program was:" >&5 |
| 2423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2424 | |
| 2425 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2426 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2430 | |
| 2431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2432 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2433 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2434 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2435 | ac_test_CFLAGS=${CFLAGS+set} |
| 2436 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2437 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2438 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2439 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2441 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2442 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2443 | ac_c_werror_flag=yes |
| 2444 | ac_cv_prog_cc_g=no |
| 2445 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | /* confdefs.h. */ |
| 2448 | _ACEOF |
| 2449 | cat confdefs.h >>conftest.$ac_ext |
| 2450 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2451 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2452 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2453 | int |
| 2454 | main () |
| 2455 | { |
| 2456 | |
| 2457 | ; |
| 2458 | return 0; |
| 2459 | } |
| 2460 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2461 | rm -f conftest.$ac_objext |
| 2462 | if { (ac_try="$ac_compile" |
| 2463 | case "(($ac_try" in |
| 2464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2465 | *) ac_try_echo=$ac_try;; |
| 2466 | esac |
| 2467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2468 | (eval "$ac_compile") 2>conftest.er1 |
| 2469 | ac_status=$? |
| 2470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2471 | rm -f conftest.er1 |
| 2472 | cat conftest.err >&5 |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); } && |
| 2475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2476 | { (case "(($ac_try" in |
| 2477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2478 | *) ac_try_echo=$ac_try;; |
| 2479 | esac |
| 2480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2481 | (eval "$ac_try") 2>&5 |
| 2482 | ac_status=$? |
| 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2484 | (exit $ac_status); }; } && |
| 2485 | { ac_try='test -s conftest.$ac_objext' |
| 2486 | { (case "(($ac_try" in |
| 2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2488 | *) ac_try_echo=$ac_try;; |
| 2489 | esac |
| 2490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2491 | (eval "$ac_try") 2>&5 |
| 2492 | ac_status=$? |
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2494 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2495 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2497 | echo "$as_me: failed program was:" >&5 |
| 2498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2499 | |
| 2500 | CFLAGS="" |
| 2501 | cat >conftest.$ac_ext <<_ACEOF |
| 2502 | /* confdefs.h. */ |
| 2503 | _ACEOF |
| 2504 | cat confdefs.h >>conftest.$ac_ext |
| 2505 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2506 | /* end confdefs.h. */ |
| 2507 | |
| 2508 | int |
| 2509 | main () |
| 2510 | { |
| 2511 | |
| 2512 | ; |
| 2513 | return 0; |
| 2514 | } |
| 2515 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2516 | rm -f conftest.$ac_objext |
| 2517 | if { (ac_try="$ac_compile" |
| 2518 | case "(($ac_try" in |
| 2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2520 | *) ac_try_echo=$ac_try;; |
| 2521 | esac |
| 2522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2523 | (eval "$ac_compile") 2>conftest.er1 |
| 2524 | ac_status=$? |
| 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2526 | rm -f conftest.er1 |
| 2527 | cat conftest.err >&5 |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2529 | (exit $ac_status); } && |
| 2530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2531 | { (case "(($ac_try" in |
| 2532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2533 | *) ac_try_echo=$ac_try;; |
| 2534 | esac |
| 2535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2536 | (eval "$ac_try") 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; } && |
| 2540 | { ac_try='test -s conftest.$ac_objext' |
| 2541 | { (case "(($ac_try" in |
| 2542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2543 | *) ac_try_echo=$ac_try;; |
| 2544 | esac |
| 2545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2546 | (eval "$ac_try") 2>&5 |
| 2547 | ac_status=$? |
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2549 | (exit $ac_status); }; }; then |
| 2550 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2551 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2552 | echo "$as_me: failed program was:" >&5 |
| 2553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2554 | |
| 2555 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2557 | cat >conftest.$ac_ext <<_ACEOF |
| 2558 | /* confdefs.h. */ |
| 2559 | _ACEOF |
| 2560 | cat confdefs.h >>conftest.$ac_ext |
| 2561 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 | /* end confdefs.h. */ |
| 2563 | |
| 2564 | int |
| 2565 | main () |
| 2566 | { |
| 2567 | |
| 2568 | ; |
| 2569 | return 0; |
| 2570 | } |
| 2571 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2572 | rm -f conftest.$ac_objext |
| 2573 | if { (ac_try="$ac_compile" |
| 2574 | case "(($ac_try" in |
| 2575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2576 | *) ac_try_echo=$ac_try;; |
| 2577 | esac |
| 2578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2579 | (eval "$ac_compile") 2>conftest.er1 |
| 2580 | ac_status=$? |
| 2581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2582 | rm -f conftest.er1 |
| 2583 | cat conftest.err >&5 |
| 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2585 | (exit $ac_status); } && |
| 2586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2587 | { (case "(($ac_try" in |
| 2588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2589 | *) ac_try_echo=$ac_try;; |
| 2590 | esac |
| 2591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2592 | (eval "$ac_try") 2>&5 |
| 2593 | ac_status=$? |
| 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; } && |
| 2596 | { ac_try='test -s conftest.$ac_objext' |
| 2597 | { (case "(($ac_try" in |
| 2598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2599 | *) ac_try_echo=$ac_try;; |
| 2600 | esac |
| 2601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2602 | (eval "$ac_try") 2>&5 |
| 2603 | ac_status=$? |
| 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2605 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2606 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2607 | else |
| 2608 | echo "$as_me: failed program was:" >&5 |
| 2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2610 | |
| 2611 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2612 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2615 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2621 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2624 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2625 | if test "$ac_test_CFLAGS" = set; then |
| 2626 | CFLAGS=$ac_save_CFLAGS |
| 2627 | elif test $ac_cv_prog_cc_g = yes; then |
| 2628 | if test "$GCC" = yes; then |
| 2629 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2630 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | fi |
| 2633 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | if test "$GCC" = yes; then |
| 2635 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2636 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2637 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2638 | fi |
| 2639 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2640 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2641 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2642 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2644 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2645 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2646 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2647 | cat >conftest.$ac_ext <<_ACEOF |
| 2648 | /* confdefs.h. */ |
| 2649 | _ACEOF |
| 2650 | cat confdefs.h >>conftest.$ac_ext |
| 2651 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2652 | /* end confdefs.h. */ |
| 2653 | #include <stdarg.h> |
| 2654 | #include <stdio.h> |
| 2655 | #include <sys/types.h> |
| 2656 | #include <sys/stat.h> |
| 2657 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2658 | struct buf { int x; }; |
| 2659 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2660 | static char *e (p, i) |
| 2661 | char **p; |
| 2662 | int i; |
| 2663 | { |
| 2664 | return p[i]; |
| 2665 | } |
| 2666 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2667 | { |
| 2668 | char *s; |
| 2669 | va_list v; |
| 2670 | va_start (v,p); |
| 2671 | s = g (p, va_arg (v,int)); |
| 2672 | va_end (v); |
| 2673 | return s; |
| 2674 | } |
| 2675 | |
| 2676 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2677 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2678 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2679 | 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] | 2680 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2681 | 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] | 2682 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2683 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2685 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2686 | inside strings and character constants. */ |
| 2687 | #define FOO(x) 'x' |
| 2688 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2689 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2690 | int test (int i, double x); |
| 2691 | struct s1 {int (*f) (int a);}; |
| 2692 | struct s2 {int (*f) (double a);}; |
| 2693 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2694 | int argc; |
| 2695 | char **argv; |
| 2696 | int |
| 2697 | main () |
| 2698 | { |
| 2699 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2700 | ; |
| 2701 | return 0; |
| 2702 | } |
| 2703 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2704 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2705 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2706 | do |
| 2707 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2708 | rm -f conftest.$ac_objext |
| 2709 | if { (ac_try="$ac_compile" |
| 2710 | case "(($ac_try" in |
| 2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2712 | *) ac_try_echo=$ac_try;; |
| 2713 | esac |
| 2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2715 | (eval "$ac_compile") 2>conftest.er1 |
| 2716 | ac_status=$? |
| 2717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2718 | rm -f conftest.er1 |
| 2719 | cat conftest.err >&5 |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); } && |
| 2722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2723 | { (case "(($ac_try" in |
| 2724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2725 | *) ac_try_echo=$ac_try;; |
| 2726 | esac |
| 2727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2728 | (eval "$ac_try") 2>&5 |
| 2729 | ac_status=$? |
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); }; } && |
| 2732 | { ac_try='test -s conftest.$ac_objext' |
| 2733 | { (case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_try") 2>&5 |
| 2739 | ac_status=$? |
| 2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2741 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2742 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2743 | else |
| 2744 | echo "$as_me: failed program was:" >&5 |
| 2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2746 | |
| 2747 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2748 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2750 | rm -f core conftest.err conftest.$ac_objext |
| 2751 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2752 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2753 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2754 | CC=$ac_save_CC |
| 2755 | |
| 2756 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2757 | # AC_CACHE_VAL |
| 2758 | case "x$ac_cv_prog_cc_c89" in |
| 2759 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2760 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2761 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2763 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2764 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2765 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2766 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2767 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2768 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2769 | esac |
| 2770 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2771 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2772 | ac_ext=c |
| 2773 | ac_cpp='$CPP $CPPFLAGS' |
| 2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2777 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2778 | ac_ext=cpp |
| 2779 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2780 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2781 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2782 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2783 | if test -z "$CXX"; then |
| 2784 | if test -n "$CCC"; then |
| 2785 | CXX=$CCC |
| 2786 | else |
| 2787 | if test -n "$ac_tool_prefix"; then |
| 2788 | for ac_prog in clang++ llvm-g++ g++ |
| 2789 | do |
| 2790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2794 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2796 | else |
| 2797 | if test -n "$CXX"; then |
| 2798 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2799 | else |
| 2800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2801 | for as_dir in $PATH |
| 2802 | do |
| 2803 | IFS=$as_save_IFS |
| 2804 | test -z "$as_dir" && as_dir=. |
| 2805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2807 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2809 | break 2 |
| 2810 | fi |
| 2811 | done |
| 2812 | done |
| 2813 | IFS=$as_save_IFS |
| 2814 | |
| 2815 | fi |
| 2816 | fi |
| 2817 | CXX=$ac_cv_prog_CXX |
| 2818 | if test -n "$CXX"; then |
| 2819 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2820 | echo "${ECHO_T}$CXX" >&6; } |
| 2821 | else |
| 2822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2823 | echo "${ECHO_T}no" >&6; } |
| 2824 | fi |
| 2825 | |
| 2826 | |
| 2827 | test -n "$CXX" && break |
| 2828 | done |
| 2829 | fi |
| 2830 | if test -z "$CXX"; then |
| 2831 | ac_ct_CXX=$CXX |
| 2832 | for ac_prog in clang++ llvm-g++ g++ |
| 2833 | do |
| 2834 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2835 | set dummy $ac_prog; ac_word=$2 |
| 2836 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2838 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2840 | else |
| 2841 | if test -n "$ac_ct_CXX"; then |
| 2842 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2843 | else |
| 2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2845 | for as_dir in $PATH |
| 2846 | do |
| 2847 | IFS=$as_save_IFS |
| 2848 | test -z "$as_dir" && as_dir=. |
| 2849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2851 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2852 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2853 | break 2 |
| 2854 | fi |
| 2855 | done |
| 2856 | done |
| 2857 | IFS=$as_save_IFS |
| 2858 | |
| 2859 | fi |
| 2860 | fi |
| 2861 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2862 | if test -n "$ac_ct_CXX"; then |
| 2863 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2864 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2865 | else |
| 2866 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2867 | echo "${ECHO_T}no" >&6; } |
| 2868 | fi |
| 2869 | |
| 2870 | |
| 2871 | test -n "$ac_ct_CXX" && break |
| 2872 | done |
| 2873 | |
| 2874 | if test "x$ac_ct_CXX" = x; then |
| 2875 | CXX="g++" |
| 2876 | else |
| 2877 | case $cross_compiling:$ac_tool_warned in |
| 2878 | yes:) |
| 2879 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2880 | whose name does not start with the host triplet. If you think this |
| 2881 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2882 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2883 | whose name does not start with the host triplet. If you think this |
| 2884 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2885 | ac_tool_warned=yes ;; |
| 2886 | esac |
| 2887 | CXX=$ac_ct_CXX |
| 2888 | fi |
| 2889 | fi |
| 2890 | |
| 2891 | fi |
| 2892 | fi |
| 2893 | # Provide some information about the compiler. |
| 2894 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2895 | ac_compiler=`set X $ac_compile; echo $2` |
| 2896 | { (ac_try="$ac_compiler --version >&5" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2902 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2903 | ac_status=$? |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2905 | (exit $ac_status); } |
| 2906 | { (ac_try="$ac_compiler -v >&5" |
| 2907 | case "(($ac_try" in |
| 2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2909 | *) ac_try_echo=$ac_try;; |
| 2910 | esac |
| 2911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2912 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2913 | ac_status=$? |
| 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2915 | (exit $ac_status); } |
| 2916 | { (ac_try="$ac_compiler -V >&5" |
| 2917 | case "(($ac_try" in |
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2919 | *) ac_try_echo=$ac_try;; |
| 2920 | esac |
| 2921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2922 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2923 | ac_status=$? |
| 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2925 | (exit $ac_status); } |
| 2926 | |
| 2927 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2928 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2929 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2931 | else |
| 2932 | cat >conftest.$ac_ext <<_ACEOF |
| 2933 | /* confdefs.h. */ |
| 2934 | _ACEOF |
| 2935 | cat confdefs.h >>conftest.$ac_ext |
| 2936 | cat >>conftest.$ac_ext <<_ACEOF |
| 2937 | /* end confdefs.h. */ |
| 2938 | |
| 2939 | int |
| 2940 | main () |
| 2941 | { |
| 2942 | #ifndef __GNUC__ |
| 2943 | choke me |
| 2944 | #endif |
| 2945 | |
| 2946 | ; |
| 2947 | return 0; |
| 2948 | } |
| 2949 | _ACEOF |
| 2950 | rm -f conftest.$ac_objext |
| 2951 | if { (ac_try="$ac_compile" |
| 2952 | case "(($ac_try" in |
| 2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2954 | *) ac_try_echo=$ac_try;; |
| 2955 | esac |
| 2956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2957 | (eval "$ac_compile") 2>conftest.er1 |
| 2958 | ac_status=$? |
| 2959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2960 | rm -f conftest.er1 |
| 2961 | cat conftest.err >&5 |
| 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2963 | (exit $ac_status); } && |
| 2964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2965 | { (case "(($ac_try" in |
| 2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2967 | *) ac_try_echo=$ac_try;; |
| 2968 | esac |
| 2969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2970 | (eval "$ac_try") 2>&5 |
| 2971 | ac_status=$? |
| 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); }; } && |
| 2974 | { ac_try='test -s conftest.$ac_objext' |
| 2975 | { (case "(($ac_try" in |
| 2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2977 | *) ac_try_echo=$ac_try;; |
| 2978 | esac |
| 2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2980 | (eval "$ac_try") 2>&5 |
| 2981 | ac_status=$? |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); }; }; then |
| 2984 | ac_compiler_gnu=yes |
| 2985 | else |
| 2986 | echo "$as_me: failed program was:" >&5 |
| 2987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2988 | |
| 2989 | ac_compiler_gnu=no |
| 2990 | fi |
| 2991 | |
| 2992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2993 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2994 | |
| 2995 | fi |
| 2996 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2997 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2998 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2999 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3000 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3001 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3002 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3003 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3005 | else |
| 3006 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3007 | ac_cxx_werror_flag=yes |
| 3008 | ac_cv_prog_cxx_g=no |
| 3009 | CXXFLAGS="-g" |
| 3010 | cat >conftest.$ac_ext <<_ACEOF |
| 3011 | /* confdefs.h. */ |
| 3012 | _ACEOF |
| 3013 | cat confdefs.h >>conftest.$ac_ext |
| 3014 | cat >>conftest.$ac_ext <<_ACEOF |
| 3015 | /* end confdefs.h. */ |
| 3016 | |
| 3017 | int |
| 3018 | main () |
| 3019 | { |
| 3020 | |
| 3021 | ; |
| 3022 | return 0; |
| 3023 | } |
| 3024 | _ACEOF |
| 3025 | rm -f conftest.$ac_objext |
| 3026 | if { (ac_try="$ac_compile" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
| 3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3032 | (eval "$ac_compile") 2>conftest.er1 |
| 3033 | ac_status=$? |
| 3034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3035 | rm -f conftest.er1 |
| 3036 | cat conftest.err >&5 |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3038 | (exit $ac_status); } && |
| 3039 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3040 | { (case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
| 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3045 | (eval "$ac_try") 2>&5 |
| 3046 | ac_status=$? |
| 3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3048 | (exit $ac_status); }; } && |
| 3049 | { ac_try='test -s conftest.$ac_objext' |
| 3050 | { (case "(($ac_try" in |
| 3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3052 | *) ac_try_echo=$ac_try;; |
| 3053 | esac |
| 3054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3055 | (eval "$ac_try") 2>&5 |
| 3056 | ac_status=$? |
| 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); }; }; then |
| 3059 | ac_cv_prog_cxx_g=yes |
| 3060 | else |
| 3061 | echo "$as_me: failed program was:" >&5 |
| 3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3063 | |
| 3064 | CXXFLAGS="" |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
| 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
| 3071 | |
| 3072 | int |
| 3073 | main () |
| 3074 | { |
| 3075 | |
| 3076 | ; |
| 3077 | return 0; |
| 3078 | } |
| 3079 | _ACEOF |
| 3080 | rm -f conftest.$ac_objext |
| 3081 | if { (ac_try="$ac_compile" |
| 3082 | case "(($ac_try" in |
| 3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3084 | *) ac_try_echo=$ac_try;; |
| 3085 | esac |
| 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3087 | (eval "$ac_compile") 2>conftest.er1 |
| 3088 | ac_status=$? |
| 3089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3090 | rm -f conftest.er1 |
| 3091 | cat conftest.err >&5 |
| 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3093 | (exit $ac_status); } && |
| 3094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3095 | { (case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_try") 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; } && |
| 3104 | { ac_try='test -s conftest.$ac_objext' |
| 3105 | { (case "(($ac_try" in |
| 3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3107 | *) ac_try_echo=$ac_try;; |
| 3108 | esac |
| 3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3110 | (eval "$ac_try") 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; }; then |
| 3114 | : |
| 3115 | else |
| 3116 | echo "$as_me: failed program was:" >&5 |
| 3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3118 | |
| 3119 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3120 | CXXFLAGS="-g" |
| 3121 | cat >conftest.$ac_ext <<_ACEOF |
| 3122 | /* confdefs.h. */ |
| 3123 | _ACEOF |
| 3124 | cat confdefs.h >>conftest.$ac_ext |
| 3125 | cat >>conftest.$ac_ext <<_ACEOF |
| 3126 | /* end confdefs.h. */ |
| 3127 | |
| 3128 | int |
| 3129 | main () |
| 3130 | { |
| 3131 | |
| 3132 | ; |
| 3133 | return 0; |
| 3134 | } |
| 3135 | _ACEOF |
| 3136 | rm -f conftest.$ac_objext |
| 3137 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 3144 | ac_status=$? |
| 3145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3146 | rm -f conftest.er1 |
| 3147 | cat conftest.err >&5 |
| 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3149 | (exit $ac_status); } && |
| 3150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3151 | { (case "(($ac_try" in |
| 3152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3153 | *) ac_try_echo=$ac_try;; |
| 3154 | esac |
| 3155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3156 | (eval "$ac_try") 2>&5 |
| 3157 | ac_status=$? |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); }; } && |
| 3160 | { ac_try='test -s conftest.$ac_objext' |
| 3161 | { (case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_try") 2>&5 |
| 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 | (exit $ac_status); }; }; then |
| 3170 | ac_cv_prog_cxx_g=yes |
| 3171 | else |
| 3172 | echo "$as_me: failed program was:" >&5 |
| 3173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3174 | |
| 3175 | |
| 3176 | fi |
| 3177 | |
| 3178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3179 | fi |
| 3180 | |
| 3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3182 | fi |
| 3183 | |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3185 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3186 | fi |
| 3187 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3188 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3189 | if test "$ac_test_CXXFLAGS" = set; then |
| 3190 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3191 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3192 | if test "$GXX" = yes; then |
| 3193 | CXXFLAGS="-g -O2" |
| 3194 | else |
| 3195 | CXXFLAGS="-g" |
| 3196 | fi |
| 3197 | else |
| 3198 | if test "$GXX" = yes; then |
| 3199 | CXXFLAGS="-O2" |
| 3200 | else |
| 3201 | CXXFLAGS= |
| 3202 | fi |
| 3203 | fi |
| 3204 | ac_ext=c |
| 3205 | ac_cpp='$CPP $CPPFLAGS' |
| 3206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3209 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3210 | ac_ext=c |
| 3211 | ac_cpp='$CPP $CPPFLAGS' |
| 3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3215 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3216 | 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] | 3217 | # On Suns, sometimes $CPP names a directory. |
| 3218 | if test -n "$CPP" && test -d "$CPP"; then |
| 3219 | CPP= |
| 3220 | fi |
| 3221 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3222 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3224 | else |
| 3225 | # Double quotes because CPP needs to be expanded |
| 3226 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3227 | do |
| 3228 | ac_preproc_ok=false |
| 3229 | for ac_c_preproc_warn_flag in '' yes |
| 3230 | do |
| 3231 | # Use a header file that comes with gcc, so configuring glibc |
| 3232 | # with a fresh cross-compiler works. |
| 3233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3234 | # <limits.h> exists even on freestanding compilers. |
| 3235 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3236 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3237 | cat >conftest.$ac_ext <<_ACEOF |
| 3238 | /* confdefs.h. */ |
| 3239 | _ACEOF |
| 3240 | cat confdefs.h >>conftest.$ac_ext |
| 3241 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3242 | /* end confdefs.h. */ |
| 3243 | #ifdef __STDC__ |
| 3244 | # include <limits.h> |
| 3245 | #else |
| 3246 | # include <assert.h> |
| 3247 | #endif |
| 3248 | Syntax error |
| 3249 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3250 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3251 | case "(($ac_try" in |
| 3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3253 | *) ac_try_echo=$ac_try;; |
| 3254 | esac |
| 3255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3256 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3257 | ac_status=$? |
| 3258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3259 | rm -f conftest.er1 |
| 3260 | cat conftest.err >&5 |
| 3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3262 | (exit $ac_status); } >/dev/null; then |
| 3263 | if test -s conftest.err; then |
| 3264 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3265 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3266 | else |
| 3267 | ac_cpp_err= |
| 3268 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3269 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3270 | ac_cpp_err=yes |
| 3271 | fi |
| 3272 | if test -z "$ac_cpp_err"; then |
| 3273 | : |
| 3274 | else |
| 3275 | echo "$as_me: failed program was:" >&5 |
| 3276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3277 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3278 | # Broken: fails on valid input. |
| 3279 | continue |
| 3280 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3281 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3282 | rm -f conftest.err conftest.$ac_ext |
| 3283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3284 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3285 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3286 | cat >conftest.$ac_ext <<_ACEOF |
| 3287 | /* confdefs.h. */ |
| 3288 | _ACEOF |
| 3289 | cat confdefs.h >>conftest.$ac_ext |
| 3290 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | /* end confdefs.h. */ |
| 3292 | #include <ac_nonexistent.h> |
| 3293 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3295 | case "(($ac_try" in |
| 3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3297 | *) ac_try_echo=$ac_try;; |
| 3298 | esac |
| 3299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3301 | ac_status=$? |
| 3302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3303 | rm -f conftest.er1 |
| 3304 | cat conftest.err >&5 |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); } >/dev/null; then |
| 3307 | if test -s conftest.err; then |
| 3308 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3310 | else |
| 3311 | ac_cpp_err= |
| 3312 | fi |
| 3313 | else |
| 3314 | ac_cpp_err=yes |
| 3315 | fi |
| 3316 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | # Broken: success on invalid input. |
| 3318 | continue |
| 3319 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3320 | echo "$as_me: failed program was:" >&5 |
| 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3323 | # Passes both tests. |
| 3324 | ac_preproc_ok=: |
| 3325 | break |
| 3326 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3327 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | rm -f conftest.err conftest.$ac_ext |
| 3329 | |
| 3330 | done |
| 3331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3332 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3333 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3334 | break |
| 3335 | fi |
| 3336 | |
| 3337 | done |
| 3338 | ac_cv_prog_CPP=$CPP |
| 3339 | |
| 3340 | fi |
| 3341 | CPP=$ac_cv_prog_CPP |
| 3342 | else |
| 3343 | ac_cv_prog_CPP=$CPP |
| 3344 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3345 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3346 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3347 | ac_preproc_ok=false |
| 3348 | for ac_c_preproc_warn_flag in '' yes |
| 3349 | do |
| 3350 | # Use a header file that comes with gcc, so configuring glibc |
| 3351 | # with a fresh cross-compiler works. |
| 3352 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3353 | # <limits.h> exists even on freestanding compilers. |
| 3354 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3355 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3356 | cat >conftest.$ac_ext <<_ACEOF |
| 3357 | /* confdefs.h. */ |
| 3358 | _ACEOF |
| 3359 | cat confdefs.h >>conftest.$ac_ext |
| 3360 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3361 | /* end confdefs.h. */ |
| 3362 | #ifdef __STDC__ |
| 3363 | # include <limits.h> |
| 3364 | #else |
| 3365 | # include <assert.h> |
| 3366 | #endif |
| 3367 | Syntax error |
| 3368 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3369 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3370 | case "(($ac_try" in |
| 3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3372 | *) ac_try_echo=$ac_try;; |
| 3373 | esac |
| 3374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3375 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3376 | ac_status=$? |
| 3377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3378 | rm -f conftest.er1 |
| 3379 | cat conftest.err >&5 |
| 3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3381 | (exit $ac_status); } >/dev/null; then |
| 3382 | if test -s conftest.err; then |
| 3383 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3384 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3385 | else |
| 3386 | ac_cpp_err= |
| 3387 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3388 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3389 | ac_cpp_err=yes |
| 3390 | fi |
| 3391 | if test -z "$ac_cpp_err"; then |
| 3392 | : |
| 3393 | else |
| 3394 | echo "$as_me: failed program was:" >&5 |
| 3395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3396 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3397 | # Broken: fails on valid input. |
| 3398 | continue |
| 3399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3400 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3401 | rm -f conftest.err conftest.$ac_ext |
| 3402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3403 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3404 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3405 | cat >conftest.$ac_ext <<_ACEOF |
| 3406 | /* confdefs.h. */ |
| 3407 | _ACEOF |
| 3408 | cat confdefs.h >>conftest.$ac_ext |
| 3409 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3410 | /* end confdefs.h. */ |
| 3411 | #include <ac_nonexistent.h> |
| 3412 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3414 | case "(($ac_try" in |
| 3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3416 | *) ac_try_echo=$ac_try;; |
| 3417 | esac |
| 3418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3420 | ac_status=$? |
| 3421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3422 | rm -f conftest.er1 |
| 3423 | cat conftest.err >&5 |
| 3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3425 | (exit $ac_status); } >/dev/null; then |
| 3426 | if test -s conftest.err; then |
| 3427 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3429 | else |
| 3430 | ac_cpp_err= |
| 3431 | fi |
| 3432 | else |
| 3433 | ac_cpp_err=yes |
| 3434 | fi |
| 3435 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3436 | # Broken: success on invalid input. |
| 3437 | continue |
| 3438 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3439 | echo "$as_me: failed program was:" >&5 |
| 3440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3441 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3442 | # Passes both tests. |
| 3443 | ac_preproc_ok=: |
| 3444 | break |
| 3445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3446 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3447 | rm -f conftest.err conftest.$ac_ext |
| 3448 | |
| 3449 | done |
| 3450 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3451 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3452 | if $ac_preproc_ok; then |
| 3453 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3454 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3455 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3456 | See \`config.log' for more details." >&5 |
| 3457 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3458 | See \`config.log' for more details." >&2;} |
| 3459 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3460 | fi |
| 3461 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3462 | ac_ext=c |
| 3463 | ac_cpp='$CPP $CPPFLAGS' |
| 3464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3468 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3469 | |
| 3470 | |
| 3471 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3472 | subdirs="$subdirs projects/llvm-gcc" |
| 3473 | |
| 3474 | fi |
| 3475 | |
| 3476 | if test -d ${srcdir}/projects/test-suite ; then |
| 3477 | subdirs="$subdirs projects/test-suite" |
| 3478 | |
| 3479 | fi |
| 3480 | |
| 3481 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3482 | subdirs="$subdirs projects/llvm-test" |
| 3483 | |
| 3484 | fi |
| 3485 | |
| 3486 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3487 | subdirs="$subdirs projects/poolalloc" |
| 3488 | |
| 3489 | fi |
| 3490 | |
| 3491 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3492 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3493 | |
| 3494 | fi |
| 3495 | |
| 3496 | for i in `ls ${srcdir}/projects` |
| 3497 | do |
| 3498 | if test -d ${srcdir}/projects/${i} ; then |
| 3499 | case ${i} in |
| 3500 | sample) subdirs="$subdirs projects/sample" |
| 3501 | ;; |
| 3502 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3503 | ;; |
| 3504 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3505 | ;; |
| 3506 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3507 | ;; |
| 3508 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3509 | ;; |
| 3510 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3511 | ;; |
| 3512 | safecode) subdirs="$subdirs projects/safecode" |
| 3513 | ;; |
| 3514 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3515 | ;; |
Daniel Dunbar | d45162b | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3516 | compiler-rt) ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3517 | llvm-gcc) ;; |
| 3518 | test-suite) ;; |
| 3519 | llvm-test) ;; |
| 3520 | poolalloc) ;; |
| 3521 | llvm-poolalloc) ;; |
| 3522 | *) |
| 3523 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3524 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3525 | ;; |
| 3526 | esac |
| 3527 | fi |
| 3528 | done |
| 3529 | |
| 3530 | # Check whether --enable-polly was given. |
| 3531 | if test "${enable_polly+set}" = set; then |
| 3532 | enableval=$enable_polly; |
| 3533 | else |
| 3534 | enableval=default |
| 3535 | fi |
| 3536 | |
| 3537 | case "$enableval" in |
| 3538 | yes) ENABLE_POLLY=1 |
| 3539 | ;; |
| 3540 | no) ENABLE_POLLY=0 |
| 3541 | ;; |
| 3542 | default) ENABLE_POLLY=1 |
| 3543 | ;; |
| 3544 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3545 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3546 | { (exit 1); exit 1; }; } ;; |
| 3547 | esac |
| 3548 | |
| 3549 | |
| 3550 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3551 | LLVM_HAS_POLLY=1 |
| 3552 | |
| 3553 | subdirs="$subdirs tools/polly" |
| 3554 | |
| 3555 | fi |
| 3556 | |
| 3557 | |
| 3558 | # Make sure we can run config.sub. |
| 3559 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3560 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3561 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3562 | { (exit 1); exit 1; }; } |
| 3563 | |
| 3564 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3565 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3566 | if test "${ac_cv_build+set}" = set; then |
| 3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3568 | else |
| 3569 | ac_build_alias=$build_alias |
| 3570 | test "x$ac_build_alias" = x && |
| 3571 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3572 | test "x$ac_build_alias" = x && |
| 3573 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3574 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3575 | { (exit 1); exit 1; }; } |
| 3576 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3577 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3578 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3579 | { (exit 1); exit 1; }; } |
| 3580 | |
| 3581 | fi |
| 3582 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3583 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3584 | case $ac_cv_build in |
| 3585 | *-*-*) ;; |
| 3586 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3587 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3588 | { (exit 1); exit 1; }; };; |
| 3589 | esac |
| 3590 | build=$ac_cv_build |
| 3591 | ac_save_IFS=$IFS; IFS='-' |
| 3592 | set x $ac_cv_build |
| 3593 | shift |
| 3594 | build_cpu=$1 |
| 3595 | build_vendor=$2 |
| 3596 | shift; shift |
| 3597 | # Remember, the first character of IFS is used to create $*, |
| 3598 | # except with old shells: |
| 3599 | build_os=$* |
| 3600 | IFS=$ac_save_IFS |
| 3601 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3602 | |
| 3603 | |
| 3604 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3605 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3606 | if test "${ac_cv_host+set}" = set; then |
| 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3608 | else |
| 3609 | if test "x$host_alias" = x; then |
| 3610 | ac_cv_host=$ac_cv_build |
| 3611 | else |
| 3612 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3613 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3614 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3615 | { (exit 1); exit 1; }; } |
| 3616 | fi |
| 3617 | |
| 3618 | fi |
| 3619 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3620 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3621 | case $ac_cv_host in |
| 3622 | *-*-*) ;; |
| 3623 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3624 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3625 | { (exit 1); exit 1; }; };; |
| 3626 | esac |
| 3627 | host=$ac_cv_host |
| 3628 | ac_save_IFS=$IFS; IFS='-' |
| 3629 | set x $ac_cv_host |
| 3630 | shift |
| 3631 | host_cpu=$1 |
| 3632 | host_vendor=$2 |
| 3633 | shift; shift |
| 3634 | # Remember, the first character of IFS is used to create $*, |
| 3635 | # except with old shells: |
| 3636 | host_os=$* |
| 3637 | IFS=$ac_save_IFS |
| 3638 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3639 | |
| 3640 | |
| 3641 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3642 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3643 | if test "${ac_cv_target+set}" = set; then |
| 3644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3645 | else |
| 3646 | if test "x$target_alias" = x; then |
| 3647 | ac_cv_target=$ac_cv_host |
| 3648 | else |
| 3649 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3650 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3651 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3652 | { (exit 1); exit 1; }; } |
| 3653 | fi |
| 3654 | |
| 3655 | fi |
| 3656 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3657 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3658 | case $ac_cv_target in |
| 3659 | *-*-*) ;; |
| 3660 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3661 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3662 | { (exit 1); exit 1; }; };; |
| 3663 | esac |
| 3664 | target=$ac_cv_target |
| 3665 | ac_save_IFS=$IFS; IFS='-' |
| 3666 | set x $ac_cv_target |
| 3667 | shift |
| 3668 | target_cpu=$1 |
| 3669 | target_vendor=$2 |
| 3670 | shift; shift |
| 3671 | # Remember, the first character of IFS is used to create $*, |
| 3672 | # except with old shells: |
| 3673 | target_os=$* |
| 3674 | IFS=$ac_save_IFS |
| 3675 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3676 | |
| 3677 | |
| 3678 | # The aliases save the names the user supplied, while $host etc. |
| 3679 | # will get canonicalized. |
| 3680 | test -n "$target_alias" && |
| 3681 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3682 | NONENONEs,x,x, && |
| 3683 | program_prefix=${target_alias}- |
| 3684 | |
| 3685 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3686 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3687 | if test "${llvm_cv_os_type+set}" = set; then |
| 3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3689 | else |
| 3690 | case $host in |
| 3691 | *-*-aix*) |
| 3692 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3693 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3694 | llvm_cv_os_type="AIX" |
| 3695 | llvm_cv_platform_type="Unix" ;; |
| 3696 | *-*-irix*) |
| 3697 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3698 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3699 | llvm_cv_os_type="IRIX" |
| 3700 | llvm_cv_platform_type="Unix" ;; |
| 3701 | *-*-cygwin*) |
| 3702 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3703 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3704 | llvm_cv_os_type="Cygwin" |
| 3705 | llvm_cv_platform_type="Unix" ;; |
| 3706 | *-*-darwin*) |
| 3707 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3708 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3709 | llvm_cv_os_type="Darwin" |
| 3710 | llvm_cv_platform_type="Unix" ;; |
| 3711 | *-*-minix*) |
| 3712 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3713 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3714 | llvm_cv_os_type="Minix" |
| 3715 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3716 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3717 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3718 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3719 | llvm_cv_os_type="FreeBSD" |
| 3720 | llvm_cv_platform_type="Unix" ;; |
| 3721 | *-*-openbsd*) |
| 3722 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3723 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3724 | llvm_cv_os_type="OpenBSD" |
| 3725 | llvm_cv_platform_type="Unix" ;; |
| 3726 | *-*-netbsd*) |
| 3727 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3728 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3729 | llvm_cv_os_type="NetBSD" |
| 3730 | llvm_cv_platform_type="Unix" ;; |
| 3731 | *-*-dragonfly*) |
| 3732 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3733 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3734 | llvm_cv_os_type="DragonFly" |
| 3735 | llvm_cv_platform_type="Unix" ;; |
| 3736 | *-*-hpux*) |
| 3737 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3738 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3739 | llvm_cv_os_type="HP-UX" |
| 3740 | llvm_cv_platform_type="Unix" ;; |
| 3741 | *-*-interix*) |
| 3742 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3743 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3744 | llvm_cv_os_type="Interix" |
| 3745 | llvm_cv_platform_type="Unix" ;; |
| 3746 | *-*-linux*) |
| 3747 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3748 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3749 | llvm_cv_os_type="Linux" |
| 3750 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3751 | *-*-gnu*) |
| 3752 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3753 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3754 | llvm_cv_os_type="GNU" |
| 3755 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3756 | *-*-solaris*) |
| 3757 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3758 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3759 | llvm_cv_os_type="SunOS" |
| 3760 | llvm_cv_platform_type="Unix" ;; |
| 3761 | *-*-auroraux*) |
| 3762 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3763 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3764 | llvm_cv_os_type="AuroraUX" |
| 3765 | llvm_cv_platform_type="Unix" ;; |
| 3766 | *-*-win32*) |
| 3767 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3768 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3769 | llvm_cv_os_type="Win32" |
| 3770 | llvm_cv_platform_type="Win32" ;; |
| 3771 | *-*-mingw*) |
| 3772 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3773 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3774 | llvm_cv_os_type="MingW" |
| 3775 | llvm_cv_platform_type="Win32" ;; |
| 3776 | *-*-haiku*) |
| 3777 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3778 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3779 | llvm_cv_os_type="Haiku" |
| 3780 | llvm_cv_platform_type="Unix" ;; |
| 3781 | *-unknown-eabi*) |
| 3782 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3783 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3784 | llvm_cv_os_type="Freestanding" |
| 3785 | llvm_cv_platform_type="Unix" ;; |
| 3786 | *-unknown-elf*) |
| 3787 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3788 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3789 | llvm_cv_os_type="Freestanding" |
| 3790 | llvm_cv_platform_type="Unix" ;; |
| 3791 | *) |
| 3792 | llvm_cv_link_all_option="" |
| 3793 | llvm_cv_no_link_all_option="" |
| 3794 | llvm_cv_os_type="Unknown" |
| 3795 | llvm_cv_platform_type="Unknown" ;; |
| 3796 | esac |
| 3797 | fi |
| 3798 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3799 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3800 | |
| 3801 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3802 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3803 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3805 | else |
| 3806 | case $target in |
| 3807 | *-*-aix*) |
| 3808 | llvm_cv_target_os_type="AIX" ;; |
| 3809 | *-*-irix*) |
| 3810 | llvm_cv_target_os_type="IRIX" ;; |
| 3811 | *-*-cygwin*) |
| 3812 | llvm_cv_target_os_type="Cygwin" ;; |
| 3813 | *-*-darwin*) |
| 3814 | llvm_cv_target_os_type="Darwin" ;; |
| 3815 | *-*-minix*) |
| 3816 | llvm_cv_target_os_type="Minix" ;; |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 3817 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3818 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3819 | *-*-openbsd*) |
| 3820 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3821 | *-*-netbsd*) |
| 3822 | llvm_cv_target_os_type="NetBSD" ;; |
| 3823 | *-*-dragonfly*) |
| 3824 | llvm_cv_target_os_type="DragonFly" ;; |
| 3825 | *-*-hpux*) |
| 3826 | llvm_cv_target_os_type="HP-UX" ;; |
| 3827 | *-*-interix*) |
| 3828 | llvm_cv_target_os_type="Interix" ;; |
| 3829 | *-*-linux*) |
| 3830 | llvm_cv_target_os_type="Linux" ;; |
Sylvestre Ledru | 703bf84 | 2012-04-05 19:34:15 +0000 | [diff] [blame] | 3831 | *-*-gnu*) |
| 3832 | llvm_cv_target_os_type="GNU" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3833 | *-*-solaris*) |
| 3834 | llvm_cv_target_os_type="SunOS" ;; |
| 3835 | *-*-auroraux*) |
| 3836 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3837 | *-*-win32*) |
| 3838 | llvm_cv_target_os_type="Win32" ;; |
| 3839 | *-*-mingw*) |
| 3840 | llvm_cv_target_os_type="MingW" ;; |
| 3841 | *-*-haiku*) |
| 3842 | llvm_cv_target_os_type="Haiku" ;; |
| 3843 | *-*-rtems*) |
| 3844 | llvm_cv_target_os_type="RTEMS" ;; |
| 3845 | *-*-nacl*) |
| 3846 | llvm_cv_target_os_type="NativeClient" ;; |
| 3847 | *-unknown-eabi*) |
| 3848 | llvm_cv_target_os_type="Freestanding" ;; |
| 3849 | *) |
| 3850 | llvm_cv_target_os_type="Unknown" ;; |
| 3851 | esac |
| 3852 | fi |
| 3853 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3854 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3855 | |
| 3856 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3857 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3858 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3859 | { (exit 1); exit 1; }; } |
| 3860 | fi |
| 3861 | |
| 3862 | OS=$llvm_cv_os_type |
| 3863 | |
| 3864 | HOST_OS=$llvm_cv_os_type |
| 3865 | |
| 3866 | TARGET_OS=$llvm_cv_target_os_type |
| 3867 | |
| 3868 | |
| 3869 | LINKALL=$llvm_cv_link_all_option |
| 3870 | |
| 3871 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3872 | |
| 3873 | |
| 3874 | case $llvm_cv_platform_type in |
| 3875 | Unix) |
| 3876 | |
| 3877 | cat >>confdefs.h <<\_ACEOF |
| 3878 | #define LLVM_ON_UNIX 1 |
| 3879 | _ACEOF |
| 3880 | |
| 3881 | LLVM_ON_UNIX=1 |
| 3882 | |
| 3883 | LLVM_ON_WIN32=0 |
| 3884 | |
| 3885 | ;; |
| 3886 | Win32) |
| 3887 | |
| 3888 | cat >>confdefs.h <<\_ACEOF |
| 3889 | #define LLVM_ON_WIN32 1 |
| 3890 | _ACEOF |
| 3891 | |
| 3892 | LLVM_ON_UNIX=0 |
| 3893 | |
| 3894 | LLVM_ON_WIN32=1 |
| 3895 | |
| 3896 | ;; |
| 3897 | esac |
| 3898 | |
| 3899 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3900 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3901 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3903 | else |
| 3904 | case $target in |
| 3905 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3906 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3907 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3908 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3909 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3910 | mips-*) llvm_cv_target_arch="Mips" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 3911 | mipsel-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3912 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3913 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3914 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3915 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 3916 | nvptx-*) llvm_cv_target_arch="NVPTX" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3917 | *) llvm_cv_target_arch="Unknown" ;; |
| 3918 | esac |
| 3919 | fi |
| 3920 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3921 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3922 | |
| 3923 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3924 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3925 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3926 | fi |
| 3927 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3928 | case "$llvm_cv_target_arch" in |
| 3929 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3930 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3931 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3932 | esac |
| 3933 | |
| 3934 | ARCH=$llvm_cv_target_arch |
| 3935 | |
| 3936 | |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3937 | case $host in |
| 3938 | i?86-*) host_arch="x86" ;; |
| 3939 | amd64-* | x86_64-*) host_arch="x86_64" ;; |
| 3940 | sparc*-*) host_arch="Sparc" ;; |
| 3941 | powerpc*-*) host_arch="PowerPC" ;; |
| 3942 | arm*-*) host_arch="ARM" ;; |
| 3943 | mips-*) host_arch="Mips" ;; |
| 3944 | mipsel-*) host_arch="Mips" ;; |
| 3945 | xcore-*) host_arch="XCore" ;; |
| 3946 | msp430-*) host_arch="MSP430" ;; |
| 3947 | hexagon-*) host_arch="Hexagon" ;; |
| 3948 | mblaze-*) host_arch="MBlaze" ;; |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3949 | *) host_arch="Unknown" ;; |
| 3950 | esac |
| 3951 | |
| 3952 | if test "$host_arch" = "Unknown" ; then |
| 3953 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 |
| 3954 | echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} |
| 3955 | fi |
| 3956 | |
| 3957 | HOST_ARCH=$host_arch |
| 3958 | |
| 3959 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3960 | |
| 3961 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3962 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3963 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3964 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3967 | # Extract the first word of "grep ggrep" to use in msg output |
| 3968 | if test -z "$GREP"; then |
| 3969 | set dummy grep ggrep; ac_prog_name=$2 |
| 3970 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3972 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3973 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3974 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3976 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3977 | do |
| 3978 | IFS=$as_save_IFS |
| 3979 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3980 | for ac_prog in grep ggrep; do |
| 3981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3982 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3983 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3984 | # 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] | 3985 | # Check for GNU $ac_path_GREP |
| 3986 | case `"$ac_path_GREP" --version 2>&1` in |
| 3987 | *GNU*) |
| 3988 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3989 | *) |
| 3990 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3991 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3992 | while : |
| 3993 | do |
| 3994 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3995 | mv "conftest.tmp" "conftest.in" |
| 3996 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3997 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3998 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3999 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4000 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4001 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4002 | # Best one so far, save it but keep looking for a better one |
| 4003 | ac_cv_path_GREP="$ac_path_GREP" |
| 4004 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | # 10*(2^10) chars as input seems more than enough |
| 4007 | test $ac_count -gt 10 && break |
| 4008 | done |
| 4009 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4010 | esac |
| 4011 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4012 | |
| 4013 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4014 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4015 | done |
| 4016 | |
| 4017 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4018 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4019 | |
| 4020 | |
| 4021 | fi |
| 4022 | |
| 4023 | GREP="$ac_cv_path_GREP" |
| 4024 | if test -z "$GREP"; then |
| 4025 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4026 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4027 | { (exit 1); exit 1; }; } |
| 4028 | fi |
| 4029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4030 | else |
| 4031 | ac_cv_path_GREP=$GREP |
| 4032 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4033 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4035 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4036 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4037 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4038 | GREP="$ac_cv_path_GREP" |
| 4039 | |
| 4040 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4041 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4042 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4043 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4045 | else |
| 4046 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4047 | then ac_cv_path_EGREP="$GREP -E" |
| 4048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4049 | # Extract the first word of "egrep" to use in msg output |
| 4050 | if test -z "$EGREP"; then |
| 4051 | set dummy egrep; ac_prog_name=$2 |
| 4052 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4054 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4055 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4056 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4058 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4059 | do |
| 4060 | IFS=$as_save_IFS |
| 4061 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4062 | for ac_prog in egrep; do |
| 4063 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4064 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4065 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4066 | # 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] | 4067 | # Check for GNU $ac_path_EGREP |
| 4068 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4069 | *GNU*) |
| 4070 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4071 | *) |
| 4072 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4073 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4074 | while : |
| 4075 | do |
| 4076 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4077 | mv "conftest.tmp" "conftest.in" |
| 4078 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4079 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4080 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4081 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4082 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4083 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4084 | # Best one so far, save it but keep looking for a better one |
| 4085 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4086 | ac_path_EGREP_max=$ac_count |
| 4087 | fi |
| 4088 | # 10*(2^10) chars as input seems more than enough |
| 4089 | test $ac_count -gt 10 && break |
| 4090 | done |
| 4091 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4092 | esac |
| 4093 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4094 | |
| 4095 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4096 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4097 | done |
| 4098 | |
| 4099 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4100 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4101 | |
| 4102 | |
| 4103 | fi |
| 4104 | |
| 4105 | EGREP="$ac_cv_path_EGREP" |
| 4106 | if test -z "$EGREP"; then |
| 4107 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4108 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4109 | { (exit 1); exit 1; }; } |
| 4110 | fi |
| 4111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4112 | else |
| 4113 | ac_cv_path_EGREP=$EGREP |
| 4114 | fi |
| 4115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4117 | fi |
| 4118 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4119 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4120 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4121 | EGREP="$ac_cv_path_EGREP" |
| 4122 | |
| 4123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4124 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4125 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4126 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4129 | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | /* confdefs.h. */ |
| 4131 | _ACEOF |
| 4132 | cat confdefs.h >>conftest.$ac_ext |
| 4133 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4134 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4135 | #include <stdlib.h> |
| 4136 | #include <stdarg.h> |
| 4137 | #include <string.h> |
| 4138 | #include <float.h> |
| 4139 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4140 | int |
| 4141 | main () |
| 4142 | { |
| 4143 | |
| 4144 | ; |
| 4145 | return 0; |
| 4146 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4147 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4148 | rm -f conftest.$ac_objext |
| 4149 | if { (ac_try="$ac_compile" |
| 4150 | case "(($ac_try" in |
| 4151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4152 | *) ac_try_echo=$ac_try;; |
| 4153 | esac |
| 4154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4155 | (eval "$ac_compile") 2>conftest.er1 |
| 4156 | ac_status=$? |
| 4157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4158 | rm -f conftest.er1 |
| 4159 | cat conftest.err >&5 |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); } && |
| 4162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4163 | { (case "(($ac_try" in |
| 4164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4165 | *) ac_try_echo=$ac_try;; |
| 4166 | esac |
| 4167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4168 | (eval "$ac_try") 2>&5 |
| 4169 | ac_status=$? |
| 4170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4171 | (exit $ac_status); }; } && |
| 4172 | { ac_try='test -s conftest.$ac_objext' |
| 4173 | { (case "(($ac_try" in |
| 4174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4175 | *) ac_try_echo=$ac_try;; |
| 4176 | esac |
| 4177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4178 | (eval "$ac_try") 2>&5 |
| 4179 | ac_status=$? |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4182 | ac_cv_header_stdc=yes |
| 4183 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4184 | echo "$as_me: failed program was:" >&5 |
| 4185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4186 | |
| 4187 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4188 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4191 | |
| 4192 | if test $ac_cv_header_stdc = yes; then |
| 4193 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4194 | cat >conftest.$ac_ext <<_ACEOF |
| 4195 | /* confdefs.h. */ |
| 4196 | _ACEOF |
| 4197 | cat confdefs.h >>conftest.$ac_ext |
| 4198 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4199 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4200 | #include <string.h> |
| 4201 | |
| 4202 | _ACEOF |
| 4203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4204 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4205 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4206 | else |
| 4207 | ac_cv_header_stdc=no |
| 4208 | fi |
| 4209 | rm -f conftest* |
| 4210 | |
| 4211 | fi |
| 4212 | |
| 4213 | if test $ac_cv_header_stdc = yes; then |
| 4214 | # 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] | 4215 | cat >conftest.$ac_ext <<_ACEOF |
| 4216 | /* confdefs.h. */ |
| 4217 | _ACEOF |
| 4218 | cat confdefs.h >>conftest.$ac_ext |
| 4219 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4220 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4221 | #include <stdlib.h> |
| 4222 | |
| 4223 | _ACEOF |
| 4224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4225 | $EGREP "free" >/dev/null 2>&1; then |
| 4226 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4227 | else |
| 4228 | ac_cv_header_stdc=no |
| 4229 | fi |
| 4230 | rm -f conftest* |
| 4231 | |
| 4232 | fi |
| 4233 | |
| 4234 | if test $ac_cv_header_stdc = yes; then |
| 4235 | # /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] | 4236 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4237 | : |
| 4238 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4239 | cat >conftest.$ac_ext <<_ACEOF |
| 4240 | /* confdefs.h. */ |
| 4241 | _ACEOF |
| 4242 | cat confdefs.h >>conftest.$ac_ext |
| 4243 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4244 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4245 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4246 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4247 | #if ((' ' & 0x0FF) == 0x020) |
| 4248 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4249 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4250 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4251 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4252 | (('a' <= (c) && (c) <= 'i') \ |
| 4253 | || ('j' <= (c) && (c) <= 'r') \ |
| 4254 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4255 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4256 | #endif |
| 4257 | |
| 4258 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4259 | int |
| 4260 | main () |
| 4261 | { |
| 4262 | int i; |
| 4263 | for (i = 0; i < 256; i++) |
| 4264 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4265 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4266 | return 2; |
| 4267 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4268 | } |
| 4269 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4270 | rm -f conftest$ac_exeext |
| 4271 | if { (ac_try="$ac_link" |
| 4272 | case "(($ac_try" in |
| 4273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4274 | *) ac_try_echo=$ac_try;; |
| 4275 | esac |
| 4276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4277 | (eval "$ac_link") 2>&5 |
| 4278 | ac_status=$? |
| 4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4281 | { (case "(($ac_try" in |
| 4282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4283 | *) ac_try_echo=$ac_try;; |
| 4284 | esac |
| 4285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4286 | (eval "$ac_try") 2>&5 |
| 4287 | ac_status=$? |
| 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4289 | (exit $ac_status); }; }; then |
| 4290 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4291 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4292 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4293 | echo "$as_me: failed program was:" >&5 |
| 4294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4295 | |
| 4296 | ( exit $ac_status ) |
| 4297 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4298 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4299 | 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] | 4300 | fi |
| 4301 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4303 | fi |
| 4304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4305 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4306 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4307 | if test $ac_cv_header_stdc = yes; then |
| 4308 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4309 | cat >>confdefs.h <<\_ACEOF |
| 4310 | #define STDC_HEADERS 1 |
| 4311 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4312 | |
| 4313 | fi |
| 4314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4315 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4325 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4326 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4327 | do |
| 4328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4329 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4331 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4333 | else |
| 4334 | cat >conftest.$ac_ext <<_ACEOF |
| 4335 | /* confdefs.h. */ |
| 4336 | _ACEOF |
| 4337 | cat confdefs.h >>conftest.$ac_ext |
| 4338 | cat >>conftest.$ac_ext <<_ACEOF |
| 4339 | /* end confdefs.h. */ |
| 4340 | $ac_includes_default |
| 4341 | |
| 4342 | #include <$ac_header> |
| 4343 | _ACEOF |
| 4344 | rm -f conftest.$ac_objext |
| 4345 | if { (ac_try="$ac_compile" |
| 4346 | case "(($ac_try" in |
| 4347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4348 | *) ac_try_echo=$ac_try;; |
| 4349 | esac |
| 4350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4351 | (eval "$ac_compile") 2>conftest.er1 |
| 4352 | ac_status=$? |
| 4353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4354 | rm -f conftest.er1 |
| 4355 | cat conftest.err >&5 |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4357 | (exit $ac_status); } && |
| 4358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4359 | { (case "(($ac_try" in |
| 4360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4361 | *) ac_try_echo=$ac_try;; |
| 4362 | esac |
| 4363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4364 | (eval "$ac_try") 2>&5 |
| 4365 | ac_status=$? |
| 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4367 | (exit $ac_status); }; } && |
| 4368 | { ac_try='test -s conftest.$ac_objext' |
| 4369 | { (case "(($ac_try" in |
| 4370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4371 | *) ac_try_echo=$ac_try;; |
| 4372 | esac |
| 4373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4374 | (eval "$ac_try") 2>&5 |
| 4375 | ac_status=$? |
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4377 | (exit $ac_status); }; }; then |
| 4378 | eval "$as_ac_Header=yes" |
| 4379 | else |
| 4380 | echo "$as_me: failed program was:" >&5 |
| 4381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4382 | |
| 4383 | eval "$as_ac_Header=no" |
| 4384 | fi |
| 4385 | |
| 4386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4387 | fi |
| 4388 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4389 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4390 | echo "${ECHO_T}$ac_res" >&6; } |
| 4391 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4392 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4393 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4394 | _ACEOF |
| 4395 | |
| 4396 | fi |
| 4397 | |
| 4398 | done |
| 4399 | |
| 4400 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4401 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4402 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4403 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4405 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4406 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4407 | cat >conftest.$ac_ext <<_ACEOF |
| 4408 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4409 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4410 | cat confdefs.h >>conftest.$ac_ext |
| 4411 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4412 | /* end confdefs.h. */ |
| 4413 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4414 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4415 | |
| 4416 | int |
| 4417 | main () |
| 4418 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4420 | bogus endian macros |
| 4421 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4422 | |
| 4423 | ; |
| 4424 | return 0; |
| 4425 | } |
| 4426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4427 | rm -f conftest.$ac_objext |
| 4428 | if { (ac_try="$ac_compile" |
| 4429 | case "(($ac_try" in |
| 4430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4431 | *) ac_try_echo=$ac_try;; |
| 4432 | esac |
| 4433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4434 | (eval "$ac_compile") 2>conftest.er1 |
| 4435 | ac_status=$? |
| 4436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4437 | rm -f conftest.er1 |
| 4438 | cat conftest.err >&5 |
| 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4440 | (exit $ac_status); } && |
| 4441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4442 | { (case "(($ac_try" in |
| 4443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4444 | *) ac_try_echo=$ac_try;; |
| 4445 | esac |
| 4446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4447 | (eval "$ac_try") 2>&5 |
| 4448 | ac_status=$? |
| 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4450 | (exit $ac_status); }; } && |
| 4451 | { ac_try='test -s conftest.$ac_objext' |
| 4452 | { (case "(($ac_try" in |
| 4453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4454 | *) ac_try_echo=$ac_try;; |
| 4455 | esac |
| 4456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4457 | (eval "$ac_try") 2>&5 |
| 4458 | ac_status=$? |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4460 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4461 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4462 | cat >conftest.$ac_ext <<_ACEOF |
| 4463 | /* confdefs.h. */ |
| 4464 | _ACEOF |
| 4465 | cat confdefs.h >>conftest.$ac_ext |
| 4466 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4467 | /* end confdefs.h. */ |
| 4468 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4469 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4470 | |
| 4471 | int |
| 4472 | main () |
| 4473 | { |
| 4474 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4475 | not big endian |
| 4476 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4477 | |
| 4478 | ; |
| 4479 | return 0; |
| 4480 | } |
| 4481 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | rm -f conftest.$ac_objext |
| 4483 | if { (ac_try="$ac_compile" |
| 4484 | case "(($ac_try" in |
| 4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4486 | *) ac_try_echo=$ac_try;; |
| 4487 | esac |
| 4488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4489 | (eval "$ac_compile") 2>conftest.er1 |
| 4490 | ac_status=$? |
| 4491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4492 | rm -f conftest.er1 |
| 4493 | cat conftest.err >&5 |
| 4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4495 | (exit $ac_status); } && |
| 4496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4497 | { (case "(($ac_try" in |
| 4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4499 | *) ac_try_echo=$ac_try;; |
| 4500 | esac |
| 4501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4502 | (eval "$ac_try") 2>&5 |
| 4503 | ac_status=$? |
| 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4505 | (exit $ac_status); }; } && |
| 4506 | { ac_try='test -s conftest.$ac_objext' |
| 4507 | { (case "(($ac_try" in |
| 4508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4509 | *) ac_try_echo=$ac_try;; |
| 4510 | esac |
| 4511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4512 | (eval "$ac_try") 2>&5 |
| 4513 | ac_status=$? |
| 4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4515 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4516 | ac_cv_c_bigendian=yes |
| 4517 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4518 | echo "$as_me: failed program was:" >&5 |
| 4519 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4520 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4521 | ac_cv_c_bigendian=no |
| 4522 | fi |
| 4523 | |
| 4524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4525 | else |
| 4526 | echo "$as_me: failed program was:" >&5 |
| 4527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4528 | |
| 4529 | # It does not; compile a test program. |
| 4530 | if test "$cross_compiling" = yes; then |
| 4531 | # try to guess the endianness by grepping values into an object file |
| 4532 | ac_cv_c_bigendian=unknown |
| 4533 | cat >conftest.$ac_ext <<_ACEOF |
| 4534 | /* confdefs.h. */ |
| 4535 | _ACEOF |
| 4536 | cat confdefs.h >>conftest.$ac_ext |
| 4537 | cat >>conftest.$ac_ext <<_ACEOF |
| 4538 | /* end confdefs.h. */ |
| 4539 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4540 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4541 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4542 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4543 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4544 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4545 | int |
| 4546 | main () |
| 4547 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4548 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4549 | ; |
| 4550 | return 0; |
| 4551 | } |
| 4552 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4553 | rm -f conftest.$ac_objext |
| 4554 | if { (ac_try="$ac_compile" |
| 4555 | case "(($ac_try" in |
| 4556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4557 | *) ac_try_echo=$ac_try;; |
| 4558 | esac |
| 4559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4560 | (eval "$ac_compile") 2>conftest.er1 |
| 4561 | ac_status=$? |
| 4562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4563 | rm -f conftest.er1 |
| 4564 | cat conftest.err >&5 |
| 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4566 | (exit $ac_status); } && |
| 4567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4568 | { (case "(($ac_try" in |
| 4569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4570 | *) ac_try_echo=$ac_try;; |
| 4571 | esac |
| 4572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4573 | (eval "$ac_try") 2>&5 |
| 4574 | ac_status=$? |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); }; } && |
| 4577 | { ac_try='test -s conftest.$ac_objext' |
| 4578 | { (case "(($ac_try" in |
| 4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4580 | *) ac_try_echo=$ac_try;; |
| 4581 | esac |
| 4582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4583 | (eval "$ac_try") 2>&5 |
| 4584 | ac_status=$? |
| 4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4586 | (exit $ac_status); }; }; then |
| 4587 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4588 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4589 | fi |
| 4590 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4591 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4592 | ac_cv_c_bigendian=no |
| 4593 | else |
| 4594 | # finding both strings is unlikely to happen, but who knows? |
| 4595 | ac_cv_c_bigendian=unknown |
| 4596 | fi |
| 4597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4598 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4599 | echo "$as_me: failed program was:" >&5 |
| 4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4601 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4602 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4603 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4606 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4607 | cat >conftest.$ac_ext <<_ACEOF |
| 4608 | /* confdefs.h. */ |
| 4609 | _ACEOF |
| 4610 | cat confdefs.h >>conftest.$ac_ext |
| 4611 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4612 | /* end confdefs.h. */ |
| 4613 | $ac_includes_default |
| 4614 | int |
| 4615 | main () |
| 4616 | { |
| 4617 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4618 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4619 | union |
| 4620 | { |
| 4621 | long int l; |
| 4622 | char c[sizeof (long int)]; |
| 4623 | } u; |
| 4624 | u.l = 1; |
| 4625 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4626 | |
| 4627 | ; |
| 4628 | return 0; |
| 4629 | } |
| 4630 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4631 | rm -f conftest$ac_exeext |
| 4632 | if { (ac_try="$ac_link" |
| 4633 | case "(($ac_try" in |
| 4634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4635 | *) ac_try_echo=$ac_try;; |
| 4636 | esac |
| 4637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4638 | (eval "$ac_link") 2>&5 |
| 4639 | ac_status=$? |
| 4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4642 | { (case "(($ac_try" in |
| 4643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4644 | *) ac_try_echo=$ac_try;; |
| 4645 | esac |
| 4646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4647 | (eval "$ac_try") 2>&5 |
| 4648 | ac_status=$? |
| 4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4650 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4651 | ac_cv_c_bigendian=no |
| 4652 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4654 | echo "$as_me: failed program was:" >&5 |
| 4655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4656 | |
| 4657 | ( exit $ac_status ) |
| 4658 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4660 | 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] | 4661 | fi |
| 4662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4663 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4664 | fi |
| 4665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4667 | fi |
| 4668 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4669 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4670 | case $ac_cv_c_bigendian in |
| 4671 | yes) |
| 4672 | ENDIAN=big |
| 4673 | ;; |
| 4674 | no) |
| 4675 | ENDIAN=little |
| 4676 | ;; |
| 4677 | *) |
| 4678 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4679 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4680 | echo "$as_me: error: unknown endianness |
| 4681 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4682 | { (exit 1); exit 1; }; } ;; |
| 4683 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4684 | |
| 4685 | |
| 4686 | if test "$cross_compiling" = yes; then |
| 4687 | LLVM_CROSS_COMPILING=1 |
| 4688 | |
| 4689 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4690 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4691 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4692 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4694 | else |
| 4695 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4696 | ac_cv_build_exeext=.exe |
| 4697 | else |
| 4698 | ac_build_prefix=${build_alias}- |
| 4699 | |
| 4700 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4701 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4704 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4706 | else |
| 4707 | if test -n "$BUILD_CC"; then |
| 4708 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4709 | else |
| 4710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4711 | for as_dir in $PATH |
| 4712 | do |
| 4713 | IFS=$as_save_IFS |
| 4714 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4716 | 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] | 4717 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4718 | 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] | 4719 | break 2 |
| 4720 | fi |
| 4721 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4722 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4723 | IFS=$as_save_IFS |
| 4724 | |
| 4725 | fi |
| 4726 | fi |
| 4727 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4728 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4729 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4730 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4731 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4732 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4733 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4734 | fi |
| 4735 | |
| 4736 | |
| 4737 | if test -z "$BUILD_CC"; then |
| 4738 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4739 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4740 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4742 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4744 | else |
| 4745 | if test -n "$BUILD_CC"; then |
| 4746 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4747 | else |
| 4748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4749 | for as_dir in $PATH |
| 4750 | do |
| 4751 | IFS=$as_save_IFS |
| 4752 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4754 | 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] | 4755 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4756 | 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] | 4757 | break 2 |
| 4758 | fi |
| 4759 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4760 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4761 | IFS=$as_save_IFS |
| 4762 | |
| 4763 | fi |
| 4764 | fi |
| 4765 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4766 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4767 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4768 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4769 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4770 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4771 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4772 | fi |
| 4773 | |
| 4774 | |
| 4775 | if test -z "$BUILD_CC"; then |
| 4776 | # Extract the first word of "cc", so it can be a program name with args. |
| 4777 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4780 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4782 | else |
| 4783 | if test -n "$BUILD_CC"; then |
| 4784 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4785 | else |
| 4786 | ac_prog_rejected=no |
| 4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4788 | for as_dir in $PATH |
| 4789 | do |
| 4790 | IFS=$as_save_IFS |
| 4791 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4793 | 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] | 4794 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4795 | ac_prog_rejected=yes |
| 4796 | continue |
| 4797 | fi |
| 4798 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4799 | 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] | 4800 | break 2 |
| 4801 | fi |
| 4802 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4803 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4804 | IFS=$as_save_IFS |
| 4805 | |
| 4806 | if test $ac_prog_rejected = yes; then |
| 4807 | # We found a bogon in the path, so make sure we never use it. |
| 4808 | set dummy $ac_cv_prog_BUILD_CC |
| 4809 | shift |
| 4810 | if test $# != 0; then |
| 4811 | # We chose a different compiler from the bogus one. |
| 4812 | # However, it has the same basename, so the bogon will be chosen |
| 4813 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4814 | shift |
| 4815 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4816 | fi |
| 4817 | fi |
| 4818 | fi |
| 4819 | fi |
| 4820 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4821 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4822 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4823 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4824 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4826 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4827 | fi |
| 4828 | |
| 4829 | |
| 4830 | fi |
| 4831 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4832 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4833 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4834 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4835 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4836 | rm -f conftest* |
| 4837 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4838 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4839 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4840 | (eval $ac_build_link) 2>&5 |
| 4841 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4843 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4844 | for file in conftest.*; do |
| 4845 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4846 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4847 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4848 | esac |
| 4849 | done |
| 4850 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4851 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4852 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4853 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4854 | fi |
| 4855 | rm -f conftest* |
| 4856 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4857 | fi |
| 4858 | fi |
| 4859 | |
| 4860 | BUILD_EXEEXT="" |
| 4861 | 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] | 4862 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4863 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4864 | ac_build_exeext=$BUILD_EXEEXT |
| 4865 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4866 | ac_build_prefix=${build_alias}- |
| 4867 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4868 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4869 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4871 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4873 | else |
| 4874 | if test -n "$BUILD_CXX"; then |
| 4875 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4876 | else |
| 4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4878 | for as_dir in $PATH |
| 4879 | do |
| 4880 | IFS=$as_save_IFS |
| 4881 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4882 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4883 | 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] | 4884 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4885 | 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] | 4886 | break 2 |
| 4887 | fi |
| 4888 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4889 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4890 | IFS=$as_save_IFS |
| 4891 | |
| 4892 | fi |
| 4893 | fi |
| 4894 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4895 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4896 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4897 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4898 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4900 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4901 | fi |
| 4902 | |
| 4903 | |
| 4904 | if test -z "$BUILD_CXX"; then |
| 4905 | # Extract the first word of "g++", so it can be a program name with args. |
| 4906 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4907 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4909 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4911 | else |
| 4912 | if test -n "$BUILD_CXX"; then |
| 4913 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4914 | else |
| 4915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4916 | for as_dir in $PATH |
| 4917 | do |
| 4918 | IFS=$as_save_IFS |
| 4919 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4921 | 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] | 4922 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4923 | 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] | 4924 | break 2 |
| 4925 | fi |
| 4926 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4927 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4928 | IFS=$as_save_IFS |
| 4929 | |
| 4930 | fi |
| 4931 | fi |
| 4932 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4933 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4934 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4935 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4936 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4938 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4939 | fi |
| 4940 | |
| 4941 | |
| 4942 | if test -z "$BUILD_CXX"; then |
| 4943 | # Extract the first word of "c++", so it can be a program name with args. |
| 4944 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4945 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4947 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4949 | else |
| 4950 | if test -n "$BUILD_CXX"; then |
| 4951 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4952 | else |
| 4953 | ac_prog_rejected=no |
| 4954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4955 | for as_dir in $PATH |
| 4956 | do |
| 4957 | IFS=$as_save_IFS |
| 4958 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4959 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4960 | 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] | 4961 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4962 | ac_prog_rejected=yes |
| 4963 | continue |
| 4964 | fi |
| 4965 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4966 | 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] | 4967 | break 2 |
| 4968 | fi |
| 4969 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4970 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4971 | IFS=$as_save_IFS |
| 4972 | |
| 4973 | if test $ac_prog_rejected = yes; then |
| 4974 | # We found a bogon in the path, so make sure we never use it. |
| 4975 | set dummy $ac_cv_prog_BUILD_CXX |
| 4976 | shift |
| 4977 | if test $# != 0; then |
| 4978 | # We chose a different compiler from the bogus one. |
| 4979 | # However, it has the same basename, so the bogon will be chosen |
| 4980 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4981 | shift |
| 4982 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4983 | fi |
| 4984 | fi |
| 4985 | fi |
| 4986 | fi |
| 4987 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4988 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4989 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4990 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4991 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4993 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4994 | fi |
| 4995 | |
| 4996 | |
| 4997 | fi |
| 4998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4999 | else |
| 5000 | LLVM_CROSS_COMPILING=0 |
| 5001 | |
| 5002 | fi |
| 5003 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 5004 | 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] | 5005 | cvsbuild="yes" |
| 5006 | optimize="no" |
| 5007 | CVSBUILD=CVSBUILD=1 |
| 5008 | |
| 5009 | else |
| 5010 | cvsbuild="no" |
| 5011 | optimize="yes" |
| 5012 | fi |
| 5013 | |
| 5014 | |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 5015 | # Check whether --enable-libcpp was given. |
| 5016 | if test "${enable_libcpp+set}" = set; then |
| 5017 | enableval=$enable_libcpp; |
| 5018 | else |
| 5019 | enableval=default |
| 5020 | fi |
| 5021 | |
| 5022 | case "$enableval" in |
| 5023 | yes) ENABLE_LIBCPP=1 |
| 5024 | ;; |
| 5025 | no) ENABLE_LIBCPP=0 |
| 5026 | ;; |
| 5027 | default) ENABLE_LIBCPP=0 |
| 5028 | ;; |
| 5029 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 5030 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 5031 | { (exit 1); exit 1; }; } ;; |
| 5032 | esac |
| 5033 | |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 5034 | # Check whether --enable-cxx11 was given. |
| 5035 | if test "${enable_cxx11+set}" = set; then |
| 5036 | enableval=$enable_cxx11; |
| 5037 | else |
| 5038 | enableval=default |
| 5039 | fi |
| 5040 | |
| 5041 | case "$enableval" in |
| 5042 | yes) ENABLE_CXX11=1 |
| 5043 | ;; |
| 5044 | no) ENABLE_CXX11=0 |
| 5045 | ;; |
| 5046 | default) ENABLE_CXX11=0 |
| 5047 | ;; |
| 5048 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 |
| 5049 | echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} |
| 5050 | { (exit 1); exit 1; }; } ;; |
| 5051 | esac |
| 5052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5053 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5054 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5055 | enableval=$enable_optimized; |
| 5056 | else |
| 5057 | enableval=$optimize |
| 5058 | fi |
| 5059 | |
| 5060 | if test ${enableval} = "no" ; then |
| 5061 | ENABLE_OPTIMIZED= |
| 5062 | |
| 5063 | else |
| 5064 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 5065 | |
| 5066 | fi |
| 5067 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5068 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5069 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5070 | enableval=$enable_profiling; |
| 5071 | else |
| 5072 | enableval="no" |
| 5073 | fi |
| 5074 | |
| 5075 | if test ${enableval} = "no" ; then |
| 5076 | ENABLE_PROFILING= |
| 5077 | |
| 5078 | else |
| 5079 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 5080 | |
| 5081 | fi |
| 5082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5083 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5084 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5085 | enableval=$enable_assertions; |
| 5086 | else |
| 5087 | enableval="yes" |
| 5088 | fi |
| 5089 | |
| 5090 | if test ${enableval} = "yes" ; then |
| 5091 | DISABLE_ASSERTIONS= |
| 5092 | |
| 5093 | else |
| 5094 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5095 | |
| 5096 | fi |
| 5097 | |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 5098 | # Check whether --enable-werror was given. |
| 5099 | if test "${enable_werror+set}" = set; then |
| 5100 | enableval=$enable_werror; |
| 5101 | else |
| 5102 | enableval="no" |
| 5103 | fi |
| 5104 | |
| 5105 | case "$enableval" in |
| 5106 | yes) ENABLE_WERROR=1 |
| 5107 | ;; |
| 5108 | no) ENABLE_WERROR=0 |
| 5109 | ;; |
| 5110 | default) ENABLE_WERROR=0 |
| 5111 | ;; |
| 5112 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 |
| 5113 | echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} |
| 5114 | { (exit 1); exit 1; }; } ;; |
| 5115 | esac |
| 5116 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5117 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5118 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5119 | enableval=$enable_expensive_checks; |
| 5120 | else |
| 5121 | enableval="no" |
| 5122 | fi |
| 5123 | |
| 5124 | if test ${enableval} = "yes" ; then |
| 5125 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5126 | |
| 5127 | EXPENSIVE_CHECKS=yes |
| 5128 | |
| 5129 | else |
| 5130 | ENABLE_EXPENSIVE_CHECKS= |
| 5131 | |
| 5132 | EXPENSIVE_CHECKS=no |
| 5133 | |
| 5134 | fi |
| 5135 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5136 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5137 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5138 | enableval=$enable_debug_runtime; |
| 5139 | else |
| 5140 | enableval=no |
| 5141 | fi |
| 5142 | |
| 5143 | if test ${enableval} = "no" ; then |
| 5144 | DEBUG_RUNTIME= |
| 5145 | |
| 5146 | else |
| 5147 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5148 | |
| 5149 | fi |
| 5150 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5151 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5152 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5153 | enableval=$enable_debug_symbols; |
| 5154 | else |
| 5155 | enableval=no |
| 5156 | fi |
| 5157 | |
| 5158 | if test ${enableval} = "no" ; then |
| 5159 | DEBUG_SYMBOLS= |
| 5160 | |
| 5161 | else |
| 5162 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5163 | |
| 5164 | fi |
| 5165 | |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 5166 | # Check whether --enable-keep-symbols was given. |
| 5167 | if test "${enable_keep_symbols+set}" = set; then |
| 5168 | enableval=$enable_keep_symbols; |
| 5169 | else |
| 5170 | enableval=no |
| 5171 | fi |
| 5172 | |
| 5173 | if test ${enableval} = "no" ; then |
| 5174 | KEEP_SYMBOLS= |
| 5175 | |
| 5176 | else |
| 5177 | KEEP_SYMBOLS=KEEP_SYMBOLS=1 |
| 5178 | |
| 5179 | fi |
| 5180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5181 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5182 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5183 | enableval=$enable_jit; |
| 5184 | else |
| 5185 | enableval=default |
| 5186 | fi |
| 5187 | |
| 5188 | if test ${enableval} = "no" |
| 5189 | then |
| 5190 | JIT= |
| 5191 | |
| 5192 | else |
| 5193 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5194 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5195 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5196 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5197 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5198 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5199 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5200 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5201 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5202 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5203 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5204 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5205 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5206 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5207 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5208 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5209 | ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5210 | Hexagon) TARGET_HAS_JIT=0 |
| 5211 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5212 | MBlaze) TARGET_HAS_JIT=0 |
| 5213 | ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5214 | NVPTX) TARGET_HAS_JIT=0 |
| 5215 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5216 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5217 | ;; |
| 5218 | esac |
| 5219 | fi |
| 5220 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5221 | # Check whether --enable-docs was given. |
| 5222 | if test "${enable_docs+set}" = set; then |
| 5223 | enableval=$enable_docs; |
| 5224 | else |
| 5225 | enableval=default |
| 5226 | fi |
| 5227 | |
| 5228 | case "$enableval" in |
| 5229 | yes) ENABLE_DOCS=1 |
| 5230 | ;; |
| 5231 | no) ENABLE_DOCS=0 |
| 5232 | ;; |
| 5233 | default) ENABLE_DOCS=1 |
| 5234 | ;; |
| 5235 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5236 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5237 | { (exit 1); exit 1; }; } ;; |
| 5238 | esac |
| 5239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5240 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5241 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5242 | enableval=$enable_doxygen; |
| 5243 | else |
| 5244 | enableval=default |
| 5245 | fi |
| 5246 | |
| 5247 | case "$enableval" in |
| 5248 | yes) ENABLE_DOXYGEN=1 |
| 5249 | ;; |
| 5250 | no) ENABLE_DOXYGEN=0 |
| 5251 | ;; |
| 5252 | default) ENABLE_DOXYGEN=0 |
| 5253 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5254 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5255 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5256 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5257 | esac |
| 5258 | |
| 5259 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5260 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5261 | enableval=$enable_threads; |
| 5262 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5263 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5264 | fi |
| 5265 | |
| 5266 | case "$enableval" in |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5267 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5268 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5269 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5270 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5271 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5272 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5273 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5274 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5275 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5276 | esac |
| 5277 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5278 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5279 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5280 | _ACEOF |
| 5281 | |
| 5282 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5283 | # Check whether --enable-pthreads was given. |
| 5284 | if test "${enable_pthreads+set}" = set; then |
| 5285 | enableval=$enable_pthreads; |
| 5286 | else |
| 5287 | enableval=default |
| 5288 | fi |
| 5289 | |
| 5290 | case "$enableval" in |
| 5291 | yes) ENABLE_PTHREADS=1 |
| 5292 | ;; |
| 5293 | no) ENABLE_PTHREADS=0 |
| 5294 | ;; |
| 5295 | default) ENABLE_PTHREADS=1 |
| 5296 | ;; |
| 5297 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5298 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5299 | { (exit 1); exit 1; }; } ;; |
| 5300 | esac |
| 5301 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5302 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5303 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5304 | enableval=$enable_pic; |
| 5305 | else |
| 5306 | enableval=default |
| 5307 | fi |
| 5308 | |
| 5309 | case "$enableval" in |
| 5310 | yes) ENABLE_PIC=1 |
| 5311 | ;; |
| 5312 | no) ENABLE_PIC=0 |
| 5313 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5314 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5315 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5316 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5317 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5318 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5319 | esac |
| 5320 | |
| 5321 | cat >>confdefs.h <<_ACEOF |
| 5322 | #define ENABLE_PIC $ENABLE_PIC |
| 5323 | _ACEOF |
| 5324 | |
| 5325 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5326 | # Check whether --enable-shared was given. |
| 5327 | if test "${enable_shared+set}" = set; then |
| 5328 | enableval=$enable_shared; |
| 5329 | else |
| 5330 | enableval=default |
| 5331 | fi |
| 5332 | |
| 5333 | case "$enableval" in |
| 5334 | yes) ENABLE_SHARED=1 |
| 5335 | ;; |
| 5336 | no) ENABLE_SHARED=0 |
| 5337 | ;; |
| 5338 | default) ENABLE_SHARED=0 |
| 5339 | ;; |
| 5340 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5341 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5342 | { (exit 1); exit 1; }; } ;; |
| 5343 | esac |
| 5344 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5345 | # Check whether --enable-embed-stdcxx was given. |
| 5346 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5347 | enableval=$enable_embed_stdcxx; |
| 5348 | else |
| 5349 | enableval=default |
| 5350 | fi |
| 5351 | |
| 5352 | case "$enableval" in |
| 5353 | yes) ENABLE_EMBED_STDCXX=1 |
| 5354 | ;; |
| 5355 | no) ENABLE_EMBED_STDCXX=0 |
| 5356 | ;; |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5357 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5358 | ;; |
| 5359 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5360 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5361 | { (exit 1); exit 1; }; } ;; |
| 5362 | esac |
| 5363 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5364 | # Check whether --enable-timestamps was given. |
| 5365 | if test "${enable_timestamps+set}" = set; then |
| 5366 | enableval=$enable_timestamps; |
| 5367 | else |
| 5368 | enableval=default |
| 5369 | fi |
| 5370 | |
| 5371 | case "$enableval" in |
| 5372 | yes) ENABLE_TIMESTAMPS=1 |
| 5373 | ;; |
| 5374 | no) ENABLE_TIMESTAMPS=0 |
| 5375 | ;; |
| 5376 | default) ENABLE_TIMESTAMPS=1 |
| 5377 | ;; |
| 5378 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5379 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5380 | { (exit 1); exit 1; }; } ;; |
| 5381 | esac |
| 5382 | |
| 5383 | cat >>confdefs.h <<_ACEOF |
| 5384 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5385 | _ACEOF |
| 5386 | |
| 5387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5388 | TARGETS_TO_BUILD="" |
| 5389 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5390 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5391 | enableval=$enable_targets; |
| 5392 | else |
| 5393 | enableval=all |
| 5394 | fi |
| 5395 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5396 | if test "$enableval" = host-only ; then |
| 5397 | enableval=host |
| 5398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5399 | case "$enableval" in |
Tom Stellard | 38cda13 | 2012-07-16 18:19:46 +0000 | [diff] [blame] | 5400 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5401 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5402 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5403 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5404 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5405 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5406 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5407 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5408 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5409 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5410 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5411 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5412 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5413 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5414 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5415 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5416 | nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5417 | host) case "$llvm_cv_target_arch" in |
| 5418 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5419 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5420 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5421 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5422 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5423 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5424 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5425 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5426 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5427 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5428 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5429 | NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5430 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5431 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5432 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5433 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5434 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5435 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5436 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5437 | esac |
| 5438 | done |
| 5439 | ;; |
| 5440 | esac |
Victor Oliveira | 0e80e18 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 5441 | |
| 5442 | # Check whether --enable-experimental-targets was given. |
| 5443 | if test "${enable_experimental_targets+set}" = set; then |
| 5444 | enableval=$enable_experimental_targets; |
| 5445 | else |
| 5446 | enableval=disable |
| 5447 | fi |
| 5448 | |
| 5449 | |
| 5450 | if test ${enableval} != "disable" |
| 5451 | then |
| 5452 | TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" |
| 5453 | fi |
| 5454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5456 | |
| 5457 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5458 | for a_target in $TARGETS_TO_BUILD; do |
| 5459 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5460 | |
| 5461 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5462 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5463 | _ACEOF |
| 5464 | |
| 5465 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5466 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5467 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5468 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5469 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5470 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5471 | fi |
Eric Christopher | c4b2271 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5472 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5473 | LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" |
| 5474 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5475 | |
| 5476 | cat >>confdefs.h <<_ACEOF |
| 5477 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5478 | _ACEOF |
| 5479 | |
| 5480 | |
| 5481 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5482 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5483 | _ACEOF |
| 5484 | |
| 5485 | |
| 5486 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5487 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5488 | _ACEOF |
| 5489 | |
| 5490 | |
| 5491 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5492 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5493 | _ACEOF |
| 5494 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5495 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
Jan Sjödin | dd54ffd | 2011-03-09 17:25:46 +0000 | [diff] [blame] | 5496 | |
| 5497 | cat >>confdefs.h <<_ACEOF |
| 5498 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5499 | _ACEOF |
| 5500 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5501 | fi |
Eric Christopher | c4b2271 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5502 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5503 | |
| 5504 | cat >>confdefs.h <<_ACEOF |
| 5505 | #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER |
| 5506 | _ACEOF |
| 5507 | |
| 5508 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5509 | fi |
| 5510 | done |
| 5511 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5512 | LLVM_ENUM_TARGETS="" |
| 5513 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5514 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5515 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5516 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5517 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5518 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5519 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5520 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5521 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5522 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5523 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5524 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5525 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5526 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5527 | done |
| 5528 | |
| 5529 | |
| 5530 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5531 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5533 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5534 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5535 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5536 | withval=$with_optimize_option; |
| 5537 | else |
| 5538 | withval=default |
| 5539 | fi |
| 5540 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5541 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5542 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5543 | case "$withval" in |
| 5544 | default) |
| 5545 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5546 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5547 | MingW) optimize_option=-O2 ;; |
| 5548 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5549 | esac ;; |
| 5550 | *) optimize_option="$withval" ;; |
| 5551 | esac |
| 5552 | OPTIMIZE_OPTION=$optimize_option |
| 5553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5554 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5555 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5556 | |
| 5557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5558 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5559 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5560 | withval=$with_extra_options; |
| 5561 | else |
| 5562 | withval=default |
| 5563 | fi |
| 5564 | |
| 5565 | case "$withval" in |
| 5566 | default) EXTRA_OPTIONS= ;; |
| 5567 | *) EXTRA_OPTIONS=$withval ;; |
| 5568 | esac |
| 5569 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5570 | |
| 5571 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5572 | |
| 5573 | # Check whether --with-extra-ld-options was given. |
| 5574 | if test "${with_extra_ld_options+set}" = set; then |
| 5575 | withval=$with_extra_ld_options; |
| 5576 | else |
| 5577 | withval=default |
| 5578 | fi |
| 5579 | |
| 5580 | case "$withval" in |
| 5581 | default) EXTRA_LD_OPTIONS= ;; |
| 5582 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5583 | esac |
| 5584 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5585 | |
| 5586 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5587 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5588 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5589 | enableval=$enable_bindings; |
| 5590 | else |
| 5591 | enableval=default |
| 5592 | fi |
| 5593 | |
| 5594 | BINDINGS_TO_BUILD="" |
| 5595 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5596 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5597 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5598 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5599 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5600 | case "$a_binding" in |
| 5601 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5602 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5603 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5604 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5605 | esac |
| 5606 | done |
| 5607 | ;; |
| 5608 | esac |
| 5609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5610 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5611 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5612 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5613 | withval=$with_ocaml_libdir; |
| 5614 | else |
| 5615 | withval=auto |
| 5616 | fi |
| 5617 | |
| 5618 | case "$withval" in |
| 5619 | auto) with_ocaml_libdir="$withval" ;; |
| 5620 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5621 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5622 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5623 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5624 | esac |
| 5625 | |
| 5626 | |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5627 | # Check whether --with-clang-srcdir was given. |
| 5628 | if test "${with_clang_srcdir+set}" = set; then |
| 5629 | withval=$with_clang_srcdir; |
| 5630 | else |
| 5631 | withval="-" |
| 5632 | fi |
| 5633 | |
| 5634 | case "$withval" in |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5635 | -) clang_src_root="" ;; |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5636 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; |
| 5637 | *) clang_src_root="$ac_pwd/$withval" ;; |
| 5638 | esac |
| 5639 | CLANG_SRC_ROOT=$clang_src_root |
| 5640 | |
| 5641 | |
| 5642 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5643 | # Check whether --with-clang-resource-dir was given. |
| 5644 | if test "${with_clang_resource_dir+set}" = set; then |
| 5645 | withval=$with_clang_resource_dir; |
| 5646 | else |
| 5647 | withval="" |
| 5648 | fi |
| 5649 | |
| 5650 | |
| 5651 | cat >>confdefs.h <<_ACEOF |
| 5652 | #define CLANG_RESOURCE_DIR "$withval" |
| 5653 | _ACEOF |
| 5654 | |
| 5655 | |
| 5656 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5657 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5658 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5659 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5660 | else |
| 5661 | withval="" |
| 5662 | fi |
| 5663 | |
| 5664 | |
| 5665 | cat >>confdefs.h <<_ACEOF |
| 5666 | #define C_INCLUDE_DIRS "$withval" |
| 5667 | _ACEOF |
| 5668 | |
| 5669 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5670 | # Clang normally uses the system c++ headers and libraries. With this option, |
| 5671 | # clang will use the ones provided by a gcc installation instead. This option should |
| 5672 | # be passed the same value that was used with --prefix when configuring gcc. |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5673 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5674 | # Check whether --with-gcc-toolchain was given. |
| 5675 | if test "${with_gcc_toolchain+set}" = set; then |
| 5676 | withval=$with_gcc_toolchain; |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5677 | else |
| 5678 | withval="" |
| 5679 | fi |
| 5680 | |
| 5681 | |
| 5682 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5683 | #define GCC_INSTALL_PREFIX "$withval" |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5684 | _ACEOF |
| 5685 | |
| 5686 | |
| 5687 | |
Sebastian Pop | e4f1b37 | 2012-04-30 20:06:58 +0000 | [diff] [blame] | 5688 | # Check whether --with-default-sysroot was given. |
| 5689 | if test "${with_default_sysroot+set}" = set; then |
| 5690 | withval=$with_default_sysroot; |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 5691 | else |
| 5692 | withval="" |
| 5693 | fi |
| 5694 | |
| 5695 | |
| 5696 | cat >>confdefs.h <<_ACEOF |
| 5697 | #define DEFAULT_SYSROOT "$withval" |
| 5698 | _ACEOF |
| 5699 | |
| 5700 | |
| 5701 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5702 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5703 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5704 | withval=$with_binutils_include; |
| 5705 | else |
| 5706 | withval=default |
| 5707 | fi |
| 5708 | |
| 5709 | case "$withval" in |
| 5710 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5711 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5712 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5713 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5714 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5715 | esac |
| 5716 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5717 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5718 | |
| 5719 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5720 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5721 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5722 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5723 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5724 | fi |
| 5725 | fi |
| 5726 | |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5727 | |
| 5728 | # Check whether --with-bug-report-url was given. |
| 5729 | if test "${with_bug_report_url+set}" = set; then |
| 5730 | withval=$with_bug_report_url; |
| 5731 | else |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5732 | withval="http://llvm.org/bugs/" |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5733 | fi |
| 5734 | |
| 5735 | |
| 5736 | cat >>confdefs.h <<_ACEOF |
| 5737 | #define BUG_REPORT_URL "$withval" |
| 5738 | _ACEOF |
| 5739 | |
| 5740 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5741 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5743 | enableval=$enable_libffi; case "$enableval" in |
| 5744 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5745 | no) llvm_cv_enable_libffi="no" ;; |
| 5746 | *) { { 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] | 5747 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5748 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5749 | esac |
| 5750 | else |
| 5751 | llvm_cv_enable_libffi=no |
| 5752 | fi |
| 5753 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5754 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5755 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5756 | # Check whether --with-internal-prefix was given. |
| 5757 | if test "${with_internal_prefix+set}" = set; then |
| 5758 | withval=$with_internal_prefix; |
| 5759 | else |
| 5760 | withval="" |
| 5761 | fi |
| 5762 | |
| 5763 | INTERNAL_PREFIX=$withval |
| 5764 | |
| 5765 | |
| 5766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5767 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5768 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5769 | if test "${lt_cv_path_NM+set}" = set; then |
| 5770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5771 | else |
| 5772 | if test -n "$NM"; then |
| 5773 | # Let the user override the test. |
| 5774 | lt_cv_path_NM="$NM" |
| 5775 | else |
| 5776 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5777 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5778 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5779 | fi |
| 5780 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5781 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5782 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5783 | IFS="$lt_save_ifs" |
| 5784 | test -z "$ac_dir" && ac_dir=. |
| 5785 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5786 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5787 | # Check to see if the nm accepts a BSD-compat flag. |
| 5788 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5789 | # nm: unknown option "B" ignored |
| 5790 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5791 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5792 | */dev/null* | *'Invalid file or object type'*) |
| 5793 | lt_cv_path_NM="$tmp_nm -B" |
| 5794 | break |
| 5795 | ;; |
| 5796 | *) |
| 5797 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5798 | */dev/null*) |
| 5799 | lt_cv_path_NM="$tmp_nm -p" |
| 5800 | break |
| 5801 | ;; |
| 5802 | *) |
| 5803 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5804 | continue # so that we can try to find one that supports BSD flags |
| 5805 | ;; |
| 5806 | esac |
| 5807 | ;; |
| 5808 | esac |
| 5809 | fi |
| 5810 | done |
| 5811 | IFS="$lt_save_ifs" |
| 5812 | done |
| 5813 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5814 | fi |
| 5815 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5816 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5817 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5818 | NM="$lt_cv_path_NM" |
| 5819 | |
| 5820 | |
| 5821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5823 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5824 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | else |
| 5827 | llvm_cv_gnu_make_command='' |
| 5828 | for a in "$MAKE" make gmake gnumake ; do |
| 5829 | if test -z "$a" ; then continue ; fi ; |
| 5830 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5831 | then |
| 5832 | llvm_cv_gnu_make_command=$a ; |
| 5833 | break; |
| 5834 | fi |
| 5835 | done |
| 5836 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5837 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5838 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5839 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5840 | ifGNUmake='' ; |
| 5841 | else |
| 5842 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5843 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5844 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5845 | fi |
| 5846 | |
| 5847 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5848 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5849 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5850 | LN_S=$as_ln_s |
| 5851 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5852 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5853 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5854 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5855 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5856 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5857 | fi |
| 5858 | |
| 5859 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5860 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5861 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5863 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5865 | else |
| 5866 | case $CMP in |
| 5867 | [\\/]* | ?:[\\/]*) |
| 5868 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5869 | ;; |
| 5870 | *) |
| 5871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5872 | for as_dir in $PATH |
| 5873 | do |
| 5874 | IFS=$as_save_IFS |
| 5875 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5877 | 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] | 5878 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5879 | 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] | 5880 | break 2 |
| 5881 | fi |
| 5882 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5883 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5884 | IFS=$as_save_IFS |
| 5885 | |
| 5886 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5887 | ;; |
| 5888 | esac |
| 5889 | fi |
| 5890 | CMP=$ac_cv_path_CMP |
| 5891 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5892 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5893 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5894 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5895 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5896 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5897 | fi |
| 5898 | |
| 5899 | |
| 5900 | # Extract the first word of "cp", so it can be a program name with args. |
| 5901 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5904 | if test "${ac_cv_path_CP+set}" = set; then |
| 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5906 | else |
| 5907 | case $CP in |
| 5908 | [\\/]* | ?:[\\/]*) |
| 5909 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5910 | ;; |
| 5911 | *) |
| 5912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5913 | for as_dir in $PATH |
| 5914 | do |
| 5915 | IFS=$as_save_IFS |
| 5916 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5918 | 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] | 5919 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5920 | 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] | 5921 | break 2 |
| 5922 | fi |
| 5923 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5924 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5925 | IFS=$as_save_IFS |
| 5926 | |
| 5927 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5928 | ;; |
| 5929 | esac |
| 5930 | fi |
| 5931 | CP=$ac_cv_path_CP |
| 5932 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5933 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5934 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5935 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5937 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5938 | fi |
| 5939 | |
| 5940 | |
| 5941 | # Extract the first word of "date", so it can be a program name with args. |
| 5942 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5943 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5945 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5947 | else |
| 5948 | case $DATE in |
| 5949 | [\\/]* | ?:[\\/]*) |
| 5950 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5951 | ;; |
| 5952 | *) |
| 5953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5954 | for as_dir in $PATH |
| 5955 | do |
| 5956 | IFS=$as_save_IFS |
| 5957 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5959 | 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] | 5960 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5961 | 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] | 5962 | break 2 |
| 5963 | fi |
| 5964 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5965 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5966 | IFS=$as_save_IFS |
| 5967 | |
| 5968 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5969 | ;; |
| 5970 | esac |
| 5971 | fi |
| 5972 | DATE=$ac_cv_path_DATE |
| 5973 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5974 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5975 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5976 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5978 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5979 | fi |
| 5980 | |
| 5981 | |
| 5982 | # Extract the first word of "find", so it can be a program name with args. |
| 5983 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5986 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5988 | else |
| 5989 | case $FIND in |
| 5990 | [\\/]* | ?:[\\/]*) |
| 5991 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5992 | ;; |
| 5993 | *) |
| 5994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5995 | for as_dir in $PATH |
| 5996 | do |
| 5997 | IFS=$as_save_IFS |
| 5998 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5999 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6000 | 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] | 6001 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6002 | 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] | 6003 | break 2 |
| 6004 | fi |
| 6005 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6006 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6007 | IFS=$as_save_IFS |
| 6008 | |
| 6009 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6010 | ;; |
| 6011 | esac |
| 6012 | fi |
| 6013 | FIND=$ac_cv_path_FIND |
| 6014 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6015 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6016 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6017 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6019 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6020 | fi |
| 6021 | |
| 6022 | |
| 6023 | # Extract the first word of "grep", so it can be a program name with args. |
| 6024 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6027 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6029 | else |
| 6030 | case $GREP in |
| 6031 | [\\/]* | ?:[\\/]*) |
| 6032 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6033 | ;; |
| 6034 | *) |
| 6035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6036 | for as_dir in $PATH |
| 6037 | do |
| 6038 | IFS=$as_save_IFS |
| 6039 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6041 | 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] | 6042 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6043 | 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] | 6044 | break 2 |
| 6045 | fi |
| 6046 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6047 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6048 | IFS=$as_save_IFS |
| 6049 | |
| 6050 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6051 | ;; |
| 6052 | esac |
| 6053 | fi |
| 6054 | GREP=$ac_cv_path_GREP |
| 6055 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6056 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6057 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6059 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6060 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6061 | fi |
| 6062 | |
| 6063 | |
| 6064 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6065 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6068 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6070 | else |
| 6071 | case $MKDIR in |
| 6072 | [\\/]* | ?:[\\/]*) |
| 6073 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6074 | ;; |
| 6075 | *) |
| 6076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6077 | for as_dir in $PATH |
| 6078 | do |
| 6079 | IFS=$as_save_IFS |
| 6080 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6082 | 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] | 6083 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6084 | 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] | 6085 | break 2 |
| 6086 | fi |
| 6087 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6088 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6089 | IFS=$as_save_IFS |
| 6090 | |
| 6091 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6092 | ;; |
| 6093 | esac |
| 6094 | fi |
| 6095 | MKDIR=$ac_cv_path_MKDIR |
| 6096 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6097 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6098 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6099 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6101 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6102 | fi |
| 6103 | |
| 6104 | |
| 6105 | # Extract the first word of "mv", so it can be a program name with args. |
| 6106 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6107 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6109 | if test "${ac_cv_path_MV+set}" = set; then |
| 6110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6111 | else |
| 6112 | case $MV in |
| 6113 | [\\/]* | ?:[\\/]*) |
| 6114 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6115 | ;; |
| 6116 | *) |
| 6117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6118 | for as_dir in $PATH |
| 6119 | do |
| 6120 | IFS=$as_save_IFS |
| 6121 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6122 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6123 | 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] | 6124 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6125 | 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] | 6126 | break 2 |
| 6127 | fi |
| 6128 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6129 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6130 | IFS=$as_save_IFS |
| 6131 | |
| 6132 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6133 | ;; |
| 6134 | esac |
| 6135 | fi |
| 6136 | MV=$ac_cv_path_MV |
| 6137 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6138 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6139 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6140 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6141 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6142 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6143 | fi |
| 6144 | |
| 6145 | |
| 6146 | if test -n "$ac_tool_prefix"; then |
| 6147 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6148 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6151 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6153 | else |
| 6154 | if test -n "$RANLIB"; then |
| 6155 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6156 | else |
| 6157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6158 | for as_dir in $PATH |
| 6159 | do |
| 6160 | IFS=$as_save_IFS |
| 6161 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6163 | 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] | 6164 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6165 | 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] | 6166 | break 2 |
| 6167 | fi |
| 6168 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6169 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6170 | IFS=$as_save_IFS |
| 6171 | |
| 6172 | fi |
| 6173 | fi |
| 6174 | RANLIB=$ac_cv_prog_RANLIB |
| 6175 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6176 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6177 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6178 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6180 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6181 | fi |
| 6182 | |
| 6183 | |
| 6184 | fi |
| 6185 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6186 | ac_ct_RANLIB=$RANLIB |
| 6187 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6188 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6191 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6193 | else |
| 6194 | if test -n "$ac_ct_RANLIB"; then |
| 6195 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6196 | else |
| 6197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6198 | for as_dir in $PATH |
| 6199 | do |
| 6200 | IFS=$as_save_IFS |
| 6201 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6203 | 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] | 6204 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6205 | 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] | 6206 | break 2 |
| 6207 | fi |
| 6208 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6209 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6210 | IFS=$as_save_IFS |
| 6211 | |
| 6212 | fi |
| 6213 | fi |
| 6214 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6215 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6216 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6217 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6218 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6220 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6221 | fi |
| 6222 | |
| 6223 | if test "x$ac_ct_RANLIB" = x; then |
| 6224 | RANLIB=":" |
| 6225 | else |
| 6226 | case $cross_compiling:$ac_tool_warned in |
| 6227 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6228 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6229 | whose name does not start with the host triplet. If you think this |
| 6230 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6231 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6232 | whose name does not start with the host triplet. If you think this |
| 6233 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6234 | ac_tool_warned=yes ;; |
| 6235 | esac |
| 6236 | RANLIB=$ac_ct_RANLIB |
| 6237 | fi |
| 6238 | else |
| 6239 | RANLIB="$ac_cv_prog_RANLIB" |
| 6240 | fi |
| 6241 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6242 | if test -n "$ac_tool_prefix"; then |
| 6243 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6244 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6247 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6249 | else |
| 6250 | if test -n "$AR"; then |
| 6251 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6252 | else |
| 6253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6254 | for as_dir in $PATH |
| 6255 | do |
| 6256 | IFS=$as_save_IFS |
| 6257 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6258 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6259 | 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] | 6260 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6261 | 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] | 6262 | break 2 |
| 6263 | fi |
| 6264 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6265 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6266 | IFS=$as_save_IFS |
| 6267 | |
| 6268 | fi |
| 6269 | fi |
| 6270 | AR=$ac_cv_prog_AR |
| 6271 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6273 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6276 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | |
| 6279 | |
| 6280 | fi |
| 6281 | if test -z "$ac_cv_prog_AR"; then |
| 6282 | ac_ct_AR=$AR |
| 6283 | # Extract the first word of "ar", so it can be a program name with args. |
| 6284 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6287 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6289 | else |
| 6290 | if test -n "$ac_ct_AR"; then |
| 6291 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6292 | else |
| 6293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6294 | for as_dir in $PATH |
| 6295 | do |
| 6296 | IFS=$as_save_IFS |
| 6297 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6299 | 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] | 6300 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6301 | 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] | 6302 | break 2 |
| 6303 | fi |
| 6304 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6305 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6306 | IFS=$as_save_IFS |
| 6307 | |
| 6308 | fi |
| 6309 | fi |
| 6310 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6311 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6312 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6313 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6314 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6315 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6316 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6317 | fi |
| 6318 | |
| 6319 | if test "x$ac_ct_AR" = x; then |
| 6320 | AR="false" |
| 6321 | else |
| 6322 | case $cross_compiling:$ac_tool_warned in |
| 6323 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6324 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6325 | whose name does not start with the host triplet. If you think this |
| 6326 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6327 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6328 | whose name does not start with the host triplet. If you think this |
| 6329 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6330 | ac_tool_warned=yes ;; |
| 6331 | esac |
| 6332 | AR=$ac_ct_AR |
| 6333 | fi |
| 6334 | else |
| 6335 | AR="$ac_cv_prog_AR" |
| 6336 | fi |
| 6337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6338 | # Extract the first word of "rm", so it can be a program name with args. |
| 6339 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6340 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6342 | if test "${ac_cv_path_RM+set}" = set; then |
| 6343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | else |
| 6345 | case $RM in |
| 6346 | [\\/]* | ?:[\\/]*) |
| 6347 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6348 | ;; |
| 6349 | *) |
| 6350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6351 | for as_dir in $PATH |
| 6352 | do |
| 6353 | IFS=$as_save_IFS |
| 6354 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6356 | 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] | 6357 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6358 | 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] | 6359 | break 2 |
| 6360 | fi |
| 6361 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6362 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6363 | IFS=$as_save_IFS |
| 6364 | |
| 6365 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6366 | ;; |
| 6367 | esac |
| 6368 | fi |
| 6369 | RM=$ac_cv_path_RM |
| 6370 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6371 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6372 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6373 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6374 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6375 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6376 | fi |
| 6377 | |
| 6378 | |
| 6379 | # Extract the first word of "sed", so it can be a program name with args. |
| 6380 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6383 | if test "${ac_cv_path_SED+set}" = set; then |
| 6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | else |
| 6386 | case $SED in |
| 6387 | [\\/]* | ?:[\\/]*) |
| 6388 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6389 | ;; |
| 6390 | *) |
| 6391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6392 | for as_dir in $PATH |
| 6393 | do |
| 6394 | IFS=$as_save_IFS |
| 6395 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6397 | 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] | 6398 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6399 | 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] | 6400 | break 2 |
| 6401 | fi |
| 6402 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6403 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6404 | IFS=$as_save_IFS |
| 6405 | |
| 6406 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6407 | ;; |
| 6408 | esac |
| 6409 | fi |
| 6410 | SED=$ac_cv_path_SED |
| 6411 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6412 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6413 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6417 | fi |
| 6418 | |
| 6419 | |
| 6420 | # Extract the first word of "tar", so it can be a program name with args. |
| 6421 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6422 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6424 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6426 | else |
| 6427 | case $TAR in |
| 6428 | [\\/]* | ?:[\\/]*) |
| 6429 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6430 | ;; |
| 6431 | *) |
| 6432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6433 | for as_dir in $PATH |
| 6434 | do |
| 6435 | IFS=$as_save_IFS |
| 6436 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6438 | 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] | 6439 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6440 | 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] | 6441 | break 2 |
| 6442 | fi |
| 6443 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6444 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | IFS=$as_save_IFS |
| 6446 | |
| 6447 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6448 | ;; |
| 6449 | esac |
| 6450 | fi |
| 6451 | TAR=$ac_cv_path_TAR |
| 6452 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6453 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6454 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6455 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6457 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6458 | fi |
| 6459 | |
| 6460 | |
| 6461 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6462 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6465 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6467 | else |
| 6468 | case $BINPWD in |
| 6469 | [\\/]* | ?:[\\/]*) |
| 6470 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6471 | ;; |
| 6472 | *) |
| 6473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6474 | for as_dir in $PATH |
| 6475 | do |
| 6476 | IFS=$as_save_IFS |
| 6477 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6478 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6479 | 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] | 6480 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6481 | 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] | 6482 | break 2 |
| 6483 | fi |
| 6484 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6485 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6486 | IFS=$as_save_IFS |
| 6487 | |
| 6488 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6489 | ;; |
| 6490 | esac |
| 6491 | fi |
| 6492 | BINPWD=$ac_cv_path_BINPWD |
| 6493 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6494 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6495 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6497 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6498 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6499 | fi |
| 6500 | |
| 6501 | |
| 6502 | |
| 6503 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6504 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6505 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6507 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6509 | else |
| 6510 | case $GRAPHVIZ in |
| 6511 | [\\/]* | ?:[\\/]*) |
| 6512 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6513 | ;; |
| 6514 | *) |
| 6515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6516 | for as_dir in $PATH |
| 6517 | do |
| 6518 | IFS=$as_save_IFS |
| 6519 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6521 | 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] | 6522 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6523 | 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] | 6524 | break 2 |
| 6525 | fi |
| 6526 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6527 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6528 | IFS=$as_save_IFS |
| 6529 | |
| 6530 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6531 | ;; |
| 6532 | esac |
| 6533 | fi |
| 6534 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6535 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6536 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6537 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6538 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6540 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6541 | fi |
| 6542 | |
| 6543 | |
| 6544 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6545 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6546 | cat >>confdefs.h <<\_ACEOF |
| 6547 | #define HAVE_GRAPHVIZ 1 |
| 6548 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6549 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6550 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6551 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6552 | fi |
| 6553 | |
| 6554 | cat >>confdefs.h <<_ACEOF |
| 6555 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6556 | _ACEOF |
| 6557 | |
| 6558 | fi |
| 6559 | # Extract the first word of "dot", so it can be a program name with args. |
| 6560 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6563 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6565 | else |
| 6566 | case $DOT in |
| 6567 | [\\/]* | ?:[\\/]*) |
| 6568 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6569 | ;; |
| 6570 | *) |
| 6571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6572 | for as_dir in $PATH |
| 6573 | do |
| 6574 | IFS=$as_save_IFS |
| 6575 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6577 | 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] | 6578 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6579 | 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] | 6580 | break 2 |
| 6581 | fi |
| 6582 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6583 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6584 | IFS=$as_save_IFS |
| 6585 | |
| 6586 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6587 | ;; |
| 6588 | esac |
| 6589 | fi |
| 6590 | DOT=$ac_cv_path_DOT |
| 6591 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6592 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6593 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6594 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6595 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6596 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6597 | fi |
| 6598 | |
| 6599 | |
| 6600 | if test "$DOT" != "echo dot" ; then |
| 6601 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6602 | cat >>confdefs.h <<\_ACEOF |
| 6603 | #define HAVE_DOT 1 |
| 6604 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6605 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6606 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6607 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6608 | fi |
| 6609 | |
| 6610 | cat >>confdefs.h <<_ACEOF |
| 6611 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6612 | _ACEOF |
| 6613 | |
| 6614 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6615 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6616 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6619 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6621 | else |
| 6622 | case $FDP in |
| 6623 | [\\/]* | ?:[\\/]*) |
| 6624 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6625 | ;; |
| 6626 | *) |
| 6627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6628 | for as_dir in $PATH |
| 6629 | do |
| 6630 | IFS=$as_save_IFS |
| 6631 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6633 | 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] | 6634 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6635 | 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] | 6636 | break 2 |
| 6637 | fi |
| 6638 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6639 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6640 | IFS=$as_save_IFS |
| 6641 | |
| 6642 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6643 | ;; |
| 6644 | esac |
| 6645 | fi |
| 6646 | FDP=$ac_cv_path_FDP |
| 6647 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6648 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6649 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6652 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6653 | fi |
| 6654 | |
| 6655 | |
| 6656 | if test "$FDP" != "echo fdp" ; then |
| 6657 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6658 | cat >>confdefs.h <<\_ACEOF |
| 6659 | #define HAVE_FDP 1 |
| 6660 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6661 | |
| 6662 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6663 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6664 | fi |
| 6665 | |
| 6666 | cat >>confdefs.h <<_ACEOF |
| 6667 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6668 | _ACEOF |
| 6669 | |
| 6670 | fi |
| 6671 | # Extract the first word of "neato", so it can be a program name with args. |
| 6672 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6675 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6677 | else |
| 6678 | case $NEATO in |
| 6679 | [\\/]* | ?:[\\/]*) |
| 6680 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6681 | ;; |
| 6682 | *) |
| 6683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6684 | for as_dir in $PATH |
| 6685 | do |
| 6686 | IFS=$as_save_IFS |
| 6687 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6689 | 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] | 6690 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6691 | 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] | 6692 | break 2 |
| 6693 | fi |
| 6694 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6695 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6696 | IFS=$as_save_IFS |
| 6697 | |
| 6698 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6699 | ;; |
| 6700 | esac |
| 6701 | fi |
| 6702 | NEATO=$ac_cv_path_NEATO |
| 6703 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6704 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6705 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6706 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6707 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6708 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6709 | fi |
| 6710 | |
| 6711 | |
| 6712 | if test "$NEATO" != "echo neato" ; then |
| 6713 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6714 | cat >>confdefs.h <<\_ACEOF |
| 6715 | #define HAVE_NEATO 1 |
| 6716 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6717 | |
| 6718 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6719 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6720 | fi |
| 6721 | |
| 6722 | cat >>confdefs.h <<_ACEOF |
| 6723 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6724 | _ACEOF |
| 6725 | |
| 6726 | fi |
| 6727 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6728 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6731 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6733 | else |
| 6734 | case $TWOPI in |
| 6735 | [\\/]* | ?:[\\/]*) |
| 6736 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6737 | ;; |
| 6738 | *) |
| 6739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6740 | for as_dir in $PATH |
| 6741 | do |
| 6742 | IFS=$as_save_IFS |
| 6743 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6745 | 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] | 6746 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6747 | 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] | 6748 | break 2 |
| 6749 | fi |
| 6750 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6751 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6752 | IFS=$as_save_IFS |
| 6753 | |
| 6754 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6755 | ;; |
| 6756 | esac |
| 6757 | fi |
| 6758 | TWOPI=$ac_cv_path_TWOPI |
| 6759 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6760 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6761 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6762 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6763 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6764 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6765 | fi |
| 6766 | |
| 6767 | |
| 6768 | if test "$TWOPI" != "echo twopi" ; then |
| 6769 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6770 | cat >>confdefs.h <<\_ACEOF |
| 6771 | #define HAVE_TWOPI 1 |
| 6772 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6773 | |
| 6774 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6775 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6776 | fi |
| 6777 | |
| 6778 | cat >>confdefs.h <<_ACEOF |
| 6779 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6780 | _ACEOF |
| 6781 | |
| 6782 | fi |
| 6783 | # Extract the first word of "circo", so it can be a program name with args. |
| 6784 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6785 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6787 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6789 | else |
| 6790 | case $CIRCO in |
| 6791 | [\\/]* | ?:[\\/]*) |
| 6792 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6793 | ;; |
| 6794 | *) |
| 6795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6796 | for as_dir in $PATH |
| 6797 | do |
| 6798 | IFS=$as_save_IFS |
| 6799 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6801 | 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] | 6802 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6803 | 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] | 6804 | break 2 |
| 6805 | fi |
| 6806 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6807 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6808 | IFS=$as_save_IFS |
| 6809 | |
| 6810 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6811 | ;; |
| 6812 | esac |
| 6813 | fi |
| 6814 | CIRCO=$ac_cv_path_CIRCO |
| 6815 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6816 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6817 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6818 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6819 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6820 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6821 | fi |
| 6822 | |
| 6823 | |
| 6824 | if test "$CIRCO" != "echo circo" ; then |
| 6825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6826 | cat >>confdefs.h <<\_ACEOF |
| 6827 | #define HAVE_CIRCO 1 |
| 6828 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6829 | |
| 6830 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6831 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6832 | fi |
| 6833 | |
| 6834 | cat >>confdefs.h <<_ACEOF |
| 6835 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6836 | _ACEOF |
| 6837 | |
| 6838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6839 | for ac_prog in gv gsview32 |
| 6840 | do |
| 6841 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6842 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6843 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6845 | if test "${ac_cv_path_GV+set}" = set; then |
| 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6847 | else |
| 6848 | case $GV in |
| 6849 | [\\/]* | ?:[\\/]*) |
| 6850 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6851 | ;; |
| 6852 | *) |
| 6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6854 | for as_dir in $PATH |
| 6855 | do |
| 6856 | IFS=$as_save_IFS |
| 6857 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6859 | 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] | 6860 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6861 | 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] | 6862 | break 2 |
| 6863 | fi |
| 6864 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6865 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6866 | IFS=$as_save_IFS |
| 6867 | |
| 6868 | ;; |
| 6869 | esac |
| 6870 | fi |
| 6871 | GV=$ac_cv_path_GV |
| 6872 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6873 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6874 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6875 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6876 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6877 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6878 | fi |
| 6879 | |
| 6880 | |
| 6881 | test -n "$GV" && break |
| 6882 | done |
| 6883 | test -n "$GV" || GV="echo gv" |
| 6884 | |
| 6885 | if test "$GV" != "echo gv" ; then |
| 6886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6887 | cat >>confdefs.h <<\_ACEOF |
| 6888 | #define HAVE_GV 1 |
| 6889 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6890 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6891 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6892 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6893 | fi |
| 6894 | |
| 6895 | cat >>confdefs.h <<_ACEOF |
| 6896 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6897 | _ACEOF |
| 6898 | |
| 6899 | fi |
| 6900 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6901 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6904 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6906 | else |
| 6907 | case $DOTTY in |
| 6908 | [\\/]* | ?:[\\/]*) |
| 6909 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6910 | ;; |
| 6911 | *) |
| 6912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6913 | for as_dir in $PATH |
| 6914 | do |
| 6915 | IFS=$as_save_IFS |
| 6916 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6918 | 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] | 6919 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6920 | 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] | 6921 | break 2 |
| 6922 | fi |
| 6923 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6924 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | IFS=$as_save_IFS |
| 6926 | |
| 6927 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6928 | ;; |
| 6929 | esac |
| 6930 | fi |
| 6931 | DOTTY=$ac_cv_path_DOTTY |
| 6932 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6933 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6934 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6935 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6937 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6938 | fi |
| 6939 | |
| 6940 | |
| 6941 | if test "$DOTTY" != "echo dotty" ; then |
| 6942 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6943 | cat >>confdefs.h <<\_ACEOF |
| 6944 | #define HAVE_DOTTY 1 |
| 6945 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6946 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6947 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6948 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6949 | fi |
| 6950 | |
| 6951 | cat >>confdefs.h <<_ACEOF |
| 6952 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6953 | _ACEOF |
| 6954 | |
| 6955 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 6956 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6957 | set dummy xdot.py; ac_word=$2 |
| 6958 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6960 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6962 | else |
| 6963 | case $XDOT_PY in |
| 6964 | [\\/]* | ?:[\\/]*) |
| 6965 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6966 | ;; |
| 6967 | *) |
| 6968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6969 | for as_dir in $PATH |
| 6970 | do |
| 6971 | IFS=$as_save_IFS |
| 6972 | test -z "$as_dir" && as_dir=. |
| 6973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6975 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6977 | break 2 |
| 6978 | fi |
| 6979 | done |
| 6980 | done |
| 6981 | IFS=$as_save_IFS |
| 6982 | |
| 6983 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6984 | ;; |
| 6985 | esac |
| 6986 | fi |
| 6987 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6988 | if test -n "$XDOT_PY"; then |
| 6989 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6990 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6991 | else |
| 6992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6993 | echo "${ECHO_T}no" >&6; } |
| 6994 | fi |
| 6995 | |
| 6996 | |
| 6997 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6998 | |
| 6999 | cat >>confdefs.h <<\_ACEOF |
| 7000 | #define HAVE_XDOT_PY 1 |
| 7001 | _ACEOF |
| 7002 | |
| 7003 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7004 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7005 | fi |
| 7006 | |
| 7007 | cat >>confdefs.h <<_ACEOF |
| 7008 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 7009 | _ACEOF |
| 7010 | |
| 7011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7013 | # Find a good install program. We prefer a C program (faster), |
| 7014 | # so one script is as good as another. But avoid the broken or |
| 7015 | # incompatible versions: |
| 7016 | # SysV /etc/install, /usr/sbin/install |
| 7017 | # SunOS /usr/etc/install |
| 7018 | # IRIX /sbin/install |
| 7019 | # AIX /bin/install |
| 7020 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7021 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7022 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7023 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7024 | # OS/2's system install, which has a completely different semantic |
| 7025 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7026 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7027 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7028 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7029 | if test "${ac_cv_path_install+set}" = set; then |
| 7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7031 | else |
| 7032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7033 | for as_dir in $PATH |
| 7034 | do |
| 7035 | IFS=$as_save_IFS |
| 7036 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | # Account for people who put trailing slashes in PATH elements. |
| 7038 | case $as_dir/ in |
| 7039 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7042 | /usr/ucb/* ) ;; |
| 7043 | *) |
| 7044 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7045 | # Don't use installbsd from OSF since it installs stuff as root |
| 7046 | # by default. |
| 7047 | for ac_prog in ginstall scoinst install; do |
| 7048 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | 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] | 7050 | if test $ac_prog = install && |
| 7051 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7052 | # AIX install. It has an incompatible calling convention. |
| 7053 | : |
| 7054 | elif test $ac_prog = install && |
| 7055 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7056 | # program-specific install script used by HP pwplus--don't use. |
| 7057 | : |
| 7058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7059 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7060 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7061 | fi |
| 7062 | fi |
| 7063 | done |
| 7064 | done |
| 7065 | ;; |
| 7066 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7067 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7068 | IFS=$as_save_IFS |
| 7069 | |
| 7070 | |
| 7071 | fi |
| 7072 | if test "${ac_cv_path_install+set}" = set; then |
| 7073 | INSTALL=$ac_cv_path_install |
| 7074 | else |
| 7075 | # As a last resort, use the slow shell script. Don't cache a |
| 7076 | # value for INSTALL within a source directory, because that will |
| 7077 | # break other packages using the cache if that directory is |
| 7078 | # removed, or if the value is a relative name. |
| 7079 | INSTALL=$ac_install_sh |
| 7080 | fi |
| 7081 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7082 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7083 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 | |
| 7085 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7086 | # It thinks the first close brace ends the variable substitution. |
| 7087 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7088 | |
| 7089 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7090 | |
| 7091 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7092 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7093 | case "$INSTALL" in |
| 7094 | [\\/$]* | ?:[\\/]* ) ;; |
| 7095 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7096 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | |
| 7098 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7099 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7100 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7102 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7104 | else |
| 7105 | case $BZIP2 in |
| 7106 | [\\/]* | ?:[\\/]*) |
| 7107 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7108 | ;; |
| 7109 | *) |
| 7110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7111 | for as_dir in $PATH |
| 7112 | do |
| 7113 | IFS=$as_save_IFS |
| 7114 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7116 | 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] | 7117 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7118 | 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] | 7119 | break 2 |
| 7120 | fi |
| 7121 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7122 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7123 | IFS=$as_save_IFS |
| 7124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7125 | ;; |
| 7126 | esac |
| 7127 | fi |
| 7128 | BZIP2=$ac_cv_path_BZIP2 |
| 7129 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7130 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7131 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7132 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7133 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7134 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7135 | fi |
| 7136 | |
| 7137 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7138 | # Extract the first word of "cat", so it can be a program name with args. |
| 7139 | set dummy cat; ac_word=$2 |
| 7140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7142 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7144 | else |
| 7145 | case $CAT in |
| 7146 | [\\/]* | ?:[\\/]*) |
| 7147 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7148 | ;; |
| 7149 | *) |
| 7150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7151 | for as_dir in $PATH |
| 7152 | do |
| 7153 | IFS=$as_save_IFS |
| 7154 | test -z "$as_dir" && as_dir=. |
| 7155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7157 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7159 | break 2 |
| 7160 | fi |
| 7161 | done |
| 7162 | done |
| 7163 | IFS=$as_save_IFS |
| 7164 | |
| 7165 | ;; |
| 7166 | esac |
| 7167 | fi |
| 7168 | CAT=$ac_cv_path_CAT |
| 7169 | if test -n "$CAT"; then |
| 7170 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7171 | echo "${ECHO_T}$CAT" >&6; } |
| 7172 | else |
| 7173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7174 | echo "${ECHO_T}no" >&6; } |
| 7175 | fi |
| 7176 | |
| 7177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7178 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7179 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7182 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7184 | else |
| 7185 | case $DOXYGEN in |
| 7186 | [\\/]* | ?:[\\/]*) |
| 7187 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7188 | ;; |
| 7189 | *) |
| 7190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7191 | for as_dir in $PATH |
| 7192 | do |
| 7193 | IFS=$as_save_IFS |
| 7194 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7196 | 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] | 7197 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7198 | 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] | 7199 | break 2 |
| 7200 | fi |
| 7201 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7202 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7203 | IFS=$as_save_IFS |
| 7204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7205 | ;; |
| 7206 | esac |
| 7207 | fi |
| 7208 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7209 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7210 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7211 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7212 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7213 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7214 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7215 | fi |
| 7216 | |
| 7217 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7218 | # Extract the first word of "groff", so it can be a program name with args. |
| 7219 | set dummy groff; ac_word=$2 |
| 7220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7222 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7224 | else |
| 7225 | case $GROFF in |
| 7226 | [\\/]* | ?:[\\/]*) |
| 7227 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7228 | ;; |
| 7229 | *) |
| 7230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7231 | for as_dir in $PATH |
| 7232 | do |
| 7233 | IFS=$as_save_IFS |
| 7234 | test -z "$as_dir" && as_dir=. |
| 7235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7237 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7239 | break 2 |
| 7240 | fi |
| 7241 | done |
| 7242 | done |
| 7243 | IFS=$as_save_IFS |
| 7244 | |
| 7245 | ;; |
| 7246 | esac |
| 7247 | fi |
| 7248 | GROFF=$ac_cv_path_GROFF |
| 7249 | if test -n "$GROFF"; then |
| 7250 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7251 | echo "${ECHO_T}$GROFF" >&6; } |
| 7252 | else |
| 7253 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7254 | echo "${ECHO_T}no" >&6; } |
| 7255 | fi |
| 7256 | |
| 7257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7258 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7259 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7260 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7262 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7264 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7265 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7266 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7267 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7268 | ;; |
| 7269 | *) |
| 7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7271 | for as_dir in $PATH |
| 7272 | do |
| 7273 | IFS=$as_save_IFS |
| 7274 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7277 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7278 | 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] | 7279 | break 2 |
| 7280 | fi |
| 7281 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7283 | IFS=$as_save_IFS |
| 7284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7285 | ;; |
| 7286 | esac |
| 7287 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7288 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7289 | if test -n "$GZIPBIN"; then |
| 7290 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7291 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7292 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7293 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7294 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7295 | fi |
| 7296 | |
| 7297 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7298 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7299 | set dummy pdfroff; ac_word=$2 |
| 7300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7302 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | else |
| 7305 | case $PDFROFF in |
| 7306 | [\\/]* | ?:[\\/]*) |
| 7307 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7308 | ;; |
| 7309 | *) |
| 7310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7311 | for as_dir in $PATH |
| 7312 | do |
| 7313 | IFS=$as_save_IFS |
| 7314 | test -z "$as_dir" && as_dir=. |
| 7315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7317 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7319 | break 2 |
| 7320 | fi |
| 7321 | done |
| 7322 | done |
| 7323 | IFS=$as_save_IFS |
| 7324 | |
| 7325 | ;; |
| 7326 | esac |
| 7327 | fi |
| 7328 | PDFROFF=$ac_cv_path_PDFROFF |
| 7329 | if test -n "$PDFROFF"; then |
| 7330 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7331 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7332 | else |
| 7333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7334 | echo "${ECHO_T}no" >&6; } |
| 7335 | fi |
| 7336 | |
| 7337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7338 | # Extract the first word of "zip", so it can be a program name with args. |
| 7339 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7340 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7342 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7344 | else |
| 7345 | case $ZIP in |
| 7346 | [\\/]* | ?:[\\/]*) |
| 7347 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7348 | ;; |
| 7349 | *) |
| 7350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7351 | for as_dir in $PATH |
| 7352 | do |
| 7353 | IFS=$as_save_IFS |
| 7354 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7356 | 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] | 7357 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7358 | 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] | 7359 | break 2 |
| 7360 | fi |
| 7361 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7362 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | IFS=$as_save_IFS |
| 7364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | ;; |
| 7366 | esac |
| 7367 | fi |
| 7368 | ZIP=$ac_cv_path_ZIP |
| 7369 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7370 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7371 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7374 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | fi |
| 7376 | |
| 7377 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7378 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7379 | do |
| 7380 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7381 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7382 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7384 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7386 | else |
| 7387 | case $OCAMLC in |
| 7388 | [\\/]* | ?:[\\/]*) |
| 7389 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7390 | ;; |
| 7391 | *) |
| 7392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7393 | for as_dir in $PATH |
| 7394 | do |
| 7395 | IFS=$as_save_IFS |
| 7396 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7398 | 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] | 7399 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7400 | 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] | 7401 | break 2 |
| 7402 | fi |
| 7403 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7404 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7405 | IFS=$as_save_IFS |
| 7406 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7407 | ;; |
| 7408 | esac |
| 7409 | fi |
| 7410 | OCAMLC=$ac_cv_path_OCAMLC |
| 7411 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7413 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7416 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7417 | fi |
| 7418 | |
| 7419 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7420 | test -n "$OCAMLC" && break |
| 7421 | done |
| 7422 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7423 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7424 | do |
| 7425 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7426 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7429 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7431 | else |
| 7432 | case $OCAMLOPT in |
| 7433 | [\\/]* | ?:[\\/]*) |
| 7434 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7435 | ;; |
| 7436 | *) |
| 7437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7438 | for as_dir in $PATH |
| 7439 | do |
| 7440 | IFS=$as_save_IFS |
| 7441 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7443 | 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] | 7444 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7445 | 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] | 7446 | break 2 |
| 7447 | fi |
| 7448 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7449 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7450 | IFS=$as_save_IFS |
| 7451 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7452 | ;; |
| 7453 | esac |
| 7454 | fi |
| 7455 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7456 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7457 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7458 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7459 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7461 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7462 | fi |
| 7463 | |
| 7464 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7465 | test -n "$OCAMLOPT" && break |
| 7466 | done |
| 7467 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7468 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7469 | do |
| 7470 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7471 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7472 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7474 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7476 | else |
| 7477 | case $OCAMLDEP in |
| 7478 | [\\/]* | ?:[\\/]*) |
| 7479 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7480 | ;; |
| 7481 | *) |
| 7482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7483 | for as_dir in $PATH |
| 7484 | do |
| 7485 | IFS=$as_save_IFS |
| 7486 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7487 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7488 | 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] | 7489 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7490 | 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] | 7491 | break 2 |
| 7492 | fi |
| 7493 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7494 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7495 | IFS=$as_save_IFS |
| 7496 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7497 | ;; |
| 7498 | esac |
| 7499 | fi |
| 7500 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7501 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7502 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7503 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7504 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7506 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7507 | fi |
| 7508 | |
| 7509 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7510 | test -n "$OCAMLDEP" && break |
| 7511 | done |
| 7512 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7513 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7514 | do |
| 7515 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7516 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7517 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7519 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7521 | else |
| 7522 | case $OCAMLDOC in |
| 7523 | [\\/]* | ?:[\\/]*) |
| 7524 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7525 | ;; |
| 7526 | *) |
| 7527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7528 | for as_dir in $PATH |
| 7529 | do |
| 7530 | IFS=$as_save_IFS |
| 7531 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7533 | 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] | 7534 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7535 | 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] | 7536 | break 2 |
| 7537 | fi |
| 7538 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7539 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7540 | IFS=$as_save_IFS |
| 7541 | |
| 7542 | ;; |
| 7543 | esac |
| 7544 | fi |
| 7545 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7546 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7547 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7548 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7549 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7551 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7552 | fi |
| 7553 | |
| 7554 | |
| 7555 | test -n "$OCAMLDOC" && break |
| 7556 | done |
| 7557 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7558 | for ac_prog in gas as |
| 7559 | do |
| 7560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7561 | set dummy $ac_prog; ac_word=$2 |
| 7562 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7564 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7566 | else |
| 7567 | case $GAS in |
| 7568 | [\\/]* | ?:[\\/]*) |
| 7569 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7570 | ;; |
| 7571 | *) |
| 7572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7573 | for as_dir in $PATH |
| 7574 | do |
| 7575 | IFS=$as_save_IFS |
| 7576 | test -z "$as_dir" && as_dir=. |
| 7577 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7578 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7579 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 7580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7581 | break 2 |
| 7582 | fi |
| 7583 | done |
| 7584 | done |
| 7585 | IFS=$as_save_IFS |
| 7586 | |
| 7587 | ;; |
| 7588 | esac |
| 7589 | fi |
| 7590 | GAS=$ac_cv_path_GAS |
| 7591 | if test -n "$GAS"; then |
| 7592 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7593 | echo "${ECHO_T}$GAS" >&6; } |
| 7594 | else |
| 7595 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7596 | echo "${ECHO_T}no" >&6; } |
| 7597 | fi |
| 7598 | |
| 7599 | |
| 7600 | test -n "$GAS" && break |
| 7601 | done |
| 7602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7603 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7604 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7605 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7606 | if test "${llvm_cv_link_version+set}" = set; then |
| 7607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7608 | else |
| 7609 | |
| 7610 | version_string="$(ld -v 2>&1 | head -1)" |
| 7611 | |
| 7612 | # Check for ld64. |
| 7613 | if (echo "$version_string" | grep -q "ld64"); then |
Charles Davis | 8b37637 | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7614 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7615 | else |
| 7616 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7617 | fi |
| 7618 | |
| 7619 | fi |
| 7620 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7621 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7622 | |
| 7623 | cat >>confdefs.h <<_ACEOF |
| 7624 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7625 | _ACEOF |
| 7626 | |
| 7627 | |
| 7628 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7629 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7630 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7631 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7633 | else |
| 7634 | ac_ext=c |
| 7635 | ac_cpp='$CPP $CPPFLAGS' |
| 7636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7639 | |
| 7640 | oldcflags="$CFLAGS" |
| 7641 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7642 | cat >conftest.$ac_ext <<_ACEOF |
| 7643 | /* confdefs.h. */ |
| 7644 | _ACEOF |
| 7645 | cat confdefs.h >>conftest.$ac_ext |
| 7646 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7647 | /* end confdefs.h. */ |
| 7648 | |
| 7649 | int |
| 7650 | main () |
| 7651 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7652 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7653 | ; |
| 7654 | return 0; |
| 7655 | } |
| 7656 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7657 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7658 | if { (ac_try="$ac_link" |
| 7659 | case "(($ac_try" in |
| 7660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7661 | *) ac_try_echo=$ac_try;; |
| 7662 | esac |
| 7663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7664 | (eval "$ac_link") 2>conftest.er1 |
| 7665 | ac_status=$? |
| 7666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7667 | rm -f conftest.er1 |
| 7668 | cat conftest.err >&5 |
| 7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7670 | (exit $ac_status); } && |
| 7671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7672 | { (case "(($ac_try" in |
| 7673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7674 | *) ac_try_echo=$ac_try;; |
| 7675 | esac |
| 7676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7677 | (eval "$ac_try") 2>&5 |
| 7678 | ac_status=$? |
| 7679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7680 | (exit $ac_status); }; } && |
| 7681 | { ac_try='test -s conftest$ac_exeext' |
| 7682 | { (case "(($ac_try" in |
| 7683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7684 | *) ac_try_echo=$ac_try;; |
| 7685 | esac |
| 7686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7687 | (eval "$ac_try") 2>&5 |
| 7688 | ac_status=$? |
| 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7690 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7691 | llvm_cv_link_use_r=yes |
| 7692 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7693 | echo "$as_me: failed program was:" >&5 |
| 7694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7695 | |
| 7696 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7697 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7698 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7699 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7700 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7701 | CFLAGS="$oldcflags" |
| 7702 | ac_ext=c |
| 7703 | ac_cpp='$CPP $CPPFLAGS' |
| 7704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7707 | |
| 7708 | |
| 7709 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7710 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7711 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7712 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7713 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7714 | cat >>confdefs.h <<\_ACEOF |
| 7715 | #define HAVE_LINK_R 1 |
| 7716 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7717 | |
| 7718 | fi |
| 7719 | |
| 7720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7721 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7722 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7723 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7725 | else |
| 7726 | ac_ext=c |
| 7727 | ac_cpp='$CPP $CPPFLAGS' |
| 7728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7731 | |
| 7732 | oldcflags="$CFLAGS" |
| 7733 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | cat >conftest.$ac_ext <<_ACEOF |
| 7735 | /* confdefs.h. */ |
| 7736 | _ACEOF |
| 7737 | cat confdefs.h >>conftest.$ac_ext |
| 7738 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7739 | /* end confdefs.h. */ |
| 7740 | |
| 7741 | int |
| 7742 | main () |
| 7743 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7744 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7745 | ; |
| 7746 | return 0; |
| 7747 | } |
| 7748 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7750 | if { (ac_try="$ac_link" |
| 7751 | case "(($ac_try" in |
| 7752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7753 | *) ac_try_echo=$ac_try;; |
| 7754 | esac |
| 7755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7756 | (eval "$ac_link") 2>conftest.er1 |
| 7757 | ac_status=$? |
| 7758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7759 | rm -f conftest.er1 |
| 7760 | cat conftest.err >&5 |
| 7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); } && |
| 7763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7764 | { (case "(($ac_try" in |
| 7765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7766 | *) ac_try_echo=$ac_try;; |
| 7767 | esac |
| 7768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7769 | (eval "$ac_try") 2>&5 |
| 7770 | ac_status=$? |
| 7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7772 | (exit $ac_status); }; } && |
| 7773 | { ac_try='test -s conftest$ac_exeext' |
| 7774 | { (case "(($ac_try" in |
| 7775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7776 | *) ac_try_echo=$ac_try;; |
| 7777 | esac |
| 7778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7779 | (eval "$ac_try") 2>&5 |
| 7780 | ac_status=$? |
| 7781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7782 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7783 | llvm_cv_link_use_export_dynamic=yes |
| 7784 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7785 | echo "$as_me: failed program was:" >&5 |
| 7786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7787 | |
| 7788 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7789 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7790 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7791 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7792 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7793 | CFLAGS="$oldcflags" |
| 7794 | ac_ext=c |
| 7795 | ac_cpp='$CPP $CPPFLAGS' |
| 7796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7799 | |
| 7800 | |
| 7801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7802 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7803 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7804 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7805 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7806 | cat >>confdefs.h <<\_ACEOF |
| 7807 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7808 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7809 | |
| 7810 | fi |
| 7811 | |
| 7812 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7813 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7814 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7815 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7817 | else |
| 7818 | ac_ext=c |
| 7819 | ac_cpp='$CPP $CPPFLAGS' |
| 7820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7823 | |
| 7824 | oldcflags="$CFLAGS" |
| 7825 | |
| 7826 | # The following code is from the autoconf manual, |
| 7827 | # "11.13: Limitations of Usual Tools". |
| 7828 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 7829 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 7830 | # with $RANDOM to make collisions less likely. |
| 7831 | : ${TMPDIR=/tmp} |
| 7832 | { |
| 7833 | tmp=` |
| 7834 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 7835 | ` && |
| 7836 | test -n "$tmp" && test -d "$tmp" |
| 7837 | } || { |
| 7838 | tmp=$TMPDIR/foo$$-$RANDOM |
| 7839 | (umask 077 && mkdir "$tmp") |
| 7840 | } || exit $? |
| 7841 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7842 | echo "{" > "$tmp/export.map" |
| 7843 | echo " global: main;" >> "$tmp/export.map" |
| 7844 | echo " local: *;" >> "$tmp/export.map" |
| 7845 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7846 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7847 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7848 | cat >conftest.$ac_ext <<_ACEOF |
| 7849 | /* confdefs.h. */ |
| 7850 | _ACEOF |
| 7851 | cat confdefs.h >>conftest.$ac_ext |
| 7852 | cat >>conftest.$ac_ext <<_ACEOF |
| 7853 | /* end confdefs.h. */ |
| 7854 | |
| 7855 | int |
| 7856 | main () |
| 7857 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7858 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7859 | ; |
| 7860 | return 0; |
| 7861 | } |
| 7862 | _ACEOF |
| 7863 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7864 | if { (ac_try="$ac_link" |
| 7865 | case "(($ac_try" in |
| 7866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7867 | *) ac_try_echo=$ac_try;; |
| 7868 | esac |
| 7869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7870 | (eval "$ac_link") 2>conftest.er1 |
| 7871 | ac_status=$? |
| 7872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7873 | rm -f conftest.er1 |
| 7874 | cat conftest.err >&5 |
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | (exit $ac_status); } && |
| 7877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7878 | { (case "(($ac_try" in |
| 7879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7880 | *) ac_try_echo=$ac_try;; |
| 7881 | esac |
| 7882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7883 | (eval "$ac_try") 2>&5 |
| 7884 | ac_status=$? |
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7886 | (exit $ac_status); }; } && |
| 7887 | { ac_try='test -s conftest$ac_exeext' |
| 7888 | { (case "(($ac_try" in |
| 7889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7890 | *) ac_try_echo=$ac_try;; |
| 7891 | esac |
| 7892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7893 | (eval "$ac_try") 2>&5 |
| 7894 | ac_status=$? |
| 7895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7896 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7897 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7898 | else |
| 7899 | echo "$as_me: failed program was:" >&5 |
| 7900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7901 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 7902 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7903 | fi |
| 7904 | |
| 7905 | rm -f core conftest.err conftest.$ac_objext \ |
| 7906 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7907 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7908 | rmdir "$tmp" |
| 7909 | CFLAGS="$oldcflags" |
| 7910 | ac_ext=c |
| 7911 | ac_cpp='$CPP $CPPFLAGS' |
| 7912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7915 | |
| 7916 | |
| 7917 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7918 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 7919 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 7920 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 7921 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7922 | |
| 7923 | fi |
| 7924 | |
| 7925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7926 | |
| 7927 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7928 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7929 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7930 | if test "${ac_cv_c_const+set}" = set; then |
| 7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7932 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7933 | cat >conftest.$ac_ext <<_ACEOF |
| 7934 | /* confdefs.h. */ |
| 7935 | _ACEOF |
| 7936 | cat confdefs.h >>conftest.$ac_ext |
| 7937 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | /* end confdefs.h. */ |
| 7939 | |
| 7940 | int |
| 7941 | main () |
| 7942 | { |
| 7943 | /* FIXME: Include the comments suggested by Paul. */ |
| 7944 | #ifndef __cplusplus |
| 7945 | /* Ultrix mips cc rejects this. */ |
| 7946 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7947 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7948 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7949 | char const *const *ccp; |
| 7950 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7951 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7952 | struct point {int x, y;}; |
| 7953 | static struct point const zero = {0,0}; |
| 7954 | /* AIX XL C 1.02.0.0 rejects this. |
| 7955 | It does not let you subtract one const X* pointer from another in |
| 7956 | an arm of an if-expression whose if-part is not a constant |
| 7957 | expression */ |
| 7958 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7959 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7960 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7961 | ++ccp; |
| 7962 | p = (char**) ccp; |
| 7963 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7964 | { /* SCO 3.2v4 cc rejects this. */ |
| 7965 | char *t; |
| 7966 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7967 | |
| 7968 | *t++ = 0; |
| 7969 | if (s) return 0; |
| 7970 | } |
| 7971 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7972 | int x[] = {25, 17}; |
| 7973 | const int *foo = &x[0]; |
| 7974 | ++foo; |
| 7975 | } |
| 7976 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7977 | typedef const int *iptr; |
| 7978 | iptr p = 0; |
| 7979 | ++p; |
| 7980 | } |
| 7981 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7982 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7983 | struct s { int j; const int *ap[3]; }; |
| 7984 | struct s *b; b->j = 5; |
| 7985 | } |
| 7986 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7987 | const int foo = 10; |
| 7988 | if (!foo) return 0; |
| 7989 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7990 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7991 | #endif |
| 7992 | |
| 7993 | ; |
| 7994 | return 0; |
| 7995 | } |
| 7996 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7997 | rm -f conftest.$ac_objext |
| 7998 | if { (ac_try="$ac_compile" |
| 7999 | case "(($ac_try" in |
| 8000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8001 | *) ac_try_echo=$ac_try;; |
| 8002 | esac |
| 8003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8004 | (eval "$ac_compile") 2>conftest.er1 |
| 8005 | ac_status=$? |
| 8006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8007 | rm -f conftest.er1 |
| 8008 | cat conftest.err >&5 |
| 8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8010 | (exit $ac_status); } && |
| 8011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8012 | { (case "(($ac_try" in |
| 8013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8014 | *) ac_try_echo=$ac_try;; |
| 8015 | esac |
| 8016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8017 | (eval "$ac_try") 2>&5 |
| 8018 | ac_status=$? |
| 8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8020 | (exit $ac_status); }; } && |
| 8021 | { ac_try='test -s conftest.$ac_objext' |
| 8022 | { (case "(($ac_try" in |
| 8023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8024 | *) ac_try_echo=$ac_try;; |
| 8025 | esac |
| 8026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8027 | (eval "$ac_try") 2>&5 |
| 8028 | ac_status=$? |
| 8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8030 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8031 | ac_cv_c_const=yes |
| 8032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8033 | echo "$as_me: failed program was:" >&5 |
| 8034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8035 | |
| 8036 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8037 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8041 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8042 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8043 | if test $ac_cv_c_const = no; then |
| 8044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8045 | cat >>confdefs.h <<\_ACEOF |
| 8046 | #define const |
| 8047 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8048 | |
| 8049 | fi |
| 8050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8051 | |
| 8052 | |
| 8053 | |
| 8054 | |
| 8055 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8056 | ac_header_dirent=no |
| 8057 | 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] | 8058 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8059 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8060 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8063 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8064 | cat >conftest.$ac_ext <<_ACEOF |
| 8065 | /* confdefs.h. */ |
| 8066 | _ACEOF |
| 8067 | cat confdefs.h >>conftest.$ac_ext |
| 8068 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8069 | /* end confdefs.h. */ |
| 8070 | #include <sys/types.h> |
| 8071 | #include <$ac_hdr> |
| 8072 | |
| 8073 | int |
| 8074 | main () |
| 8075 | { |
| 8076 | if ((DIR *) 0) |
| 8077 | return 0; |
| 8078 | ; |
| 8079 | return 0; |
| 8080 | } |
| 8081 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8082 | rm -f conftest.$ac_objext |
| 8083 | if { (ac_try="$ac_compile" |
| 8084 | case "(($ac_try" in |
| 8085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8086 | *) ac_try_echo=$ac_try;; |
| 8087 | esac |
| 8088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8089 | (eval "$ac_compile") 2>conftest.er1 |
| 8090 | ac_status=$? |
| 8091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8092 | rm -f conftest.er1 |
| 8093 | cat conftest.err >&5 |
| 8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8095 | (exit $ac_status); } && |
| 8096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8097 | { (case "(($ac_try" in |
| 8098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8099 | *) ac_try_echo=$ac_try;; |
| 8100 | esac |
| 8101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8102 | (eval "$ac_try") 2>&5 |
| 8103 | ac_status=$? |
| 8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8105 | (exit $ac_status); }; } && |
| 8106 | { ac_try='test -s conftest.$ac_objext' |
| 8107 | { (case "(($ac_try" in |
| 8108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8109 | *) ac_try_echo=$ac_try;; |
| 8110 | esac |
| 8111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8112 | (eval "$ac_try") 2>&5 |
| 8113 | ac_status=$? |
| 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8115 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8116 | eval "$as_ac_Header=yes" |
| 8117 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8118 | echo "$as_me: failed program was:" >&5 |
| 8119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8120 | |
| 8121 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8122 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8125 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8126 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8128 | echo "${ECHO_T}$ac_res" >&6; } |
| 8129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8130 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8131 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8132 | _ACEOF |
| 8133 | |
| 8134 | ac_header_dirent=$ac_hdr; break |
| 8135 | fi |
| 8136 | |
| 8137 | done |
| 8138 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8139 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8140 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8141 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8142 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8144 | else |
| 8145 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8146 | cat >conftest.$ac_ext <<_ACEOF |
| 8147 | /* confdefs.h. */ |
| 8148 | _ACEOF |
| 8149 | cat confdefs.h >>conftest.$ac_ext |
| 8150 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8151 | /* end confdefs.h. */ |
| 8152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 | /* Override any GCC internal prototype to avoid an error. |
| 8154 | Use char because int might match the return type of a GCC |
| 8155 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8156 | #ifdef __cplusplus |
| 8157 | extern "C" |
| 8158 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8159 | char opendir (); |
| 8160 | int |
| 8161 | main () |
| 8162 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8163 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8168 | for ac_lib in '' dir; do |
| 8169 | if test -z "$ac_lib"; then |
| 8170 | ac_res="none required" |
| 8171 | else |
| 8172 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8173 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8174 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8175 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8176 | if { (ac_try="$ac_link" |
| 8177 | case "(($ac_try" in |
| 8178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8179 | *) ac_try_echo=$ac_try;; |
| 8180 | esac |
| 8181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8182 | (eval "$ac_link") 2>conftest.er1 |
| 8183 | ac_status=$? |
| 8184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8185 | rm -f conftest.er1 |
| 8186 | cat conftest.err >&5 |
| 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8188 | (exit $ac_status); } && |
| 8189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8190 | { (case "(($ac_try" in |
| 8191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8192 | *) ac_try_echo=$ac_try;; |
| 8193 | esac |
| 8194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8195 | (eval "$ac_try") 2>&5 |
| 8196 | ac_status=$? |
| 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8198 | (exit $ac_status); }; } && |
| 8199 | { ac_try='test -s conftest$ac_exeext' |
| 8200 | { (case "(($ac_try" in |
| 8201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8202 | *) ac_try_echo=$ac_try;; |
| 8203 | esac |
| 8204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8205 | (eval "$ac_try") 2>&5 |
| 8206 | ac_status=$? |
| 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8209 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8210 | else |
| 8211 | echo "$as_me: failed program was:" >&5 |
| 8212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8213 | |
| 8214 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8216 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8217 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8218 | conftest$ac_exeext |
| 8219 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8220 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8221 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8222 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8223 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8224 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8225 | else |
| 8226 | ac_cv_search_opendir=no |
| 8227 | fi |
| 8228 | rm conftest.$ac_ext |
| 8229 | LIBS=$ac_func_search_save_LIBS |
| 8230 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8231 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8232 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8233 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8234 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8235 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8237 | fi |
| 8238 | |
| 8239 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8240 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8241 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8242 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8244 | else |
| 8245 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8246 | cat >conftest.$ac_ext <<_ACEOF |
| 8247 | /* confdefs.h. */ |
| 8248 | _ACEOF |
| 8249 | cat confdefs.h >>conftest.$ac_ext |
| 8250 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8251 | /* end confdefs.h. */ |
| 8252 | |
| 8253 | /* Override any GCC internal prototype to avoid an error. |
| 8254 | Use char because int might match the return type of a GCC |
| 8255 | builtin and then its argument prototype would still apply. */ |
| 8256 | #ifdef __cplusplus |
| 8257 | extern "C" |
| 8258 | #endif |
| 8259 | char opendir (); |
| 8260 | int |
| 8261 | main () |
| 8262 | { |
| 8263 | return opendir (); |
| 8264 | ; |
| 8265 | return 0; |
| 8266 | } |
| 8267 | _ACEOF |
| 8268 | for ac_lib in '' x; do |
| 8269 | if test -z "$ac_lib"; then |
| 8270 | ac_res="none required" |
| 8271 | else |
| 8272 | ac_res=-l$ac_lib |
| 8273 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8274 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8275 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8276 | if { (ac_try="$ac_link" |
| 8277 | case "(($ac_try" in |
| 8278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8279 | *) ac_try_echo=$ac_try;; |
| 8280 | esac |
| 8281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8282 | (eval "$ac_link") 2>conftest.er1 |
| 8283 | ac_status=$? |
| 8284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8285 | rm -f conftest.er1 |
| 8286 | cat conftest.err >&5 |
| 8287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8288 | (exit $ac_status); } && |
| 8289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8290 | { (case "(($ac_try" in |
| 8291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8292 | *) ac_try_echo=$ac_try;; |
| 8293 | esac |
| 8294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8295 | (eval "$ac_try") 2>&5 |
| 8296 | ac_status=$? |
| 8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8298 | (exit $ac_status); }; } && |
| 8299 | { ac_try='test -s conftest$ac_exeext' |
| 8300 | { (case "(($ac_try" in |
| 8301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8302 | *) ac_try_echo=$ac_try;; |
| 8303 | esac |
| 8304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8305 | (eval "$ac_try") 2>&5 |
| 8306 | ac_status=$? |
| 8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8308 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8309 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8310 | else |
| 8311 | echo "$as_me: failed program was:" >&5 |
| 8312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8313 | |
| 8314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8315 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8316 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8317 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8318 | conftest$ac_exeext |
| 8319 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8320 | break |
| 8321 | fi |
| 8322 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8323 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8324 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8325 | else |
| 8326 | ac_cv_search_opendir=no |
| 8327 | fi |
| 8328 | rm conftest.$ac_ext |
| 8329 | LIBS=$ac_func_search_save_LIBS |
| 8330 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8331 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8332 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8333 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8334 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8336 | |
| 8337 | fi |
| 8338 | |
| 8339 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8342 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8343 | do |
| 8344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8346 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8350 | fi |
| 8351 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8352 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8353 | echo "${ECHO_T}$ac_res" >&6; } |
| 8354 | else |
| 8355 | # Is the header compilable? |
| 8356 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8357 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8358 | cat >conftest.$ac_ext <<_ACEOF |
| 8359 | /* confdefs.h. */ |
| 8360 | _ACEOF |
| 8361 | cat confdefs.h >>conftest.$ac_ext |
| 8362 | cat >>conftest.$ac_ext <<_ACEOF |
| 8363 | /* end confdefs.h. */ |
| 8364 | $ac_includes_default |
| 8365 | #include <$ac_header> |
| 8366 | _ACEOF |
| 8367 | rm -f conftest.$ac_objext |
| 8368 | if { (ac_try="$ac_compile" |
| 8369 | case "(($ac_try" in |
| 8370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8371 | *) ac_try_echo=$ac_try;; |
| 8372 | esac |
| 8373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8374 | (eval "$ac_compile") 2>conftest.er1 |
| 8375 | ac_status=$? |
| 8376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8377 | rm -f conftest.er1 |
| 8378 | cat conftest.err >&5 |
| 8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8380 | (exit $ac_status); } && |
| 8381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8382 | { (case "(($ac_try" in |
| 8383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8384 | *) ac_try_echo=$ac_try;; |
| 8385 | esac |
| 8386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8387 | (eval "$ac_try") 2>&5 |
| 8388 | ac_status=$? |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); }; } && |
| 8391 | { ac_try='test -s conftest.$ac_objext' |
| 8392 | { (case "(($ac_try" in |
| 8393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8394 | *) ac_try_echo=$ac_try;; |
| 8395 | esac |
| 8396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8397 | (eval "$ac_try") 2>&5 |
| 8398 | ac_status=$? |
| 8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8400 | (exit $ac_status); }; }; then |
| 8401 | ac_header_compiler=yes |
| 8402 | else |
| 8403 | echo "$as_me: failed program was:" >&5 |
| 8404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8405 | |
| 8406 | ac_header_compiler=no |
| 8407 | fi |
| 8408 | |
| 8409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8410 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8411 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8412 | |
| 8413 | # Is the header present? |
| 8414 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8416 | cat >conftest.$ac_ext <<_ACEOF |
| 8417 | /* confdefs.h. */ |
| 8418 | _ACEOF |
| 8419 | cat confdefs.h >>conftest.$ac_ext |
| 8420 | cat >>conftest.$ac_ext <<_ACEOF |
| 8421 | /* end confdefs.h. */ |
| 8422 | #include <$ac_header> |
| 8423 | _ACEOF |
| 8424 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8425 | case "(($ac_try" in |
| 8426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8427 | *) ac_try_echo=$ac_try;; |
| 8428 | esac |
| 8429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8431 | ac_status=$? |
| 8432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8433 | rm -f conftest.er1 |
| 8434 | cat conftest.err >&5 |
| 8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8436 | (exit $ac_status); } >/dev/null; then |
| 8437 | if test -s conftest.err; then |
| 8438 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8439 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8440 | else |
| 8441 | ac_cpp_err= |
| 8442 | fi |
| 8443 | else |
| 8444 | ac_cpp_err=yes |
| 8445 | fi |
| 8446 | if test -z "$ac_cpp_err"; then |
| 8447 | ac_header_preproc=yes |
| 8448 | else |
| 8449 | echo "$as_me: failed program was:" >&5 |
| 8450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8451 | |
| 8452 | ac_header_preproc=no |
| 8453 | fi |
| 8454 | |
| 8455 | rm -f conftest.err conftest.$ac_ext |
| 8456 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8457 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8458 | |
| 8459 | # So? What about this header? |
| 8460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8461 | yes:no: ) |
| 8462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8466 | ac_header_preproc=yes |
| 8467 | ;; |
| 8468 | no:yes:* ) |
| 8469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8481 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8482 | ## ------------------------------------ ## |
| 8483 | ## Report this to http://llvm.org/bugs/ ## |
| 8484 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8485 | _ASBOX |
| 8486 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8487 | ;; |
| 8488 | esac |
| 8489 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8491 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8493 | else |
| 8494 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8495 | fi |
| 8496 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8497 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8498 | echo "${ECHO_T}$ac_res" >&6; } |
| 8499 | |
| 8500 | fi |
| 8501 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8502 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8503 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8504 | _ACEOF |
| 8505 | |
| 8506 | fi |
| 8507 | |
| 8508 | done |
| 8509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8510 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8511 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8512 | enableval=$enable_ltdl_install; |
| 8513 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8514 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8515 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8516 | |
| 8517 | |
| 8518 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8519 | INSTALL_LTDL_TRUE= |
| 8520 | INSTALL_LTDL_FALSE='#' |
| 8521 | else |
| 8522 | INSTALL_LTDL_TRUE='#' |
| 8523 | INSTALL_LTDL_FALSE= |
| 8524 | fi |
| 8525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8526 | |
| 8527 | |
| 8528 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8529 | CONVENIENCE_LTDL_TRUE= |
| 8530 | CONVENIENCE_LTDL_FALSE='#' |
| 8531 | else |
| 8532 | CONVENIENCE_LTDL_TRUE='#' |
| 8533 | CONVENIENCE_LTDL_FALSE= |
| 8534 | fi |
| 8535 | |
| 8536 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8537 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8538 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8539 | library_names_spec= |
| 8540 | libname_spec='lib$name' |
| 8541 | soname_spec= |
| 8542 | shrext_cmds=".so" |
| 8543 | postinstall_cmds= |
| 8544 | postuninstall_cmds= |
| 8545 | finish_cmds= |
| 8546 | finish_eval= |
| 8547 | shlibpath_var= |
| 8548 | shlibpath_overrides_runpath=unknown |
| 8549 | version_type=none |
| 8550 | dynamic_linker="$host_os ld.so" |
| 8551 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8552 | if test "$GCC" = yes; then |
| 8553 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8554 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8555 | # if the path contains ";" then we assume it to be the separator |
| 8556 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8557 | # assumed that no part of a normal pathname contains ";" but that should |
| 8558 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8559 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8560 | else |
| 8561 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8562 | fi |
| 8563 | else |
| 8564 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8565 | fi |
| 8566 | need_lib_prefix=unknown |
| 8567 | hardcode_into_libs=no |
| 8568 | |
| 8569 | # when you set need_version to no, make sure it does not cause -set_version |
| 8570 | # flags to be left without arguments |
| 8571 | need_version=unknown |
| 8572 | |
| 8573 | case $host_os in |
| 8574 | aix3*) |
| 8575 | version_type=linux |
| 8576 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8577 | shlibpath_var=LIBPATH |
| 8578 | |
| 8579 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8580 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8581 | ;; |
| 8582 | |
| 8583 | aix4* | aix5*) |
| 8584 | version_type=linux |
| 8585 | need_lib_prefix=no |
| 8586 | need_version=no |
| 8587 | hardcode_into_libs=yes |
| 8588 | if test "$host_cpu" = ia64; then |
| 8589 | # AIX 5 supports IA64 |
| 8590 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8591 | shlibpath_var=LD_LIBRARY_PATH |
| 8592 | else |
| 8593 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8594 | # for dependence libraries. The import file would start with |
| 8595 | # the line `#! .'. This would cause the generated library to |
| 8596 | # depend on `.', always an invalid library. This was fixed in |
| 8597 | # development snapshots of GCC prior to 3.0. |
| 8598 | case $host_os in |
| 8599 | aix4 | aix4.[01] | aix4.[01].*) |
| 8600 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8601 | echo ' yes ' |
| 8602 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8603 | : |
| 8604 | else |
| 8605 | can_build_shared=no |
| 8606 | fi |
| 8607 | ;; |
| 8608 | esac |
| 8609 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8610 | # soname into executable. Probably we can add versioning support to |
| 8611 | # collect2, so additional links can be useful in future. |
| 8612 | if test "$aix_use_runtimelinking" = yes; then |
| 8613 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8614 | # instead of lib<name>.a to let people know that these are not |
| 8615 | # typical AIX shared libraries. |
| 8616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8617 | else |
| 8618 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8619 | # and later when we are not doing run time linking. |
| 8620 | library_names_spec='${libname}${release}.a $libname.a' |
| 8621 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8622 | fi |
| 8623 | shlibpath_var=LIBPATH |
| 8624 | fi |
| 8625 | ;; |
| 8626 | |
| 8627 | amigaos*) |
| 8628 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8629 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8630 | 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' |
| 8631 | ;; |
| 8632 | |
| 8633 | beos*) |
| 8634 | library_names_spec='${libname}${shared_ext}' |
| 8635 | dynamic_linker="$host_os ld.so" |
| 8636 | shlibpath_var=LIBRARY_PATH |
| 8637 | ;; |
| 8638 | |
| 8639 | bsdi[45]*) |
| 8640 | version_type=linux |
| 8641 | need_version=no |
| 8642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8643 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8644 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8645 | shlibpath_var=LD_LIBRARY_PATH |
| 8646 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8647 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8648 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8649 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8650 | # libtool to hard-code these into programs |
| 8651 | ;; |
| 8652 | |
| 8653 | cygwin* | mingw* | pw32*) |
| 8654 | version_type=windows |
| 8655 | shrext_cmds=".dll" |
| 8656 | need_version=no |
| 8657 | need_lib_prefix=no |
| 8658 | |
| 8659 | case $GCC,$host_os in |
| 8660 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8661 | library_names_spec='$libname.dll.a' |
| 8662 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8663 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8664 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8665 | dldir=$destdir/`dirname \$dlpath`~ |
| 8666 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8667 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8668 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8669 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8670 | dlpath=$dir/\$dldll~ |
| 8671 | $rm \$dlpath' |
| 8672 | shlibpath_overrides_runpath=yes |
| 8673 | |
| 8674 | case $host_os in |
| 8675 | cygwin*) |
| 8676 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8677 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8678 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8679 | ;; |
| 8680 | mingw*) |
| 8681 | # MinGW DLLs use traditional 'lib' prefix |
| 8682 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8683 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8684 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8685 | # It is most probably a Windows format PATH printed by |
| 8686 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8687 | # path with ; separators, and with drive letters. We can handle the |
| 8688 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8689 | # especially as we might pass files found there to a mingw objdump, |
| 8690 | # which wouldn't understand a cygwinified path. Ahh. |
| 8691 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8692 | else |
| 8693 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8694 | fi |
| 8695 | ;; |
| 8696 | pw32*) |
| 8697 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8698 | 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] | 8699 | ;; |
| 8700 | esac |
| 8701 | ;; |
| 8702 | |
| 8703 | *) |
| 8704 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8705 | ;; |
| 8706 | esac |
| 8707 | dynamic_linker='Win32 ld.exe' |
| 8708 | # FIXME: first we should search . and the directory the executable is in |
| 8709 | shlibpath_var=PATH |
| 8710 | ;; |
| 8711 | |
| 8712 | darwin* | rhapsody*) |
| 8713 | dynamic_linker="$host_os dyld" |
| 8714 | version_type=darwin |
| 8715 | need_lib_prefix=no |
| 8716 | need_version=no |
| 8717 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8718 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8719 | shlibpath_overrides_runpath=yes |
| 8720 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8721 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8722 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8723 | if test "$GCC" = yes; then |
| 8724 | 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"` |
| 8725 | else |
| 8726 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8727 | fi |
| 8728 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8729 | ;; |
| 8730 | |
| 8731 | dgux*) |
| 8732 | version_type=linux |
| 8733 | need_lib_prefix=no |
| 8734 | need_version=no |
| 8735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8736 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8737 | shlibpath_var=LD_LIBRARY_PATH |
| 8738 | ;; |
| 8739 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8740 | freebsd1.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8741 | dynamic_linker=no |
| 8742 | ;; |
| 8743 | |
| 8744 | kfreebsd*-gnu) |
| 8745 | version_type=linux |
| 8746 | need_lib_prefix=no |
| 8747 | need_version=no |
| 8748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8749 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8750 | shlibpath_var=LD_LIBRARY_PATH |
| 8751 | shlibpath_overrides_runpath=no |
| 8752 | hardcode_into_libs=yes |
| 8753 | dynamic_linker='GNU ld.so' |
| 8754 | ;; |
| 8755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8756 | freebsd* | dragonfly*) |
| 8757 | # DragonFly does not have aout. When/if they implement a new |
| 8758 | # versioning mechanism, adjust this. |
| 8759 | if test -x /usr/bin/objformat; then |
| 8760 | objformat=`/usr/bin/objformat` |
| 8761 | else |
| 8762 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8763 | freebsd[123].*) objformat=aout ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8764 | *) objformat=elf ;; |
| 8765 | esac |
| 8766 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8767 | version_type=freebsd-$objformat |
| 8768 | case $version_type in |
| 8769 | freebsd-elf*) |
| 8770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8771 | need_version=no |
| 8772 | need_lib_prefix=no |
| 8773 | ;; |
| 8774 | freebsd-*) |
| 8775 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8776 | need_version=yes |
| 8777 | ;; |
| 8778 | esac |
| 8779 | shlibpath_var=LD_LIBRARY_PATH |
| 8780 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8781 | freebsd2.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8782 | shlibpath_overrides_runpath=yes |
| 8783 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8784 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8785 | shlibpath_overrides_runpath=yes |
| 8786 | hardcode_into_libs=yes |
| 8787 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8788 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8789 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8790 | shlibpath_overrides_runpath=no |
| 8791 | hardcode_into_libs=yes |
| 8792 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8793 | freebsd*) # from 4.6 on |
| 8794 | shlibpath_overrides_runpath=yes |
| 8795 | hardcode_into_libs=yes |
| 8796 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8797 | esac |
| 8798 | ;; |
| 8799 | |
| 8800 | gnu*) |
| 8801 | version_type=linux |
| 8802 | need_lib_prefix=no |
| 8803 | need_version=no |
| 8804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8806 | shlibpath_var=LD_LIBRARY_PATH |
| 8807 | hardcode_into_libs=yes |
| 8808 | ;; |
| 8809 | |
| 8810 | hpux9* | hpux10* | hpux11*) |
| 8811 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8812 | # link against other versions. |
| 8813 | version_type=sunos |
| 8814 | need_lib_prefix=no |
| 8815 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8816 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8817 | ia64*) |
| 8818 | shrext_cmds='.so' |
| 8819 | hardcode_into_libs=yes |
| 8820 | dynamic_linker="$host_os dld.so" |
| 8821 | shlibpath_var=LD_LIBRARY_PATH |
| 8822 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8824 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8825 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8826 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8827 | else |
| 8828 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8829 | fi |
| 8830 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8831 | ;; |
| 8832 | hppa*64*) |
| 8833 | shrext_cmds='.sl' |
| 8834 | hardcode_into_libs=yes |
| 8835 | dynamic_linker="$host_os dld.sl" |
| 8836 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8837 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8839 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8840 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8841 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8842 | ;; |
| 8843 | *) |
| 8844 | shrext_cmds='.sl' |
| 8845 | dynamic_linker="$host_os dld.sl" |
| 8846 | shlibpath_var=SHLIB_PATH |
| 8847 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8850 | ;; |
| 8851 | esac |
| 8852 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8853 | postinstall_cmds='chmod 555 $lib' |
| 8854 | ;; |
| 8855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8856 | interix3*) |
| 8857 | version_type=linux |
| 8858 | need_lib_prefix=no |
| 8859 | need_version=no |
| 8860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8862 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8863 | shlibpath_var=LD_LIBRARY_PATH |
| 8864 | shlibpath_overrides_runpath=no |
| 8865 | hardcode_into_libs=yes |
| 8866 | ;; |
| 8867 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8868 | irix5* | irix6* | nonstopux*) |
| 8869 | case $host_os in |
| 8870 | nonstopux*) version_type=nonstopux ;; |
| 8871 | *) |
| 8872 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8873 | version_type=linux |
| 8874 | else |
| 8875 | version_type=irix |
| 8876 | fi ;; |
| 8877 | esac |
| 8878 | need_lib_prefix=no |
| 8879 | need_version=no |
| 8880 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8882 | case $host_os in |
| 8883 | irix5* | nonstopux*) |
| 8884 | libsuff= shlibsuff= |
| 8885 | ;; |
| 8886 | *) |
| 8887 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8888 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8889 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8890 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8891 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8892 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8893 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8894 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8895 | esac |
| 8896 | ;; |
| 8897 | esac |
| 8898 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8899 | shlibpath_overrides_runpath=no |
| 8900 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8901 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8902 | hardcode_into_libs=yes |
| 8903 | ;; |
| 8904 | |
| 8905 | # No shared lib support for Linux oldld, aout, or coff. |
| 8906 | linux*oldld* | linux*aout* | linux*coff*) |
| 8907 | dynamic_linker=no |
| 8908 | ;; |
| 8909 | |
| 8910 | # This must be Linux ELF. |
| 8911 | linux*) |
| 8912 | version_type=linux |
| 8913 | need_lib_prefix=no |
| 8914 | need_version=no |
| 8915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8916 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8917 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8918 | shlibpath_var=LD_LIBRARY_PATH |
| 8919 | shlibpath_overrides_runpath=no |
| 8920 | # This implies no fast_install, which is unacceptable. |
| 8921 | # Some rework will be needed to allow for fast_install |
| 8922 | # before this can be enabled. |
| 8923 | hardcode_into_libs=yes |
| 8924 | |
| 8925 | # Append ld.so.conf contents to the search path |
| 8926 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8927 | 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] | 8928 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8929 | fi |
| 8930 | |
| 8931 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8932 | # powerpc, because MkLinux only supported shared libraries with the |
| 8933 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8934 | # most powerpc-linux boxes support dynamic linking these days and |
| 8935 | # people can always --disable-shared, the test was removed, and we |
| 8936 | # assume the GNU/Linux dynamic linker is in use. |
| 8937 | dynamic_linker='GNU/Linux ld.so' |
| 8938 | ;; |
| 8939 | |
| 8940 | knetbsd*-gnu) |
| 8941 | version_type=linux |
| 8942 | need_lib_prefix=no |
| 8943 | need_version=no |
| 8944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8945 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8946 | shlibpath_var=LD_LIBRARY_PATH |
| 8947 | shlibpath_overrides_runpath=no |
| 8948 | hardcode_into_libs=yes |
| 8949 | dynamic_linker='GNU ld.so' |
| 8950 | ;; |
| 8951 | |
| 8952 | netbsd*) |
| 8953 | version_type=sunos |
| 8954 | need_lib_prefix=no |
| 8955 | need_version=no |
| 8956 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8958 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8959 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8960 | else |
| 8961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8963 | dynamic_linker='NetBSD ld.elf_so' |
| 8964 | fi |
| 8965 | shlibpath_var=LD_LIBRARY_PATH |
| 8966 | shlibpath_overrides_runpath=yes |
| 8967 | hardcode_into_libs=yes |
| 8968 | ;; |
| 8969 | |
| 8970 | newsos6) |
| 8971 | version_type=linux |
| 8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8973 | shlibpath_var=LD_LIBRARY_PATH |
| 8974 | shlibpath_overrides_runpath=yes |
| 8975 | ;; |
| 8976 | |
| 8977 | nto-qnx*) |
| 8978 | version_type=linux |
| 8979 | need_lib_prefix=no |
| 8980 | need_version=no |
| 8981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8982 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8983 | shlibpath_var=LD_LIBRARY_PATH |
| 8984 | shlibpath_overrides_runpath=yes |
| 8985 | ;; |
| 8986 | |
Eric Christopher | b0f6759 | 2012-08-06 20:52:18 +0000 | [diff] [blame] | 8987 | openbsd* | bitrig*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8988 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8989 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8990 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8991 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8992 | case $host_os in |
| 8993 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8994 | *) need_version=no ;; |
| 8995 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8997 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8998 | shlibpath_var=LD_LIBRARY_PATH |
| 8999 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9000 | case $host_os in |
| 9001 | openbsd2.[89] | openbsd2.[89].*) |
| 9002 | shlibpath_overrides_runpath=no |
| 9003 | ;; |
| 9004 | *) |
| 9005 | shlibpath_overrides_runpath=yes |
| 9006 | ;; |
| 9007 | esac |
| 9008 | else |
| 9009 | shlibpath_overrides_runpath=yes |
| 9010 | fi |
| 9011 | ;; |
| 9012 | |
| 9013 | os2*) |
| 9014 | libname_spec='$name' |
| 9015 | shrext_cmds=".dll" |
| 9016 | need_lib_prefix=no |
| 9017 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9018 | dynamic_linker='OS/2 ld.exe' |
| 9019 | shlibpath_var=LIBPATH |
| 9020 | ;; |
| 9021 | |
| 9022 | osf3* | osf4* | osf5*) |
| 9023 | version_type=osf |
| 9024 | need_lib_prefix=no |
| 9025 | need_version=no |
| 9026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9028 | shlibpath_var=LD_LIBRARY_PATH |
| 9029 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9030 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9031 | ;; |
| 9032 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9033 | solaris*) |
| 9034 | version_type=linux |
| 9035 | need_lib_prefix=no |
| 9036 | need_version=no |
| 9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9038 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9039 | shlibpath_var=LD_LIBRARY_PATH |
| 9040 | shlibpath_overrides_runpath=yes |
| 9041 | hardcode_into_libs=yes |
| 9042 | # ldd complains unless libraries are executable |
| 9043 | postinstall_cmds='chmod +x $lib' |
| 9044 | ;; |
| 9045 | |
| 9046 | sunos4*) |
| 9047 | version_type=sunos |
| 9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9049 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9050 | shlibpath_var=LD_LIBRARY_PATH |
| 9051 | shlibpath_overrides_runpath=yes |
| 9052 | if test "$with_gnu_ld" = yes; then |
| 9053 | need_lib_prefix=no |
| 9054 | fi |
| 9055 | need_version=yes |
| 9056 | ;; |
| 9057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9058 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9059 | version_type=linux |
| 9060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9062 | shlibpath_var=LD_LIBRARY_PATH |
| 9063 | case $host_vendor in |
| 9064 | sni) |
| 9065 | shlibpath_overrides_runpath=no |
| 9066 | need_lib_prefix=no |
| 9067 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9068 | runpath_var=LD_RUN_PATH |
| 9069 | ;; |
| 9070 | siemens) |
| 9071 | need_lib_prefix=no |
| 9072 | ;; |
| 9073 | motorola) |
| 9074 | need_lib_prefix=no |
| 9075 | need_version=no |
| 9076 | shlibpath_overrides_runpath=no |
| 9077 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9078 | ;; |
| 9079 | esac |
| 9080 | ;; |
| 9081 | |
| 9082 | sysv4*MP*) |
| 9083 | if test -d /usr/nec ;then |
| 9084 | version_type=linux |
| 9085 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9086 | soname_spec='$libname${shared_ext}.$major' |
| 9087 | shlibpath_var=LD_LIBRARY_PATH |
| 9088 | fi |
| 9089 | ;; |
| 9090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9091 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9092 | version_type=freebsd-elf |
| 9093 | need_lib_prefix=no |
| 9094 | need_version=no |
| 9095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9097 | shlibpath_var=LD_LIBRARY_PATH |
| 9098 | hardcode_into_libs=yes |
| 9099 | if test "$with_gnu_ld" = yes; then |
| 9100 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9101 | shlibpath_overrides_runpath=no |
| 9102 | else |
| 9103 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9104 | shlibpath_overrides_runpath=yes |
| 9105 | case $host_os in |
| 9106 | sco3.2v5*) |
| 9107 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9108 | ;; |
| 9109 | esac |
| 9110 | fi |
| 9111 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9112 | ;; |
| 9113 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9114 | uts4*) |
| 9115 | version_type=linux |
| 9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9117 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9118 | shlibpath_var=LD_LIBRARY_PATH |
| 9119 | ;; |
| 9120 | |
| 9121 | *) |
| 9122 | dynamic_linker=no |
| 9123 | ;; |
| 9124 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9125 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9126 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9127 | test "$dynamic_linker" = no && can_build_shared=no |
| 9128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9130 | if test "$GCC" = yes; then |
| 9131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9132 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9134 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9135 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9136 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9137 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9139 | else |
| 9140 | |
| 9141 | module=yes |
| 9142 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9143 | |
| 9144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9145 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9146 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9147 | if test -n "$libltdl_cv_shlibext"; then |
| 9148 | |
| 9149 | cat >>confdefs.h <<_ACEOF |
| 9150 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9151 | _ACEOF |
| 9152 | |
| 9153 | fi |
| 9154 | |
| 9155 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9156 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9157 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9158 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | else |
| 9161 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9162 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9163 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9164 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9165 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9166 | |
| 9167 | cat >>confdefs.h <<_ACEOF |
| 9168 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9169 | _ACEOF |
| 9170 | |
| 9171 | fi |
| 9172 | |
| 9173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9174 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9175 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9176 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9178 | else |
| 9179 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9180 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9181 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9182 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9183 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9184 | sys_search_path= |
| 9185 | for dir in $libltdl_cv_sys_search_path; do |
| 9186 | if test -z "$sys_search_path"; then |
| 9187 | sys_search_path="$dir" |
| 9188 | else |
| 9189 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9190 | fi |
| 9191 | done |
| 9192 | |
| 9193 | cat >>confdefs.h <<_ACEOF |
| 9194 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9195 | _ACEOF |
| 9196 | |
| 9197 | fi |
| 9198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9199 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9200 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9201 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9203 | else |
| 9204 | libltdl_cv_objdir="$objdir" |
| 9205 | if test -n "$objdir"; then |
| 9206 | : |
| 9207 | else |
| 9208 | rm -f .libs 2>/dev/null |
| 9209 | mkdir .libs 2>/dev/null |
| 9210 | if test -d .libs; then |
| 9211 | libltdl_cv_objdir=.libs |
| 9212 | else |
| 9213 | # MS-DOS does not allow filenames that begin with a dot. |
| 9214 | libltdl_cv_objdir=_libs |
| 9215 | fi |
| 9216 | rmdir .libs 2>/dev/null |
| 9217 | fi |
| 9218 | |
| 9219 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9220 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9221 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9222 | |
| 9223 | cat >>confdefs.h <<_ACEOF |
| 9224 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9225 | _ACEOF |
| 9226 | |
| 9227 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9228 | |
| 9229 | |
| 9230 | |
| 9231 | |
| 9232 | # 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] | 9233 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9234 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9235 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9237 | else |
| 9238 | |
| 9239 | # These are sane defaults that work on at least a few old systems. |
| 9240 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9241 | |
| 9242 | # Character class describing NM global symbol codes. |
| 9243 | symcode='[BCDEGRST]' |
| 9244 | |
| 9245 | # Regexp to match symbols that can be accessed directly from C. |
| 9246 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9247 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | # Transform an extracted symbol line into a proper C declaration |
| 9249 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9250 | |
| 9251 | # Transform an extracted symbol line into symbol name and symbol address |
| 9252 | 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'" |
| 9253 | |
| 9254 | # Define system-specific variables. |
| 9255 | case $host_os in |
| 9256 | aix*) |
| 9257 | symcode='[BCDT]' |
| 9258 | ;; |
| 9259 | cygwin* | mingw* | pw32*) |
| 9260 | symcode='[ABCDGISTW]' |
| 9261 | ;; |
| 9262 | hpux*) # Its linker distinguishes data from code symbols |
| 9263 | if test "$host_cpu" = ia64; then |
| 9264 | symcode='[ABCDEGRST]' |
| 9265 | fi |
| 9266 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9267 | 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'" |
| 9268 | ;; |
| 9269 | linux*) |
| 9270 | if test "$host_cpu" = ia64; then |
| 9271 | symcode='[ABCDGIRSTW]' |
| 9272 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9273 | 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'" |
| 9274 | fi |
| 9275 | ;; |
| 9276 | irix* | nonstopux*) |
| 9277 | symcode='[BCDEGRST]' |
| 9278 | ;; |
| 9279 | osf*) |
| 9280 | symcode='[BCDEGQRST]' |
| 9281 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9282 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9283 | symcode='[BDRT]' |
| 9284 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9285 | sco3.2v5*) |
| 9286 | symcode='[DT]' |
| 9287 | ;; |
| 9288 | sysv4.2uw2*) |
| 9289 | symcode='[DT]' |
| 9290 | ;; |
| 9291 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9292 | symcode='[ABDT]' |
| 9293 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9294 | sysv4) |
| 9295 | symcode='[DFNSTU]' |
| 9296 | ;; |
| 9297 | esac |
| 9298 | |
| 9299 | # Handle CRLF in mingw tool chain |
| 9300 | opt_cr= |
| 9301 | case $build_os in |
| 9302 | mingw*) |
| 9303 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9304 | ;; |
| 9305 | esac |
| 9306 | |
| 9307 | # If we're using GNU nm, then use its standard symbol codes. |
| 9308 | case `$NM -V 2>&1` in |
| 9309 | *GNU* | *'with BFD'*) |
| 9310 | symcode='[ABCDGIRSTW]' ;; |
| 9311 | esac |
| 9312 | |
| 9313 | # Try without a prefix undercore, then with it. |
| 9314 | for ac_symprfx in "" "_"; do |
| 9315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9316 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9317 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9318 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9319 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9320 | 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] | 9321 | |
| 9322 | # Check to see that the pipe works correctly. |
| 9323 | pipe_works=no |
| 9324 | |
| 9325 | rm -f conftest* |
| 9326 | cat > conftest.$ac_ext <<EOF |
| 9327 | #ifdef __cplusplus |
| 9328 | extern "C" { |
| 9329 | #endif |
| 9330 | char nm_test_var; |
| 9331 | void nm_test_func(){} |
| 9332 | #ifdef __cplusplus |
| 9333 | } |
| 9334 | #endif |
| 9335 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9336 | EOF |
| 9337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9339 | (eval $ac_compile) 2>&5 |
| 9340 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9342 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9343 | # Now try to grab the symbols. |
| 9344 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9345 | 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] | 9346 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9347 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9350 | # Try sorting and uniquifying the output. |
| 9351 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9352 | mv -f "$nlist"T "$nlist" |
| 9353 | else |
| 9354 | rm -f "$nlist"T |
| 9355 | fi |
| 9356 | |
| 9357 | # Make sure that we snagged all the symbols we need. |
| 9358 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9359 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9360 | cat <<EOF > conftest.$ac_ext |
| 9361 | #ifdef __cplusplus |
| 9362 | extern "C" { |
| 9363 | #endif |
| 9364 | |
| 9365 | EOF |
| 9366 | # Now generate the symbol file. |
| 9367 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9368 | |
| 9369 | cat <<EOF >> conftest.$ac_ext |
| 9370 | #if defined (__STDC__) && __STDC__ |
| 9371 | # define lt_ptr_t void * |
| 9372 | #else |
| 9373 | # define lt_ptr_t char * |
| 9374 | # define const |
| 9375 | #endif |
| 9376 | |
| 9377 | /* The mapping between symbol names and symbols. */ |
| 9378 | const struct { |
| 9379 | const char *name; |
| 9380 | lt_ptr_t address; |
| 9381 | } |
| 9382 | lt_preloaded_symbols[] = |
| 9383 | { |
| 9384 | EOF |
| 9385 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9386 | cat <<\EOF >> conftest.$ac_ext |
| 9387 | {0, (lt_ptr_t) 0} |
| 9388 | }; |
| 9389 | |
| 9390 | #ifdef __cplusplus |
| 9391 | } |
| 9392 | #endif |
| 9393 | EOF |
| 9394 | # Now try linking the two files. |
| 9395 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9396 | lt_save_LIBS="$LIBS" |
| 9397 | lt_save_CFLAGS="$CFLAGS" |
| 9398 | LIBS="conftstm.$ac_objext" |
| 9399 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9401 | (eval $ac_link) 2>&5 |
| 9402 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9404 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9405 | pipe_works=yes |
| 9406 | fi |
| 9407 | LIBS="$lt_save_LIBS" |
| 9408 | CFLAGS="$lt_save_CFLAGS" |
| 9409 | else |
| 9410 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9411 | fi |
| 9412 | else |
| 9413 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9414 | fi |
| 9415 | else |
| 9416 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9417 | fi |
| 9418 | else |
| 9419 | echo "$progname: failed program was:" >&5 |
| 9420 | cat conftest.$ac_ext >&5 |
| 9421 | fi |
| 9422 | rm -f conftest* conftst* |
| 9423 | |
| 9424 | # Do not use the global_symbol_pipe unless it works. |
| 9425 | if test "$pipe_works" = yes; then |
| 9426 | break |
| 9427 | else |
| 9428 | lt_cv_sys_global_symbol_pipe= |
| 9429 | fi |
| 9430 | done |
| 9431 | |
| 9432 | fi |
| 9433 | |
| 9434 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9435 | lt_cv_sys_global_symbol_to_cdecl= |
| 9436 | fi |
| 9437 | 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] | 9438 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9439 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9441 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9442 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9443 | fi |
| 9444 | |
| 9445 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9446 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9447 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9448 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9450 | else |
| 9451 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9452 | libltdl_cv_preloaded_symbols=yes |
| 9453 | else |
| 9454 | libltdl_cv_preloaded_symbols=no |
| 9455 | fi |
| 9456 | |
| 9457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9458 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9459 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9460 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9462 | cat >>confdefs.h <<\_ACEOF |
| 9463 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9464 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9465 | |
| 9466 | fi |
| 9467 | |
| 9468 | LIBADD_DL= |
| 9469 | |
| 9470 | ac_ext=c |
| 9471 | ac_cpp='$CPP $CPPFLAGS' |
| 9472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9475 | |
| 9476 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9477 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9478 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9479 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9481 | else |
| 9482 | cat >conftest.$ac_ext <<_ACEOF |
| 9483 | /* confdefs.h. */ |
| 9484 | _ACEOF |
| 9485 | cat confdefs.h >>conftest.$ac_ext |
| 9486 | cat >>conftest.$ac_ext <<_ACEOF |
| 9487 | /* end confdefs.h. */ |
| 9488 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9490 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9491 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9492 | /* System header to define __stub macros and hopefully few prototypes, |
| 9493 | which can conflict with char shl_load (); below. |
| 9494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9495 | <limits.h> exists even on freestanding compilers. */ |
| 9496 | |
| 9497 | #ifdef __STDC__ |
| 9498 | # include <limits.h> |
| 9499 | #else |
| 9500 | # include <assert.h> |
| 9501 | #endif |
| 9502 | |
| 9503 | #undef shl_load |
| 9504 | |
| 9505 | /* Override any GCC internal prototype to avoid an error. |
| 9506 | Use char because int might match the return type of a GCC |
| 9507 | builtin and then its argument prototype would still apply. */ |
| 9508 | #ifdef __cplusplus |
| 9509 | extern "C" |
| 9510 | #endif |
| 9511 | char shl_load (); |
| 9512 | /* The GNU C library defines this for functions which it implements |
| 9513 | to always fail with ENOSYS. Some functions are actually named |
| 9514 | something starting with __ and the normal name is an alias. */ |
| 9515 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9516 | choke me |
| 9517 | #endif |
| 9518 | |
| 9519 | int |
| 9520 | main () |
| 9521 | { |
| 9522 | return shl_load (); |
| 9523 | ; |
| 9524 | return 0; |
| 9525 | } |
| 9526 | _ACEOF |
| 9527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9528 | if { (ac_try="$ac_link" |
| 9529 | case "(($ac_try" in |
| 9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9531 | *) ac_try_echo=$ac_try;; |
| 9532 | esac |
| 9533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9534 | (eval "$ac_link") 2>conftest.er1 |
| 9535 | ac_status=$? |
| 9536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9537 | rm -f conftest.er1 |
| 9538 | cat conftest.err >&5 |
| 9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9540 | (exit $ac_status); } && |
| 9541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9542 | { (case "(($ac_try" in |
| 9543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9544 | *) ac_try_echo=$ac_try;; |
| 9545 | esac |
| 9546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9547 | (eval "$ac_try") 2>&5 |
| 9548 | ac_status=$? |
| 9549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9550 | (exit $ac_status); }; } && |
| 9551 | { ac_try='test -s conftest$ac_exeext' |
| 9552 | { (case "(($ac_try" in |
| 9553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9554 | *) ac_try_echo=$ac_try;; |
| 9555 | esac |
| 9556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9557 | (eval "$ac_try") 2>&5 |
| 9558 | ac_status=$? |
| 9559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9560 | (exit $ac_status); }; }; then |
| 9561 | ac_cv_func_shl_load=yes |
| 9562 | else |
| 9563 | echo "$as_me: failed program was:" >&5 |
| 9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9565 | |
| 9566 | ac_cv_func_shl_load=no |
| 9567 | fi |
| 9568 | |
| 9569 | rm -f core conftest.err conftest.$ac_objext \ |
| 9570 | conftest$ac_exeext conftest.$ac_ext |
| 9571 | fi |
| 9572 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9573 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9574 | if test $ac_cv_func_shl_load = yes; then |
| 9575 | |
| 9576 | cat >>confdefs.h <<\_ACEOF |
| 9577 | #define HAVE_SHL_LOAD 1 |
| 9578 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9579 | |
| 9580 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9581 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9582 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9583 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9585 | else |
| 9586 | ac_check_lib_save_LIBS=$LIBS |
| 9587 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9588 | cat >conftest.$ac_ext <<_ACEOF |
| 9589 | /* confdefs.h. */ |
| 9590 | _ACEOF |
| 9591 | cat confdefs.h >>conftest.$ac_ext |
| 9592 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9593 | /* end confdefs.h. */ |
| 9594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9595 | /* Override any GCC internal prototype to avoid an error. |
| 9596 | Use char because int might match the return type of a GCC |
| 9597 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9598 | #ifdef __cplusplus |
| 9599 | extern "C" |
| 9600 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9601 | char shl_load (); |
| 9602 | int |
| 9603 | main () |
| 9604 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9605 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9606 | ; |
| 9607 | return 0; |
| 9608 | } |
| 9609 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9611 | if { (ac_try="$ac_link" |
| 9612 | case "(($ac_try" in |
| 9613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9614 | *) ac_try_echo=$ac_try;; |
| 9615 | esac |
| 9616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9617 | (eval "$ac_link") 2>conftest.er1 |
| 9618 | ac_status=$? |
| 9619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9620 | rm -f conftest.er1 |
| 9621 | cat conftest.err >&5 |
| 9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9623 | (exit $ac_status); } && |
| 9624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9625 | { (case "(($ac_try" in |
| 9626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9627 | *) ac_try_echo=$ac_try;; |
| 9628 | esac |
| 9629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9630 | (eval "$ac_try") 2>&5 |
| 9631 | ac_status=$? |
| 9632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9633 | (exit $ac_status); }; } && |
| 9634 | { ac_try='test -s conftest$ac_exeext' |
| 9635 | { (case "(($ac_try" in |
| 9636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9637 | *) ac_try_echo=$ac_try;; |
| 9638 | esac |
| 9639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9640 | (eval "$ac_try") 2>&5 |
| 9641 | ac_status=$? |
| 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9644 | ac_cv_lib_dld_shl_load=yes |
| 9645 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9646 | echo "$as_me: failed program was:" >&5 |
| 9647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9648 | |
| 9649 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9650 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9651 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9652 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9653 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9654 | LIBS=$ac_check_lib_save_LIBS |
| 9655 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9657 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9658 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9659 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9660 | cat >>confdefs.h <<\_ACEOF |
| 9661 | #define HAVE_SHL_LOAD 1 |
| 9662 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | |
| 9664 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9666 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9667 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9668 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9670 | else |
| 9671 | ac_check_lib_save_LIBS=$LIBS |
| 9672 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9673 | cat >conftest.$ac_ext <<_ACEOF |
| 9674 | /* confdefs.h. */ |
| 9675 | _ACEOF |
| 9676 | cat confdefs.h >>conftest.$ac_ext |
| 9677 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9678 | /* end confdefs.h. */ |
| 9679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9680 | /* Override any GCC internal prototype to avoid an error. |
| 9681 | Use char because int might match the return type of a GCC |
| 9682 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9683 | #ifdef __cplusplus |
| 9684 | extern "C" |
| 9685 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9686 | char dlopen (); |
| 9687 | int |
| 9688 | main () |
| 9689 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9690 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9691 | ; |
| 9692 | return 0; |
| 9693 | } |
| 9694 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9696 | if { (ac_try="$ac_link" |
| 9697 | case "(($ac_try" in |
| 9698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9699 | *) ac_try_echo=$ac_try;; |
| 9700 | esac |
| 9701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9702 | (eval "$ac_link") 2>conftest.er1 |
| 9703 | ac_status=$? |
| 9704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9705 | rm -f conftest.er1 |
| 9706 | cat conftest.err >&5 |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); } && |
| 9709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9710 | { (case "(($ac_try" in |
| 9711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9712 | *) ac_try_echo=$ac_try;; |
| 9713 | esac |
| 9714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9715 | (eval "$ac_try") 2>&5 |
| 9716 | ac_status=$? |
| 9717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9718 | (exit $ac_status); }; } && |
| 9719 | { ac_try='test -s conftest$ac_exeext' |
| 9720 | { (case "(($ac_try" in |
| 9721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9722 | *) ac_try_echo=$ac_try;; |
| 9723 | esac |
| 9724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9725 | (eval "$ac_try") 2>&5 |
| 9726 | ac_status=$? |
| 9727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9728 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9729 | ac_cv_lib_dl_dlopen=yes |
| 9730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9731 | echo "$as_me: failed program was:" >&5 |
| 9732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9733 | |
| 9734 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9735 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9736 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9737 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9738 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9739 | LIBS=$ac_check_lib_save_LIBS |
| 9740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9741 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9742 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9743 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9744 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9745 | cat >>confdefs.h <<\_ACEOF |
| 9746 | #define HAVE_LIBDL 1 |
| 9747 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9748 | |
| 9749 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9750 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9751 | cat >conftest.$ac_ext <<_ACEOF |
| 9752 | /* confdefs.h. */ |
| 9753 | _ACEOF |
| 9754 | cat confdefs.h >>conftest.$ac_ext |
| 9755 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9756 | /* end confdefs.h. */ |
| 9757 | #if HAVE_DLFCN_H |
| 9758 | # include <dlfcn.h> |
| 9759 | #endif |
| 9760 | |
| 9761 | int |
| 9762 | main () |
| 9763 | { |
| 9764 | dlopen(0, 0); |
| 9765 | ; |
| 9766 | return 0; |
| 9767 | } |
| 9768 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9770 | if { (ac_try="$ac_link" |
| 9771 | case "(($ac_try" in |
| 9772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9773 | *) ac_try_echo=$ac_try;; |
| 9774 | esac |
| 9775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9776 | (eval "$ac_link") 2>conftest.er1 |
| 9777 | ac_status=$? |
| 9778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9779 | rm -f conftest.er1 |
| 9780 | cat conftest.err >&5 |
| 9781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9782 | (exit $ac_status); } && |
| 9783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9784 | { (case "(($ac_try" in |
| 9785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9786 | *) ac_try_echo=$ac_try;; |
| 9787 | esac |
| 9788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9789 | (eval "$ac_try") 2>&5 |
| 9790 | ac_status=$? |
| 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9792 | (exit $ac_status); }; } && |
| 9793 | { ac_try='test -s conftest$ac_exeext' |
| 9794 | { (case "(($ac_try" in |
| 9795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9796 | *) ac_try_echo=$ac_try;; |
| 9797 | esac |
| 9798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9799 | (eval "$ac_try") 2>&5 |
| 9800 | ac_status=$? |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9803 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9804 | cat >>confdefs.h <<\_ACEOF |
| 9805 | #define HAVE_LIBDL 1 |
| 9806 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9807 | libltdl_cv_func_dlopen="yes" |
| 9808 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9809 | echo "$as_me: failed program was:" >&5 |
| 9810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9811 | |
| 9812 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9813 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9814 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9816 | else |
| 9817 | ac_check_lib_save_LIBS=$LIBS |
| 9818 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9819 | cat >conftest.$ac_ext <<_ACEOF |
| 9820 | /* confdefs.h. */ |
| 9821 | _ACEOF |
| 9822 | cat confdefs.h >>conftest.$ac_ext |
| 9823 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9824 | /* end confdefs.h. */ |
| 9825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9826 | /* Override any GCC internal prototype to avoid an error. |
| 9827 | Use char because int might match the return type of a GCC |
| 9828 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9829 | #ifdef __cplusplus |
| 9830 | extern "C" |
| 9831 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9832 | char dlopen (); |
| 9833 | int |
| 9834 | main () |
| 9835 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9836 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9842 | if { (ac_try="$ac_link" |
| 9843 | case "(($ac_try" in |
| 9844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9845 | *) ac_try_echo=$ac_try;; |
| 9846 | esac |
| 9847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9848 | (eval "$ac_link") 2>conftest.er1 |
| 9849 | ac_status=$? |
| 9850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9851 | rm -f conftest.er1 |
| 9852 | cat conftest.err >&5 |
| 9853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9854 | (exit $ac_status); } && |
| 9855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9856 | { (case "(($ac_try" in |
| 9857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9858 | *) ac_try_echo=$ac_try;; |
| 9859 | esac |
| 9860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9861 | (eval "$ac_try") 2>&5 |
| 9862 | ac_status=$? |
| 9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9864 | (exit $ac_status); }; } && |
| 9865 | { ac_try='test -s conftest$ac_exeext' |
| 9866 | { (case "(($ac_try" in |
| 9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9868 | *) ac_try_echo=$ac_try;; |
| 9869 | esac |
| 9870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9871 | (eval "$ac_try") 2>&5 |
| 9872 | ac_status=$? |
| 9873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9874 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | ac_cv_lib_svld_dlopen=yes |
| 9876 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9877 | echo "$as_me: failed program was:" >&5 |
| 9878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9879 | |
| 9880 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9881 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9882 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9883 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9884 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9885 | LIBS=$ac_check_lib_save_LIBS |
| 9886 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9887 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9888 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 9889 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9890 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9891 | cat >>confdefs.h <<\_ACEOF |
| 9892 | #define HAVE_LIBDL 1 |
| 9893 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | |
| 9895 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9896 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9897 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9898 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 9899 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9901 | else |
| 9902 | ac_check_lib_save_LIBS=$LIBS |
| 9903 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9904 | cat >conftest.$ac_ext <<_ACEOF |
| 9905 | /* confdefs.h. */ |
| 9906 | _ACEOF |
| 9907 | cat confdefs.h >>conftest.$ac_ext |
| 9908 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9909 | /* end confdefs.h. */ |
| 9910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9911 | /* Override any GCC internal prototype to avoid an error. |
| 9912 | Use char because int might match the return type of a GCC |
| 9913 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9914 | #ifdef __cplusplus |
| 9915 | extern "C" |
| 9916 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9917 | char dld_link (); |
| 9918 | int |
| 9919 | main () |
| 9920 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9921 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9922 | ; |
| 9923 | return 0; |
| 9924 | } |
| 9925 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9927 | if { (ac_try="$ac_link" |
| 9928 | case "(($ac_try" in |
| 9929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9930 | *) ac_try_echo=$ac_try;; |
| 9931 | esac |
| 9932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9933 | (eval "$ac_link") 2>conftest.er1 |
| 9934 | ac_status=$? |
| 9935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9936 | rm -f conftest.er1 |
| 9937 | cat conftest.err >&5 |
| 9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9939 | (exit $ac_status); } && |
| 9940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9941 | { (case "(($ac_try" in |
| 9942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9943 | *) ac_try_echo=$ac_try;; |
| 9944 | esac |
| 9945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9946 | (eval "$ac_try") 2>&5 |
| 9947 | ac_status=$? |
| 9948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9949 | (exit $ac_status); }; } && |
| 9950 | { ac_try='test -s conftest$ac_exeext' |
| 9951 | { (case "(($ac_try" in |
| 9952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9953 | *) ac_try_echo=$ac_try;; |
| 9954 | esac |
| 9955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9956 | (eval "$ac_try") 2>&5 |
| 9957 | ac_status=$? |
| 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9959 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9960 | ac_cv_lib_dld_dld_link=yes |
| 9961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9962 | echo "$as_me: failed program was:" >&5 |
| 9963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9964 | |
| 9965 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9967 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9968 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9969 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9970 | LIBS=$ac_check_lib_save_LIBS |
| 9971 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9972 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9973 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 9974 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9976 | cat >>confdefs.h <<\_ACEOF |
| 9977 | #define HAVE_DLD 1 |
| 9978 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | |
| 9980 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9981 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9982 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 9983 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 9984 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9986 | else |
| 9987 | cat >conftest.$ac_ext <<_ACEOF |
| 9988 | /* confdefs.h. */ |
| 9989 | _ACEOF |
| 9990 | cat confdefs.h >>conftest.$ac_ext |
| 9991 | cat >>conftest.$ac_ext <<_ACEOF |
| 9992 | /* end confdefs.h. */ |
| 9993 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 9994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9995 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9996 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9997 | /* System header to define __stub macros and hopefully few prototypes, |
| 9998 | which can conflict with char _dyld_func_lookup (); below. |
| 9999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10000 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10001 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10002 | #ifdef __STDC__ |
| 10003 | # include <limits.h> |
| 10004 | #else |
| 10005 | # include <assert.h> |
| 10006 | #endif |
| 10007 | |
| 10008 | #undef _dyld_func_lookup |
| 10009 | |
| 10010 | /* Override any GCC internal prototype to avoid an error. |
| 10011 | Use char because int might match the return type of a GCC |
| 10012 | builtin and then its argument prototype would still apply. */ |
| 10013 | #ifdef __cplusplus |
| 10014 | extern "C" |
| 10015 | #endif |
| 10016 | char _dyld_func_lookup (); |
| 10017 | /* The GNU C library defines this for functions which it implements |
| 10018 | to always fail with ENOSYS. Some functions are actually named |
| 10019 | something starting with __ and the normal name is an alias. */ |
| 10020 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10021 | choke me |
| 10022 | #endif |
| 10023 | |
| 10024 | int |
| 10025 | main () |
| 10026 | { |
| 10027 | return _dyld_func_lookup (); |
| 10028 | ; |
| 10029 | return 0; |
| 10030 | } |
| 10031 | _ACEOF |
| 10032 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10033 | if { (ac_try="$ac_link" |
| 10034 | case "(($ac_try" in |
| 10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10036 | *) ac_try_echo=$ac_try;; |
| 10037 | esac |
| 10038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10039 | (eval "$ac_link") 2>conftest.er1 |
| 10040 | ac_status=$? |
| 10041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10042 | rm -f conftest.er1 |
| 10043 | cat conftest.err >&5 |
| 10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10045 | (exit $ac_status); } && |
| 10046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10047 | { (case "(($ac_try" in |
| 10048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10049 | *) ac_try_echo=$ac_try;; |
| 10050 | esac |
| 10051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10052 | (eval "$ac_try") 2>&5 |
| 10053 | ac_status=$? |
| 10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10055 | (exit $ac_status); }; } && |
| 10056 | { ac_try='test -s conftest$ac_exeext' |
| 10057 | { (case "(($ac_try" in |
| 10058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10059 | *) ac_try_echo=$ac_try;; |
| 10060 | esac |
| 10061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10062 | (eval "$ac_try") 2>&5 |
| 10063 | ac_status=$? |
| 10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10065 | (exit $ac_status); }; }; then |
| 10066 | ac_cv_func__dyld_func_lookup=yes |
| 10067 | else |
| 10068 | echo "$as_me: failed program was:" >&5 |
| 10069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10070 | |
| 10071 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10072 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10073 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10074 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10075 | conftest$ac_exeext conftest.$ac_ext |
| 10076 | fi |
| 10077 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10078 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10079 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10080 | |
| 10081 | cat >>confdefs.h <<\_ACEOF |
| 10082 | #define HAVE_DYLD 1 |
| 10083 | _ACEOF |
| 10084 | |
| 10085 | fi |
| 10086 | |
| 10087 | |
| 10088 | fi |
| 10089 | |
| 10090 | |
| 10091 | fi |
| 10092 | |
| 10093 | |
| 10094 | fi |
| 10095 | |
| 10096 | rm -f core conftest.err conftest.$ac_objext \ |
| 10097 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10098 | |
| 10099 | fi |
| 10100 | |
| 10101 | |
| 10102 | fi |
| 10103 | |
| 10104 | |
| 10105 | fi |
| 10106 | |
| 10107 | |
| 10108 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10109 | then |
| 10110 | lt_save_LIBS="$LIBS" |
| 10111 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10112 | |
| 10113 | for ac_func in dlerror |
| 10114 | do |
| 10115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10116 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10118 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10120 | else |
| 10121 | cat >conftest.$ac_ext <<_ACEOF |
| 10122 | /* confdefs.h. */ |
| 10123 | _ACEOF |
| 10124 | cat confdefs.h >>conftest.$ac_ext |
| 10125 | cat >>conftest.$ac_ext <<_ACEOF |
| 10126 | /* end confdefs.h. */ |
| 10127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10129 | #define $ac_func innocuous_$ac_func |
| 10130 | |
| 10131 | /* System header to define __stub macros and hopefully few prototypes, |
| 10132 | which can conflict with char $ac_func (); below. |
| 10133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10134 | <limits.h> exists even on freestanding compilers. */ |
| 10135 | |
| 10136 | #ifdef __STDC__ |
| 10137 | # include <limits.h> |
| 10138 | #else |
| 10139 | # include <assert.h> |
| 10140 | #endif |
| 10141 | |
| 10142 | #undef $ac_func |
| 10143 | |
| 10144 | /* Override any GCC internal prototype to avoid an error. |
| 10145 | Use char because int might match the return type of a GCC |
| 10146 | builtin and then its argument prototype would still apply. */ |
| 10147 | #ifdef __cplusplus |
| 10148 | extern "C" |
| 10149 | #endif |
| 10150 | char $ac_func (); |
| 10151 | /* The GNU C library defines this for functions which it implements |
| 10152 | to always fail with ENOSYS. Some functions are actually named |
| 10153 | something starting with __ and the normal name is an alias. */ |
| 10154 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10155 | choke me |
| 10156 | #endif |
| 10157 | |
| 10158 | int |
| 10159 | main () |
| 10160 | { |
| 10161 | return $ac_func (); |
| 10162 | ; |
| 10163 | return 0; |
| 10164 | } |
| 10165 | _ACEOF |
| 10166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10167 | if { (ac_try="$ac_link" |
| 10168 | case "(($ac_try" in |
| 10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10170 | *) ac_try_echo=$ac_try;; |
| 10171 | esac |
| 10172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10173 | (eval "$ac_link") 2>conftest.er1 |
| 10174 | ac_status=$? |
| 10175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10176 | rm -f conftest.er1 |
| 10177 | cat conftest.err >&5 |
| 10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10179 | (exit $ac_status); } && |
| 10180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10181 | { (case "(($ac_try" in |
| 10182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10183 | *) ac_try_echo=$ac_try;; |
| 10184 | esac |
| 10185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10186 | (eval "$ac_try") 2>&5 |
| 10187 | ac_status=$? |
| 10188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10189 | (exit $ac_status); }; } && |
| 10190 | { ac_try='test -s conftest$ac_exeext' |
| 10191 | { (case "(($ac_try" in |
| 10192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10193 | *) ac_try_echo=$ac_try;; |
| 10194 | esac |
| 10195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10196 | (eval "$ac_try") 2>&5 |
| 10197 | ac_status=$? |
| 10198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10199 | (exit $ac_status); }; }; then |
| 10200 | eval "$as_ac_var=yes" |
| 10201 | else |
| 10202 | echo "$as_me: failed program was:" >&5 |
| 10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10204 | |
| 10205 | eval "$as_ac_var=no" |
| 10206 | fi |
| 10207 | |
| 10208 | rm -f core conftest.err conftest.$ac_objext \ |
| 10209 | conftest$ac_exeext conftest.$ac_ext |
| 10210 | fi |
| 10211 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10213 | echo "${ECHO_T}$ac_res" >&6; } |
| 10214 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10215 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10217 | _ACEOF |
| 10218 | |
| 10219 | fi |
| 10220 | done |
| 10221 | |
| 10222 | LIBS="$lt_save_LIBS" |
| 10223 | fi |
| 10224 | ac_ext=c |
| 10225 | ac_cpp='$CPP $CPPFLAGS' |
| 10226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10229 | |
| 10230 | |
| 10231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10232 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10233 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10234 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10236 | else |
| 10237 | ac_cv_sys_symbol_underscore=no |
| 10238 | cat > conftest.$ac_ext <<EOF |
| 10239 | void nm_test_func(){} |
| 10240 | int main(){nm_test_func;return 0;} |
| 10241 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | (eval $ac_compile) 2>&5 |
| 10244 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10247 | # Now try to grab the symbols. |
| 10248 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10249 | 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] | 10250 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10251 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10253 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10254 | # See whether the symbols have a leading underscore. |
| 10255 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10256 | ac_cv_sys_symbol_underscore=yes |
| 10257 | else |
| 10258 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10259 | : |
| 10260 | else |
| 10261 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10262 | fi |
| 10263 | fi |
| 10264 | else |
| 10265 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10266 | fi |
| 10267 | else |
| 10268 | echo "configure: failed program was:" >&5 |
| 10269 | cat conftest.c >&5 |
| 10270 | fi |
| 10271 | rm -rf conftest* |
| 10272 | |
| 10273 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10274 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10275 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10276 | |
| 10277 | |
| 10278 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10279 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10280 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10281 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10282 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10283 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10285 | else |
| 10286 | libltdl_cv_need_uscore=unknown |
| 10287 | save_LIBS="$LIBS" |
| 10288 | LIBS="$LIBS $LIBADD_DL" |
| 10289 | if test "$cross_compiling" = yes; then : |
| 10290 | libltdl_cv_need_uscore=cross |
| 10291 | else |
| 10292 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10293 | lt_status=$lt_dlunknown |
| 10294 | cat > conftest.$ac_ext <<EOF |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 10295 | #line 10295 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10296 | #include "confdefs.h" |
| 10297 | |
| 10298 | #if HAVE_DLFCN_H |
| 10299 | #include <dlfcn.h> |
| 10300 | #endif |
| 10301 | |
| 10302 | #include <stdio.h> |
| 10303 | |
| 10304 | #ifdef RTLD_GLOBAL |
| 10305 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10306 | #else |
| 10307 | # ifdef DL_GLOBAL |
| 10308 | # define LT_DLGLOBAL DL_GLOBAL |
| 10309 | # else |
| 10310 | # define LT_DLGLOBAL 0 |
| 10311 | # endif |
| 10312 | #endif |
| 10313 | |
| 10314 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10315 | find out it does not work in some platform. */ |
| 10316 | #ifndef LT_DLLAZY_OR_NOW |
| 10317 | # ifdef RTLD_LAZY |
| 10318 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10319 | # else |
| 10320 | # ifdef DL_LAZY |
| 10321 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10322 | # else |
| 10323 | # ifdef RTLD_NOW |
| 10324 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10325 | # else |
| 10326 | # ifdef DL_NOW |
| 10327 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10328 | # else |
| 10329 | # define LT_DLLAZY_OR_NOW 0 |
| 10330 | # endif |
| 10331 | # endif |
| 10332 | # endif |
| 10333 | # endif |
| 10334 | #endif |
| 10335 | |
| 10336 | #ifdef __cplusplus |
| 10337 | extern "C" void exit (int); |
| 10338 | #endif |
| 10339 | |
| 10340 | void fnord() { int i=42;} |
| 10341 | int main () |
| 10342 | { |
| 10343 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10344 | int status = $lt_dlunknown; |
| 10345 | |
| 10346 | if (self) |
| 10347 | { |
| 10348 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10349 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10350 | /* dlclose (self); */ |
| 10351 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10352 | else |
| 10353 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10354 | |
| 10355 | exit (status); |
| 10356 | } |
| 10357 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | (eval $ac_link) 2>&5 |
| 10360 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10362 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10363 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10364 | lt_status=$? |
| 10365 | case x$lt_status in |
| 10366 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10367 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10368 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10369 | esac |
| 10370 | else : |
| 10371 | # compilation failed |
| 10372 | |
| 10373 | fi |
| 10374 | fi |
| 10375 | rm -fr conftest* |
| 10376 | |
| 10377 | LIBS="$save_LIBS" |
| 10378 | |
| 10379 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10380 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10381 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10382 | fi |
| 10383 | fi |
| 10384 | |
| 10385 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10386 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10387 | cat >>confdefs.h <<\_ACEOF |
| 10388 | #define NEED_USCORE 1 |
| 10389 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10390 | |
| 10391 | fi |
| 10392 | |
| 10393 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10394 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10395 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10396 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10398 | else |
| 10399 | # PORTME does your system automatically load deplibs for dlopen? |
| 10400 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10401 | # For now, we just catch OSes we know something about -- in the |
| 10402 | # future, we'll try test this programmatically. |
| 10403 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10404 | case "$host_os" in |
| 10405 | aix3*|aix4.1.*|aix4.2.*) |
| 10406 | # Unknown whether this is true for these versions of AIX, but |
| 10407 | # we want this `case' here to explicitly catch those versions. |
| 10408 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10409 | ;; |
| 10410 | aix[45]*) |
| 10411 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10412 | ;; |
| 10413 | darwin*) |
| 10414 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10415 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10416 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10417 | ;; |
| 10418 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10419 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10420 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10421 | ;; |
| 10422 | hpux10*|hpux11*) |
| 10423 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10424 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10425 | interix*) |
| 10426 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10427 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10428 | irix[12345]*|irix6.[01]*) |
| 10429 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10430 | # know how it worked for any of those versions. |
| 10431 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10432 | ;; |
| 10433 | irix*) |
| 10434 | # The case above catches anything before 6.2, and it's known that |
| 10435 | # at 6.2 and later dlopen does load deplibs. |
| 10436 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10437 | ;; |
| 10438 | netbsd*) |
| 10439 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10440 | ;; |
| 10441 | openbsd*) |
| 10442 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10443 | ;; |
| 10444 | osf[1234]*) |
| 10445 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10446 | # it did *not* use an RPATH in a shared library to find objects the |
Chris Lattner | 7a2bdde | 2011-04-15 05:18:47 +0000 | [diff] [blame] | 10447 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | libltdl_cv_sys_dlopen_deplibs=no |
| 10449 | ;; |
| 10450 | osf5.0|osf5.0a|osf5.1) |
| 10451 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10452 | # it even uses RPATH in a shared library to search for shared objects |
| 10453 | # that the library depends on, but there's no easy way to know if that |
| 10454 | # patch is installed. Since this is the case, all we can really |
| 10455 | # say is unknown -- it depends on the patch being installed. If |
| 10456 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10457 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10458 | ;; |
| 10459 | osf*) |
| 10460 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10461 | # the comments above for what we know about them. |
| 10462 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10463 | # is used to find them so we can finally say `yes'. |
| 10464 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10465 | ;; |
| 10466 | solaris*) |
| 10467 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10468 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10469 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10470 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10471 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10472 | esac |
| 10473 | |
| 10474 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10475 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10476 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10477 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10478 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10479 | cat >>confdefs.h <<\_ACEOF |
| 10480 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10481 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10482 | |
| 10483 | fi |
| 10484 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10485 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10486 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10487 | do |
| 10488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10490 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10492 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10494 | fi |
| 10495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10497 | echo "${ECHO_T}$ac_res" >&6; } |
| 10498 | else |
| 10499 | # Is the header compilable? |
| 10500 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10501 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10502 | cat >conftest.$ac_ext <<_ACEOF |
| 10503 | /* confdefs.h. */ |
| 10504 | _ACEOF |
| 10505 | cat confdefs.h >>conftest.$ac_ext |
| 10506 | cat >>conftest.$ac_ext <<_ACEOF |
| 10507 | /* end confdefs.h. */ |
| 10508 | $ac_includes_default |
| 10509 | #include <$ac_header> |
| 10510 | _ACEOF |
| 10511 | rm -f conftest.$ac_objext |
| 10512 | if { (ac_try="$ac_compile" |
| 10513 | case "(($ac_try" in |
| 10514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10515 | *) ac_try_echo=$ac_try;; |
| 10516 | esac |
| 10517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10518 | (eval "$ac_compile") 2>conftest.er1 |
| 10519 | ac_status=$? |
| 10520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10521 | rm -f conftest.er1 |
| 10522 | cat conftest.err >&5 |
| 10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10524 | (exit $ac_status); } && |
| 10525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10526 | { (case "(($ac_try" in |
| 10527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10528 | *) ac_try_echo=$ac_try;; |
| 10529 | esac |
| 10530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10531 | (eval "$ac_try") 2>&5 |
| 10532 | ac_status=$? |
| 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10534 | (exit $ac_status); }; } && |
| 10535 | { ac_try='test -s conftest.$ac_objext' |
| 10536 | { (case "(($ac_try" in |
| 10537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10538 | *) ac_try_echo=$ac_try;; |
| 10539 | esac |
| 10540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10541 | (eval "$ac_try") 2>&5 |
| 10542 | ac_status=$? |
| 10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10544 | (exit $ac_status); }; }; then |
| 10545 | ac_header_compiler=yes |
| 10546 | else |
| 10547 | echo "$as_me: failed program was:" >&5 |
| 10548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10549 | |
| 10550 | ac_header_compiler=no |
| 10551 | fi |
| 10552 | |
| 10553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10555 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10556 | |
| 10557 | # Is the header present? |
| 10558 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10560 | cat >conftest.$ac_ext <<_ACEOF |
| 10561 | /* confdefs.h. */ |
| 10562 | _ACEOF |
| 10563 | cat confdefs.h >>conftest.$ac_ext |
| 10564 | cat >>conftest.$ac_ext <<_ACEOF |
| 10565 | /* end confdefs.h. */ |
| 10566 | #include <$ac_header> |
| 10567 | _ACEOF |
| 10568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10569 | case "(($ac_try" in |
| 10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10571 | *) ac_try_echo=$ac_try;; |
| 10572 | esac |
| 10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10575 | ac_status=$? |
| 10576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10577 | rm -f conftest.er1 |
| 10578 | cat conftest.err >&5 |
| 10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10580 | (exit $ac_status); } >/dev/null; then |
| 10581 | if test -s conftest.err; then |
| 10582 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10584 | else |
| 10585 | ac_cpp_err= |
| 10586 | fi |
| 10587 | else |
| 10588 | ac_cpp_err=yes |
| 10589 | fi |
| 10590 | if test -z "$ac_cpp_err"; then |
| 10591 | ac_header_preproc=yes |
| 10592 | else |
| 10593 | echo "$as_me: failed program was:" >&5 |
| 10594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10595 | |
| 10596 | ac_header_preproc=no |
| 10597 | fi |
| 10598 | |
| 10599 | rm -f conftest.err conftest.$ac_ext |
| 10600 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10601 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10602 | |
| 10603 | # So? What about this header? |
| 10604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10605 | yes:no: ) |
| 10606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10610 | ac_header_preproc=yes |
| 10611 | ;; |
| 10612 | no:yes:* ) |
| 10613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10625 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10626 | ## ------------------------------------ ## |
| 10627 | ## Report this to http://llvm.org/bugs/ ## |
| 10628 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10629 | _ASBOX |
| 10630 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10631 | ;; |
| 10632 | esac |
| 10633 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10635 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10637 | else |
| 10638 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10639 | fi |
| 10640 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10641 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10642 | echo "${ECHO_T}$ac_res" >&6; } |
| 10643 | |
| 10644 | fi |
| 10645 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10647 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10648 | _ACEOF |
| 10649 | |
| 10650 | fi |
| 10651 | |
| 10652 | done |
| 10653 | |
| 10654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10655 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10656 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10657 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10659 | else |
| 10660 | cat >conftest.$ac_ext <<_ACEOF |
| 10661 | /* confdefs.h. */ |
| 10662 | _ACEOF |
| 10663 | cat confdefs.h >>conftest.$ac_ext |
| 10664 | cat >>conftest.$ac_ext <<_ACEOF |
| 10665 | /* end confdefs.h. */ |
| 10666 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10667 | # include <argz.h> |
| 10668 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10669 | |
| 10670 | typedef error_t ac__type_new_; |
| 10671 | int |
| 10672 | main () |
| 10673 | { |
| 10674 | if ((ac__type_new_ *) 0) |
| 10675 | return 0; |
| 10676 | if (sizeof (ac__type_new_)) |
| 10677 | return 0; |
| 10678 | ; |
| 10679 | return 0; |
| 10680 | } |
| 10681 | _ACEOF |
| 10682 | rm -f conftest.$ac_objext |
| 10683 | if { (ac_try="$ac_compile" |
| 10684 | case "(($ac_try" in |
| 10685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10686 | *) ac_try_echo=$ac_try;; |
| 10687 | esac |
| 10688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10689 | (eval "$ac_compile") 2>conftest.er1 |
| 10690 | ac_status=$? |
| 10691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10692 | rm -f conftest.er1 |
| 10693 | cat conftest.err >&5 |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); } && |
| 10696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 10703 | ac_status=$? |
| 10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 | (exit $ac_status); }; } && |
| 10706 | { ac_try='test -s conftest.$ac_objext' |
| 10707 | { (case "(($ac_try" in |
| 10708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10709 | *) ac_try_echo=$ac_try;; |
| 10710 | esac |
| 10711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10712 | (eval "$ac_try") 2>&5 |
| 10713 | ac_status=$? |
| 10714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10715 | (exit $ac_status); }; }; then |
| 10716 | ac_cv_type_error_t=yes |
| 10717 | else |
| 10718 | echo "$as_me: failed program was:" >&5 |
| 10719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10720 | |
| 10721 | ac_cv_type_error_t=no |
| 10722 | fi |
| 10723 | |
| 10724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10725 | fi |
| 10726 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10727 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10728 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10729 | |
| 10730 | cat >>confdefs.h <<_ACEOF |
| 10731 | #define HAVE_ERROR_T 1 |
| 10732 | _ACEOF |
| 10733 | |
| 10734 | |
| 10735 | else |
| 10736 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10737 | cat >>confdefs.h <<\_ACEOF |
| 10738 | #define error_t int |
| 10739 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | |
| 10741 | fi |
| 10742 | |
| 10743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10744 | |
| 10745 | |
| 10746 | |
| 10747 | |
| 10748 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10749 | 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] | 10750 | do |
| 10751 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10752 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10753 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10754 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10756 | else |
| 10757 | cat >conftest.$ac_ext <<_ACEOF |
| 10758 | /* confdefs.h. */ |
| 10759 | _ACEOF |
| 10760 | cat confdefs.h >>conftest.$ac_ext |
| 10761 | cat >>conftest.$ac_ext <<_ACEOF |
| 10762 | /* end confdefs.h. */ |
| 10763 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10765 | #define $ac_func innocuous_$ac_func |
| 10766 | |
| 10767 | /* System header to define __stub macros and hopefully few prototypes, |
| 10768 | which can conflict with char $ac_func (); below. |
| 10769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10770 | <limits.h> exists even on freestanding compilers. */ |
| 10771 | |
| 10772 | #ifdef __STDC__ |
| 10773 | # include <limits.h> |
| 10774 | #else |
| 10775 | # include <assert.h> |
| 10776 | #endif |
| 10777 | |
| 10778 | #undef $ac_func |
| 10779 | |
| 10780 | /* Override any GCC internal prototype to avoid an error. |
| 10781 | Use char because int might match the return type of a GCC |
| 10782 | builtin and then its argument prototype would still apply. */ |
| 10783 | #ifdef __cplusplus |
| 10784 | extern "C" |
| 10785 | #endif |
| 10786 | char $ac_func (); |
| 10787 | /* The GNU C library defines this for functions which it implements |
| 10788 | to always fail with ENOSYS. Some functions are actually named |
| 10789 | something starting with __ and the normal name is an alias. */ |
| 10790 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10791 | choke me |
| 10792 | #endif |
| 10793 | |
| 10794 | int |
| 10795 | main () |
| 10796 | { |
| 10797 | return $ac_func (); |
| 10798 | ; |
| 10799 | return 0; |
| 10800 | } |
| 10801 | _ACEOF |
| 10802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10803 | if { (ac_try="$ac_link" |
| 10804 | case "(($ac_try" in |
| 10805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10806 | *) ac_try_echo=$ac_try;; |
| 10807 | esac |
| 10808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10809 | (eval "$ac_link") 2>conftest.er1 |
| 10810 | ac_status=$? |
| 10811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10812 | rm -f conftest.er1 |
| 10813 | cat conftest.err >&5 |
| 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10815 | (exit $ac_status); } && |
| 10816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10817 | { (case "(($ac_try" in |
| 10818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10819 | *) ac_try_echo=$ac_try;; |
| 10820 | esac |
| 10821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10822 | (eval "$ac_try") 2>&5 |
| 10823 | ac_status=$? |
| 10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10825 | (exit $ac_status); }; } && |
| 10826 | { ac_try='test -s conftest$ac_exeext' |
| 10827 | { (case "(($ac_try" in |
| 10828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10829 | *) ac_try_echo=$ac_try;; |
| 10830 | esac |
| 10831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10832 | (eval "$ac_try") 2>&5 |
| 10833 | ac_status=$? |
| 10834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10835 | (exit $ac_status); }; }; then |
| 10836 | eval "$as_ac_var=yes" |
| 10837 | else |
| 10838 | echo "$as_me: failed program was:" >&5 |
| 10839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10840 | |
| 10841 | eval "$as_ac_var=no" |
| 10842 | fi |
| 10843 | |
| 10844 | rm -f core conftest.err conftest.$ac_objext \ |
| 10845 | conftest$ac_exeext conftest.$ac_ext |
| 10846 | fi |
| 10847 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10848 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10849 | echo "${ECHO_T}$ac_res" >&6; } |
| 10850 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10851 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10852 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10853 | _ACEOF |
| 10854 | |
| 10855 | fi |
| 10856 | done |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | |
| 10870 | |
| 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10877 | |
| 10878 | |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
| 10884 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10885 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10886 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10887 | do |
| 10888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10890 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10894 | fi |
| 10895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10897 | echo "${ECHO_T}$ac_res" >&6; } |
| 10898 | else |
| 10899 | # Is the header compilable? |
| 10900 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10902 | cat >conftest.$ac_ext <<_ACEOF |
| 10903 | /* confdefs.h. */ |
| 10904 | _ACEOF |
| 10905 | cat confdefs.h >>conftest.$ac_ext |
| 10906 | cat >>conftest.$ac_ext <<_ACEOF |
| 10907 | /* end confdefs.h. */ |
| 10908 | $ac_includes_default |
| 10909 | #include <$ac_header> |
| 10910 | _ACEOF |
| 10911 | rm -f conftest.$ac_objext |
| 10912 | if { (ac_try="$ac_compile" |
| 10913 | case "(($ac_try" in |
| 10914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10915 | *) ac_try_echo=$ac_try;; |
| 10916 | esac |
| 10917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10918 | (eval "$ac_compile") 2>conftest.er1 |
| 10919 | ac_status=$? |
| 10920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10921 | rm -f conftest.er1 |
| 10922 | cat conftest.err >&5 |
| 10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10924 | (exit $ac_status); } && |
| 10925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10926 | { (case "(($ac_try" in |
| 10927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10928 | *) ac_try_echo=$ac_try;; |
| 10929 | esac |
| 10930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10931 | (eval "$ac_try") 2>&5 |
| 10932 | ac_status=$? |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); }; } && |
| 10935 | { ac_try='test -s conftest.$ac_objext' |
| 10936 | { (case "(($ac_try" in |
| 10937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10938 | *) ac_try_echo=$ac_try;; |
| 10939 | esac |
| 10940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10941 | (eval "$ac_try") 2>&5 |
| 10942 | ac_status=$? |
| 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10944 | (exit $ac_status); }; }; then |
| 10945 | ac_header_compiler=yes |
| 10946 | else |
| 10947 | echo "$as_me: failed program was:" >&5 |
| 10948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10949 | |
| 10950 | ac_header_compiler=no |
| 10951 | fi |
| 10952 | |
| 10953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10954 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10955 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10956 | |
| 10957 | # Is the header present? |
| 10958 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10960 | cat >conftest.$ac_ext <<_ACEOF |
| 10961 | /* confdefs.h. */ |
| 10962 | _ACEOF |
| 10963 | cat confdefs.h >>conftest.$ac_ext |
| 10964 | cat >>conftest.$ac_ext <<_ACEOF |
| 10965 | /* end confdefs.h. */ |
| 10966 | #include <$ac_header> |
| 10967 | _ACEOF |
| 10968 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10969 | case "(($ac_try" in |
| 10970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10971 | *) ac_try_echo=$ac_try;; |
| 10972 | esac |
| 10973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10975 | ac_status=$? |
| 10976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10977 | rm -f conftest.er1 |
| 10978 | cat conftest.err >&5 |
| 10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10980 | (exit $ac_status); } >/dev/null; then |
| 10981 | if test -s conftest.err; then |
| 10982 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10983 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10984 | else |
| 10985 | ac_cpp_err= |
| 10986 | fi |
| 10987 | else |
| 10988 | ac_cpp_err=yes |
| 10989 | fi |
| 10990 | if test -z "$ac_cpp_err"; then |
| 10991 | ac_header_preproc=yes |
| 10992 | else |
| 10993 | echo "$as_me: failed program was:" >&5 |
| 10994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10995 | |
| 10996 | ac_header_preproc=no |
| 10997 | fi |
| 10998 | |
| 10999 | rm -f conftest.err conftest.$ac_ext |
| 11000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11002 | |
| 11003 | # So? What about this header? |
| 11004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11005 | yes:no: ) |
| 11006 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11010 | ac_header_preproc=yes |
| 11011 | ;; |
| 11012 | no:yes:* ) |
| 11013 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11015 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11016 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11017 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11019 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11020 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11023 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11024 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11025 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11026 | ## ------------------------------------ ## |
| 11027 | ## Report this to http://llvm.org/bugs/ ## |
| 11028 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11029 | _ASBOX |
| 11030 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11031 | ;; |
| 11032 | esac |
| 11033 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11037 | else |
| 11038 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11039 | fi |
| 11040 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11041 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11042 | echo "${ECHO_T}$ac_res" >&6; } |
| 11043 | |
| 11044 | fi |
| 11045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11046 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11048 | _ACEOF |
| 11049 | |
| 11050 | fi |
| 11051 | |
| 11052 | done |
| 11053 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11054 | |
| 11055 | |
| 11056 | |
| 11057 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11058 | 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] | 11059 | do |
| 11060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11066 | fi |
| 11067 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11068 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11069 | echo "${ECHO_T}$ac_res" >&6; } |
| 11070 | else |
| 11071 | # Is the header compilable? |
| 11072 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11074 | cat >conftest.$ac_ext <<_ACEOF |
| 11075 | /* confdefs.h. */ |
| 11076 | _ACEOF |
| 11077 | cat confdefs.h >>conftest.$ac_ext |
| 11078 | cat >>conftest.$ac_ext <<_ACEOF |
| 11079 | /* end confdefs.h. */ |
| 11080 | $ac_includes_default |
| 11081 | #include <$ac_header> |
| 11082 | _ACEOF |
| 11083 | rm -f conftest.$ac_objext |
| 11084 | if { (ac_try="$ac_compile" |
| 11085 | case "(($ac_try" in |
| 11086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11087 | *) ac_try_echo=$ac_try;; |
| 11088 | esac |
| 11089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11090 | (eval "$ac_compile") 2>conftest.er1 |
| 11091 | ac_status=$? |
| 11092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11093 | rm -f conftest.er1 |
| 11094 | cat conftest.err >&5 |
| 11095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11096 | (exit $ac_status); } && |
| 11097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11098 | { (case "(($ac_try" in |
| 11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11100 | *) ac_try_echo=$ac_try;; |
| 11101 | esac |
| 11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11103 | (eval "$ac_try") 2>&5 |
| 11104 | ac_status=$? |
| 11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11106 | (exit $ac_status); }; } && |
| 11107 | { ac_try='test -s conftest.$ac_objext' |
| 11108 | { (case "(($ac_try" in |
| 11109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11110 | *) ac_try_echo=$ac_try;; |
| 11111 | esac |
| 11112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11113 | (eval "$ac_try") 2>&5 |
| 11114 | ac_status=$? |
| 11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11116 | (exit $ac_status); }; }; then |
| 11117 | ac_header_compiler=yes |
| 11118 | else |
| 11119 | echo "$as_me: failed program was:" >&5 |
| 11120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11121 | |
| 11122 | ac_header_compiler=no |
| 11123 | fi |
| 11124 | |
| 11125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11126 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11127 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11128 | |
| 11129 | # Is the header present? |
| 11130 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11131 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11132 | cat >conftest.$ac_ext <<_ACEOF |
| 11133 | /* confdefs.h. */ |
| 11134 | _ACEOF |
| 11135 | cat confdefs.h >>conftest.$ac_ext |
| 11136 | cat >>conftest.$ac_ext <<_ACEOF |
| 11137 | /* end confdefs.h. */ |
| 11138 | #include <$ac_header> |
| 11139 | _ACEOF |
| 11140 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11141 | case "(($ac_try" in |
| 11142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11143 | *) ac_try_echo=$ac_try;; |
| 11144 | esac |
| 11145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11146 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11147 | ac_status=$? |
| 11148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11149 | rm -f conftest.er1 |
| 11150 | cat conftest.err >&5 |
| 11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11152 | (exit $ac_status); } >/dev/null; then |
| 11153 | if test -s conftest.err; then |
| 11154 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11156 | else |
| 11157 | ac_cpp_err= |
| 11158 | fi |
| 11159 | else |
| 11160 | ac_cpp_err=yes |
| 11161 | fi |
| 11162 | if test -z "$ac_cpp_err"; then |
| 11163 | ac_header_preproc=yes |
| 11164 | else |
| 11165 | echo "$as_me: failed program was:" >&5 |
| 11166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11167 | |
| 11168 | ac_header_preproc=no |
| 11169 | fi |
| 11170 | |
| 11171 | rm -f conftest.err conftest.$ac_ext |
| 11172 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11173 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11174 | |
| 11175 | # So? What about this header? |
| 11176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11177 | yes:no: ) |
| 11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11182 | ac_header_preproc=yes |
| 11183 | ;; |
| 11184 | no:yes:* ) |
| 11185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11197 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11198 | ## ------------------------------------ ## |
| 11199 | ## Report this to http://llvm.org/bugs/ ## |
| 11200 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11201 | _ASBOX |
| 11202 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11203 | ;; |
| 11204 | esac |
| 11205 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11209 | else |
| 11210 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11211 | fi |
| 11212 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11214 | echo "${ECHO_T}$ac_res" >&6; } |
| 11215 | |
| 11216 | fi |
| 11217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11220 | _ACEOF |
| 11221 | |
| 11222 | fi |
| 11223 | |
| 11224 | done |
| 11225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11226 | |
| 11227 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11228 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11229 | do |
| 11230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11232 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11236 | fi |
| 11237 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11238 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11239 | echo "${ECHO_T}$ac_res" >&6; } |
| 11240 | else |
| 11241 | # Is the header compilable? |
| 11242 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11244 | cat >conftest.$ac_ext <<_ACEOF |
| 11245 | /* confdefs.h. */ |
| 11246 | _ACEOF |
| 11247 | cat confdefs.h >>conftest.$ac_ext |
| 11248 | cat >>conftest.$ac_ext <<_ACEOF |
| 11249 | /* end confdefs.h. */ |
| 11250 | $ac_includes_default |
| 11251 | #include <$ac_header> |
| 11252 | _ACEOF |
| 11253 | rm -f conftest.$ac_objext |
| 11254 | if { (ac_try="$ac_compile" |
| 11255 | case "(($ac_try" in |
| 11256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11257 | *) ac_try_echo=$ac_try;; |
| 11258 | esac |
| 11259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11260 | (eval "$ac_compile") 2>conftest.er1 |
| 11261 | ac_status=$? |
| 11262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11263 | rm -f conftest.er1 |
| 11264 | cat conftest.err >&5 |
| 11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11266 | (exit $ac_status); } && |
| 11267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11268 | { (case "(($ac_try" in |
| 11269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11270 | *) ac_try_echo=$ac_try;; |
| 11271 | esac |
| 11272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11273 | (eval "$ac_try") 2>&5 |
| 11274 | ac_status=$? |
| 11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11276 | (exit $ac_status); }; } && |
| 11277 | { ac_try='test -s conftest.$ac_objext' |
| 11278 | { (case "(($ac_try" in |
| 11279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11280 | *) ac_try_echo=$ac_try;; |
| 11281 | esac |
| 11282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11283 | (eval "$ac_try") 2>&5 |
| 11284 | ac_status=$? |
| 11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11286 | (exit $ac_status); }; }; then |
| 11287 | ac_header_compiler=yes |
| 11288 | else |
| 11289 | echo "$as_me: failed program was:" >&5 |
| 11290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11291 | |
| 11292 | ac_header_compiler=no |
| 11293 | fi |
| 11294 | |
| 11295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11296 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11297 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11298 | |
| 11299 | # Is the header present? |
| 11300 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11301 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11302 | cat >conftest.$ac_ext <<_ACEOF |
| 11303 | /* confdefs.h. */ |
| 11304 | _ACEOF |
| 11305 | cat confdefs.h >>conftest.$ac_ext |
| 11306 | cat >>conftest.$ac_ext <<_ACEOF |
| 11307 | /* end confdefs.h. */ |
| 11308 | #include <$ac_header> |
| 11309 | _ACEOF |
| 11310 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11311 | case "(($ac_try" in |
| 11312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11313 | *) ac_try_echo=$ac_try;; |
| 11314 | esac |
| 11315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11316 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11317 | ac_status=$? |
| 11318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11319 | rm -f conftest.er1 |
| 11320 | cat conftest.err >&5 |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); } >/dev/null; then |
| 11323 | if test -s conftest.err; then |
| 11324 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11326 | else |
| 11327 | ac_cpp_err= |
| 11328 | fi |
| 11329 | else |
| 11330 | ac_cpp_err=yes |
| 11331 | fi |
| 11332 | if test -z "$ac_cpp_err"; then |
| 11333 | ac_header_preproc=yes |
| 11334 | else |
| 11335 | echo "$as_me: failed program was:" >&5 |
| 11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11337 | |
| 11338 | ac_header_preproc=no |
| 11339 | fi |
| 11340 | |
| 11341 | rm -f conftest.err conftest.$ac_ext |
| 11342 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11343 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11344 | |
| 11345 | # So? What about this header? |
| 11346 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11347 | yes:no: ) |
| 11348 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11349 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11351 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11352 | ac_header_preproc=yes |
| 11353 | ;; |
| 11354 | no:yes:* ) |
| 11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11360 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11362 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11364 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11366 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11367 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11368 | ## ------------------------------------ ## |
| 11369 | ## Report this to http://llvm.org/bugs/ ## |
| 11370 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11371 | _ASBOX |
| 11372 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11373 | ;; |
| 11374 | esac |
| 11375 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11377 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11379 | else |
| 11380 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11381 | fi |
| 11382 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11384 | echo "${ECHO_T}$ac_res" >&6; } |
| 11385 | |
| 11386 | fi |
| 11387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11388 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11390 | _ACEOF |
| 11391 | break |
| 11392 | fi |
| 11393 | |
| 11394 | done |
| 11395 | |
| 11396 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11397 | |
| 11398 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11399 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11400 | do |
| 11401 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11402 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11403 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11404 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11406 | else |
| 11407 | cat >conftest.$ac_ext <<_ACEOF |
| 11408 | /* confdefs.h. */ |
| 11409 | _ACEOF |
| 11410 | cat confdefs.h >>conftest.$ac_ext |
| 11411 | cat >>conftest.$ac_ext <<_ACEOF |
| 11412 | /* end confdefs.h. */ |
| 11413 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11414 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11415 | #define $ac_func innocuous_$ac_func |
| 11416 | |
| 11417 | /* System header to define __stub macros and hopefully few prototypes, |
| 11418 | which can conflict with char $ac_func (); below. |
| 11419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11420 | <limits.h> exists even on freestanding compilers. */ |
| 11421 | |
| 11422 | #ifdef __STDC__ |
| 11423 | # include <limits.h> |
| 11424 | #else |
| 11425 | # include <assert.h> |
| 11426 | #endif |
| 11427 | |
| 11428 | #undef $ac_func |
| 11429 | |
| 11430 | /* Override any GCC internal prototype to avoid an error. |
| 11431 | Use char because int might match the return type of a GCC |
| 11432 | builtin and then its argument prototype would still apply. */ |
| 11433 | #ifdef __cplusplus |
| 11434 | extern "C" |
| 11435 | #endif |
| 11436 | char $ac_func (); |
| 11437 | /* The GNU C library defines this for functions which it implements |
| 11438 | to always fail with ENOSYS. Some functions are actually named |
| 11439 | something starting with __ and the normal name is an alias. */ |
| 11440 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11441 | choke me |
| 11442 | #endif |
| 11443 | |
| 11444 | int |
| 11445 | main () |
| 11446 | { |
| 11447 | return $ac_func (); |
| 11448 | ; |
| 11449 | return 0; |
| 11450 | } |
| 11451 | _ACEOF |
| 11452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11453 | if { (ac_try="$ac_link" |
| 11454 | case "(($ac_try" in |
| 11455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11456 | *) ac_try_echo=$ac_try;; |
| 11457 | esac |
| 11458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11459 | (eval "$ac_link") 2>conftest.er1 |
| 11460 | ac_status=$? |
| 11461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11462 | rm -f conftest.er1 |
| 11463 | cat conftest.err >&5 |
| 11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11465 | (exit $ac_status); } && |
| 11466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11467 | { (case "(($ac_try" in |
| 11468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11469 | *) ac_try_echo=$ac_try;; |
| 11470 | esac |
| 11471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11472 | (eval "$ac_try") 2>&5 |
| 11473 | ac_status=$? |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); }; } && |
| 11476 | { ac_try='test -s conftest$ac_exeext' |
| 11477 | { (case "(($ac_try" in |
| 11478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11479 | *) ac_try_echo=$ac_try;; |
| 11480 | esac |
| 11481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11482 | (eval "$ac_try") 2>&5 |
| 11483 | ac_status=$? |
| 11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11485 | (exit $ac_status); }; }; then |
| 11486 | eval "$as_ac_var=yes" |
| 11487 | else |
| 11488 | echo "$as_me: failed program was:" >&5 |
| 11489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11490 | |
| 11491 | eval "$as_ac_var=no" |
| 11492 | fi |
| 11493 | |
| 11494 | rm -f core conftest.err conftest.$ac_objext \ |
| 11495 | conftest$ac_exeext conftest.$ac_ext |
| 11496 | fi |
| 11497 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11498 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11499 | echo "${ECHO_T}$ac_res" >&6; } |
| 11500 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11501 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11502 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11503 | _ACEOF |
| 11504 | break |
| 11505 | fi |
| 11506 | done |
| 11507 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11508 | |
| 11509 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11510 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11511 | do |
| 11512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11513 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11515 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11517 | else |
| 11518 | cat >conftest.$ac_ext <<_ACEOF |
| 11519 | /* confdefs.h. */ |
| 11520 | _ACEOF |
| 11521 | cat confdefs.h >>conftest.$ac_ext |
| 11522 | cat >>conftest.$ac_ext <<_ACEOF |
| 11523 | /* end confdefs.h. */ |
| 11524 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11526 | #define $ac_func innocuous_$ac_func |
| 11527 | |
| 11528 | /* System header to define __stub macros and hopefully few prototypes, |
| 11529 | which can conflict with char $ac_func (); below. |
| 11530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11531 | <limits.h> exists even on freestanding compilers. */ |
| 11532 | |
| 11533 | #ifdef __STDC__ |
| 11534 | # include <limits.h> |
| 11535 | #else |
| 11536 | # include <assert.h> |
| 11537 | #endif |
| 11538 | |
| 11539 | #undef $ac_func |
| 11540 | |
| 11541 | /* Override any GCC internal prototype to avoid an error. |
| 11542 | Use char because int might match the return type of a GCC |
| 11543 | builtin and then its argument prototype would still apply. */ |
| 11544 | #ifdef __cplusplus |
| 11545 | extern "C" |
| 11546 | #endif |
| 11547 | char $ac_func (); |
| 11548 | /* The GNU C library defines this for functions which it implements |
| 11549 | to always fail with ENOSYS. Some functions are actually named |
| 11550 | something starting with __ and the normal name is an alias. */ |
| 11551 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11552 | choke me |
| 11553 | #endif |
| 11554 | |
| 11555 | int |
| 11556 | main () |
| 11557 | { |
| 11558 | return $ac_func (); |
| 11559 | ; |
| 11560 | return 0; |
| 11561 | } |
| 11562 | _ACEOF |
| 11563 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11564 | if { (ac_try="$ac_link" |
| 11565 | case "(($ac_try" in |
| 11566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11567 | *) ac_try_echo=$ac_try;; |
| 11568 | esac |
| 11569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11570 | (eval "$ac_link") 2>conftest.er1 |
| 11571 | ac_status=$? |
| 11572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11573 | rm -f conftest.er1 |
| 11574 | cat conftest.err >&5 |
| 11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11576 | (exit $ac_status); } && |
| 11577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11578 | { (case "(($ac_try" in |
| 11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11580 | *) ac_try_echo=$ac_try;; |
| 11581 | esac |
| 11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11583 | (eval "$ac_try") 2>&5 |
| 11584 | ac_status=$? |
| 11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11586 | (exit $ac_status); }; } && |
| 11587 | { ac_try='test -s conftest$ac_exeext' |
| 11588 | { (case "(($ac_try" in |
| 11589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11590 | *) ac_try_echo=$ac_try;; |
| 11591 | esac |
| 11592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11593 | (eval "$ac_try") 2>&5 |
| 11594 | ac_status=$? |
| 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11596 | (exit $ac_status); }; }; then |
| 11597 | eval "$as_ac_var=yes" |
| 11598 | else |
| 11599 | echo "$as_me: failed program was:" >&5 |
| 11600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11601 | |
| 11602 | eval "$as_ac_var=no" |
| 11603 | fi |
| 11604 | |
| 11605 | rm -f core conftest.err conftest.$ac_objext \ |
| 11606 | conftest$ac_exeext conftest.$ac_ext |
| 11607 | fi |
| 11608 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11609 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11610 | echo "${ECHO_T}$ac_res" >&6; } |
| 11611 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11612 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11614 | _ACEOF |
| 11615 | break |
| 11616 | fi |
| 11617 | done |
| 11618 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11619 | |
| 11620 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11621 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11622 | do |
| 11623 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11624 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11625 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11626 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11628 | else |
| 11629 | cat >conftest.$ac_ext <<_ACEOF |
| 11630 | /* confdefs.h. */ |
| 11631 | _ACEOF |
| 11632 | cat confdefs.h >>conftest.$ac_ext |
| 11633 | cat >>conftest.$ac_ext <<_ACEOF |
| 11634 | /* end confdefs.h. */ |
| 11635 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11637 | #define $ac_func innocuous_$ac_func |
| 11638 | |
| 11639 | /* System header to define __stub macros and hopefully few prototypes, |
| 11640 | which can conflict with char $ac_func (); below. |
| 11641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11642 | <limits.h> exists even on freestanding compilers. */ |
| 11643 | |
| 11644 | #ifdef __STDC__ |
| 11645 | # include <limits.h> |
| 11646 | #else |
| 11647 | # include <assert.h> |
| 11648 | #endif |
| 11649 | |
| 11650 | #undef $ac_func |
| 11651 | |
| 11652 | /* Override any GCC internal prototype to avoid an error. |
| 11653 | Use char because int might match the return type of a GCC |
| 11654 | builtin and then its argument prototype would still apply. */ |
| 11655 | #ifdef __cplusplus |
| 11656 | extern "C" |
| 11657 | #endif |
| 11658 | char $ac_func (); |
| 11659 | /* The GNU C library defines this for functions which it implements |
| 11660 | to always fail with ENOSYS. Some functions are actually named |
| 11661 | something starting with __ and the normal name is an alias. */ |
| 11662 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11663 | choke me |
| 11664 | #endif |
| 11665 | |
| 11666 | int |
| 11667 | main () |
| 11668 | { |
| 11669 | return $ac_func (); |
| 11670 | ; |
| 11671 | return 0; |
| 11672 | } |
| 11673 | _ACEOF |
| 11674 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11675 | if { (ac_try="$ac_link" |
| 11676 | case "(($ac_try" in |
| 11677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11678 | *) ac_try_echo=$ac_try;; |
| 11679 | esac |
| 11680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11681 | (eval "$ac_link") 2>conftest.er1 |
| 11682 | ac_status=$? |
| 11683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11684 | rm -f conftest.er1 |
| 11685 | cat conftest.err >&5 |
| 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11687 | (exit $ac_status); } && |
| 11688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11689 | { (case "(($ac_try" in |
| 11690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11691 | *) ac_try_echo=$ac_try;; |
| 11692 | esac |
| 11693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11694 | (eval "$ac_try") 2>&5 |
| 11695 | ac_status=$? |
| 11696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11697 | (exit $ac_status); }; } && |
| 11698 | { ac_try='test -s conftest$ac_exeext' |
| 11699 | { (case "(($ac_try" in |
| 11700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11701 | *) ac_try_echo=$ac_try;; |
| 11702 | esac |
| 11703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11704 | (eval "$ac_try") 2>&5 |
| 11705 | ac_status=$? |
| 11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); }; }; then |
| 11708 | eval "$as_ac_var=yes" |
| 11709 | else |
| 11710 | echo "$as_me: failed program was:" >&5 |
| 11711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11712 | |
| 11713 | eval "$as_ac_var=no" |
| 11714 | fi |
| 11715 | |
| 11716 | rm -f core conftest.err conftest.$ac_objext \ |
| 11717 | conftest$ac_exeext conftest.$ac_ext |
| 11718 | fi |
| 11719 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11721 | echo "${ECHO_T}$ac_res" >&6; } |
| 11722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11723 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11725 | _ACEOF |
| 11726 | break |
| 11727 | fi |
| 11728 | done |
| 11729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11730 | |
| 11731 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11732 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11733 | do |
| 11734 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11735 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11736 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11737 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11739 | else |
| 11740 | cat >conftest.$ac_ext <<_ACEOF |
| 11741 | /* confdefs.h. */ |
| 11742 | _ACEOF |
| 11743 | cat confdefs.h >>conftest.$ac_ext |
| 11744 | cat >>conftest.$ac_ext <<_ACEOF |
| 11745 | /* end confdefs.h. */ |
| 11746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11748 | #define $ac_func innocuous_$ac_func |
| 11749 | |
| 11750 | /* System header to define __stub macros and hopefully few prototypes, |
| 11751 | which can conflict with char $ac_func (); below. |
| 11752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11753 | <limits.h> exists even on freestanding compilers. */ |
| 11754 | |
| 11755 | #ifdef __STDC__ |
| 11756 | # include <limits.h> |
| 11757 | #else |
| 11758 | # include <assert.h> |
| 11759 | #endif |
| 11760 | |
| 11761 | #undef $ac_func |
| 11762 | |
| 11763 | /* Override any GCC internal prototype to avoid an error. |
| 11764 | Use char because int might match the return type of a GCC |
| 11765 | builtin and then its argument prototype would still apply. */ |
| 11766 | #ifdef __cplusplus |
| 11767 | extern "C" |
| 11768 | #endif |
| 11769 | char $ac_func (); |
| 11770 | /* The GNU C library defines this for functions which it implements |
| 11771 | to always fail with ENOSYS. Some functions are actually named |
| 11772 | something starting with __ and the normal name is an alias. */ |
| 11773 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11774 | choke me |
| 11775 | #endif |
| 11776 | |
| 11777 | int |
| 11778 | main () |
| 11779 | { |
| 11780 | return $ac_func (); |
| 11781 | ; |
| 11782 | return 0; |
| 11783 | } |
| 11784 | _ACEOF |
| 11785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11786 | if { (ac_try="$ac_link" |
| 11787 | case "(($ac_try" in |
| 11788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11789 | *) ac_try_echo=$ac_try;; |
| 11790 | esac |
| 11791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11792 | (eval "$ac_link") 2>conftest.er1 |
| 11793 | ac_status=$? |
| 11794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11795 | rm -f conftest.er1 |
| 11796 | cat conftest.err >&5 |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); } && |
| 11799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11800 | { (case "(($ac_try" in |
| 11801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11802 | *) ac_try_echo=$ac_try;; |
| 11803 | esac |
| 11804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11805 | (eval "$ac_try") 2>&5 |
| 11806 | ac_status=$? |
| 11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11808 | (exit $ac_status); }; } && |
| 11809 | { ac_try='test -s conftest$ac_exeext' |
| 11810 | { (case "(($ac_try" in |
| 11811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11812 | *) ac_try_echo=$ac_try;; |
| 11813 | esac |
| 11814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11815 | (eval "$ac_try") 2>&5 |
| 11816 | ac_status=$? |
| 11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11818 | (exit $ac_status); }; }; then |
| 11819 | eval "$as_ac_var=yes" |
| 11820 | else |
| 11821 | echo "$as_me: failed program was:" >&5 |
| 11822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11823 | |
| 11824 | eval "$as_ac_var=no" |
| 11825 | fi |
| 11826 | |
| 11827 | rm -f core conftest.err conftest.$ac_objext \ |
| 11828 | conftest$ac_exeext conftest.$ac_ext |
| 11829 | fi |
| 11830 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11832 | echo "${ECHO_T}$ac_res" >&6; } |
| 11833 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11834 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11836 | _ACEOF |
| 11837 | |
| 11838 | fi |
| 11839 | done |
| 11840 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11841 | |
| 11842 | |
| 11843 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11844 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11845 | do |
| 11846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11847 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11849 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11851 | else |
| 11852 | cat >conftest.$ac_ext <<_ACEOF |
| 11853 | /* confdefs.h. */ |
| 11854 | _ACEOF |
| 11855 | cat confdefs.h >>conftest.$ac_ext |
| 11856 | cat >>conftest.$ac_ext <<_ACEOF |
| 11857 | /* end confdefs.h. */ |
| 11858 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11860 | #define $ac_func innocuous_$ac_func |
| 11861 | |
| 11862 | /* System header to define __stub macros and hopefully few prototypes, |
| 11863 | which can conflict with char $ac_func (); below. |
| 11864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11865 | <limits.h> exists even on freestanding compilers. */ |
| 11866 | |
| 11867 | #ifdef __STDC__ |
| 11868 | # include <limits.h> |
| 11869 | #else |
| 11870 | # include <assert.h> |
| 11871 | #endif |
| 11872 | |
| 11873 | #undef $ac_func |
| 11874 | |
| 11875 | /* Override any GCC internal prototype to avoid an error. |
| 11876 | Use char because int might match the return type of a GCC |
| 11877 | builtin and then its argument prototype would still apply. */ |
| 11878 | #ifdef __cplusplus |
| 11879 | extern "C" |
| 11880 | #endif |
| 11881 | char $ac_func (); |
| 11882 | /* The GNU C library defines this for functions which it implements |
| 11883 | to always fail with ENOSYS. Some functions are actually named |
| 11884 | something starting with __ and the normal name is an alias. */ |
| 11885 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11886 | choke me |
| 11887 | #endif |
| 11888 | |
| 11889 | int |
| 11890 | main () |
| 11891 | { |
| 11892 | return $ac_func (); |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11898 | if { (ac_try="$ac_link" |
| 11899 | case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11904 | (eval "$ac_link") 2>conftest.er1 |
| 11905 | ac_status=$? |
| 11906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11907 | rm -f conftest.er1 |
| 11908 | cat conftest.err >&5 |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); } && |
| 11911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 11921 | { ac_try='test -s conftest$ac_exeext' |
| 11922 | { (case "(($ac_try" in |
| 11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11924 | *) ac_try_echo=$ac_try;; |
| 11925 | esac |
| 11926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11927 | (eval "$ac_try") 2>&5 |
| 11928 | ac_status=$? |
| 11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11930 | (exit $ac_status); }; }; then |
| 11931 | eval "$as_ac_var=yes" |
| 11932 | else |
| 11933 | echo "$as_me: failed program was:" >&5 |
| 11934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11935 | |
| 11936 | eval "$as_ac_var=no" |
| 11937 | fi |
| 11938 | |
| 11939 | rm -f core conftest.err conftest.$ac_objext \ |
| 11940 | conftest$ac_exeext conftest.$ac_ext |
| 11941 | fi |
| 11942 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11943 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11944 | echo "${ECHO_T}$ac_res" >&6; } |
| 11945 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11946 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11948 | _ACEOF |
| 11949 | |
| 11950 | fi |
| 11951 | done |
| 11952 | |
| 11953 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 11954 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11955 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 11956 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11957 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 11958 | ICC=no |
| 11959 | IXX=no |
| 11960 | case $CC in |
| 11961 | icc*|icpc*) |
| 11962 | ICC=yes |
| 11963 | IXX=yes |
| 11964 | ;; |
| 11965 | *) |
| 11966 | ;; |
| 11967 | esac |
| 11968 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 11969 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 11970 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11971 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 11972 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 11973 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 11974 | fi |
| 11975 | |
| 11976 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 11977 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 11978 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 11979 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11980 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 11981 | fi |
| 11982 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 11983 | if test "$GCC" = "yes" |
| 11984 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11985 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 11986 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 11987 | #error Unsupported GCC version |
| 11988 | #endif |
| 11989 | |
| 11990 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11991 | rm -f conftest.$ac_objext |
| 11992 | if { (ac_try="$ac_compile" |
| 11993 | case "(($ac_try" in |
| 11994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11995 | *) ac_try_echo=$ac_try;; |
| 11996 | esac |
| 11997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11998 | (eval "$ac_compile") 2>conftest.er1 |
| 11999 | ac_status=$? |
| 12000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12001 | rm -f conftest.er1 |
| 12002 | cat conftest.err >&5 |
| 12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12004 | (exit $ac_status); } && |
| 12005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12006 | { (case "(($ac_try" in |
| 12007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12008 | *) ac_try_echo=$ac_try;; |
| 12009 | esac |
| 12010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12011 | (eval "$ac_try") 2>&5 |
| 12012 | ac_status=$? |
| 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12014 | (exit $ac_status); }; } && |
| 12015 | { ac_try='test -s conftest.$ac_objext' |
| 12016 | { (case "(($ac_try" in |
| 12017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12018 | *) ac_try_echo=$ac_try;; |
| 12019 | esac |
| 12020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12021 | (eval "$ac_try") 2>&5 |
| 12022 | ac_status=$? |
| 12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12024 | (exit $ac_status); }; }; then |
| 12025 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12026 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12027 | echo "$as_me: failed program was:" >&5 |
| 12028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12029 | |
| 12030 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12031 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12032 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12034 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12036 | fi |
| 12037 | |
| 12038 | if test -z "$llvm_cv_gnu_make_command" |
| 12039 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12040 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12041 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12042 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12045 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12046 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12047 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12048 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12049 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12050 | NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12051 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12052 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12053 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12054 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` |
| 12055 | |
| 12056 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 |
| 12057 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 12058 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12059 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12060 | |
| 12061 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12062 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12063 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12065 | else |
| 12066 | ac_check_lib_save_LIBS=$LIBS |
| 12067 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12068 | cat >conftest.$ac_ext <<_ACEOF |
| 12069 | /* confdefs.h. */ |
| 12070 | _ACEOF |
| 12071 | cat confdefs.h >>conftest.$ac_ext |
| 12072 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12073 | /* end confdefs.h. */ |
| 12074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12075 | /* Override any GCC internal prototype to avoid an error. |
| 12076 | Use char because int might match the return type of a GCC |
| 12077 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12078 | #ifdef __cplusplus |
| 12079 | extern "C" |
| 12080 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12081 | char sin (); |
| 12082 | int |
| 12083 | main () |
| 12084 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12085 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12086 | ; |
| 12087 | return 0; |
| 12088 | } |
| 12089 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12090 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12091 | if { (ac_try="$ac_link" |
| 12092 | case "(($ac_try" in |
| 12093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12094 | *) ac_try_echo=$ac_try;; |
| 12095 | esac |
| 12096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12097 | (eval "$ac_link") 2>conftest.er1 |
| 12098 | ac_status=$? |
| 12099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12100 | rm -f conftest.er1 |
| 12101 | cat conftest.err >&5 |
| 12102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12103 | (exit $ac_status); } && |
| 12104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12105 | { (case "(($ac_try" in |
| 12106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12107 | *) ac_try_echo=$ac_try;; |
| 12108 | esac |
| 12109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12110 | (eval "$ac_try") 2>&5 |
| 12111 | ac_status=$? |
| 12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12113 | (exit $ac_status); }; } && |
| 12114 | { ac_try='test -s conftest$ac_exeext' |
| 12115 | { (case "(($ac_try" in |
| 12116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12117 | *) ac_try_echo=$ac_try;; |
| 12118 | esac |
| 12119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12120 | (eval "$ac_try") 2>&5 |
| 12121 | ac_status=$? |
| 12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12123 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12124 | ac_cv_lib_m_sin=yes |
| 12125 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12126 | echo "$as_me: failed program was:" >&5 |
| 12127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12128 | |
| 12129 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12130 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12131 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12132 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12133 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12134 | LIBS=$ac_check_lib_save_LIBS |
| 12135 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12136 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12137 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12138 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12139 | cat >>confdefs.h <<_ACEOF |
| 12140 | #define HAVE_LIBM 1 |
| 12141 | _ACEOF |
| 12142 | |
| 12143 | LIBS="-lm $LIBS" |
| 12144 | |
| 12145 | fi |
| 12146 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12147 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12148 | |
| 12149 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12150 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12151 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12153 | else |
| 12154 | ac_check_lib_save_LIBS=$LIBS |
| 12155 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12156 | cat >conftest.$ac_ext <<_ACEOF |
| 12157 | /* confdefs.h. */ |
| 12158 | _ACEOF |
| 12159 | cat confdefs.h >>conftest.$ac_ext |
| 12160 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12161 | /* end confdefs.h. */ |
| 12162 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12163 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12164 | int |
| 12165 | main () |
| 12166 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12167 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12168 | ; |
| 12169 | return 0; |
| 12170 | } |
| 12171 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12173 | if { (ac_try="$ac_link" |
| 12174 | case "(($ac_try" in |
| 12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12176 | *) ac_try_echo=$ac_try;; |
| 12177 | esac |
| 12178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12179 | (eval "$ac_link") 2>conftest.er1 |
| 12180 | ac_status=$? |
| 12181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12182 | rm -f conftest.er1 |
| 12183 | cat conftest.err >&5 |
| 12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12185 | (exit $ac_status); } && |
| 12186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12187 | { (case "(($ac_try" in |
| 12188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12189 | *) ac_try_echo=$ac_try;; |
| 12190 | esac |
| 12191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12192 | (eval "$ac_try") 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); }; } && |
| 12196 | { ac_try='test -s conftest$ac_exeext' |
| 12197 | { (case "(($ac_try" in |
| 12198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12199 | *) ac_try_echo=$ac_try;; |
| 12200 | esac |
| 12201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12202 | (eval "$ac_try") 2>&5 |
| 12203 | ac_status=$? |
| 12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12205 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12206 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12207 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12208 | echo "$as_me: failed program was:" >&5 |
| 12209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12210 | |
| 12211 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12212 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12213 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12214 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12215 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12216 | LIBS=$ac_check_lib_save_LIBS |
| 12217 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12218 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12219 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12220 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12221 | cat >>confdefs.h <<_ACEOF |
| 12222 | #define HAVE_LIBIMAGEHLP 1 |
| 12223 | _ACEOF |
| 12224 | |
| 12225 | LIBS="-limagehlp $LIBS" |
| 12226 | |
| 12227 | fi |
| 12228 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12229 | |
| 12230 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12231 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12232 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12234 | else |
| 12235 | ac_check_lib_save_LIBS=$LIBS |
| 12236 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12237 | cat >conftest.$ac_ext <<_ACEOF |
| 12238 | /* confdefs.h. */ |
| 12239 | _ACEOF |
| 12240 | cat confdefs.h >>conftest.$ac_ext |
| 12241 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12242 | /* end confdefs.h. */ |
| 12243 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12244 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12245 | int |
| 12246 | main () |
| 12247 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12248 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12249 | ; |
| 12250 | return 0; |
| 12251 | } |
| 12252 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12253 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12254 | if { (ac_try="$ac_link" |
| 12255 | case "(($ac_try" in |
| 12256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12257 | *) ac_try_echo=$ac_try;; |
| 12258 | esac |
| 12259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12260 | (eval "$ac_link") 2>conftest.er1 |
| 12261 | ac_status=$? |
| 12262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12263 | rm -f conftest.er1 |
| 12264 | cat conftest.err >&5 |
| 12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12266 | (exit $ac_status); } && |
| 12267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12268 | { (case "(($ac_try" in |
| 12269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12270 | *) ac_try_echo=$ac_try;; |
| 12271 | esac |
| 12272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12273 | (eval "$ac_try") 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); }; } && |
| 12277 | { ac_try='test -s conftest$ac_exeext' |
| 12278 | { (case "(($ac_try" in |
| 12279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12280 | *) ac_try_echo=$ac_try;; |
| 12281 | esac |
| 12282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12283 | (eval "$ac_try") 2>&5 |
| 12284 | ac_status=$? |
| 12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12286 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12287 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12288 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12289 | echo "$as_me: failed program was:" >&5 |
| 12290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12291 | |
| 12292 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12293 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12294 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12295 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12296 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12297 | LIBS=$ac_check_lib_save_LIBS |
| 12298 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12299 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12300 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12301 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12302 | cat >>confdefs.h <<_ACEOF |
| 12303 | #define HAVE_LIBPSAPI 1 |
| 12304 | _ACEOF |
| 12305 | |
| 12306 | LIBS="-lpsapi $LIBS" |
| 12307 | |
| 12308 | fi |
| 12309 | |
| 12310 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12311 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12312 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12313 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12314 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12316 | else |
| 12317 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12318 | cat >conftest.$ac_ext <<_ACEOF |
| 12319 | /* confdefs.h. */ |
| 12320 | _ACEOF |
| 12321 | cat confdefs.h >>conftest.$ac_ext |
| 12322 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12323 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12325 | /* Override any GCC internal prototype to avoid an error. |
| 12326 | Use char because int might match the return type of a GCC |
| 12327 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12328 | #ifdef __cplusplus |
| 12329 | extern "C" |
| 12330 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12331 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12332 | int |
| 12333 | main () |
| 12334 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12336 | ; |
| 12337 | return 0; |
| 12338 | } |
| 12339 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12340 | for ac_lib in '' dl; do |
| 12341 | if test -z "$ac_lib"; then |
| 12342 | ac_res="none required" |
| 12343 | else |
| 12344 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12345 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12346 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12348 | if { (ac_try="$ac_link" |
| 12349 | case "(($ac_try" in |
| 12350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12351 | *) ac_try_echo=$ac_try;; |
| 12352 | esac |
| 12353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12354 | (eval "$ac_link") 2>conftest.er1 |
| 12355 | ac_status=$? |
| 12356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12357 | rm -f conftest.er1 |
| 12358 | cat conftest.err >&5 |
| 12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12360 | (exit $ac_status); } && |
| 12361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12362 | { (case "(($ac_try" in |
| 12363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12364 | *) ac_try_echo=$ac_try;; |
| 12365 | esac |
| 12366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12367 | (eval "$ac_try") 2>&5 |
| 12368 | ac_status=$? |
| 12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12370 | (exit $ac_status); }; } && |
| 12371 | { ac_try='test -s conftest$ac_exeext' |
| 12372 | { (case "(($ac_try" in |
| 12373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12374 | *) ac_try_echo=$ac_try;; |
| 12375 | esac |
| 12376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12377 | (eval "$ac_try") 2>&5 |
| 12378 | ac_status=$? |
| 12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12380 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12381 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12382 | else |
| 12383 | echo "$as_me: failed program was:" >&5 |
| 12384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12385 | |
| 12386 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12387 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12388 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12389 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12390 | conftest$ac_exeext |
| 12391 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12392 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12394 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12395 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12396 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12397 | else |
| 12398 | ac_cv_search_dlopen=no |
| 12399 | fi |
| 12400 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12401 | LIBS=$ac_func_search_save_LIBS |
| 12402 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12403 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12404 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12405 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12406 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12407 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12408 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12409 | cat >>confdefs.h <<\_ACEOF |
| 12410 | #define HAVE_DLOPEN 1 |
| 12411 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12412 | |
| 12413 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12414 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12415 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12416 | fi |
| 12417 | |
| 12418 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12419 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12420 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12421 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12422 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12424 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12425 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12426 | cat >conftest.$ac_ext <<_ACEOF |
| 12427 | /* confdefs.h. */ |
| 12428 | _ACEOF |
| 12429 | cat confdefs.h >>conftest.$ac_ext |
| 12430 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12431 | /* end confdefs.h. */ |
| 12432 | |
| 12433 | /* Override any GCC internal prototype to avoid an error. |
| 12434 | Use char because int might match the return type of a GCC |
| 12435 | builtin and then its argument prototype would still apply. */ |
| 12436 | #ifdef __cplusplus |
| 12437 | extern "C" |
| 12438 | #endif |
| 12439 | char ffi_call (); |
| 12440 | int |
| 12441 | main () |
| 12442 | { |
| 12443 | return ffi_call (); |
| 12444 | ; |
| 12445 | return 0; |
| 12446 | } |
| 12447 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12448 | for ac_lib in '' ffi; do |
| 12449 | if test -z "$ac_lib"; then |
| 12450 | ac_res="none required" |
| 12451 | else |
| 12452 | ac_res=-l$ac_lib |
| 12453 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12456 | if { (ac_try="$ac_link" |
| 12457 | case "(($ac_try" in |
| 12458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12459 | *) ac_try_echo=$ac_try;; |
| 12460 | esac |
| 12461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12462 | (eval "$ac_link") 2>conftest.er1 |
| 12463 | ac_status=$? |
| 12464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12465 | rm -f conftest.er1 |
| 12466 | cat conftest.err >&5 |
| 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12468 | (exit $ac_status); } && |
| 12469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12470 | { (case "(($ac_try" in |
| 12471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12472 | *) ac_try_echo=$ac_try;; |
| 12473 | esac |
| 12474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12475 | (eval "$ac_try") 2>&5 |
| 12476 | ac_status=$? |
| 12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12478 | (exit $ac_status); }; } && |
| 12479 | { ac_try='test -s conftest$ac_exeext' |
| 12480 | { (case "(($ac_try" in |
| 12481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12482 | *) ac_try_echo=$ac_try;; |
| 12483 | esac |
| 12484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12485 | (eval "$ac_try") 2>&5 |
| 12486 | ac_status=$? |
| 12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12488 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12489 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12490 | else |
| 12491 | echo "$as_me: failed program was:" >&5 |
| 12492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12493 | |
| 12494 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12495 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12496 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12497 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12498 | conftest$ac_exeext |
| 12499 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12500 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12501 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12502 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12503 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12504 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12505 | else |
| 12506 | ac_cv_search_ffi_call=no |
| 12507 | fi |
| 12508 | rm conftest.$ac_ext |
| 12509 | LIBS=$ac_func_search_save_LIBS |
| 12510 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12511 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12512 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12513 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12514 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12515 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12516 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12517 | cat >>confdefs.h <<\_ACEOF |
| 12518 | #define HAVE_FFI_CALL 1 |
| 12519 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12520 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12521 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12522 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12523 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12524 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12525 | fi |
| 12526 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12527 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12528 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12529 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12530 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12531 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12533 | else |
| 12534 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12535 | cat >conftest.$ac_ext <<_ACEOF |
| 12536 | /* confdefs.h. */ |
| 12537 | _ACEOF |
| 12538 | cat confdefs.h >>conftest.$ac_ext |
| 12539 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12540 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12542 | /* Override any GCC internal prototype to avoid an error. |
| 12543 | Use char because int might match the return type of a GCC |
| 12544 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12545 | #ifdef __cplusplus |
| 12546 | extern "C" |
| 12547 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12548 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12549 | int |
| 12550 | main () |
| 12551 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12552 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12553 | ; |
| 12554 | return 0; |
| 12555 | } |
| 12556 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12557 | for ac_lib in '' malloc; do |
| 12558 | if test -z "$ac_lib"; then |
| 12559 | ac_res="none required" |
| 12560 | else |
| 12561 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12562 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12564 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12565 | if { (ac_try="$ac_link" |
| 12566 | case "(($ac_try" in |
| 12567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12568 | *) ac_try_echo=$ac_try;; |
| 12569 | esac |
| 12570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12571 | (eval "$ac_link") 2>conftest.er1 |
| 12572 | ac_status=$? |
| 12573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12574 | rm -f conftest.er1 |
| 12575 | cat conftest.err >&5 |
| 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12577 | (exit $ac_status); } && |
| 12578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12579 | { (case "(($ac_try" in |
| 12580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12581 | *) ac_try_echo=$ac_try;; |
| 12582 | esac |
| 12583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12584 | (eval "$ac_try") 2>&5 |
| 12585 | ac_status=$? |
| 12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12587 | (exit $ac_status); }; } && |
| 12588 | { ac_try='test -s conftest$ac_exeext' |
| 12589 | { (case "(($ac_try" in |
| 12590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12591 | *) ac_try_echo=$ac_try;; |
| 12592 | esac |
| 12593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12594 | (eval "$ac_try") 2>&5 |
| 12595 | ac_status=$? |
| 12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12597 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12598 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12599 | else |
| 12600 | echo "$as_me: failed program was:" >&5 |
| 12601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12602 | |
| 12603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12604 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12605 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12606 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12607 | conftest$ac_exeext |
| 12608 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12609 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12611 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12612 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12613 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12614 | else |
| 12615 | ac_cv_search_mallinfo=no |
| 12616 | fi |
| 12617 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12618 | LIBS=$ac_func_search_save_LIBS |
| 12619 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12620 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12621 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12622 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12623 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12624 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12625 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12626 | cat >>confdefs.h <<\_ACEOF |
| 12627 | #define HAVE_MALLINFO 1 |
| 12628 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12629 | |
| 12630 | fi |
| 12631 | |
| 12632 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12633 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12634 | |
| 12635 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12636 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12637 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12639 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12640 | ac_check_lib_save_LIBS=$LIBS |
| 12641 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12642 | cat >conftest.$ac_ext <<_ACEOF |
| 12643 | /* confdefs.h. */ |
| 12644 | _ACEOF |
| 12645 | cat confdefs.h >>conftest.$ac_ext |
| 12646 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12647 | /* end confdefs.h. */ |
| 12648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12649 | /* Override any GCC internal prototype to avoid an error. |
| 12650 | Use char because int might match the return type of a GCC |
| 12651 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12652 | #ifdef __cplusplus |
| 12653 | extern "C" |
| 12654 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12655 | char pthread_mutex_init (); |
| 12656 | int |
| 12657 | main () |
| 12658 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12659 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12660 | ; |
| 12661 | return 0; |
| 12662 | } |
| 12663 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12665 | if { (ac_try="$ac_link" |
| 12666 | case "(($ac_try" in |
| 12667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12668 | *) ac_try_echo=$ac_try;; |
| 12669 | esac |
| 12670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12671 | (eval "$ac_link") 2>conftest.er1 |
| 12672 | ac_status=$? |
| 12673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12674 | rm -f conftest.er1 |
| 12675 | cat conftest.err >&5 |
| 12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12677 | (exit $ac_status); } && |
| 12678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12679 | { (case "(($ac_try" in |
| 12680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12681 | *) ac_try_echo=$ac_try;; |
| 12682 | esac |
| 12683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12684 | (eval "$ac_try") 2>&5 |
| 12685 | ac_status=$? |
| 12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12687 | (exit $ac_status); }; } && |
| 12688 | { ac_try='test -s conftest$ac_exeext' |
| 12689 | { (case "(($ac_try" in |
| 12690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12691 | *) ac_try_echo=$ac_try;; |
| 12692 | esac |
| 12693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12694 | (eval "$ac_try") 2>&5 |
| 12695 | ac_status=$? |
| 12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12697 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12698 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12699 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12700 | echo "$as_me: failed program was:" >&5 |
| 12701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12702 | |
| 12703 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12704 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12705 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12706 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12707 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12708 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12709 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12710 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12711 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12712 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12713 | cat >>confdefs.h <<_ACEOF |
| 12714 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12715 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12716 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12717 | LIBS="-lpthread $LIBS" |
| 12718 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12719 | fi |
| 12720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12721 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12722 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12723 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12725 | else |
| 12726 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12727 | cat >conftest.$ac_ext <<_ACEOF |
| 12728 | /* confdefs.h. */ |
| 12729 | _ACEOF |
| 12730 | cat confdefs.h >>conftest.$ac_ext |
| 12731 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12732 | /* end confdefs.h. */ |
| 12733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12734 | /* Override any GCC internal prototype to avoid an error. |
| 12735 | Use char because int might match the return type of a GCC |
| 12736 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12737 | #ifdef __cplusplus |
| 12738 | extern "C" |
| 12739 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12740 | char pthread_mutex_lock (); |
| 12741 | int |
| 12742 | main () |
| 12743 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12744 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12745 | ; |
| 12746 | return 0; |
| 12747 | } |
| 12748 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12749 | for ac_lib in '' pthread; do |
| 12750 | if test -z "$ac_lib"; then |
| 12751 | ac_res="none required" |
| 12752 | else |
| 12753 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12754 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12755 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12757 | if { (ac_try="$ac_link" |
| 12758 | case "(($ac_try" in |
| 12759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12760 | *) ac_try_echo=$ac_try;; |
| 12761 | esac |
| 12762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12763 | (eval "$ac_link") 2>conftest.er1 |
| 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && |
| 12770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12771 | { (case "(($ac_try" in |
| 12772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12773 | *) ac_try_echo=$ac_try;; |
| 12774 | esac |
| 12775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12776 | (eval "$ac_try") 2>&5 |
| 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); }; } && |
| 12780 | { ac_try='test -s conftest$ac_exeext' |
| 12781 | { (case "(($ac_try" in |
| 12782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12783 | *) ac_try_echo=$ac_try;; |
| 12784 | esac |
| 12785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12786 | (eval "$ac_try") 2>&5 |
| 12787 | ac_status=$? |
| 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12790 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12791 | else |
| 12792 | echo "$as_me: failed program was:" >&5 |
| 12793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12794 | |
| 12795 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12797 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12798 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12799 | conftest$ac_exeext |
| 12800 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12801 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12802 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12803 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12804 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12805 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | else |
| 12807 | ac_cv_search_pthread_mutex_lock=no |
| 12808 | fi |
| 12809 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12810 | LIBS=$ac_func_search_save_LIBS |
| 12811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12812 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 12813 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12814 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12815 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12816 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12818 | cat >>confdefs.h <<\_ACEOF |
| 12819 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 12820 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 12821 | |
| 12822 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12823 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12824 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 12825 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 12826 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12828 | else |
| 12829 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12830 | cat >conftest.$ac_ext <<_ACEOF |
| 12831 | /* confdefs.h. */ |
| 12832 | _ACEOF |
| 12833 | cat confdefs.h >>conftest.$ac_ext |
| 12834 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12835 | /* end confdefs.h. */ |
| 12836 | |
| 12837 | /* Override any GCC internal prototype to avoid an error. |
| 12838 | Use char because int might match the return type of a GCC |
| 12839 | builtin and then its argument prototype would still apply. */ |
| 12840 | #ifdef __cplusplus |
| 12841 | extern "C" |
| 12842 | #endif |
| 12843 | char pthread_rwlock_init (); |
| 12844 | int |
| 12845 | main () |
| 12846 | { |
| 12847 | return pthread_rwlock_init (); |
| 12848 | ; |
| 12849 | return 0; |
| 12850 | } |
| 12851 | _ACEOF |
| 12852 | for ac_lib in '' pthread; do |
| 12853 | if test -z "$ac_lib"; then |
| 12854 | ac_res="none required" |
| 12855 | else |
| 12856 | ac_res=-l$ac_lib |
| 12857 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12860 | if { (ac_try="$ac_link" |
| 12861 | case "(($ac_try" in |
| 12862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12863 | *) ac_try_echo=$ac_try;; |
| 12864 | esac |
| 12865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12866 | (eval "$ac_link") 2>conftest.er1 |
| 12867 | ac_status=$? |
| 12868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12869 | rm -f conftest.er1 |
| 12870 | cat conftest.err >&5 |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); } && |
| 12873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12874 | { (case "(($ac_try" in |
| 12875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12876 | *) ac_try_echo=$ac_try;; |
| 12877 | esac |
| 12878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12879 | (eval "$ac_try") 2>&5 |
| 12880 | ac_status=$? |
| 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12882 | (exit $ac_status); }; } && |
| 12883 | { ac_try='test -s conftest$ac_exeext' |
| 12884 | { (case "(($ac_try" in |
| 12885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12886 | *) ac_try_echo=$ac_try;; |
| 12887 | esac |
| 12888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12889 | (eval "$ac_try") 2>&5 |
| 12890 | ac_status=$? |
| 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12892 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12893 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12894 | else |
| 12895 | echo "$as_me: failed program was:" >&5 |
| 12896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12897 | |
| 12898 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12899 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12900 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12901 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12902 | conftest$ac_exeext |
| 12903 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12904 | break |
| 12905 | fi |
| 12906 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12907 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12908 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12909 | else |
| 12910 | ac_cv_search_pthread_rwlock_init=no |
| 12911 | fi |
| 12912 | rm conftest.$ac_ext |
| 12913 | LIBS=$ac_func_search_save_LIBS |
| 12914 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12915 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 12916 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12917 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12918 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12919 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12920 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12921 | cat >>confdefs.h <<\_ACEOF |
| 12922 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 12923 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 12924 | |
| 12925 | fi |
| 12926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12927 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 12928 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 12929 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 12931 | else |
| 12932 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12933 | cat >conftest.$ac_ext <<_ACEOF |
| 12934 | /* confdefs.h. */ |
| 12935 | _ACEOF |
| 12936 | cat confdefs.h >>conftest.$ac_ext |
| 12937 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 12938 | /* end confdefs.h. */ |
| 12939 | |
| 12940 | /* Override any GCC internal prototype to avoid an error. |
| 12941 | Use char because int might match the return type of a GCC |
| 12942 | builtin and then its argument prototype would still apply. */ |
| 12943 | #ifdef __cplusplus |
| 12944 | extern "C" |
| 12945 | #endif |
| 12946 | char pthread_getspecific (); |
| 12947 | int |
| 12948 | main () |
| 12949 | { |
| 12950 | return pthread_getspecific (); |
| 12951 | ; |
| 12952 | return 0; |
| 12953 | } |
| 12954 | _ACEOF |
| 12955 | for ac_lib in '' pthread; do |
| 12956 | if test -z "$ac_lib"; then |
| 12957 | ac_res="none required" |
| 12958 | else |
| 12959 | ac_res=-l$ac_lib |
| 12960 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12961 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12963 | if { (ac_try="$ac_link" |
| 12964 | case "(($ac_try" in |
| 12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12966 | *) ac_try_echo=$ac_try;; |
| 12967 | esac |
| 12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12969 | (eval "$ac_link") 2>conftest.er1 |
| 12970 | ac_status=$? |
| 12971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12972 | rm -f conftest.er1 |
| 12973 | cat conftest.err >&5 |
| 12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12975 | (exit $ac_status); } && |
| 12976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12977 | { (case "(($ac_try" in |
| 12978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12979 | *) ac_try_echo=$ac_try;; |
| 12980 | esac |
| 12981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12982 | (eval "$ac_try") 2>&5 |
| 12983 | ac_status=$? |
| 12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12985 | (exit $ac_status); }; } && |
| 12986 | { ac_try='test -s conftest$ac_exeext' |
| 12987 | { (case "(($ac_try" in |
| 12988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12989 | *) ac_try_echo=$ac_try;; |
| 12990 | esac |
| 12991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12992 | (eval "$ac_try") 2>&5 |
| 12993 | ac_status=$? |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 12996 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12997 | else |
| 12998 | echo "$as_me: failed program was:" >&5 |
| 12999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13000 | |
| 13001 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13002 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13003 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13004 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13005 | conftest$ac_exeext |
| 13006 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13007 | break |
| 13008 | fi |
| 13009 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13010 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13011 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13012 | else |
| 13013 | ac_cv_search_pthread_getspecific=no |
| 13014 | fi |
| 13015 | rm conftest.$ac_ext |
| 13016 | LIBS=$ac_func_search_save_LIBS |
| 13017 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13018 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13019 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13020 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13021 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13022 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13023 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13024 | cat >>confdefs.h <<\_ACEOF |
| 13025 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13026 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13027 | |
| 13028 | fi |
| 13029 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13030 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13031 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13032 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13033 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13034 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13035 | withval=$with_udis86; |
| 13036 | USE_UDIS86=1 |
| 13037 | |
| 13038 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13039 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13040 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13041 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13042 | |
| 13043 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13044 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13045 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13047 | else |
| 13048 | ac_check_lib_save_LIBS=$LIBS |
| 13049 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13050 | cat >conftest.$ac_ext <<_ACEOF |
| 13051 | /* confdefs.h. */ |
| 13052 | _ACEOF |
| 13053 | cat confdefs.h >>conftest.$ac_ext |
| 13054 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13055 | /* end confdefs.h. */ |
| 13056 | |
| 13057 | /* Override any GCC internal prototype to avoid an error. |
| 13058 | Use char because int might match the return type of a GCC |
| 13059 | builtin and then its argument prototype would still apply. */ |
| 13060 | #ifdef __cplusplus |
| 13061 | extern "C" |
| 13062 | #endif |
| 13063 | char ud_init (); |
| 13064 | int |
| 13065 | main () |
| 13066 | { |
| 13067 | return ud_init (); |
| 13068 | ; |
| 13069 | return 0; |
| 13070 | } |
| 13071 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13072 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13073 | if { (ac_try="$ac_link" |
| 13074 | case "(($ac_try" in |
| 13075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13076 | *) ac_try_echo=$ac_try;; |
| 13077 | esac |
| 13078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13079 | (eval "$ac_link") 2>conftest.er1 |
| 13080 | ac_status=$? |
| 13081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13082 | rm -f conftest.er1 |
| 13083 | cat conftest.err >&5 |
| 13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13085 | (exit $ac_status); } && |
| 13086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13087 | { (case "(($ac_try" in |
| 13088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13089 | *) ac_try_echo=$ac_try;; |
| 13090 | esac |
| 13091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13092 | (eval "$ac_try") 2>&5 |
| 13093 | ac_status=$? |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); }; } && |
| 13096 | { ac_try='test -s conftest$ac_exeext' |
| 13097 | { (case "(($ac_try" in |
| 13098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13099 | *) ac_try_echo=$ac_try;; |
| 13100 | esac |
| 13101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13102 | (eval "$ac_try") 2>&5 |
| 13103 | ac_status=$? |
| 13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13105 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13106 | ac_cv_lib_udis86_ud_init=yes |
| 13107 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13108 | echo "$as_me: failed program was:" >&5 |
| 13109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13110 | |
| 13111 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13113 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13114 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13115 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13116 | LIBS=$ac_check_lib_save_LIBS |
| 13117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13118 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13119 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13120 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13121 | cat >>confdefs.h <<_ACEOF |
| 13122 | #define HAVE_LIBUDIS86 1 |
| 13123 | _ACEOF |
| 13124 | |
| 13125 | LIBS="-ludis86 $LIBS" |
| 13126 | |
| 13127 | else |
| 13128 | |
| 13129 | echo "Error! You need to have libudis86 around." |
| 13130 | exit -1 |
| 13131 | |
| 13132 | fi |
| 13133 | |
| 13134 | |
| 13135 | else |
| 13136 | USE_UDIS86=0 |
| 13137 | |
| 13138 | fi |
| 13139 | |
| 13140 | |
| 13141 | cat >>confdefs.h <<_ACEOF |
| 13142 | #define USE_UDIS86 $USE_UDIS86 |
| 13143 | _ACEOF |
| 13144 | |
| 13145 | |
| 13146 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13147 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13148 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13149 | withval=$with_oprofile; |
| 13150 | USE_OPROFILE=1 |
| 13151 | |
| 13152 | case "$withval" in |
| 13153 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13154 | no) llvm_cv_oppath= |
| 13155 | USE_OPROFILE=0 |
| 13156 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13157 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
Eric Christopher | 42dffa5 | 2012-08-03 17:45:31 +0000 | [diff] [blame] | 13158 | CPPFLAGS="-I${withval}/include";; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13159 | esac |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13160 | case $llvm_cv_os_type in |
| 13161 | Linux) |
| 13162 | if test -n "$llvm_cv_oppath" ; then |
| 13163 | LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 13164 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13165 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13166 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13168 | else |
| 13169 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13170 | cat >conftest.$ac_ext <<_ACEOF |
| 13171 | /* confdefs.h. */ |
| 13172 | _ACEOF |
| 13173 | cat confdefs.h >>conftest.$ac_ext |
| 13174 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13175 | /* end confdefs.h. */ |
| 13176 | |
| 13177 | /* Override any GCC internal prototype to avoid an error. |
| 13178 | Use char because int might match the return type of a GCC |
| 13179 | builtin and then its argument prototype would still apply. */ |
| 13180 | #ifdef __cplusplus |
| 13181 | extern "C" |
| 13182 | #endif |
| 13183 | char bfd_init (); |
| 13184 | int |
| 13185 | main () |
| 13186 | { |
| 13187 | return bfd_init (); |
| 13188 | ; |
| 13189 | return 0; |
| 13190 | } |
| 13191 | _ACEOF |
| 13192 | for ac_lib in '' bfd; do |
| 13193 | if test -z "$ac_lib"; then |
| 13194 | ac_res="none required" |
| 13195 | else |
| 13196 | ac_res=-l$ac_lib |
| 13197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13198 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13199 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13200 | if { (ac_try="$ac_link" |
| 13201 | case "(($ac_try" in |
| 13202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13203 | *) ac_try_echo=$ac_try;; |
| 13204 | esac |
| 13205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13206 | (eval "$ac_link") 2>conftest.er1 |
| 13207 | ac_status=$? |
| 13208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13209 | rm -f conftest.er1 |
| 13210 | cat conftest.err >&5 |
| 13211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13212 | (exit $ac_status); } && |
| 13213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13214 | { (case "(($ac_try" in |
| 13215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13216 | *) ac_try_echo=$ac_try;; |
| 13217 | esac |
| 13218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13219 | (eval "$ac_try") 2>&5 |
| 13220 | ac_status=$? |
| 13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13222 | (exit $ac_status); }; } && |
| 13223 | { ac_try='test -s conftest$ac_exeext' |
| 13224 | { (case "(($ac_try" in |
| 13225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13226 | *) ac_try_echo=$ac_try;; |
| 13227 | esac |
| 13228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13229 | (eval "$ac_try") 2>&5 |
| 13230 | ac_status=$? |
| 13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13232 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13233 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13234 | else |
| 13235 | echo "$as_me: failed program was:" >&5 |
| 13236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13237 | |
| 13238 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13239 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13240 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13241 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13242 | conftest$ac_exeext |
| 13243 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13244 | break |
| 13245 | fi |
| 13246 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13247 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13248 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13249 | else |
| 13250 | ac_cv_search_bfd_init=no |
| 13251 | fi |
| 13252 | rm conftest.$ac_ext |
| 13253 | LIBS=$ac_func_search_save_LIBS |
| 13254 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13255 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13256 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13257 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13258 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13259 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13260 | |
| 13261 | fi |
| 13262 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13263 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13264 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13265 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13267 | else |
| 13268 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13269 | cat >conftest.$ac_ext <<_ACEOF |
| 13270 | /* confdefs.h. */ |
| 13271 | _ACEOF |
| 13272 | cat confdefs.h >>conftest.$ac_ext |
| 13273 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13274 | /* end confdefs.h. */ |
| 13275 | |
| 13276 | /* Override any GCC internal prototype to avoid an error. |
| 13277 | Use char because int might match the return type of a GCC |
| 13278 | builtin and then its argument prototype would still apply. */ |
| 13279 | #ifdef __cplusplus |
| 13280 | extern "C" |
| 13281 | #endif |
| 13282 | char op_open_agent (); |
| 13283 | int |
| 13284 | main () |
| 13285 | { |
| 13286 | return op_open_agent (); |
| 13287 | ; |
| 13288 | return 0; |
| 13289 | } |
| 13290 | _ACEOF |
| 13291 | for ac_lib in '' opagent; do |
| 13292 | if test -z "$ac_lib"; then |
| 13293 | ac_res="none required" |
| 13294 | else |
| 13295 | ac_res=-l$ac_lib |
| 13296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13297 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13299 | if { (ac_try="$ac_link" |
| 13300 | case "(($ac_try" in |
| 13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13302 | *) ac_try_echo=$ac_try;; |
| 13303 | esac |
| 13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13305 | (eval "$ac_link") 2>conftest.er1 |
| 13306 | ac_status=$? |
| 13307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13308 | rm -f conftest.er1 |
| 13309 | cat conftest.err >&5 |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13311 | (exit $ac_status); } && |
| 13312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13313 | { (case "(($ac_try" in |
| 13314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13315 | *) ac_try_echo=$ac_try;; |
| 13316 | esac |
| 13317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13318 | (eval "$ac_try") 2>&5 |
| 13319 | ac_status=$? |
| 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13321 | (exit $ac_status); }; } && |
| 13322 | { ac_try='test -s conftest$ac_exeext' |
| 13323 | { (case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_try") 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13332 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13333 | else |
| 13334 | echo "$as_me: failed program was:" >&5 |
| 13335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13336 | |
| 13337 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13339 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13340 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13341 | conftest$ac_exeext |
| 13342 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13343 | break |
| 13344 | fi |
| 13345 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13346 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13347 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13348 | else |
| 13349 | ac_cv_search_op_open_agent=no |
| 13350 | fi |
| 13351 | rm conftest.$ac_ext |
| 13352 | LIBS=$ac_func_search_save_LIBS |
| 13353 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13354 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13355 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13356 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13357 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13358 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13359 | |
| 13360 | else |
| 13361 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13362 | echo "Error! You need to have libopagent around." |
| 13363 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13364 | |
| 13365 | fi |
| 13366 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13367 | if test "${ac_cv_header_opagent_h+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13368 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13369 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13370 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13372 | fi |
| 13373 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13374 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13375 | else |
| 13376 | # Is the header compilable? |
| 13377 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13378 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13379 | cat >conftest.$ac_ext <<_ACEOF |
| 13380 | /* confdefs.h. */ |
| 13381 | _ACEOF |
| 13382 | cat confdefs.h >>conftest.$ac_ext |
| 13383 | cat >>conftest.$ac_ext <<_ACEOF |
| 13384 | /* end confdefs.h. */ |
| 13385 | $ac_includes_default |
| 13386 | #include <opagent.h> |
| 13387 | _ACEOF |
| 13388 | rm -f conftest.$ac_objext |
| 13389 | if { (ac_try="$ac_compile" |
| 13390 | case "(($ac_try" in |
| 13391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13392 | *) ac_try_echo=$ac_try;; |
| 13393 | esac |
| 13394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13395 | (eval "$ac_compile") 2>conftest.er1 |
| 13396 | ac_status=$? |
| 13397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13398 | rm -f conftest.er1 |
| 13399 | cat conftest.err >&5 |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); } && |
| 13402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13403 | { (case "(($ac_try" in |
| 13404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13405 | *) ac_try_echo=$ac_try;; |
| 13406 | esac |
| 13407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13408 | (eval "$ac_try") 2>&5 |
| 13409 | ac_status=$? |
| 13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13411 | (exit $ac_status); }; } && |
| 13412 | { ac_try='test -s conftest.$ac_objext' |
| 13413 | { (case "(($ac_try" in |
| 13414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13415 | *) ac_try_echo=$ac_try;; |
| 13416 | esac |
| 13417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13418 | (eval "$ac_try") 2>&5 |
| 13419 | ac_status=$? |
| 13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13421 | (exit $ac_status); }; }; then |
| 13422 | ac_header_compiler=yes |
| 13423 | else |
| 13424 | echo "$as_me: failed program was:" >&5 |
| 13425 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13426 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13427 | ac_header_compiler=no |
| 13428 | fi |
| 13429 | |
| 13430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13431 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13432 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13433 | |
| 13434 | # Is the header present? |
| 13435 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13436 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13437 | cat >conftest.$ac_ext <<_ACEOF |
| 13438 | /* confdefs.h. */ |
| 13439 | _ACEOF |
| 13440 | cat confdefs.h >>conftest.$ac_ext |
| 13441 | cat >>conftest.$ac_ext <<_ACEOF |
| 13442 | /* end confdefs.h. */ |
| 13443 | #include <opagent.h> |
| 13444 | _ACEOF |
| 13445 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13446 | case "(($ac_try" in |
| 13447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13448 | *) ac_try_echo=$ac_try;; |
| 13449 | esac |
| 13450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13451 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13452 | ac_status=$? |
| 13453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13454 | rm -f conftest.er1 |
| 13455 | cat conftest.err >&5 |
| 13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13457 | (exit $ac_status); } >/dev/null; then |
| 13458 | if test -s conftest.err; then |
| 13459 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13461 | else |
| 13462 | ac_cpp_err= |
| 13463 | fi |
| 13464 | else |
| 13465 | ac_cpp_err=yes |
| 13466 | fi |
| 13467 | if test -z "$ac_cpp_err"; then |
| 13468 | ac_header_preproc=yes |
| 13469 | else |
| 13470 | echo "$as_me: failed program was:" >&5 |
| 13471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13472 | |
| 13473 | ac_header_preproc=no |
| 13474 | fi |
| 13475 | |
| 13476 | rm -f conftest.err conftest.$ac_ext |
| 13477 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13478 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13479 | |
| 13480 | # So? What about this header? |
| 13481 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13482 | yes:no: ) |
| 13483 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13484 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13485 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13486 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13487 | ac_header_preproc=yes |
| 13488 | ;; |
| 13489 | no:yes:* ) |
| 13490 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13491 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13492 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13493 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13494 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13495 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13496 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13497 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13498 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13499 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13500 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13501 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13502 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13503 | ## ------------------------------------ ## |
| 13504 | ## Report this to http://llvm.org/bugs/ ## |
| 13505 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13506 | _ASBOX |
| 13507 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13508 | ;; |
| 13509 | esac |
| 13510 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13511 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13512 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13514 | else |
| 13515 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13516 | fi |
| 13517 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13518 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13519 | |
| 13520 | fi |
| 13521 | if test $ac_cv_header_opagent_h = yes; then |
| 13522 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13523 | else |
| 13524 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13525 | echo "Error! You need to have opagent.h around." |
| 13526 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13527 | |
| 13528 | fi |
| 13529 | |
| 13530 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13531 | fi ;; |
| 13532 | *) |
| 13533 | { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 |
| 13534 | echo "$as_me: error: OProfile support is available on Linux only." >&2;} |
| 13535 | { (exit 1); exit 1; }; } ;; |
| 13536 | esac |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13537 | |
| 13538 | else |
| 13539 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13540 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13541 | |
| 13542 | |
| 13543 | fi |
| 13544 | |
| 13545 | |
| 13546 | cat >>confdefs.h <<_ACEOF |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13547 | #define LLVM_USE_OPROFILE $USE_OPROFILE |
| 13548 | _ACEOF |
| 13549 | |
| 13550 | |
| 13551 | |
| 13552 | # Check whether --with-intel-jitevents was given. |
| 13553 | if test "${with_intel_jitevents+set}" = set; then |
| 13554 | withval=$with_intel_jitevents; |
| 13555 | case $llvm_cv_os_type in |
| 13556 | Linux|Win32|Cygwin|MingW) ;; |
| 13557 | *) |
| 13558 | { { echo "$as_me:$LINENO: error: |
| 13559 | Intel JIT API support is available on Linux and Windows only.\"" >&5 |
| 13560 | echo "$as_me: error: |
| 13561 | Intel JIT API support is available on Linux and Windows only.\"" >&2;} |
| 13562 | { (exit 1); exit 1; }; } ;; |
| 13563 | esac |
| 13564 | |
| 13565 | USE_INTEL_JITEVENTS=1 |
| 13566 | |
| 13567 | case "$llvm_cv_target_arch" in |
| 13568 | x86) llvm_intel_jitevents_archdir="lib32";; |
| 13569 | x86_64) llvm_intel_jitevents_archdir="lib64";; |
| 13570 | *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" |
| 13571 | exit -1;; |
| 13572 | esac |
| 13573 | INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" |
| 13574 | INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" |
| 13575 | case "$withval" in |
| 13576 | /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include |
| 13577 | INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; |
| 13578 | *) ;; |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13579 | esac |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" |
Eric Christopher | 42dffa5 | 2012-08-03 17:45:31 +0000 | [diff] [blame] | 13585 | CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13586 | |
| 13587 | { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 |
| 13588 | echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } |
| 13589 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then |
| 13590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13591 | else |
| 13592 | ac_func_search_save_LIBS=$LIBS |
| 13593 | cat >conftest.$ac_ext <<_ACEOF |
| 13594 | /* confdefs.h. */ |
| 13595 | _ACEOF |
| 13596 | cat confdefs.h >>conftest.$ac_ext |
| 13597 | cat >>conftest.$ac_ext <<_ACEOF |
| 13598 | /* end confdefs.h. */ |
| 13599 | |
| 13600 | /* Override any GCC internal prototype to avoid an error. |
| 13601 | Use char because int might match the return type of a GCC |
| 13602 | builtin and then its argument prototype would still apply. */ |
| 13603 | #ifdef __cplusplus |
| 13604 | extern "C" |
| 13605 | #endif |
| 13606 | char iJIT_IsProfilingActive (); |
| 13607 | int |
| 13608 | main () |
| 13609 | { |
| 13610 | return iJIT_IsProfilingActive (); |
| 13611 | ; |
| 13612 | return 0; |
| 13613 | } |
| 13614 | _ACEOF |
| 13615 | for ac_lib in '' jitprofiling; do |
| 13616 | if test -z "$ac_lib"; then |
| 13617 | ac_res="none required" |
| 13618 | else |
| 13619 | ac_res=-l$ac_lib |
| 13620 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13621 | fi |
| 13622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13623 | if { (ac_try="$ac_link" |
| 13624 | case "(($ac_try" in |
| 13625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13626 | *) ac_try_echo=$ac_try;; |
| 13627 | esac |
| 13628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13629 | (eval "$ac_link") 2>conftest.er1 |
| 13630 | ac_status=$? |
| 13631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13632 | rm -f conftest.er1 |
| 13633 | cat conftest.err >&5 |
| 13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13635 | (exit $ac_status); } && |
| 13636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13637 | { (case "(($ac_try" in |
| 13638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13639 | *) ac_try_echo=$ac_try;; |
| 13640 | esac |
| 13641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13642 | (eval "$ac_try") 2>&5 |
| 13643 | ac_status=$? |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); }; } && |
| 13646 | { ac_try='test -s conftest$ac_exeext' |
| 13647 | { (case "(($ac_try" in |
| 13648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13649 | *) ac_try_echo=$ac_try;; |
| 13650 | esac |
| 13651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13652 | (eval "$ac_try") 2>&5 |
| 13653 | ac_status=$? |
| 13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13655 | (exit $ac_status); }; }; then |
| 13656 | ac_cv_search_iJIT_IsProfilingActive=$ac_res |
| 13657 | else |
| 13658 | echo "$as_me: failed program was:" >&5 |
| 13659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13660 | |
| 13661 | |
| 13662 | fi |
| 13663 | |
| 13664 | rm -f core conftest.err conftest.$ac_objext \ |
| 13665 | conftest$ac_exeext |
| 13666 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then |
| 13667 | break |
| 13668 | fi |
| 13669 | done |
| 13670 | if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then |
| 13671 | : |
| 13672 | else |
| 13673 | ac_cv_search_iJIT_IsProfilingActive=no |
| 13674 | fi |
| 13675 | rm conftest.$ac_ext |
| 13676 | LIBS=$ac_func_search_save_LIBS |
| 13677 | fi |
| 13678 | { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 |
| 13679 | echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } |
| 13680 | ac_res=$ac_cv_search_iJIT_IsProfilingActive |
| 13681 | if test "$ac_res" != no; then |
| 13682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13683 | |
| 13684 | else |
| 13685 | |
| 13686 | echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" |
| 13687 | exit -1 |
| 13688 | |
| 13689 | fi |
| 13690 | |
| 13691 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then |
| 13692 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 |
| 13693 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } |
| 13694 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then |
| 13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13696 | fi |
| 13697 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 |
| 13698 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } |
| 13699 | else |
| 13700 | # Is the header compilable? |
| 13701 | { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 |
| 13702 | echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } |
| 13703 | cat >conftest.$ac_ext <<_ACEOF |
| 13704 | /* confdefs.h. */ |
| 13705 | _ACEOF |
| 13706 | cat confdefs.h >>conftest.$ac_ext |
| 13707 | cat >>conftest.$ac_ext <<_ACEOF |
| 13708 | /* end confdefs.h. */ |
| 13709 | $ac_includes_default |
| 13710 | #include <jitprofiling.h> |
| 13711 | _ACEOF |
| 13712 | rm -f conftest.$ac_objext |
| 13713 | if { (ac_try="$ac_compile" |
| 13714 | case "(($ac_try" in |
| 13715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13716 | *) ac_try_echo=$ac_try;; |
| 13717 | esac |
| 13718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13719 | (eval "$ac_compile") 2>conftest.er1 |
| 13720 | ac_status=$? |
| 13721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13722 | rm -f conftest.er1 |
| 13723 | cat conftest.err >&5 |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); } && |
| 13726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13727 | { (case "(($ac_try" in |
| 13728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13729 | *) ac_try_echo=$ac_try;; |
| 13730 | esac |
| 13731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13732 | (eval "$ac_try") 2>&5 |
| 13733 | ac_status=$? |
| 13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13735 | (exit $ac_status); }; } && |
| 13736 | { ac_try='test -s conftest.$ac_objext' |
| 13737 | { (case "(($ac_try" in |
| 13738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13739 | *) ac_try_echo=$ac_try;; |
| 13740 | esac |
| 13741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13742 | (eval "$ac_try") 2>&5 |
| 13743 | ac_status=$? |
| 13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13745 | (exit $ac_status); }; }; then |
| 13746 | ac_header_compiler=yes |
| 13747 | else |
| 13748 | echo "$as_me: failed program was:" >&5 |
| 13749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13750 | |
| 13751 | ac_header_compiler=no |
| 13752 | fi |
| 13753 | |
| 13754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13755 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13756 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13757 | |
| 13758 | # Is the header present? |
| 13759 | { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 |
| 13760 | echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } |
| 13761 | cat >conftest.$ac_ext <<_ACEOF |
| 13762 | /* confdefs.h. */ |
| 13763 | _ACEOF |
| 13764 | cat confdefs.h >>conftest.$ac_ext |
| 13765 | cat >>conftest.$ac_ext <<_ACEOF |
| 13766 | /* end confdefs.h. */ |
| 13767 | #include <jitprofiling.h> |
| 13768 | _ACEOF |
| 13769 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13770 | case "(($ac_try" in |
| 13771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13772 | *) ac_try_echo=$ac_try;; |
| 13773 | esac |
| 13774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13775 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13776 | ac_status=$? |
| 13777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13778 | rm -f conftest.er1 |
| 13779 | cat conftest.err >&5 |
| 13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13781 | (exit $ac_status); } >/dev/null; then |
| 13782 | if test -s conftest.err; then |
| 13783 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13784 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13785 | else |
| 13786 | ac_cpp_err= |
| 13787 | fi |
| 13788 | else |
| 13789 | ac_cpp_err=yes |
| 13790 | fi |
| 13791 | if test -z "$ac_cpp_err"; then |
| 13792 | ac_header_preproc=yes |
| 13793 | else |
| 13794 | echo "$as_me: failed program was:" >&5 |
| 13795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13796 | |
| 13797 | ac_header_preproc=no |
| 13798 | fi |
| 13799 | |
| 13800 | rm -f conftest.err conftest.$ac_ext |
| 13801 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13802 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13803 | |
| 13804 | # So? What about this header? |
| 13805 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13806 | yes:no: ) |
| 13807 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13808 | echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13809 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 |
| 13810 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} |
| 13811 | ac_header_preproc=yes |
| 13812 | ;; |
| 13813 | no:yes:* ) |
| 13814 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 |
| 13815 | echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} |
| 13816 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5 |
| 13817 | echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;} |
| 13818 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 |
| 13819 | echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} |
| 13820 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13821 | echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13822 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 |
| 13823 | echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} |
| 13824 | { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 |
| 13825 | echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} |
| 13826 | ( cat <<\_ASBOX |
| 13827 | ## ------------------------------------ ## |
| 13828 | ## Report this to http://llvm.org/bugs/ ## |
| 13829 | ## ------------------------------------ ## |
| 13830 | _ASBOX |
| 13831 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13832 | ;; |
| 13833 | esac |
| 13834 | { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 |
| 13835 | echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } |
| 13836 | if test "${ac_cv_header_jitprofiling_h+set}" = set; then |
| 13837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13838 | else |
| 13839 | ac_cv_header_jitprofiling_h=$ac_header_preproc |
| 13840 | fi |
| 13841 | { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 |
| 13842 | echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } |
| 13843 | |
| 13844 | fi |
| 13845 | if test $ac_cv_header_jitprofiling_h = yes; then |
| 13846 | : |
| 13847 | else |
| 13848 | |
| 13849 | echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" |
| 13850 | exit -1 |
| 13851 | |
| 13852 | fi |
| 13853 | |
| 13854 | |
| 13855 | |
| 13856 | |
| 13857 | else |
| 13858 | |
| 13859 | USE_INTEL_JITEVENTS=0 |
| 13860 | |
| 13861 | |
| 13862 | fi |
| 13863 | |
| 13864 | |
| 13865 | cat >>confdefs.h <<_ACEOF |
| 13866 | #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13867 | _ACEOF |
| 13868 | |
| 13869 | |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 13870 | for ac_prog in xml2-config |
| 13871 | do |
| 13872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13873 | set dummy $ac_prog; ac_word=$2 |
| 13874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13876 | if test "${ac_cv_prog_XML2CONFIG+set}" = set; then |
| 13877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13878 | else |
| 13879 | if test -n "$XML2CONFIG"; then |
| 13880 | ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. |
| 13881 | else |
| 13882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13883 | for as_dir in $PATH |
| 13884 | do |
| 13885 | IFS=$as_save_IFS |
| 13886 | test -z "$as_dir" && as_dir=. |
| 13887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13889 | ac_cv_prog_XML2CONFIG="$ac_prog" |
| 13890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13891 | break 2 |
| 13892 | fi |
| 13893 | done |
| 13894 | done |
| 13895 | IFS=$as_save_IFS |
| 13896 | |
| 13897 | fi |
| 13898 | fi |
| 13899 | XML2CONFIG=$ac_cv_prog_XML2CONFIG |
| 13900 | if test -n "$XML2CONFIG"; then |
| 13901 | { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 |
| 13902 | echo "${ECHO_T}$XML2CONFIG" >&6; } |
| 13903 | else |
| 13904 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13905 | echo "${ECHO_T}no" >&6; } |
| 13906 | fi |
| 13907 | |
| 13908 | |
| 13909 | test -n "$XML2CONFIG" && break |
| 13910 | done |
| 13911 | |
| 13912 | |
| 13913 | { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 |
| 13914 | echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } |
| 13915 | if test "x$XML2CONFIG" = "x"; then |
| 13916 | { echo "$as_me:$LINENO: result: xml2-config not found" >&5 |
| 13917 | echo "${ECHO_T}xml2-config not found" >&6; } |
| 13918 | else |
| 13919 | LIBXML2_INC=`$XML2CONFIG --cflags` |
| 13920 | { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 |
| 13921 | echo "${ECHO_T}$LIBXML2_INC" >&6; } |
| 13922 | { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 |
| 13923 | echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } |
| 13924 | if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then |
| 13925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13926 | else |
| 13927 | ac_check_lib_save_LIBS=$LIBS |
| 13928 | LIBS="-lxml2 $LIBS" |
| 13929 | cat >conftest.$ac_ext <<_ACEOF |
| 13930 | /* confdefs.h. */ |
| 13931 | _ACEOF |
| 13932 | cat confdefs.h >>conftest.$ac_ext |
| 13933 | cat >>conftest.$ac_ext <<_ACEOF |
| 13934 | /* end confdefs.h. */ |
| 13935 | |
| 13936 | /* Override any GCC internal prototype to avoid an error. |
| 13937 | Use char because int might match the return type of a GCC |
| 13938 | builtin and then its argument prototype would still apply. */ |
| 13939 | #ifdef __cplusplus |
| 13940 | extern "C" |
| 13941 | #endif |
| 13942 | char xmlReadFile (); |
| 13943 | int |
| 13944 | main () |
| 13945 | { |
| 13946 | return xmlReadFile (); |
| 13947 | ; |
| 13948 | return 0; |
| 13949 | } |
| 13950 | _ACEOF |
| 13951 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13952 | if { (ac_try="$ac_link" |
| 13953 | case "(($ac_try" in |
| 13954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13955 | *) ac_try_echo=$ac_try;; |
| 13956 | esac |
| 13957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13958 | (eval "$ac_link") 2>conftest.er1 |
| 13959 | ac_status=$? |
| 13960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13961 | rm -f conftest.er1 |
| 13962 | cat conftest.err >&5 |
| 13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13964 | (exit $ac_status); } && |
| 13965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13966 | { (case "(($ac_try" in |
| 13967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13968 | *) ac_try_echo=$ac_try;; |
| 13969 | esac |
| 13970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13971 | (eval "$ac_try") 2>&5 |
| 13972 | ac_status=$? |
| 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13974 | (exit $ac_status); }; } && |
| 13975 | { ac_try='test -s conftest$ac_exeext' |
| 13976 | { (case "(($ac_try" in |
| 13977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13978 | *) ac_try_echo=$ac_try;; |
| 13979 | esac |
| 13980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13981 | (eval "$ac_try") 2>&5 |
| 13982 | ac_status=$? |
| 13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13984 | (exit $ac_status); }; }; then |
| 13985 | ac_cv_lib_xml2_xmlReadFile=yes |
| 13986 | else |
| 13987 | echo "$as_me: failed program was:" >&5 |
| 13988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13989 | |
| 13990 | ac_cv_lib_xml2_xmlReadFile=no |
| 13991 | fi |
| 13992 | |
| 13993 | rm -f core conftest.err conftest.$ac_objext \ |
| 13994 | conftest$ac_exeext conftest.$ac_ext |
| 13995 | LIBS=$ac_check_lib_save_LIBS |
| 13996 | fi |
| 13997 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 |
| 13998 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } |
| 13999 | if test $ac_cv_lib_xml2_xmlReadFile = yes; then |
| 14000 | |
| 14001 | cat >>confdefs.h <<\_ACEOF |
| 14002 | #define CLANG_HAVE_LIBXML 1 |
| 14003 | _ACEOF |
| 14004 | |
| 14005 | LIBXML2_LIBS="-lxml2" |
| 14006 | fi |
| 14007 | |
| 14008 | fi |
| 14009 | |
| 14010 | |
| 14011 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14012 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14013 | |
| 14014 | |
| 14015 | |
| 14016 | |
| 14017 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14018 | ac_header_dirent=no |
| 14019 | 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] | 14020 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14021 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14022 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14025 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14026 | cat >conftest.$ac_ext <<_ACEOF |
| 14027 | /* confdefs.h. */ |
| 14028 | _ACEOF |
| 14029 | cat confdefs.h >>conftest.$ac_ext |
| 14030 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14031 | /* end confdefs.h. */ |
| 14032 | #include <sys/types.h> |
| 14033 | #include <$ac_hdr> |
| 14034 | |
| 14035 | int |
| 14036 | main () |
| 14037 | { |
| 14038 | if ((DIR *) 0) |
| 14039 | return 0; |
| 14040 | ; |
| 14041 | return 0; |
| 14042 | } |
| 14043 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14044 | rm -f conftest.$ac_objext |
| 14045 | if { (ac_try="$ac_compile" |
| 14046 | case "(($ac_try" in |
| 14047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14048 | *) ac_try_echo=$ac_try;; |
| 14049 | esac |
| 14050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14051 | (eval "$ac_compile") 2>conftest.er1 |
| 14052 | ac_status=$? |
| 14053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14054 | rm -f conftest.er1 |
| 14055 | cat conftest.err >&5 |
| 14056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14057 | (exit $ac_status); } && |
| 14058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14059 | { (case "(($ac_try" in |
| 14060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14061 | *) ac_try_echo=$ac_try;; |
| 14062 | esac |
| 14063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14064 | (eval "$ac_try") 2>&5 |
| 14065 | ac_status=$? |
| 14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14067 | (exit $ac_status); }; } && |
| 14068 | { ac_try='test -s conftest.$ac_objext' |
| 14069 | { (case "(($ac_try" in |
| 14070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14071 | *) ac_try_echo=$ac_try;; |
| 14072 | esac |
| 14073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14074 | (eval "$ac_try") 2>&5 |
| 14075 | ac_status=$? |
| 14076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14077 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14078 | eval "$as_ac_Header=yes" |
| 14079 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14080 | echo "$as_me: failed program was:" >&5 |
| 14081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14082 | |
| 14083 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14084 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14087 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14088 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14089 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14090 | echo "${ECHO_T}$ac_res" >&6; } |
| 14091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14092 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14093 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14094 | _ACEOF |
| 14095 | |
| 14096 | ac_header_dirent=$ac_hdr; break |
| 14097 | fi |
| 14098 | |
| 14099 | done |
| 14100 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14101 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14102 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14103 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14104 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14106 | else |
| 14107 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14108 | cat >conftest.$ac_ext <<_ACEOF |
| 14109 | /* confdefs.h. */ |
| 14110 | _ACEOF |
| 14111 | cat confdefs.h >>conftest.$ac_ext |
| 14112 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14113 | /* end confdefs.h. */ |
| 14114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14115 | /* Override any GCC internal prototype to avoid an error. |
| 14116 | Use char because int might match the return type of a GCC |
| 14117 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14118 | #ifdef __cplusplus |
| 14119 | extern "C" |
| 14120 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14121 | char opendir (); |
| 14122 | int |
| 14123 | main () |
| 14124 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14125 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14126 | ; |
| 14127 | return 0; |
| 14128 | } |
| 14129 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14130 | for ac_lib in '' dir; do |
| 14131 | if test -z "$ac_lib"; then |
| 14132 | ac_res="none required" |
| 14133 | else |
| 14134 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14135 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14136 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14138 | if { (ac_try="$ac_link" |
| 14139 | case "(($ac_try" in |
| 14140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14141 | *) ac_try_echo=$ac_try;; |
| 14142 | esac |
| 14143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14144 | (eval "$ac_link") 2>conftest.er1 |
| 14145 | ac_status=$? |
| 14146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14147 | rm -f conftest.er1 |
| 14148 | cat conftest.err >&5 |
| 14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14150 | (exit $ac_status); } && |
| 14151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14152 | { (case "(($ac_try" in |
| 14153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14154 | *) ac_try_echo=$ac_try;; |
| 14155 | esac |
| 14156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14157 | (eval "$ac_try") 2>&5 |
| 14158 | ac_status=$? |
| 14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14160 | (exit $ac_status); }; } && |
| 14161 | { ac_try='test -s conftest$ac_exeext' |
| 14162 | { (case "(($ac_try" in |
| 14163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14164 | *) ac_try_echo=$ac_try;; |
| 14165 | esac |
| 14166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14167 | (eval "$ac_try") 2>&5 |
| 14168 | ac_status=$? |
| 14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14170 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14171 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14172 | else |
| 14173 | echo "$as_me: failed program was:" >&5 |
| 14174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14175 | |
| 14176 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14177 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14178 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14179 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14180 | conftest$ac_exeext |
| 14181 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14182 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14184 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14185 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14186 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14187 | else |
| 14188 | ac_cv_search_opendir=no |
| 14189 | fi |
| 14190 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14191 | LIBS=$ac_func_search_save_LIBS |
| 14192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14193 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14194 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14195 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14196 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14197 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14198 | |
| 14199 | fi |
| 14200 | |
| 14201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14202 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14203 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14204 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14206 | else |
| 14207 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14208 | cat >conftest.$ac_ext <<_ACEOF |
| 14209 | /* confdefs.h. */ |
| 14210 | _ACEOF |
| 14211 | cat confdefs.h >>conftest.$ac_ext |
| 14212 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14213 | /* end confdefs.h. */ |
| 14214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14215 | /* Override any GCC internal prototype to avoid an error. |
| 14216 | Use char because int might match the return type of a GCC |
| 14217 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14218 | #ifdef __cplusplus |
| 14219 | extern "C" |
| 14220 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14221 | char opendir (); |
| 14222 | int |
| 14223 | main () |
| 14224 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14225 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14226 | ; |
| 14227 | return 0; |
| 14228 | } |
| 14229 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14230 | for ac_lib in '' x; do |
| 14231 | if test -z "$ac_lib"; then |
| 14232 | ac_res="none required" |
| 14233 | else |
| 14234 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14235 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14236 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14238 | if { (ac_try="$ac_link" |
| 14239 | case "(($ac_try" in |
| 14240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14241 | *) ac_try_echo=$ac_try;; |
| 14242 | esac |
| 14243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14244 | (eval "$ac_link") 2>conftest.er1 |
| 14245 | ac_status=$? |
| 14246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14247 | rm -f conftest.er1 |
| 14248 | cat conftest.err >&5 |
| 14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14250 | (exit $ac_status); } && |
| 14251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14252 | { (case "(($ac_try" in |
| 14253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14254 | *) ac_try_echo=$ac_try;; |
| 14255 | esac |
| 14256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14257 | (eval "$ac_try") 2>&5 |
| 14258 | ac_status=$? |
| 14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14260 | (exit $ac_status); }; } && |
| 14261 | { ac_try='test -s conftest$ac_exeext' |
| 14262 | { (case "(($ac_try" in |
| 14263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14264 | *) ac_try_echo=$ac_try;; |
| 14265 | esac |
| 14266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14267 | (eval "$ac_try") 2>&5 |
| 14268 | ac_status=$? |
| 14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14270 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14271 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14272 | else |
| 14273 | echo "$as_me: failed program was:" >&5 |
| 14274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14275 | |
| 14276 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14278 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14279 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14280 | conftest$ac_exeext |
| 14281 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14282 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14283 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14284 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14285 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14286 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14287 | else |
| 14288 | ac_cv_search_opendir=no |
| 14289 | fi |
| 14290 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14291 | LIBS=$ac_func_search_save_LIBS |
| 14292 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14293 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14294 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14295 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14296 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14297 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14298 | |
| 14299 | fi |
| 14300 | |
| 14301 | fi |
| 14302 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14303 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14304 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14305 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14307 | else |
| 14308 | ac_ext=c |
| 14309 | ac_cpp='$CPP $CPPFLAGS' |
| 14310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14313 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14314 | cat >conftest.$ac_ext <<_ACEOF |
| 14315 | /* confdefs.h. */ |
| 14316 | _ACEOF |
| 14317 | cat confdefs.h >>conftest.$ac_ext |
| 14318 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14319 | /* end confdefs.h. */ |
| 14320 | #include <sys/mman.h> |
| 14321 | #include <unistd.h> |
| 14322 | #include <fcntl.h> |
| 14323 | int |
| 14324 | main () |
| 14325 | { |
| 14326 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14327 | ; |
| 14328 | return 0; |
| 14329 | } |
| 14330 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14331 | rm -f conftest.$ac_objext |
| 14332 | if { (ac_try="$ac_compile" |
| 14333 | case "(($ac_try" in |
| 14334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14335 | *) ac_try_echo=$ac_try;; |
| 14336 | esac |
| 14337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14338 | (eval "$ac_compile") 2>conftest.er1 |
| 14339 | ac_status=$? |
| 14340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14341 | rm -f conftest.er1 |
| 14342 | cat conftest.err >&5 |
| 14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14344 | (exit $ac_status); } && |
| 14345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14346 | { (case "(($ac_try" in |
| 14347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14348 | *) ac_try_echo=$ac_try;; |
| 14349 | esac |
| 14350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14351 | (eval "$ac_try") 2>&5 |
| 14352 | ac_status=$? |
| 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); }; } && |
| 14355 | { ac_try='test -s conftest.$ac_objext' |
| 14356 | { (case "(($ac_try" in |
| 14357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14358 | *) ac_try_echo=$ac_try;; |
| 14359 | esac |
| 14360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14361 | (eval "$ac_try") 2>&5 |
| 14362 | ac_status=$? |
| 14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14364 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14365 | ac_cv_header_mmap_anon=yes |
| 14366 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14367 | echo "$as_me: failed program was:" >&5 |
| 14368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14369 | |
| 14370 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14371 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14374 | ac_ext=c |
| 14375 | ac_cpp='$CPP $CPPFLAGS' |
| 14376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14379 | |
| 14380 | |
| 14381 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14382 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14383 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14384 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14385 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14386 | cat >>confdefs.h <<\_ACEOF |
| 14387 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14388 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14389 | |
| 14390 | fi |
| 14391 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14392 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14393 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14394 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14396 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14397 | cat >conftest.$ac_ext <<_ACEOF |
| 14398 | /* confdefs.h. */ |
| 14399 | _ACEOF |
| 14400 | cat confdefs.h >>conftest.$ac_ext |
| 14401 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14402 | /* end confdefs.h. */ |
| 14403 | #include <sys/types.h> |
| 14404 | #include <sys/stat.h> |
| 14405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14406 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14407 | # if S_ISBLK (S_IFDIR) |
| 14408 | You lose. |
| 14409 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14410 | #endif |
| 14411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14412 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14413 | # if S_ISBLK (S_IFCHR) |
| 14414 | You lose. |
| 14415 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14416 | #endif |
| 14417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14418 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14419 | # if S_ISLNK (S_IFREG) |
| 14420 | You lose. |
| 14421 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14422 | #endif |
| 14423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14424 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14425 | # if S_ISSOCK (S_IFREG) |
| 14426 | You lose. |
| 14427 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14428 | #endif |
| 14429 | |
| 14430 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14432 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14433 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14434 | else |
| 14435 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14437 | rm -f conftest* |
| 14438 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14439 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14440 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14441 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14442 | if test $ac_cv_header_stat_broken = yes; then |
| 14443 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14444 | cat >>confdefs.h <<\_ACEOF |
| 14445 | #define STAT_MACROS_BROKEN 1 |
| 14446 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14447 | |
| 14448 | fi |
| 14449 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14450 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14451 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14452 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14454 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14455 | cat >conftest.$ac_ext <<_ACEOF |
| 14456 | /* confdefs.h. */ |
| 14457 | _ACEOF |
| 14458 | cat confdefs.h >>conftest.$ac_ext |
| 14459 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14460 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14461 | #include <sys/types.h> |
| 14462 | #include <sys/wait.h> |
| 14463 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14464 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14465 | #endif |
| 14466 | #ifndef WIFEXITED |
| 14467 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14468 | #endif |
| 14469 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14470 | int |
| 14471 | main () |
| 14472 | { |
| 14473 | int s; |
| 14474 | wait (&s); |
| 14475 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14476 | ; |
| 14477 | return 0; |
| 14478 | } |
| 14479 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14480 | rm -f conftest.$ac_objext |
| 14481 | if { (ac_try="$ac_compile" |
| 14482 | case "(($ac_try" in |
| 14483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14484 | *) ac_try_echo=$ac_try;; |
| 14485 | esac |
| 14486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14487 | (eval "$ac_compile") 2>conftest.er1 |
| 14488 | ac_status=$? |
| 14489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14490 | rm -f conftest.er1 |
| 14491 | cat conftest.err >&5 |
| 14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14493 | (exit $ac_status); } && |
| 14494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14495 | { (case "(($ac_try" in |
| 14496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14497 | *) ac_try_echo=$ac_try;; |
| 14498 | esac |
| 14499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14500 | (eval "$ac_try") 2>&5 |
| 14501 | ac_status=$? |
| 14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14503 | (exit $ac_status); }; } && |
| 14504 | { ac_try='test -s conftest.$ac_objext' |
| 14505 | { (case "(($ac_try" in |
| 14506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14507 | *) ac_try_echo=$ac_try;; |
| 14508 | esac |
| 14509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14510 | (eval "$ac_try") 2>&5 |
| 14511 | ac_status=$? |
| 14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14513 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14514 | ac_cv_header_sys_wait_h=yes |
| 14515 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14516 | echo "$as_me: failed program was:" >&5 |
| 14517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14518 | |
| 14519 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14520 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14523 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14524 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14525 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14526 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14527 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14528 | cat >>confdefs.h <<\_ACEOF |
| 14529 | #define HAVE_SYS_WAIT_H 1 |
| 14530 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14531 | |
| 14532 | fi |
| 14533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14534 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14535 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14536 | if test "${ac_cv_header_time+set}" = set; then |
| 14537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14538 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14539 | cat >conftest.$ac_ext <<_ACEOF |
| 14540 | /* confdefs.h. */ |
| 14541 | _ACEOF |
| 14542 | cat confdefs.h >>conftest.$ac_ext |
| 14543 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14544 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14545 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14546 | #include <sys/time.h> |
| 14547 | #include <time.h> |
| 14548 | |
| 14549 | int |
| 14550 | main () |
| 14551 | { |
| 14552 | if ((struct tm *) 0) |
| 14553 | return 0; |
| 14554 | ; |
| 14555 | return 0; |
| 14556 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14557 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14558 | rm -f conftest.$ac_objext |
| 14559 | if { (ac_try="$ac_compile" |
| 14560 | case "(($ac_try" in |
| 14561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14562 | *) ac_try_echo=$ac_try;; |
| 14563 | esac |
| 14564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14565 | (eval "$ac_compile") 2>conftest.er1 |
| 14566 | ac_status=$? |
| 14567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14568 | rm -f conftest.er1 |
| 14569 | cat conftest.err >&5 |
| 14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14571 | (exit $ac_status); } && |
| 14572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14573 | { (case "(($ac_try" in |
| 14574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14575 | *) ac_try_echo=$ac_try;; |
| 14576 | esac |
| 14577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14578 | (eval "$ac_try") 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); }; } && |
| 14582 | { ac_try='test -s conftest.$ac_objext' |
| 14583 | { (case "(($ac_try" in |
| 14584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14585 | *) ac_try_echo=$ac_try;; |
| 14586 | esac |
| 14587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14588 | (eval "$ac_try") 2>&5 |
| 14589 | ac_status=$? |
| 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14591 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14592 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14593 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14594 | echo "$as_me: failed program was:" >&5 |
| 14595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14596 | |
| 14597 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14598 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14601 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14602 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14603 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14604 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14605 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14606 | cat >>confdefs.h <<\_ACEOF |
| 14607 | #define TIME_WITH_SYS_TIME 1 |
| 14608 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14609 | |
| 14610 | fi |
| 14611 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14612 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14613 | |
| 14614 | |
| 14615 | |
| 14616 | |
| 14617 | |
| 14618 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14619 | 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] | 14620 | do |
| 14621 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14623 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14624 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14627 | fi |
| 14628 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14630 | echo "${ECHO_T}$ac_res" >&6; } |
| 14631 | else |
| 14632 | # Is the header compilable? |
| 14633 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14634 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14635 | cat >conftest.$ac_ext <<_ACEOF |
| 14636 | /* confdefs.h. */ |
| 14637 | _ACEOF |
| 14638 | cat confdefs.h >>conftest.$ac_ext |
| 14639 | cat >>conftest.$ac_ext <<_ACEOF |
| 14640 | /* end confdefs.h. */ |
| 14641 | $ac_includes_default |
| 14642 | #include <$ac_header> |
| 14643 | _ACEOF |
| 14644 | rm -f conftest.$ac_objext |
| 14645 | if { (ac_try="$ac_compile" |
| 14646 | case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_compile") 2>conftest.er1 |
| 14652 | ac_status=$? |
| 14653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14654 | rm -f conftest.er1 |
| 14655 | cat conftest.err >&5 |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); } && |
| 14658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14659 | { (case "(($ac_try" in |
| 14660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14661 | *) ac_try_echo=$ac_try;; |
| 14662 | esac |
| 14663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14664 | (eval "$ac_try") 2>&5 |
| 14665 | ac_status=$? |
| 14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14667 | (exit $ac_status); }; } && |
| 14668 | { ac_try='test -s conftest.$ac_objext' |
| 14669 | { (case "(($ac_try" in |
| 14670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14671 | *) ac_try_echo=$ac_try;; |
| 14672 | esac |
| 14673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14674 | (eval "$ac_try") 2>&5 |
| 14675 | ac_status=$? |
| 14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14677 | (exit $ac_status); }; }; then |
| 14678 | ac_header_compiler=yes |
| 14679 | else |
| 14680 | echo "$as_me: failed program was:" >&5 |
| 14681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14682 | |
| 14683 | ac_header_compiler=no |
| 14684 | fi |
| 14685 | |
| 14686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14687 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14688 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14689 | |
| 14690 | # Is the header present? |
| 14691 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14692 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14693 | cat >conftest.$ac_ext <<_ACEOF |
| 14694 | /* confdefs.h. */ |
| 14695 | _ACEOF |
| 14696 | cat confdefs.h >>conftest.$ac_ext |
| 14697 | cat >>conftest.$ac_ext <<_ACEOF |
| 14698 | /* end confdefs.h. */ |
| 14699 | #include <$ac_header> |
| 14700 | _ACEOF |
| 14701 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14702 | case "(($ac_try" in |
| 14703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14704 | *) ac_try_echo=$ac_try;; |
| 14705 | esac |
| 14706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14707 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14708 | ac_status=$? |
| 14709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14710 | rm -f conftest.er1 |
| 14711 | cat conftest.err >&5 |
| 14712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14713 | (exit $ac_status); } >/dev/null; then |
| 14714 | if test -s conftest.err; then |
| 14715 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14717 | else |
| 14718 | ac_cpp_err= |
| 14719 | fi |
| 14720 | else |
| 14721 | ac_cpp_err=yes |
| 14722 | fi |
| 14723 | if test -z "$ac_cpp_err"; then |
| 14724 | ac_header_preproc=yes |
| 14725 | else |
| 14726 | echo "$as_me: failed program was:" >&5 |
| 14727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14728 | |
| 14729 | ac_header_preproc=no |
| 14730 | fi |
| 14731 | |
| 14732 | rm -f conftest.err conftest.$ac_ext |
| 14733 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14734 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14735 | |
| 14736 | # So? What about this header? |
| 14737 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14738 | yes:no: ) |
| 14739 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14740 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14742 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14743 | ac_header_preproc=yes |
| 14744 | ;; |
| 14745 | no:yes:* ) |
| 14746 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14747 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14748 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14749 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14750 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14751 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14752 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14753 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14755 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14756 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14757 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14758 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14759 | ## ------------------------------------ ## |
| 14760 | ## Report this to http://llvm.org/bugs/ ## |
| 14761 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14762 | _ASBOX |
| 14763 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14764 | ;; |
| 14765 | esac |
| 14766 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14768 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14770 | else |
| 14771 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14772 | fi |
| 14773 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14774 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14775 | echo "${ECHO_T}$ac_res" >&6; } |
| 14776 | |
| 14777 | fi |
| 14778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14779 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14781 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14782 | |
| 14783 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14784 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14785 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14787 | |
| 14788 | |
| 14789 | |
| 14790 | |
| 14791 | |
| 14792 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14793 | 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] | 14794 | do |
| 14795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14796 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14797 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14799 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14801 | fi |
| 14802 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14803 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14804 | echo "${ECHO_T}$ac_res" >&6; } |
| 14805 | else |
| 14806 | # Is the header compilable? |
| 14807 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14808 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14809 | cat >conftest.$ac_ext <<_ACEOF |
| 14810 | /* confdefs.h. */ |
| 14811 | _ACEOF |
| 14812 | cat confdefs.h >>conftest.$ac_ext |
| 14813 | cat >>conftest.$ac_ext <<_ACEOF |
| 14814 | /* end confdefs.h. */ |
| 14815 | $ac_includes_default |
| 14816 | #include <$ac_header> |
| 14817 | _ACEOF |
| 14818 | rm -f conftest.$ac_objext |
| 14819 | if { (ac_try="$ac_compile" |
| 14820 | case "(($ac_try" in |
| 14821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14822 | *) ac_try_echo=$ac_try;; |
| 14823 | esac |
| 14824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14825 | (eval "$ac_compile") 2>conftest.er1 |
| 14826 | ac_status=$? |
| 14827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14828 | rm -f conftest.er1 |
| 14829 | cat conftest.err >&5 |
| 14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14831 | (exit $ac_status); } && |
| 14832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14833 | { (case "(($ac_try" in |
| 14834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14835 | *) ac_try_echo=$ac_try;; |
| 14836 | esac |
| 14837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14838 | (eval "$ac_try") 2>&5 |
| 14839 | ac_status=$? |
| 14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14841 | (exit $ac_status); }; } && |
| 14842 | { ac_try='test -s conftest.$ac_objext' |
| 14843 | { (case "(($ac_try" in |
| 14844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14845 | *) ac_try_echo=$ac_try;; |
| 14846 | esac |
| 14847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14848 | (eval "$ac_try") 2>&5 |
| 14849 | ac_status=$? |
| 14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14851 | (exit $ac_status); }; }; then |
| 14852 | ac_header_compiler=yes |
| 14853 | else |
| 14854 | echo "$as_me: failed program was:" >&5 |
| 14855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14856 | |
| 14857 | ac_header_compiler=no |
| 14858 | fi |
| 14859 | |
| 14860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14861 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14862 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14863 | |
| 14864 | # Is the header present? |
| 14865 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14866 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14867 | cat >conftest.$ac_ext <<_ACEOF |
| 14868 | /* confdefs.h. */ |
| 14869 | _ACEOF |
| 14870 | cat confdefs.h >>conftest.$ac_ext |
| 14871 | cat >>conftest.$ac_ext <<_ACEOF |
| 14872 | /* end confdefs.h. */ |
| 14873 | #include <$ac_header> |
| 14874 | _ACEOF |
| 14875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14876 | case "(($ac_try" in |
| 14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14878 | *) ac_try_echo=$ac_try;; |
| 14879 | esac |
| 14880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14881 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14882 | ac_status=$? |
| 14883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14884 | rm -f conftest.er1 |
| 14885 | cat conftest.err >&5 |
| 14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14887 | (exit $ac_status); } >/dev/null; then |
| 14888 | if test -s conftest.err; then |
| 14889 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14890 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14891 | else |
| 14892 | ac_cpp_err= |
| 14893 | fi |
| 14894 | else |
| 14895 | ac_cpp_err=yes |
| 14896 | fi |
| 14897 | if test -z "$ac_cpp_err"; then |
| 14898 | ac_header_preproc=yes |
| 14899 | else |
| 14900 | echo "$as_me: failed program was:" >&5 |
| 14901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14902 | |
| 14903 | ac_header_preproc=no |
| 14904 | fi |
| 14905 | |
| 14906 | rm -f conftest.err conftest.$ac_ext |
| 14907 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14908 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14909 | |
| 14910 | # So? What about this header? |
| 14911 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14912 | yes:no: ) |
| 14913 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14914 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14916 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14917 | ac_header_preproc=yes |
| 14918 | ;; |
| 14919 | no:yes:* ) |
| 14920 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14921 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14922 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14923 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14924 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14925 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14926 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14927 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14929 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14930 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14931 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14932 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14933 | ## ------------------------------------ ## |
| 14934 | ## Report this to http://llvm.org/bugs/ ## |
| 14935 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14936 | _ASBOX |
| 14937 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14938 | ;; |
| 14939 | esac |
| 14940 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14942 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14944 | else |
| 14945 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14946 | fi |
| 14947 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14949 | echo "${ECHO_T}$ac_res" >&6; } |
| 14950 | |
| 14951 | fi |
| 14952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14953 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14955 | _ACEOF |
| 14956 | |
| 14957 | fi |
| 14958 | |
| 14959 | done |
| 14960 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14961 | |
| 14962 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14963 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14964 | do |
| 14965 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14967 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14971 | fi |
| 14972 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14973 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14974 | echo "${ECHO_T}$ac_res" >&6; } |
| 14975 | else |
| 14976 | # Is the header compilable? |
| 14977 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14979 | cat >conftest.$ac_ext <<_ACEOF |
| 14980 | /* confdefs.h. */ |
| 14981 | _ACEOF |
| 14982 | cat confdefs.h >>conftest.$ac_ext |
| 14983 | cat >>conftest.$ac_ext <<_ACEOF |
| 14984 | /* end confdefs.h. */ |
| 14985 | $ac_includes_default |
| 14986 | #include <$ac_header> |
| 14987 | _ACEOF |
| 14988 | rm -f conftest.$ac_objext |
| 14989 | if { (ac_try="$ac_compile" |
| 14990 | case "(($ac_try" in |
| 14991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14992 | *) ac_try_echo=$ac_try;; |
| 14993 | esac |
| 14994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14995 | (eval "$ac_compile") 2>conftest.er1 |
| 14996 | ac_status=$? |
| 14997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14998 | rm -f conftest.er1 |
| 14999 | cat conftest.err >&5 |
| 15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15001 | (exit $ac_status); } && |
| 15002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15003 | { (case "(($ac_try" in |
| 15004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15005 | *) ac_try_echo=$ac_try;; |
| 15006 | esac |
| 15007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15008 | (eval "$ac_try") 2>&5 |
| 15009 | ac_status=$? |
| 15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15011 | (exit $ac_status); }; } && |
| 15012 | { ac_try='test -s conftest.$ac_objext' |
| 15013 | { (case "(($ac_try" in |
| 15014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15015 | *) ac_try_echo=$ac_try;; |
| 15016 | esac |
| 15017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15018 | (eval "$ac_try") 2>&5 |
| 15019 | ac_status=$? |
| 15020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15021 | (exit $ac_status); }; }; then |
| 15022 | ac_header_compiler=yes |
| 15023 | else |
| 15024 | echo "$as_me: failed program was:" >&5 |
| 15025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15026 | |
| 15027 | ac_header_compiler=no |
| 15028 | fi |
| 15029 | |
| 15030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15031 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15032 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15033 | |
| 15034 | # Is the header present? |
| 15035 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15037 | cat >conftest.$ac_ext <<_ACEOF |
| 15038 | /* confdefs.h. */ |
| 15039 | _ACEOF |
| 15040 | cat confdefs.h >>conftest.$ac_ext |
| 15041 | cat >>conftest.$ac_ext <<_ACEOF |
| 15042 | /* end confdefs.h. */ |
| 15043 | #include <$ac_header> |
| 15044 | _ACEOF |
| 15045 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15046 | case "(($ac_try" in |
| 15047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15048 | *) ac_try_echo=$ac_try;; |
| 15049 | esac |
| 15050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15051 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15052 | ac_status=$? |
| 15053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15054 | rm -f conftest.er1 |
| 15055 | cat conftest.err >&5 |
| 15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15057 | (exit $ac_status); } >/dev/null; then |
| 15058 | if test -s conftest.err; then |
| 15059 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15061 | else |
| 15062 | ac_cpp_err= |
| 15063 | fi |
| 15064 | else |
| 15065 | ac_cpp_err=yes |
| 15066 | fi |
| 15067 | if test -z "$ac_cpp_err"; then |
| 15068 | ac_header_preproc=yes |
| 15069 | else |
| 15070 | echo "$as_me: failed program was:" >&5 |
| 15071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15072 | |
| 15073 | ac_header_preproc=no |
| 15074 | fi |
| 15075 | |
| 15076 | rm -f conftest.err conftest.$ac_ext |
| 15077 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15078 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15079 | |
| 15080 | # So? What about this header? |
| 15081 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15082 | yes:no: ) |
| 15083 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15084 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15086 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15087 | ac_header_preproc=yes |
| 15088 | ;; |
| 15089 | no:yes:* ) |
| 15090 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15091 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15092 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15093 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15094 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15095 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15096 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15097 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15099 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15100 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15101 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15102 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15103 | ## ------------------------------------ ## |
| 15104 | ## Report this to http://llvm.org/bugs/ ## |
| 15105 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15106 | _ASBOX |
| 15107 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15108 | ;; |
| 15109 | esac |
| 15110 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15114 | else |
| 15115 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15116 | fi |
| 15117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15119 | echo "${ECHO_T}$ac_res" >&6; } |
| 15120 | |
| 15121 | fi |
| 15122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15123 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15125 | _ACEOF |
| 15126 | |
| 15127 | fi |
| 15128 | |
| 15129 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15130 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15131 | |
| 15132 | |
| 15133 | |
| 15134 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 15135 | |
| 15136 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15137 | do |
| 15138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15140 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15144 | fi |
| 15145 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15146 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15147 | echo "${ECHO_T}$ac_res" >&6; } |
| 15148 | else |
| 15149 | # Is the header compilable? |
| 15150 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15151 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15152 | cat >conftest.$ac_ext <<_ACEOF |
| 15153 | /* confdefs.h. */ |
| 15154 | _ACEOF |
| 15155 | cat confdefs.h >>conftest.$ac_ext |
| 15156 | cat >>conftest.$ac_ext <<_ACEOF |
| 15157 | /* end confdefs.h. */ |
| 15158 | $ac_includes_default |
| 15159 | #include <$ac_header> |
| 15160 | _ACEOF |
| 15161 | rm -f conftest.$ac_objext |
| 15162 | if { (ac_try="$ac_compile" |
| 15163 | case "(($ac_try" in |
| 15164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15165 | *) ac_try_echo=$ac_try;; |
| 15166 | esac |
| 15167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15168 | (eval "$ac_compile") 2>conftest.er1 |
| 15169 | ac_status=$? |
| 15170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15171 | rm -f conftest.er1 |
| 15172 | cat conftest.err >&5 |
| 15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15174 | (exit $ac_status); } && |
| 15175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15176 | { (case "(($ac_try" in |
| 15177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15178 | *) ac_try_echo=$ac_try;; |
| 15179 | esac |
| 15180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15181 | (eval "$ac_try") 2>&5 |
| 15182 | ac_status=$? |
| 15183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15184 | (exit $ac_status); }; } && |
| 15185 | { ac_try='test -s conftest.$ac_objext' |
| 15186 | { (case "(($ac_try" in |
| 15187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15188 | *) ac_try_echo=$ac_try;; |
| 15189 | esac |
| 15190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15191 | (eval "$ac_try") 2>&5 |
| 15192 | ac_status=$? |
| 15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15194 | (exit $ac_status); }; }; then |
| 15195 | ac_header_compiler=yes |
| 15196 | else |
| 15197 | echo "$as_me: failed program was:" >&5 |
| 15198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15199 | |
| 15200 | ac_header_compiler=no |
| 15201 | fi |
| 15202 | |
| 15203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15204 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15205 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15206 | |
| 15207 | # Is the header present? |
| 15208 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15209 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15210 | cat >conftest.$ac_ext <<_ACEOF |
| 15211 | /* confdefs.h. */ |
| 15212 | _ACEOF |
| 15213 | cat confdefs.h >>conftest.$ac_ext |
| 15214 | cat >>conftest.$ac_ext <<_ACEOF |
| 15215 | /* end confdefs.h. */ |
| 15216 | #include <$ac_header> |
| 15217 | _ACEOF |
| 15218 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15219 | case "(($ac_try" in |
| 15220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15221 | *) ac_try_echo=$ac_try;; |
| 15222 | esac |
| 15223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15224 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15225 | ac_status=$? |
| 15226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15227 | rm -f conftest.er1 |
| 15228 | cat conftest.err >&5 |
| 15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15230 | (exit $ac_status); } >/dev/null; then |
| 15231 | if test -s conftest.err; then |
| 15232 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15234 | else |
| 15235 | ac_cpp_err= |
| 15236 | fi |
| 15237 | else |
| 15238 | ac_cpp_err=yes |
| 15239 | fi |
| 15240 | if test -z "$ac_cpp_err"; then |
| 15241 | ac_header_preproc=yes |
| 15242 | else |
| 15243 | echo "$as_me: failed program was:" >&5 |
| 15244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15245 | |
| 15246 | ac_header_preproc=no |
| 15247 | fi |
| 15248 | |
| 15249 | rm -f conftest.err conftest.$ac_ext |
| 15250 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15251 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15252 | |
| 15253 | # So? What about this header? |
| 15254 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15255 | yes:no: ) |
| 15256 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15257 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15259 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15260 | ac_header_preproc=yes |
| 15261 | ;; |
| 15262 | no:yes:* ) |
| 15263 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15264 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15265 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15266 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15267 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15268 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15269 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15270 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15271 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15272 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15273 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15274 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15275 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15276 | ## ------------------------------------ ## |
| 15277 | ## Report this to http://llvm.org/bugs/ ## |
| 15278 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15279 | _ASBOX |
| 15280 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15281 | ;; |
| 15282 | esac |
| 15283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15287 | else |
| 15288 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15289 | fi |
| 15290 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15291 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15292 | echo "${ECHO_T}$ac_res" >&6; } |
| 15293 | |
| 15294 | fi |
| 15295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15296 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15298 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15299 | |
| 15300 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15301 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15302 | done |
| 15303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15304 | |
| 15305 | |
| 15306 | |
| 15307 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15308 | 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] | 15309 | do |
| 15310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15316 | fi |
| 15317 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15318 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15319 | echo "${ECHO_T}$ac_res" >&6; } |
| 15320 | else |
| 15321 | # Is the header compilable? |
| 15322 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15323 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15324 | cat >conftest.$ac_ext <<_ACEOF |
| 15325 | /* confdefs.h. */ |
| 15326 | _ACEOF |
| 15327 | cat confdefs.h >>conftest.$ac_ext |
| 15328 | cat >>conftest.$ac_ext <<_ACEOF |
| 15329 | /* end confdefs.h. */ |
| 15330 | $ac_includes_default |
| 15331 | #include <$ac_header> |
| 15332 | _ACEOF |
| 15333 | rm -f conftest.$ac_objext |
| 15334 | if { (ac_try="$ac_compile" |
| 15335 | case "(($ac_try" in |
| 15336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15337 | *) ac_try_echo=$ac_try;; |
| 15338 | esac |
| 15339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15340 | (eval "$ac_compile") 2>conftest.er1 |
| 15341 | ac_status=$? |
| 15342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15343 | rm -f conftest.er1 |
| 15344 | cat conftest.err >&5 |
| 15345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15346 | (exit $ac_status); } && |
| 15347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15348 | { (case "(($ac_try" in |
| 15349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15350 | *) ac_try_echo=$ac_try;; |
| 15351 | esac |
| 15352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15353 | (eval "$ac_try") 2>&5 |
| 15354 | ac_status=$? |
| 15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15356 | (exit $ac_status); }; } && |
| 15357 | { ac_try='test -s conftest.$ac_objext' |
| 15358 | { (case "(($ac_try" in |
| 15359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15360 | *) ac_try_echo=$ac_try;; |
| 15361 | esac |
| 15362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15363 | (eval "$ac_try") 2>&5 |
| 15364 | ac_status=$? |
| 15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15366 | (exit $ac_status); }; }; then |
| 15367 | ac_header_compiler=yes |
| 15368 | else |
| 15369 | echo "$as_me: failed program was:" >&5 |
| 15370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15371 | |
| 15372 | ac_header_compiler=no |
| 15373 | fi |
| 15374 | |
| 15375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15376 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15377 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15378 | |
| 15379 | # Is the header present? |
| 15380 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15382 | cat >conftest.$ac_ext <<_ACEOF |
| 15383 | /* confdefs.h. */ |
| 15384 | _ACEOF |
| 15385 | cat confdefs.h >>conftest.$ac_ext |
| 15386 | cat >>conftest.$ac_ext <<_ACEOF |
| 15387 | /* end confdefs.h. */ |
| 15388 | #include <$ac_header> |
| 15389 | _ACEOF |
| 15390 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15391 | case "(($ac_try" in |
| 15392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15393 | *) ac_try_echo=$ac_try;; |
| 15394 | esac |
| 15395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15396 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15397 | ac_status=$? |
| 15398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15399 | rm -f conftest.er1 |
| 15400 | cat conftest.err >&5 |
| 15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15402 | (exit $ac_status); } >/dev/null; then |
| 15403 | if test -s conftest.err; then |
| 15404 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15406 | else |
| 15407 | ac_cpp_err= |
| 15408 | fi |
| 15409 | else |
| 15410 | ac_cpp_err=yes |
| 15411 | fi |
| 15412 | if test -z "$ac_cpp_err"; then |
| 15413 | ac_header_preproc=yes |
| 15414 | else |
| 15415 | echo "$as_me: failed program was:" >&5 |
| 15416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15417 | |
| 15418 | ac_header_preproc=no |
| 15419 | fi |
| 15420 | |
| 15421 | rm -f conftest.err conftest.$ac_ext |
| 15422 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15423 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15424 | |
| 15425 | # So? What about this header? |
| 15426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15427 | yes:no: ) |
| 15428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15432 | ac_header_preproc=yes |
| 15433 | ;; |
| 15434 | no:yes:* ) |
| 15435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15447 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15448 | ## ------------------------------------ ## |
| 15449 | ## Report this to http://llvm.org/bugs/ ## |
| 15450 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15451 | _ASBOX |
| 15452 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15453 | ;; |
| 15454 | esac |
| 15455 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15459 | else |
| 15460 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15461 | fi |
| 15462 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15463 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15464 | echo "${ECHO_T}$ac_res" >&6; } |
| 15465 | |
| 15466 | fi |
| 15467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15468 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15470 | _ACEOF |
| 15471 | |
| 15472 | fi |
| 15473 | |
| 15474 | done |
| 15475 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15476 | |
| 15477 | for ac_header in valgrind/valgrind.h |
| 15478 | do |
| 15479 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15481 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15485 | fi |
| 15486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15488 | echo "${ECHO_T}$ac_res" >&6; } |
| 15489 | else |
| 15490 | # Is the header compilable? |
| 15491 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15492 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15493 | cat >conftest.$ac_ext <<_ACEOF |
| 15494 | /* confdefs.h. */ |
| 15495 | _ACEOF |
| 15496 | cat confdefs.h >>conftest.$ac_ext |
| 15497 | cat >>conftest.$ac_ext <<_ACEOF |
| 15498 | /* end confdefs.h. */ |
| 15499 | $ac_includes_default |
| 15500 | #include <$ac_header> |
| 15501 | _ACEOF |
| 15502 | rm -f conftest.$ac_objext |
| 15503 | if { (ac_try="$ac_compile" |
| 15504 | case "(($ac_try" in |
| 15505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15506 | *) ac_try_echo=$ac_try;; |
| 15507 | esac |
| 15508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15509 | (eval "$ac_compile") 2>conftest.er1 |
| 15510 | ac_status=$? |
| 15511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15512 | rm -f conftest.er1 |
| 15513 | cat conftest.err >&5 |
| 15514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15515 | (exit $ac_status); } && |
| 15516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15517 | { (case "(($ac_try" in |
| 15518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15519 | *) ac_try_echo=$ac_try;; |
| 15520 | esac |
| 15521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15522 | (eval "$ac_try") 2>&5 |
| 15523 | ac_status=$? |
| 15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15525 | (exit $ac_status); }; } && |
| 15526 | { ac_try='test -s conftest.$ac_objext' |
| 15527 | { (case "(($ac_try" in |
| 15528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15529 | *) ac_try_echo=$ac_try;; |
| 15530 | esac |
| 15531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15532 | (eval "$ac_try") 2>&5 |
| 15533 | ac_status=$? |
| 15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15535 | (exit $ac_status); }; }; then |
| 15536 | ac_header_compiler=yes |
| 15537 | else |
| 15538 | echo "$as_me: failed program was:" >&5 |
| 15539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15540 | |
| 15541 | ac_header_compiler=no |
| 15542 | fi |
| 15543 | |
| 15544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15545 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15546 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15547 | |
| 15548 | # Is the header present? |
| 15549 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15551 | cat >conftest.$ac_ext <<_ACEOF |
| 15552 | /* confdefs.h. */ |
| 15553 | _ACEOF |
| 15554 | cat confdefs.h >>conftest.$ac_ext |
| 15555 | cat >>conftest.$ac_ext <<_ACEOF |
| 15556 | /* end confdefs.h. */ |
| 15557 | #include <$ac_header> |
| 15558 | _ACEOF |
| 15559 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15560 | case "(($ac_try" in |
| 15561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15562 | *) ac_try_echo=$ac_try;; |
| 15563 | esac |
| 15564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15566 | ac_status=$? |
| 15567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15568 | rm -f conftest.er1 |
| 15569 | cat conftest.err >&5 |
| 15570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15571 | (exit $ac_status); } >/dev/null; then |
| 15572 | if test -s conftest.err; then |
| 15573 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15575 | else |
| 15576 | ac_cpp_err= |
| 15577 | fi |
| 15578 | else |
| 15579 | ac_cpp_err=yes |
| 15580 | fi |
| 15581 | if test -z "$ac_cpp_err"; then |
| 15582 | ac_header_preproc=yes |
| 15583 | else |
| 15584 | echo "$as_me: failed program was:" >&5 |
| 15585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15586 | |
| 15587 | ac_header_preproc=no |
| 15588 | fi |
| 15589 | |
| 15590 | rm -f conftest.err conftest.$ac_ext |
| 15591 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15592 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15593 | |
| 15594 | # So? What about this header? |
| 15595 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15596 | yes:no: ) |
| 15597 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15598 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15600 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15601 | ac_header_preproc=yes |
| 15602 | ;; |
| 15603 | no:yes:* ) |
| 15604 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15605 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15606 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15607 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15608 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15609 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15610 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15611 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15613 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15614 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15615 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15616 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15617 | ## ------------------------------------ ## |
| 15618 | ## Report this to http://llvm.org/bugs/ ## |
| 15619 | ## ------------------------------------ ## |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15620 | _ASBOX |
| 15621 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15622 | ;; |
| 15623 | esac |
| 15624 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15628 | else |
| 15629 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15630 | fi |
| 15631 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15633 | echo "${ECHO_T}$ac_res" >&6; } |
| 15634 | |
| 15635 | fi |
| 15636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15637 | cat >>confdefs.h <<_ACEOF |
| 15638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15639 | _ACEOF |
| 15640 | |
| 15641 | fi |
| 15642 | |
| 15643 | done |
| 15644 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15645 | |
| 15646 | for ac_header in fenv.h |
| 15647 | do |
| 15648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15650 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15654 | fi |
| 15655 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15656 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15657 | echo "${ECHO_T}$ac_res" >&6; } |
| 15658 | else |
| 15659 | # Is the header compilable? |
| 15660 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15661 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15662 | cat >conftest.$ac_ext <<_ACEOF |
| 15663 | /* confdefs.h. */ |
| 15664 | _ACEOF |
| 15665 | cat confdefs.h >>conftest.$ac_ext |
| 15666 | cat >>conftest.$ac_ext <<_ACEOF |
| 15667 | /* end confdefs.h. */ |
| 15668 | $ac_includes_default |
| 15669 | #include <$ac_header> |
| 15670 | _ACEOF |
| 15671 | rm -f conftest.$ac_objext |
| 15672 | if { (ac_try="$ac_compile" |
| 15673 | case "(($ac_try" in |
| 15674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15675 | *) ac_try_echo=$ac_try;; |
| 15676 | esac |
| 15677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15678 | (eval "$ac_compile") 2>conftest.er1 |
| 15679 | ac_status=$? |
| 15680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15681 | rm -f conftest.er1 |
| 15682 | cat conftest.err >&5 |
| 15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15684 | (exit $ac_status); } && |
| 15685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15686 | { (case "(($ac_try" in |
| 15687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15688 | *) ac_try_echo=$ac_try;; |
| 15689 | esac |
| 15690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15691 | (eval "$ac_try") 2>&5 |
| 15692 | ac_status=$? |
| 15693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15694 | (exit $ac_status); }; } && |
| 15695 | { ac_try='test -s conftest.$ac_objext' |
| 15696 | { (case "(($ac_try" in |
| 15697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15698 | *) ac_try_echo=$ac_try;; |
| 15699 | esac |
| 15700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15701 | (eval "$ac_try") 2>&5 |
| 15702 | ac_status=$? |
| 15703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15704 | (exit $ac_status); }; }; then |
| 15705 | ac_header_compiler=yes |
| 15706 | else |
| 15707 | echo "$as_me: failed program was:" >&5 |
| 15708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15709 | |
| 15710 | ac_header_compiler=no |
| 15711 | fi |
| 15712 | |
| 15713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15714 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15715 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15716 | |
| 15717 | # Is the header present? |
| 15718 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15719 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15720 | cat >conftest.$ac_ext <<_ACEOF |
| 15721 | /* confdefs.h. */ |
| 15722 | _ACEOF |
| 15723 | cat confdefs.h >>conftest.$ac_ext |
| 15724 | cat >>conftest.$ac_ext <<_ACEOF |
| 15725 | /* end confdefs.h. */ |
| 15726 | #include <$ac_header> |
| 15727 | _ACEOF |
| 15728 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15729 | case "(($ac_try" in |
| 15730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15731 | *) ac_try_echo=$ac_try;; |
| 15732 | esac |
| 15733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15734 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15735 | ac_status=$? |
| 15736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15737 | rm -f conftest.er1 |
| 15738 | cat conftest.err >&5 |
| 15739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15740 | (exit $ac_status); } >/dev/null; then |
| 15741 | if test -s conftest.err; then |
| 15742 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15743 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15744 | else |
| 15745 | ac_cpp_err= |
| 15746 | fi |
| 15747 | else |
| 15748 | ac_cpp_err=yes |
| 15749 | fi |
| 15750 | if test -z "$ac_cpp_err"; then |
| 15751 | ac_header_preproc=yes |
| 15752 | else |
| 15753 | echo "$as_me: failed program was:" >&5 |
| 15754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15755 | |
| 15756 | ac_header_preproc=no |
| 15757 | fi |
| 15758 | |
| 15759 | rm -f conftest.err conftest.$ac_ext |
| 15760 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15761 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15762 | |
| 15763 | # So? What about this header? |
| 15764 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15765 | yes:no: ) |
| 15766 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15767 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15769 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15770 | ac_header_preproc=yes |
| 15771 | ;; |
| 15772 | no:yes:* ) |
| 15773 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15774 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15775 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15776 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15777 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15778 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15779 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15780 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15782 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15783 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15784 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15785 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15786 | ## ------------------------------------ ## |
| 15787 | ## Report this to http://llvm.org/bugs/ ## |
| 15788 | ## ------------------------------------ ## |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15789 | _ASBOX |
| 15790 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15791 | ;; |
| 15792 | esac |
| 15793 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15797 | else |
| 15798 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15799 | fi |
| 15800 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15802 | echo "${ECHO_T}$ac_res" >&6; } |
| 15803 | |
| 15804 | fi |
| 15805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15806 | cat >>confdefs.h <<_ACEOF |
| 15807 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15808 | _ACEOF |
| 15809 | |
| 15810 | fi |
| 15811 | |
| 15812 | done |
| 15813 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15814 | if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15815 | |
| 15816 | for ac_header in pthread.h |
| 15817 | do |
| 15818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15820 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15822 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15824 | fi |
| 15825 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15826 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15827 | echo "${ECHO_T}$ac_res" >&6; } |
| 15828 | else |
| 15829 | # Is the header compilable? |
| 15830 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15831 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15832 | cat >conftest.$ac_ext <<_ACEOF |
| 15833 | /* confdefs.h. */ |
| 15834 | _ACEOF |
| 15835 | cat confdefs.h >>conftest.$ac_ext |
| 15836 | cat >>conftest.$ac_ext <<_ACEOF |
| 15837 | /* end confdefs.h. */ |
| 15838 | $ac_includes_default |
| 15839 | #include <$ac_header> |
| 15840 | _ACEOF |
| 15841 | rm -f conftest.$ac_objext |
| 15842 | if { (ac_try="$ac_compile" |
| 15843 | case "(($ac_try" in |
| 15844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15845 | *) ac_try_echo=$ac_try;; |
| 15846 | esac |
| 15847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15848 | (eval "$ac_compile") 2>conftest.er1 |
| 15849 | ac_status=$? |
| 15850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15851 | rm -f conftest.er1 |
| 15852 | cat conftest.err >&5 |
| 15853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15854 | (exit $ac_status); } && |
| 15855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15856 | { (case "(($ac_try" in |
| 15857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15858 | *) ac_try_echo=$ac_try;; |
| 15859 | esac |
| 15860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15861 | (eval "$ac_try") 2>&5 |
| 15862 | ac_status=$? |
| 15863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15864 | (exit $ac_status); }; } && |
| 15865 | { ac_try='test -s conftest.$ac_objext' |
| 15866 | { (case "(($ac_try" in |
| 15867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15868 | *) ac_try_echo=$ac_try;; |
| 15869 | esac |
| 15870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15871 | (eval "$ac_try") 2>&5 |
| 15872 | ac_status=$? |
| 15873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15874 | (exit $ac_status); }; }; then |
| 15875 | ac_header_compiler=yes |
| 15876 | else |
| 15877 | echo "$as_me: failed program was:" >&5 |
| 15878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15879 | |
| 15880 | ac_header_compiler=no |
| 15881 | fi |
| 15882 | |
| 15883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15884 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15885 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15886 | |
| 15887 | # Is the header present? |
| 15888 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15890 | cat >conftest.$ac_ext <<_ACEOF |
| 15891 | /* confdefs.h. */ |
| 15892 | _ACEOF |
| 15893 | cat confdefs.h >>conftest.$ac_ext |
| 15894 | cat >>conftest.$ac_ext <<_ACEOF |
| 15895 | /* end confdefs.h. */ |
| 15896 | #include <$ac_header> |
| 15897 | _ACEOF |
| 15898 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15899 | case "(($ac_try" in |
| 15900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15901 | *) ac_try_echo=$ac_try;; |
| 15902 | esac |
| 15903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15905 | ac_status=$? |
| 15906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15907 | rm -f conftest.er1 |
| 15908 | cat conftest.err >&5 |
| 15909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15910 | (exit $ac_status); } >/dev/null; then |
| 15911 | if test -s conftest.err; then |
| 15912 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15913 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15914 | else |
| 15915 | ac_cpp_err= |
| 15916 | fi |
| 15917 | else |
| 15918 | ac_cpp_err=yes |
| 15919 | fi |
| 15920 | if test -z "$ac_cpp_err"; then |
| 15921 | ac_header_preproc=yes |
| 15922 | else |
| 15923 | echo "$as_me: failed program was:" >&5 |
| 15924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15925 | |
| 15926 | ac_header_preproc=no |
| 15927 | fi |
| 15928 | |
| 15929 | rm -f conftest.err conftest.$ac_ext |
| 15930 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15931 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15932 | |
| 15933 | # So? What about this header? |
| 15934 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15935 | yes:no: ) |
| 15936 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15937 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15939 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15940 | ac_header_preproc=yes |
| 15941 | ;; |
| 15942 | no:yes:* ) |
| 15943 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15944 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15945 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15946 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15947 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15948 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15949 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15950 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15951 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15952 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15953 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15954 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15955 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15956 | ## ------------------------------------ ## |
| 15957 | ## Report this to http://llvm.org/bugs/ ## |
| 15958 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15959 | _ASBOX |
| 15960 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15961 | ;; |
| 15962 | esac |
| 15963 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15965 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15967 | else |
| 15968 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15969 | fi |
| 15970 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15971 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15972 | echo "${ECHO_T}$ac_res" >&6; } |
| 15973 | |
| 15974 | fi |
| 15975 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15976 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15977 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15978 | _ACEOF |
| 15979 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15980 | |
| 15981 | else |
| 15982 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15983 | |
| 15984 | fi |
| 15985 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15986 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15987 | |
| 15988 | else |
| 15989 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15990 | |
| 15991 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15992 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15993 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15994 | |
| 15995 | |
| 15996 | for ac_header in ffi.h ffi/ffi.h |
| 15997 | do |
| 15998 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16000 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16004 | fi |
| 16005 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16006 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16007 | echo "${ECHO_T}$ac_res" >&6; } |
| 16008 | else |
| 16009 | # Is the header compilable? |
| 16010 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16011 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16012 | cat >conftest.$ac_ext <<_ACEOF |
| 16013 | /* confdefs.h. */ |
| 16014 | _ACEOF |
| 16015 | cat confdefs.h >>conftest.$ac_ext |
| 16016 | cat >>conftest.$ac_ext <<_ACEOF |
| 16017 | /* end confdefs.h. */ |
| 16018 | $ac_includes_default |
| 16019 | #include <$ac_header> |
| 16020 | _ACEOF |
| 16021 | rm -f conftest.$ac_objext |
| 16022 | if { (ac_try="$ac_compile" |
| 16023 | case "(($ac_try" in |
| 16024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16025 | *) ac_try_echo=$ac_try;; |
| 16026 | esac |
| 16027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16028 | (eval "$ac_compile") 2>conftest.er1 |
| 16029 | ac_status=$? |
| 16030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16031 | rm -f conftest.er1 |
| 16032 | cat conftest.err >&5 |
| 16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16034 | (exit $ac_status); } && |
| 16035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16036 | { (case "(($ac_try" in |
| 16037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16038 | *) ac_try_echo=$ac_try;; |
| 16039 | esac |
| 16040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16041 | (eval "$ac_try") 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); }; } && |
| 16045 | { ac_try='test -s conftest.$ac_objext' |
| 16046 | { (case "(($ac_try" in |
| 16047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16048 | *) ac_try_echo=$ac_try;; |
| 16049 | esac |
| 16050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16051 | (eval "$ac_try") 2>&5 |
| 16052 | ac_status=$? |
| 16053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16054 | (exit $ac_status); }; }; then |
| 16055 | ac_header_compiler=yes |
| 16056 | else |
| 16057 | echo "$as_me: failed program was:" >&5 |
| 16058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16059 | |
| 16060 | ac_header_compiler=no |
| 16061 | fi |
| 16062 | |
| 16063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16064 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16065 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16066 | |
| 16067 | # Is the header present? |
| 16068 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16069 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16070 | cat >conftest.$ac_ext <<_ACEOF |
| 16071 | /* confdefs.h. */ |
| 16072 | _ACEOF |
| 16073 | cat confdefs.h >>conftest.$ac_ext |
| 16074 | cat >>conftest.$ac_ext <<_ACEOF |
| 16075 | /* end confdefs.h. */ |
| 16076 | #include <$ac_header> |
| 16077 | _ACEOF |
| 16078 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16079 | case "(($ac_try" in |
| 16080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16081 | *) ac_try_echo=$ac_try;; |
| 16082 | esac |
| 16083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16084 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16085 | ac_status=$? |
| 16086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16087 | rm -f conftest.er1 |
| 16088 | cat conftest.err >&5 |
| 16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16090 | (exit $ac_status); } >/dev/null; then |
| 16091 | if test -s conftest.err; then |
| 16092 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16094 | else |
| 16095 | ac_cpp_err= |
| 16096 | fi |
| 16097 | else |
| 16098 | ac_cpp_err=yes |
| 16099 | fi |
| 16100 | if test -z "$ac_cpp_err"; then |
| 16101 | ac_header_preproc=yes |
| 16102 | else |
| 16103 | echo "$as_me: failed program was:" >&5 |
| 16104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16105 | |
| 16106 | ac_header_preproc=no |
| 16107 | fi |
| 16108 | |
| 16109 | rm -f conftest.err conftest.$ac_ext |
| 16110 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16111 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16112 | |
| 16113 | # So? What about this header? |
| 16114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16115 | yes:no: ) |
| 16116 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16117 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16119 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16120 | ac_header_preproc=yes |
| 16121 | ;; |
| 16122 | no:yes:* ) |
| 16123 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16124 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16125 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16126 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16127 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16128 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16129 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16130 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16132 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16133 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16134 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16135 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16136 | ## ------------------------------------ ## |
| 16137 | ## Report this to http://llvm.org/bugs/ ## |
| 16138 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16139 | _ASBOX |
| 16140 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16141 | ;; |
| 16142 | esac |
| 16143 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16147 | else |
| 16148 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16149 | fi |
| 16150 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16151 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16152 | echo "${ECHO_T}$ac_res" >&6; } |
| 16153 | |
| 16154 | fi |
| 16155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16156 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16158 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16159 | |
| 16160 | fi |
| 16161 | |
| 16162 | done |
| 16163 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16164 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16165 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16166 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16167 | for ac_header in CrashReporterClient.h |
| 16168 | do |
| 16169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16170 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16171 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16175 | fi |
| 16176 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16178 | echo "${ECHO_T}$ac_res" >&6; } |
| 16179 | else |
| 16180 | # Is the header compilable? |
| 16181 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16182 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16183 | cat >conftest.$ac_ext <<_ACEOF |
| 16184 | /* confdefs.h. */ |
| 16185 | _ACEOF |
| 16186 | cat confdefs.h >>conftest.$ac_ext |
| 16187 | cat >>conftest.$ac_ext <<_ACEOF |
| 16188 | /* end confdefs.h. */ |
| 16189 | $ac_includes_default |
| 16190 | #include <$ac_header> |
| 16191 | _ACEOF |
| 16192 | rm -f conftest.$ac_objext |
| 16193 | if { (ac_try="$ac_compile" |
| 16194 | case "(($ac_try" in |
| 16195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16196 | *) ac_try_echo=$ac_try;; |
| 16197 | esac |
| 16198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16199 | (eval "$ac_compile") 2>conftest.er1 |
| 16200 | ac_status=$? |
| 16201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16202 | rm -f conftest.er1 |
| 16203 | cat conftest.err >&5 |
| 16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16205 | (exit $ac_status); } && |
| 16206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16207 | { (case "(($ac_try" in |
| 16208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16209 | *) ac_try_echo=$ac_try;; |
| 16210 | esac |
| 16211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16212 | (eval "$ac_try") 2>&5 |
| 16213 | ac_status=$? |
| 16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16215 | (exit $ac_status); }; } && |
| 16216 | { ac_try='test -s conftest.$ac_objext' |
| 16217 | { (case "(($ac_try" in |
| 16218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16219 | *) ac_try_echo=$ac_try;; |
| 16220 | esac |
| 16221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16222 | (eval "$ac_try") 2>&5 |
| 16223 | ac_status=$? |
| 16224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16225 | (exit $ac_status); }; }; then |
| 16226 | ac_header_compiler=yes |
| 16227 | else |
| 16228 | echo "$as_me: failed program was:" >&5 |
| 16229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16230 | |
| 16231 | ac_header_compiler=no |
| 16232 | fi |
| 16233 | |
| 16234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16235 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16236 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16237 | |
| 16238 | # Is the header present? |
| 16239 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16241 | cat >conftest.$ac_ext <<_ACEOF |
| 16242 | /* confdefs.h. */ |
| 16243 | _ACEOF |
| 16244 | cat confdefs.h >>conftest.$ac_ext |
| 16245 | cat >>conftest.$ac_ext <<_ACEOF |
| 16246 | /* end confdefs.h. */ |
| 16247 | #include <$ac_header> |
| 16248 | _ACEOF |
| 16249 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16250 | case "(($ac_try" in |
| 16251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16252 | *) ac_try_echo=$ac_try;; |
| 16253 | esac |
| 16254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16255 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16256 | ac_status=$? |
| 16257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16258 | rm -f conftest.er1 |
| 16259 | cat conftest.err >&5 |
| 16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16261 | (exit $ac_status); } >/dev/null; then |
| 16262 | if test -s conftest.err; then |
| 16263 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16264 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16265 | else |
| 16266 | ac_cpp_err= |
| 16267 | fi |
| 16268 | else |
| 16269 | ac_cpp_err=yes |
| 16270 | fi |
| 16271 | if test -z "$ac_cpp_err"; then |
| 16272 | ac_header_preproc=yes |
| 16273 | else |
| 16274 | echo "$as_me: failed program was:" >&5 |
| 16275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16276 | |
| 16277 | ac_header_preproc=no |
| 16278 | fi |
| 16279 | |
| 16280 | rm -f conftest.err conftest.$ac_ext |
| 16281 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16283 | |
| 16284 | # So? What about this header? |
| 16285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16286 | yes:no: ) |
| 16287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16291 | ac_header_preproc=yes |
| 16292 | ;; |
| 16293 | no:yes:* ) |
| 16294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16306 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16307 | ## ------------------------------------ ## |
| 16308 | ## Report this to http://llvm.org/bugs/ ## |
| 16309 | ## ------------------------------------ ## |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16310 | _ASBOX |
| 16311 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16312 | ;; |
| 16313 | esac |
| 16314 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16316 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16318 | else |
| 16319 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16320 | fi |
| 16321 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16323 | echo "${ECHO_T}$ac_res" >&6; } |
| 16324 | |
| 16325 | fi |
| 16326 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16327 | cat >>confdefs.h <<_ACEOF |
| 16328 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16329 | _ACEOF |
| 16330 | |
| 16331 | fi |
| 16332 | |
| 16333 | done |
| 16334 | |
| 16335 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16336 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16337 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16338 | cat >conftest.$ac_ext <<_ACEOF |
| 16339 | /* confdefs.h. */ |
| 16340 | _ACEOF |
| 16341 | cat confdefs.h >>conftest.$ac_ext |
| 16342 | cat >>conftest.$ac_ext <<_ACEOF |
| 16343 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16344 | extern const char *__crashreporter_info__; |
| 16345 | int main() { |
| 16346 | __crashreporter_info__ = "test"; |
| 16347 | return 0; |
| 16348 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16349 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16350 | _ACEOF |
| 16351 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16352 | if { (ac_try="$ac_link" |
| 16353 | case "(($ac_try" in |
| 16354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16355 | *) ac_try_echo=$ac_try;; |
| 16356 | esac |
| 16357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16358 | (eval "$ac_link") 2>conftest.er1 |
| 16359 | ac_status=$? |
| 16360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16361 | rm -f conftest.er1 |
| 16362 | cat conftest.err >&5 |
| 16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16364 | (exit $ac_status); } && |
| 16365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16366 | { (case "(($ac_try" in |
| 16367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16368 | *) ac_try_echo=$ac_try;; |
| 16369 | esac |
| 16370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16371 | (eval "$ac_try") 2>&5 |
| 16372 | ac_status=$? |
| 16373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16374 | (exit $ac_status); }; } && |
| 16375 | { ac_try='test -s conftest$ac_exeext' |
| 16376 | { (case "(($ac_try" in |
| 16377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16378 | *) ac_try_echo=$ac_try;; |
| 16379 | esac |
| 16380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16381 | (eval "$ac_try") 2>&5 |
| 16382 | ac_status=$? |
| 16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16384 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16385 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16386 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16387 | |
| 16388 | cat >>confdefs.h <<\_ACEOF |
| 16389 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16390 | _ACEOF |
| 16391 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16392 | else |
| 16393 | echo "$as_me: failed program was:" >&5 |
| 16394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16395 | |
| 16396 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16397 | echo "${ECHO_T}no" >&6; } |
| 16398 | |
| 16399 | cat >>confdefs.h <<\_ACEOF |
| 16400 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16401 | _ACEOF |
| 16402 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16403 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16404 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16405 | rm -f core conftest.err conftest.$ac_objext \ |
| 16406 | conftest$ac_exeext conftest.$ac_ext |
| 16407 | |
| 16408 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16409 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16410 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16411 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16412 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16413 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16415 | else |
| 16416 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16417 | ac_ext=cpp |
| 16418 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16419 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16420 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16421 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16422 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16423 | ac_save_CXXFLAGS=$CXXFLAGS |
Eric Christopher | 79e22d8 | 2012-04-02 06:54:01 +0000 | [diff] [blame] | 16424 | CXXFLAGS="$CXXFLAGS -pedantic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16425 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16426 | ac_cv_huge_val_sanity=yes |
| 16427 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16428 | cat >conftest.$ac_ext <<_ACEOF |
| 16429 | /* confdefs.h. */ |
| 16430 | _ACEOF |
| 16431 | cat confdefs.h >>conftest.$ac_ext |
| 16432 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16433 | /* end confdefs.h. */ |
| 16434 | #include <math.h> |
| 16435 | int |
| 16436 | main () |
| 16437 | { |
| 16438 | double x = HUGE_VAL; return x != x; |
| 16439 | ; |
| 16440 | return 0; |
| 16441 | } |
| 16442 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16443 | rm -f conftest$ac_exeext |
| 16444 | if { (ac_try="$ac_link" |
| 16445 | case "(($ac_try" in |
| 16446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16447 | *) ac_try_echo=$ac_try;; |
| 16448 | esac |
| 16449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16450 | (eval "$ac_link") 2>&5 |
| 16451 | ac_status=$? |
| 16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16454 | { (case "(($ac_try" in |
| 16455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16456 | *) ac_try_echo=$ac_try;; |
| 16457 | esac |
| 16458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16459 | (eval "$ac_try") 2>&5 |
| 16460 | ac_status=$? |
| 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16463 | ac_cv_huge_val_sanity=yes |
| 16464 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16465 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16466 | echo "$as_me: failed program was:" >&5 |
| 16467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16468 | |
| 16469 | ( exit $ac_status ) |
| 16470 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16471 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16472 | 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] | 16473 | fi |
| 16474 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16475 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16476 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16477 | ac_ext=c |
| 16478 | ac_cpp='$CPP $CPPFLAGS' |
| 16479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16482 | |
| 16483 | |
| 16484 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16485 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16486 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16487 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16488 | |
| 16489 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16490 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16491 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16492 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16494 | else |
| 16495 | cat >conftest.$ac_ext <<_ACEOF |
| 16496 | /* confdefs.h. */ |
| 16497 | _ACEOF |
| 16498 | cat confdefs.h >>conftest.$ac_ext |
| 16499 | cat >>conftest.$ac_ext <<_ACEOF |
| 16500 | /* end confdefs.h. */ |
| 16501 | $ac_includes_default |
| 16502 | typedef pid_t ac__type_new_; |
| 16503 | int |
| 16504 | main () |
| 16505 | { |
| 16506 | if ((ac__type_new_ *) 0) |
| 16507 | return 0; |
| 16508 | if (sizeof (ac__type_new_)) |
| 16509 | return 0; |
| 16510 | ; |
| 16511 | return 0; |
| 16512 | } |
| 16513 | _ACEOF |
| 16514 | rm -f conftest.$ac_objext |
| 16515 | if { (ac_try="$ac_compile" |
| 16516 | case "(($ac_try" in |
| 16517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16518 | *) ac_try_echo=$ac_try;; |
| 16519 | esac |
| 16520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16521 | (eval "$ac_compile") 2>conftest.er1 |
| 16522 | ac_status=$? |
| 16523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16524 | rm -f conftest.er1 |
| 16525 | cat conftest.err >&5 |
| 16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16527 | (exit $ac_status); } && |
| 16528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16529 | { (case "(($ac_try" in |
| 16530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16531 | *) ac_try_echo=$ac_try;; |
| 16532 | esac |
| 16533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16534 | (eval "$ac_try") 2>&5 |
| 16535 | ac_status=$? |
| 16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16537 | (exit $ac_status); }; } && |
| 16538 | { ac_try='test -s conftest.$ac_objext' |
| 16539 | { (case "(($ac_try" in |
| 16540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16541 | *) ac_try_echo=$ac_try;; |
| 16542 | esac |
| 16543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16544 | (eval "$ac_try") 2>&5 |
| 16545 | ac_status=$? |
| 16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16547 | (exit $ac_status); }; }; then |
| 16548 | ac_cv_type_pid_t=yes |
| 16549 | else |
| 16550 | echo "$as_me: failed program was:" >&5 |
| 16551 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16552 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16553 | ac_cv_type_pid_t=no |
| 16554 | fi |
| 16555 | |
| 16556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16557 | fi |
| 16558 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16559 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16560 | if test $ac_cv_type_pid_t = yes; then |
| 16561 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16562 | else |
| 16563 | |
| 16564 | cat >>confdefs.h <<_ACEOF |
| 16565 | #define pid_t int |
| 16566 | _ACEOF |
| 16567 | |
| 16568 | fi |
| 16569 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16570 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16571 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16572 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16574 | else |
| 16575 | cat >conftest.$ac_ext <<_ACEOF |
| 16576 | /* confdefs.h. */ |
| 16577 | _ACEOF |
| 16578 | cat confdefs.h >>conftest.$ac_ext |
| 16579 | cat >>conftest.$ac_ext <<_ACEOF |
| 16580 | /* end confdefs.h. */ |
| 16581 | $ac_includes_default |
| 16582 | typedef size_t ac__type_new_; |
| 16583 | int |
| 16584 | main () |
| 16585 | { |
| 16586 | if ((ac__type_new_ *) 0) |
| 16587 | return 0; |
| 16588 | if (sizeof (ac__type_new_)) |
| 16589 | return 0; |
| 16590 | ; |
| 16591 | return 0; |
| 16592 | } |
| 16593 | _ACEOF |
| 16594 | rm -f conftest.$ac_objext |
| 16595 | if { (ac_try="$ac_compile" |
| 16596 | case "(($ac_try" in |
| 16597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16598 | *) ac_try_echo=$ac_try;; |
| 16599 | esac |
| 16600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16601 | (eval "$ac_compile") 2>conftest.er1 |
| 16602 | ac_status=$? |
| 16603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16604 | rm -f conftest.er1 |
| 16605 | cat conftest.err >&5 |
| 16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16607 | (exit $ac_status); } && |
| 16608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16609 | { (case "(($ac_try" in |
| 16610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16611 | *) ac_try_echo=$ac_try;; |
| 16612 | esac |
| 16613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16614 | (eval "$ac_try") 2>&5 |
| 16615 | ac_status=$? |
| 16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16617 | (exit $ac_status); }; } && |
| 16618 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 16625 | ac_status=$? |
| 16626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16627 | (exit $ac_status); }; }; then |
| 16628 | ac_cv_type_size_t=yes |
| 16629 | else |
| 16630 | echo "$as_me: failed program was:" >&5 |
| 16631 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16632 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16633 | ac_cv_type_size_t=no |
| 16634 | fi |
| 16635 | |
| 16636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16637 | fi |
| 16638 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16639 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16640 | if test $ac_cv_type_size_t = yes; then |
| 16641 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16642 | else |
| 16643 | |
| 16644 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16645 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16646 | _ACEOF |
| 16647 | |
| 16648 | fi |
| 16649 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16650 | |
| 16651 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16652 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16653 | _ACEOF |
| 16654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16655 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16656 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16657 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16659 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16660 | cat >conftest.$ac_ext <<_ACEOF |
| 16661 | /* confdefs.h. */ |
| 16662 | _ACEOF |
| 16663 | cat confdefs.h >>conftest.$ac_ext |
| 16664 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16665 | /* end confdefs.h. */ |
| 16666 | #include <sys/types.h> |
| 16667 | #include <time.h> |
| 16668 | |
| 16669 | int |
| 16670 | main () |
| 16671 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16672 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16673 | ; |
| 16674 | return 0; |
| 16675 | } |
| 16676 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16677 | rm -f conftest.$ac_objext |
| 16678 | if { (ac_try="$ac_compile" |
| 16679 | case "(($ac_try" in |
| 16680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16681 | *) ac_try_echo=$ac_try;; |
| 16682 | esac |
| 16683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16684 | (eval "$ac_compile") 2>conftest.er1 |
| 16685 | ac_status=$? |
| 16686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16687 | rm -f conftest.er1 |
| 16688 | cat conftest.err >&5 |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); } && |
| 16691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16692 | { (case "(($ac_try" in |
| 16693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16694 | *) ac_try_echo=$ac_try;; |
| 16695 | esac |
| 16696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16697 | (eval "$ac_try") 2>&5 |
| 16698 | ac_status=$? |
| 16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16700 | (exit $ac_status); }; } && |
| 16701 | { ac_try='test -s conftest.$ac_objext' |
| 16702 | { (case "(($ac_try" in |
| 16703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16704 | *) ac_try_echo=$ac_try;; |
| 16705 | esac |
| 16706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16707 | (eval "$ac_try") 2>&5 |
| 16708 | ac_status=$? |
| 16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16710 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16711 | ac_cv_struct_tm=time.h |
| 16712 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16713 | echo "$as_me: failed program was:" >&5 |
| 16714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16715 | |
| 16716 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16717 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16720 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16721 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16722 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16723 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16725 | cat >>confdefs.h <<\_ACEOF |
| 16726 | #define TM_IN_SYS_TIME 1 |
| 16727 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16728 | |
| 16729 | fi |
| 16730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16731 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16732 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16733 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16735 | else |
| 16736 | cat >conftest.$ac_ext <<_ACEOF |
| 16737 | /* confdefs.h. */ |
| 16738 | _ACEOF |
| 16739 | cat confdefs.h >>conftest.$ac_ext |
| 16740 | cat >>conftest.$ac_ext <<_ACEOF |
| 16741 | /* end confdefs.h. */ |
| 16742 | $ac_includes_default |
| 16743 | typedef int64_t ac__type_new_; |
| 16744 | int |
| 16745 | main () |
| 16746 | { |
| 16747 | if ((ac__type_new_ *) 0) |
| 16748 | return 0; |
| 16749 | if (sizeof (ac__type_new_)) |
| 16750 | return 0; |
| 16751 | ; |
| 16752 | return 0; |
| 16753 | } |
| 16754 | _ACEOF |
| 16755 | rm -f conftest.$ac_objext |
| 16756 | if { (ac_try="$ac_compile" |
| 16757 | case "(($ac_try" in |
| 16758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16759 | *) ac_try_echo=$ac_try;; |
| 16760 | esac |
| 16761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16762 | (eval "$ac_compile") 2>conftest.er1 |
| 16763 | ac_status=$? |
| 16764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16765 | rm -f conftest.er1 |
| 16766 | cat conftest.err >&5 |
| 16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16768 | (exit $ac_status); } && |
| 16769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16770 | { (case "(($ac_try" in |
| 16771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16772 | *) ac_try_echo=$ac_try;; |
| 16773 | esac |
| 16774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16775 | (eval "$ac_try") 2>&5 |
| 16776 | ac_status=$? |
| 16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16778 | (exit $ac_status); }; } && |
| 16779 | { ac_try='test -s conftest.$ac_objext' |
| 16780 | { (case "(($ac_try" in |
| 16781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16782 | *) ac_try_echo=$ac_try;; |
| 16783 | esac |
| 16784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16785 | (eval "$ac_try") 2>&5 |
| 16786 | ac_status=$? |
| 16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16788 | (exit $ac_status); }; }; then |
| 16789 | ac_cv_type_int64_t=yes |
| 16790 | else |
| 16791 | echo "$as_me: failed program was:" >&5 |
| 16792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16793 | |
| 16794 | ac_cv_type_int64_t=no |
| 16795 | fi |
| 16796 | |
| 16797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16798 | fi |
| 16799 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16800 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16801 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16802 | |
| 16803 | cat >>confdefs.h <<_ACEOF |
| 16804 | #define HAVE_INT64_T 1 |
| 16805 | _ACEOF |
| 16806 | |
| 16807 | |
| 16808 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16809 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16810 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16811 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16812 | fi |
| 16813 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16814 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16815 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16816 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16818 | else |
| 16819 | cat >conftest.$ac_ext <<_ACEOF |
| 16820 | /* confdefs.h. */ |
| 16821 | _ACEOF |
| 16822 | cat confdefs.h >>conftest.$ac_ext |
| 16823 | cat >>conftest.$ac_ext <<_ACEOF |
| 16824 | /* end confdefs.h. */ |
| 16825 | $ac_includes_default |
| 16826 | typedef uint64_t ac__type_new_; |
| 16827 | int |
| 16828 | main () |
| 16829 | { |
| 16830 | if ((ac__type_new_ *) 0) |
| 16831 | return 0; |
| 16832 | if (sizeof (ac__type_new_)) |
| 16833 | return 0; |
| 16834 | ; |
| 16835 | return 0; |
| 16836 | } |
| 16837 | _ACEOF |
| 16838 | rm -f conftest.$ac_objext |
| 16839 | if { (ac_try="$ac_compile" |
| 16840 | case "(($ac_try" in |
| 16841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16842 | *) ac_try_echo=$ac_try;; |
| 16843 | esac |
| 16844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16845 | (eval "$ac_compile") 2>conftest.er1 |
| 16846 | ac_status=$? |
| 16847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16848 | rm -f conftest.er1 |
| 16849 | cat conftest.err >&5 |
| 16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16851 | (exit $ac_status); } && |
| 16852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16853 | { (case "(($ac_try" in |
| 16854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16855 | *) ac_try_echo=$ac_try;; |
| 16856 | esac |
| 16857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16858 | (eval "$ac_try") 2>&5 |
| 16859 | ac_status=$? |
| 16860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16861 | (exit $ac_status); }; } && |
| 16862 | { ac_try='test -s conftest.$ac_objext' |
| 16863 | { (case "(($ac_try" in |
| 16864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16865 | *) ac_try_echo=$ac_try;; |
| 16866 | esac |
| 16867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16868 | (eval "$ac_try") 2>&5 |
| 16869 | ac_status=$? |
| 16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16871 | (exit $ac_status); }; }; then |
| 16872 | ac_cv_type_uint64_t=yes |
| 16873 | else |
| 16874 | echo "$as_me: failed program was:" >&5 |
| 16875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16876 | |
| 16877 | ac_cv_type_uint64_t=no |
| 16878 | fi |
| 16879 | |
| 16880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16881 | fi |
| 16882 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16883 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16884 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16885 | |
| 16886 | cat >>confdefs.h <<_ACEOF |
| 16887 | #define HAVE_UINT64_T 1 |
| 16888 | _ACEOF |
| 16889 | |
| 16890 | |
| 16891 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16892 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16893 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16894 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16896 | else |
| 16897 | cat >conftest.$ac_ext <<_ACEOF |
| 16898 | /* confdefs.h. */ |
| 16899 | _ACEOF |
| 16900 | cat confdefs.h >>conftest.$ac_ext |
| 16901 | cat >>conftest.$ac_ext <<_ACEOF |
| 16902 | /* end confdefs.h. */ |
| 16903 | $ac_includes_default |
| 16904 | typedef u_int64_t ac__type_new_; |
| 16905 | int |
| 16906 | main () |
| 16907 | { |
| 16908 | if ((ac__type_new_ *) 0) |
| 16909 | return 0; |
| 16910 | if (sizeof (ac__type_new_)) |
| 16911 | return 0; |
| 16912 | ; |
| 16913 | return 0; |
| 16914 | } |
| 16915 | _ACEOF |
| 16916 | rm -f conftest.$ac_objext |
| 16917 | if { (ac_try="$ac_compile" |
| 16918 | case "(($ac_try" in |
| 16919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16920 | *) ac_try_echo=$ac_try;; |
| 16921 | esac |
| 16922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16923 | (eval "$ac_compile") 2>conftest.er1 |
| 16924 | ac_status=$? |
| 16925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16926 | rm -f conftest.er1 |
| 16927 | cat conftest.err >&5 |
| 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16929 | (exit $ac_status); } && |
| 16930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16931 | { (case "(($ac_try" in |
| 16932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16933 | *) ac_try_echo=$ac_try;; |
| 16934 | esac |
| 16935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16936 | (eval "$ac_try") 2>&5 |
| 16937 | ac_status=$? |
| 16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16939 | (exit $ac_status); }; } && |
| 16940 | { ac_try='test -s conftest.$ac_objext' |
| 16941 | { (case "(($ac_try" in |
| 16942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16943 | *) ac_try_echo=$ac_try;; |
| 16944 | esac |
| 16945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16946 | (eval "$ac_try") 2>&5 |
| 16947 | ac_status=$? |
| 16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16949 | (exit $ac_status); }; }; then |
| 16950 | ac_cv_type_u_int64_t=yes |
| 16951 | else |
| 16952 | echo "$as_me: failed program was:" >&5 |
| 16953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16954 | |
| 16955 | ac_cv_type_u_int64_t=no |
| 16956 | fi |
| 16957 | |
| 16958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16959 | fi |
| 16960 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16961 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16962 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16963 | |
| 16964 | cat >>confdefs.h <<_ACEOF |
| 16965 | #define HAVE_U_INT64_T 1 |
| 16966 | _ACEOF |
| 16967 | |
| 16968 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16969 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16970 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16971 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16972 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16973 | fi |
| 16974 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16975 | fi |
| 16976 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16977 | |
| 16978 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16979 | |
| 16980 | |
| 16981 | |
| 16982 | |
| 16983 | |
| 16984 | |
| 16985 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16986 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16987 | do |
| 16988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16989 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16991 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16993 | else |
| 16994 | cat >conftest.$ac_ext <<_ACEOF |
| 16995 | /* confdefs.h. */ |
| 16996 | _ACEOF |
| 16997 | cat confdefs.h >>conftest.$ac_ext |
| 16998 | cat >>conftest.$ac_ext <<_ACEOF |
| 16999 | /* end confdefs.h. */ |
| 17000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17002 | #define $ac_func innocuous_$ac_func |
| 17003 | |
| 17004 | /* System header to define __stub macros and hopefully few prototypes, |
| 17005 | which can conflict with char $ac_func (); below. |
| 17006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17007 | <limits.h> exists even on freestanding compilers. */ |
| 17008 | |
| 17009 | #ifdef __STDC__ |
| 17010 | # include <limits.h> |
| 17011 | #else |
| 17012 | # include <assert.h> |
| 17013 | #endif |
| 17014 | |
| 17015 | #undef $ac_func |
| 17016 | |
| 17017 | /* Override any GCC internal prototype to avoid an error. |
| 17018 | Use char because int might match the return type of a GCC |
| 17019 | builtin and then its argument prototype would still apply. */ |
| 17020 | #ifdef __cplusplus |
| 17021 | extern "C" |
| 17022 | #endif |
| 17023 | char $ac_func (); |
| 17024 | /* The GNU C library defines this for functions which it implements |
| 17025 | to always fail with ENOSYS. Some functions are actually named |
| 17026 | something starting with __ and the normal name is an alias. */ |
| 17027 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17028 | choke me |
| 17029 | #endif |
| 17030 | |
| 17031 | int |
| 17032 | main () |
| 17033 | { |
| 17034 | return $ac_func (); |
| 17035 | ; |
| 17036 | return 0; |
| 17037 | } |
| 17038 | _ACEOF |
| 17039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17040 | if { (ac_try="$ac_link" |
| 17041 | case "(($ac_try" in |
| 17042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17043 | *) ac_try_echo=$ac_try;; |
| 17044 | esac |
| 17045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17046 | (eval "$ac_link") 2>conftest.er1 |
| 17047 | ac_status=$? |
| 17048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17049 | rm -f conftest.er1 |
| 17050 | cat conftest.err >&5 |
| 17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17052 | (exit $ac_status); } && |
| 17053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17054 | { (case "(($ac_try" in |
| 17055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17056 | *) ac_try_echo=$ac_try;; |
| 17057 | esac |
| 17058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17059 | (eval "$ac_try") 2>&5 |
| 17060 | ac_status=$? |
| 17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17062 | (exit $ac_status); }; } && |
| 17063 | { ac_try='test -s conftest$ac_exeext' |
| 17064 | { (case "(($ac_try" in |
| 17065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17066 | *) ac_try_echo=$ac_try;; |
| 17067 | esac |
| 17068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17069 | (eval "$ac_try") 2>&5 |
| 17070 | ac_status=$? |
| 17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17072 | (exit $ac_status); }; }; then |
| 17073 | eval "$as_ac_var=yes" |
| 17074 | else |
| 17075 | echo "$as_me: failed program was:" >&5 |
| 17076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17077 | |
| 17078 | eval "$as_ac_var=no" |
| 17079 | fi |
| 17080 | |
| 17081 | rm -f core conftest.err conftest.$ac_objext \ |
| 17082 | conftest$ac_exeext conftest.$ac_ext |
| 17083 | fi |
| 17084 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17085 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17086 | echo "${ECHO_T}$ac_res" >&6; } |
| 17087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17088 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17090 | _ACEOF |
| 17091 | |
| 17092 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17093 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17094 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17095 | |
| 17096 | |
| 17097 | |
| 17098 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17099 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17100 | do |
| 17101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17102 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17104 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17106 | else |
| 17107 | cat >conftest.$ac_ext <<_ACEOF |
| 17108 | /* confdefs.h. */ |
| 17109 | _ACEOF |
| 17110 | cat confdefs.h >>conftest.$ac_ext |
| 17111 | cat >>conftest.$ac_ext <<_ACEOF |
| 17112 | /* end confdefs.h. */ |
| 17113 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17115 | #define $ac_func innocuous_$ac_func |
| 17116 | |
| 17117 | /* System header to define __stub macros and hopefully few prototypes, |
| 17118 | which can conflict with char $ac_func (); below. |
| 17119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17120 | <limits.h> exists even on freestanding compilers. */ |
| 17121 | |
| 17122 | #ifdef __STDC__ |
| 17123 | # include <limits.h> |
| 17124 | #else |
| 17125 | # include <assert.h> |
| 17126 | #endif |
| 17127 | |
| 17128 | #undef $ac_func |
| 17129 | |
| 17130 | /* Override any GCC internal prototype to avoid an error. |
| 17131 | Use char because int might match the return type of a GCC |
| 17132 | builtin and then its argument prototype would still apply. */ |
| 17133 | #ifdef __cplusplus |
| 17134 | extern "C" |
| 17135 | #endif |
| 17136 | char $ac_func (); |
| 17137 | /* The GNU C library defines this for functions which it implements |
| 17138 | to always fail with ENOSYS. Some functions are actually named |
| 17139 | something starting with __ and the normal name is an alias. */ |
| 17140 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17141 | choke me |
| 17142 | #endif |
| 17143 | |
| 17144 | int |
| 17145 | main () |
| 17146 | { |
| 17147 | return $ac_func (); |
| 17148 | ; |
| 17149 | return 0; |
| 17150 | } |
| 17151 | _ACEOF |
| 17152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17153 | if { (ac_try="$ac_link" |
| 17154 | case "(($ac_try" in |
| 17155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17156 | *) ac_try_echo=$ac_try;; |
| 17157 | esac |
| 17158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17159 | (eval "$ac_link") 2>conftest.er1 |
| 17160 | ac_status=$? |
| 17161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17162 | rm -f conftest.er1 |
| 17163 | cat conftest.err >&5 |
| 17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17165 | (exit $ac_status); } && |
| 17166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17167 | { (case "(($ac_try" in |
| 17168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17169 | *) ac_try_echo=$ac_try;; |
| 17170 | esac |
| 17171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17172 | (eval "$ac_try") 2>&5 |
| 17173 | ac_status=$? |
| 17174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17175 | (exit $ac_status); }; } && |
| 17176 | { ac_try='test -s conftest$ac_exeext' |
| 17177 | { (case "(($ac_try" in |
| 17178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17179 | *) ac_try_echo=$ac_try;; |
| 17180 | esac |
| 17181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17182 | (eval "$ac_try") 2>&5 |
| 17183 | ac_status=$? |
| 17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17185 | (exit $ac_status); }; }; then |
| 17186 | eval "$as_ac_var=yes" |
| 17187 | else |
| 17188 | echo "$as_me: failed program was:" >&5 |
| 17189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17190 | |
| 17191 | eval "$as_ac_var=no" |
| 17192 | fi |
| 17193 | |
| 17194 | rm -f core conftest.err conftest.$ac_objext \ |
| 17195 | conftest$ac_exeext conftest.$ac_ext |
| 17196 | fi |
| 17197 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17198 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17199 | echo "${ECHO_T}$ac_res" >&6; } |
| 17200 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17201 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17203 | _ACEOF |
| 17204 | |
| 17205 | fi |
| 17206 | done |
| 17207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17208 | |
| 17209 | |
| 17210 | |
| 17211 | |
| 17212 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17213 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17214 | do |
| 17215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17216 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17218 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17220 | else |
| 17221 | cat >conftest.$ac_ext <<_ACEOF |
| 17222 | /* confdefs.h. */ |
| 17223 | _ACEOF |
| 17224 | cat confdefs.h >>conftest.$ac_ext |
| 17225 | cat >>conftest.$ac_ext <<_ACEOF |
| 17226 | /* end confdefs.h. */ |
| 17227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17229 | #define $ac_func innocuous_$ac_func |
| 17230 | |
| 17231 | /* System header to define __stub macros and hopefully few prototypes, |
| 17232 | which can conflict with char $ac_func (); below. |
| 17233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17234 | <limits.h> exists even on freestanding compilers. */ |
| 17235 | |
| 17236 | #ifdef __STDC__ |
| 17237 | # include <limits.h> |
| 17238 | #else |
| 17239 | # include <assert.h> |
| 17240 | #endif |
| 17241 | |
| 17242 | #undef $ac_func |
| 17243 | |
| 17244 | /* Override any GCC internal prototype to avoid an error. |
| 17245 | Use char because int might match the return type of a GCC |
| 17246 | builtin and then its argument prototype would still apply. */ |
| 17247 | #ifdef __cplusplus |
| 17248 | extern "C" |
| 17249 | #endif |
| 17250 | char $ac_func (); |
| 17251 | /* The GNU C library defines this for functions which it implements |
| 17252 | to always fail with ENOSYS. Some functions are actually named |
| 17253 | something starting with __ and the normal name is an alias. */ |
| 17254 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17255 | choke me |
| 17256 | #endif |
| 17257 | |
| 17258 | int |
| 17259 | main () |
| 17260 | { |
| 17261 | return $ac_func (); |
| 17262 | ; |
| 17263 | return 0; |
| 17264 | } |
| 17265 | _ACEOF |
| 17266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17267 | if { (ac_try="$ac_link" |
| 17268 | case "(($ac_try" in |
| 17269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17270 | *) ac_try_echo=$ac_try;; |
| 17271 | esac |
| 17272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17273 | (eval "$ac_link") 2>conftest.er1 |
| 17274 | ac_status=$? |
| 17275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17276 | rm -f conftest.er1 |
| 17277 | cat conftest.err >&5 |
| 17278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17279 | (exit $ac_status); } && |
| 17280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17281 | { (case "(($ac_try" in |
| 17282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17283 | *) ac_try_echo=$ac_try;; |
| 17284 | esac |
| 17285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17286 | (eval "$ac_try") 2>&5 |
| 17287 | ac_status=$? |
| 17288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17289 | (exit $ac_status); }; } && |
| 17290 | { ac_try='test -s conftest$ac_exeext' |
| 17291 | { (case "(($ac_try" in |
| 17292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17293 | *) ac_try_echo=$ac_try;; |
| 17294 | esac |
| 17295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17296 | (eval "$ac_try") 2>&5 |
| 17297 | ac_status=$? |
| 17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17299 | (exit $ac_status); }; }; then |
| 17300 | eval "$as_ac_var=yes" |
| 17301 | else |
| 17302 | echo "$as_me: failed program was:" >&5 |
| 17303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17304 | |
| 17305 | eval "$as_ac_var=no" |
| 17306 | fi |
| 17307 | |
| 17308 | rm -f core conftest.err conftest.$ac_objext \ |
| 17309 | conftest$ac_exeext conftest.$ac_ext |
| 17310 | fi |
| 17311 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17312 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17313 | echo "${ECHO_T}$ac_res" >&6; } |
| 17314 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17315 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17317 | _ACEOF |
| 17318 | |
| 17319 | fi |
| 17320 | done |
| 17321 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17322 | |
| 17323 | |
| 17324 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17325 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17326 | do |
| 17327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17328 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17330 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17332 | else |
| 17333 | cat >conftest.$ac_ext <<_ACEOF |
| 17334 | /* confdefs.h. */ |
| 17335 | _ACEOF |
| 17336 | cat confdefs.h >>conftest.$ac_ext |
| 17337 | cat >>conftest.$ac_ext <<_ACEOF |
| 17338 | /* end confdefs.h. */ |
| 17339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17341 | #define $ac_func innocuous_$ac_func |
| 17342 | |
| 17343 | /* System header to define __stub macros and hopefully few prototypes, |
| 17344 | which can conflict with char $ac_func (); below. |
| 17345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17346 | <limits.h> exists even on freestanding compilers. */ |
| 17347 | |
| 17348 | #ifdef __STDC__ |
| 17349 | # include <limits.h> |
| 17350 | #else |
| 17351 | # include <assert.h> |
| 17352 | #endif |
| 17353 | |
| 17354 | #undef $ac_func |
| 17355 | |
| 17356 | /* Override any GCC internal prototype to avoid an error. |
| 17357 | Use char because int might match the return type of a GCC |
| 17358 | builtin and then its argument prototype would still apply. */ |
| 17359 | #ifdef __cplusplus |
| 17360 | extern "C" |
| 17361 | #endif |
| 17362 | char $ac_func (); |
| 17363 | /* The GNU C library defines this for functions which it implements |
| 17364 | to always fail with ENOSYS. Some functions are actually named |
| 17365 | something starting with __ and the normal name is an alias. */ |
| 17366 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17367 | choke me |
| 17368 | #endif |
| 17369 | |
| 17370 | int |
| 17371 | main () |
| 17372 | { |
| 17373 | return $ac_func (); |
| 17374 | ; |
| 17375 | return 0; |
| 17376 | } |
| 17377 | _ACEOF |
| 17378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17379 | if { (ac_try="$ac_link" |
| 17380 | case "(($ac_try" in |
| 17381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17382 | *) ac_try_echo=$ac_try;; |
| 17383 | esac |
| 17384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17385 | (eval "$ac_link") 2>conftest.er1 |
| 17386 | ac_status=$? |
| 17387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17388 | rm -f conftest.er1 |
| 17389 | cat conftest.err >&5 |
| 17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17391 | (exit $ac_status); } && |
| 17392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17393 | { (case "(($ac_try" in |
| 17394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17395 | *) ac_try_echo=$ac_try;; |
| 17396 | esac |
| 17397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17398 | (eval "$ac_try") 2>&5 |
| 17399 | ac_status=$? |
| 17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17401 | (exit $ac_status); }; } && |
| 17402 | { ac_try='test -s conftest$ac_exeext' |
| 17403 | { (case "(($ac_try" in |
| 17404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17405 | *) ac_try_echo=$ac_try;; |
| 17406 | esac |
| 17407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17408 | (eval "$ac_try") 2>&5 |
| 17409 | ac_status=$? |
| 17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17411 | (exit $ac_status); }; }; then |
| 17412 | eval "$as_ac_var=yes" |
| 17413 | else |
| 17414 | echo "$as_me: failed program was:" >&5 |
| 17415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17416 | |
| 17417 | eval "$as_ac_var=no" |
| 17418 | fi |
| 17419 | |
| 17420 | rm -f core conftest.err conftest.$ac_objext \ |
| 17421 | conftest$ac_exeext conftest.$ac_ext |
| 17422 | fi |
| 17423 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17424 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17425 | echo "${ECHO_T}$ac_res" >&6; } |
| 17426 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17427 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17428 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17429 | _ACEOF |
| 17430 | |
| 17431 | fi |
| 17432 | done |
| 17433 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17434 | |
| 17435 | |
| 17436 | |
| 17437 | |
| 17438 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17439 | |
Benjamin Kramer | 5745fbc | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17440 | |
| 17441 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17442 | do |
| 17443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17444 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17446 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17448 | else |
| 17449 | cat >conftest.$ac_ext <<_ACEOF |
| 17450 | /* confdefs.h. */ |
| 17451 | _ACEOF |
| 17452 | cat confdefs.h >>conftest.$ac_ext |
| 17453 | cat >>conftest.$ac_ext <<_ACEOF |
| 17454 | /* end confdefs.h. */ |
| 17455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17457 | #define $ac_func innocuous_$ac_func |
| 17458 | |
| 17459 | /* System header to define __stub macros and hopefully few prototypes, |
| 17460 | which can conflict with char $ac_func (); below. |
| 17461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17462 | <limits.h> exists even on freestanding compilers. */ |
| 17463 | |
| 17464 | #ifdef __STDC__ |
| 17465 | # include <limits.h> |
| 17466 | #else |
| 17467 | # include <assert.h> |
| 17468 | #endif |
| 17469 | |
| 17470 | #undef $ac_func |
| 17471 | |
| 17472 | /* Override any GCC internal prototype to avoid an error. |
| 17473 | Use char because int might match the return type of a GCC |
| 17474 | builtin and then its argument prototype would still apply. */ |
| 17475 | #ifdef __cplusplus |
| 17476 | extern "C" |
| 17477 | #endif |
| 17478 | char $ac_func (); |
| 17479 | /* The GNU C library defines this for functions which it implements |
| 17480 | to always fail with ENOSYS. Some functions are actually named |
| 17481 | something starting with __ and the normal name is an alias. */ |
| 17482 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17483 | choke me |
| 17484 | #endif |
| 17485 | |
| 17486 | int |
| 17487 | main () |
| 17488 | { |
| 17489 | return $ac_func (); |
| 17490 | ; |
| 17491 | return 0; |
| 17492 | } |
| 17493 | _ACEOF |
| 17494 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17495 | if { (ac_try="$ac_link" |
| 17496 | case "(($ac_try" in |
| 17497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17498 | *) ac_try_echo=$ac_try;; |
| 17499 | esac |
| 17500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17501 | (eval "$ac_link") 2>conftest.er1 |
| 17502 | ac_status=$? |
| 17503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17504 | rm -f conftest.er1 |
| 17505 | cat conftest.err >&5 |
| 17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17507 | (exit $ac_status); } && |
| 17508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17509 | { (case "(($ac_try" in |
| 17510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17511 | *) ac_try_echo=$ac_try;; |
| 17512 | esac |
| 17513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17514 | (eval "$ac_try") 2>&5 |
| 17515 | ac_status=$? |
| 17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17517 | (exit $ac_status); }; } && |
| 17518 | { ac_try='test -s conftest$ac_exeext' |
| 17519 | { (case "(($ac_try" in |
| 17520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17521 | *) ac_try_echo=$ac_try;; |
| 17522 | esac |
| 17523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17524 | (eval "$ac_try") 2>&5 |
| 17525 | ac_status=$? |
| 17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17527 | (exit $ac_status); }; }; then |
| 17528 | eval "$as_ac_var=yes" |
| 17529 | else |
| 17530 | echo "$as_me: failed program was:" >&5 |
| 17531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17532 | |
| 17533 | eval "$as_ac_var=no" |
| 17534 | fi |
| 17535 | |
| 17536 | rm -f core conftest.err conftest.$ac_objext \ |
| 17537 | conftest$ac_exeext conftest.$ac_ext |
| 17538 | fi |
| 17539 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17540 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17541 | echo "${ECHO_T}$ac_res" >&6; } |
| 17542 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17543 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17545 | _ACEOF |
| 17546 | |
| 17547 | fi |
| 17548 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17549 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17550 | |
| 17551 | |
| 17552 | |
Daniel Dunbar | e0b0e7b | 2012-05-05 16:36:16 +0000 | [diff] [blame] | 17553 | |
| 17554 | for ac_func in strerror strerror_r setenv arc4random |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17555 | do |
| 17556 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17557 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17558 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17559 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17561 | else |
| 17562 | cat >conftest.$ac_ext <<_ACEOF |
| 17563 | /* confdefs.h. */ |
| 17564 | _ACEOF |
| 17565 | cat confdefs.h >>conftest.$ac_ext |
| 17566 | cat >>conftest.$ac_ext <<_ACEOF |
| 17567 | /* end confdefs.h. */ |
| 17568 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17569 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17570 | #define $ac_func innocuous_$ac_func |
| 17571 | |
| 17572 | /* System header to define __stub macros and hopefully few prototypes, |
| 17573 | which can conflict with char $ac_func (); below. |
| 17574 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17575 | <limits.h> exists even on freestanding compilers. */ |
| 17576 | |
| 17577 | #ifdef __STDC__ |
| 17578 | # include <limits.h> |
| 17579 | #else |
| 17580 | # include <assert.h> |
| 17581 | #endif |
| 17582 | |
| 17583 | #undef $ac_func |
| 17584 | |
| 17585 | /* Override any GCC internal prototype to avoid an error. |
| 17586 | Use char because int might match the return type of a GCC |
| 17587 | builtin and then its argument prototype would still apply. */ |
| 17588 | #ifdef __cplusplus |
| 17589 | extern "C" |
| 17590 | #endif |
| 17591 | char $ac_func (); |
| 17592 | /* The GNU C library defines this for functions which it implements |
| 17593 | to always fail with ENOSYS. Some functions are actually named |
| 17594 | something starting with __ and the normal name is an alias. */ |
| 17595 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17596 | choke me |
| 17597 | #endif |
| 17598 | |
| 17599 | int |
| 17600 | main () |
| 17601 | { |
| 17602 | return $ac_func (); |
| 17603 | ; |
| 17604 | return 0; |
| 17605 | } |
| 17606 | _ACEOF |
| 17607 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17608 | if { (ac_try="$ac_link" |
| 17609 | case "(($ac_try" in |
| 17610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17611 | *) ac_try_echo=$ac_try;; |
| 17612 | esac |
| 17613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17614 | (eval "$ac_link") 2>conftest.er1 |
| 17615 | ac_status=$? |
| 17616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17617 | rm -f conftest.er1 |
| 17618 | cat conftest.err >&5 |
| 17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17620 | (exit $ac_status); } && |
| 17621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 17628 | ac_status=$? |
| 17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17630 | (exit $ac_status); }; } && |
| 17631 | { ac_try='test -s conftest$ac_exeext' |
| 17632 | { (case "(($ac_try" in |
| 17633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17634 | *) ac_try_echo=$ac_try;; |
| 17635 | esac |
| 17636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17637 | (eval "$ac_try") 2>&5 |
| 17638 | ac_status=$? |
| 17639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17640 | (exit $ac_status); }; }; then |
| 17641 | eval "$as_ac_var=yes" |
| 17642 | else |
| 17643 | echo "$as_me: failed program was:" >&5 |
| 17644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17645 | |
| 17646 | eval "$as_ac_var=no" |
| 17647 | fi |
| 17648 | |
| 17649 | rm -f core conftest.err conftest.$ac_objext \ |
| 17650 | conftest$ac_exeext conftest.$ac_ext |
| 17651 | fi |
| 17652 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17653 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17654 | echo "${ECHO_T}$ac_res" >&6; } |
| 17655 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17656 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17658 | _ACEOF |
| 17659 | |
| 17660 | fi |
| 17661 | done |
| 17662 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17663 | |
| 17664 | |
| 17665 | |
| 17666 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17667 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17668 | do |
| 17669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17670 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17672 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17674 | else |
| 17675 | cat >conftest.$ac_ext <<_ACEOF |
| 17676 | /* confdefs.h. */ |
| 17677 | _ACEOF |
| 17678 | cat confdefs.h >>conftest.$ac_ext |
| 17679 | cat >>conftest.$ac_ext <<_ACEOF |
| 17680 | /* end confdefs.h. */ |
| 17681 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17683 | #define $ac_func innocuous_$ac_func |
| 17684 | |
| 17685 | /* System header to define __stub macros and hopefully few prototypes, |
| 17686 | which can conflict with char $ac_func (); below. |
| 17687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17688 | <limits.h> exists even on freestanding compilers. */ |
| 17689 | |
| 17690 | #ifdef __STDC__ |
| 17691 | # include <limits.h> |
| 17692 | #else |
| 17693 | # include <assert.h> |
| 17694 | #endif |
| 17695 | |
| 17696 | #undef $ac_func |
| 17697 | |
| 17698 | /* Override any GCC internal prototype to avoid an error. |
| 17699 | Use char because int might match the return type of a GCC |
| 17700 | builtin and then its argument prototype would still apply. */ |
| 17701 | #ifdef __cplusplus |
| 17702 | extern "C" |
| 17703 | #endif |
| 17704 | char $ac_func (); |
| 17705 | /* The GNU C library defines this for functions which it implements |
| 17706 | to always fail with ENOSYS. Some functions are actually named |
| 17707 | something starting with __ and the normal name is an alias. */ |
| 17708 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17709 | choke me |
| 17710 | #endif |
| 17711 | |
| 17712 | int |
| 17713 | main () |
| 17714 | { |
| 17715 | return $ac_func (); |
| 17716 | ; |
| 17717 | return 0; |
| 17718 | } |
| 17719 | _ACEOF |
| 17720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17721 | if { (ac_try="$ac_link" |
| 17722 | case "(($ac_try" in |
| 17723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17724 | *) ac_try_echo=$ac_try;; |
| 17725 | esac |
| 17726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17727 | (eval "$ac_link") 2>conftest.er1 |
| 17728 | ac_status=$? |
| 17729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17730 | rm -f conftest.er1 |
| 17731 | cat conftest.err >&5 |
| 17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17733 | (exit $ac_status); } && |
| 17734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17735 | { (case "(($ac_try" in |
| 17736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17737 | *) ac_try_echo=$ac_try;; |
| 17738 | esac |
| 17739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17740 | (eval "$ac_try") 2>&5 |
| 17741 | ac_status=$? |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); }; } && |
| 17744 | { ac_try='test -s conftest$ac_exeext' |
| 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_try") 2>&5 |
| 17751 | ac_status=$? |
| 17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17753 | (exit $ac_status); }; }; then |
| 17754 | eval "$as_ac_var=yes" |
| 17755 | else |
| 17756 | echo "$as_me: failed program was:" >&5 |
| 17757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17758 | |
| 17759 | eval "$as_ac_var=no" |
| 17760 | fi |
| 17761 | |
| 17762 | rm -f core conftest.err conftest.$ac_objext \ |
| 17763 | conftest$ac_exeext conftest.$ac_ext |
| 17764 | fi |
| 17765 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17767 | echo "${ECHO_T}$ac_res" >&6; } |
| 17768 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17769 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17771 | _ACEOF |
| 17772 | |
| 17773 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17774 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17776 | |
| 17777 | |
| 17778 | |
| 17779 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17780 | |
| 17781 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17782 | do |
| 17783 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17784 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17785 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17786 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17788 | else |
| 17789 | cat >conftest.$ac_ext <<_ACEOF |
| 17790 | /* confdefs.h. */ |
| 17791 | _ACEOF |
| 17792 | cat confdefs.h >>conftest.$ac_ext |
| 17793 | cat >>conftest.$ac_ext <<_ACEOF |
| 17794 | /* end confdefs.h. */ |
| 17795 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17796 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17797 | #define $ac_func innocuous_$ac_func |
| 17798 | |
| 17799 | /* System header to define __stub macros and hopefully few prototypes, |
| 17800 | which can conflict with char $ac_func (); below. |
| 17801 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17802 | <limits.h> exists even on freestanding compilers. */ |
| 17803 | |
| 17804 | #ifdef __STDC__ |
| 17805 | # include <limits.h> |
| 17806 | #else |
| 17807 | # include <assert.h> |
| 17808 | #endif |
| 17809 | |
| 17810 | #undef $ac_func |
| 17811 | |
| 17812 | /* Override any GCC internal prototype to avoid an error. |
| 17813 | Use char because int might match the return type of a GCC |
| 17814 | builtin and then its argument prototype would still apply. */ |
| 17815 | #ifdef __cplusplus |
| 17816 | extern "C" |
| 17817 | #endif |
| 17818 | char $ac_func (); |
| 17819 | /* The GNU C library defines this for functions which it implements |
| 17820 | to always fail with ENOSYS. Some functions are actually named |
| 17821 | something starting with __ and the normal name is an alias. */ |
| 17822 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17823 | choke me |
| 17824 | #endif |
| 17825 | |
| 17826 | int |
| 17827 | main () |
| 17828 | { |
| 17829 | return $ac_func (); |
| 17830 | ; |
| 17831 | return 0; |
| 17832 | } |
| 17833 | _ACEOF |
| 17834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17835 | if { (ac_try="$ac_link" |
| 17836 | case "(($ac_try" in |
| 17837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17838 | *) ac_try_echo=$ac_try;; |
| 17839 | esac |
| 17840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17841 | (eval "$ac_link") 2>conftest.er1 |
| 17842 | ac_status=$? |
| 17843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17844 | rm -f conftest.er1 |
| 17845 | cat conftest.err >&5 |
| 17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17847 | (exit $ac_status); } && |
| 17848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17849 | { (case "(($ac_try" in |
| 17850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17851 | *) ac_try_echo=$ac_try;; |
| 17852 | esac |
| 17853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17854 | (eval "$ac_try") 2>&5 |
| 17855 | ac_status=$? |
| 17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17857 | (exit $ac_status); }; } && |
| 17858 | { ac_try='test -s conftest$ac_exeext' |
| 17859 | { (case "(($ac_try" in |
| 17860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17861 | *) ac_try_echo=$ac_try;; |
| 17862 | esac |
| 17863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17864 | (eval "$ac_try") 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); }; }; then |
| 17868 | eval "$as_ac_var=yes" |
| 17869 | else |
| 17870 | echo "$as_me: failed program was:" >&5 |
| 17871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17872 | |
| 17873 | eval "$as_ac_var=no" |
| 17874 | fi |
| 17875 | |
| 17876 | rm -f core conftest.err conftest.$ac_objext \ |
| 17877 | conftest$ac_exeext conftest.$ac_ext |
| 17878 | fi |
| 17879 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17880 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17881 | echo "${ECHO_T}$ac_res" >&6; } |
| 17882 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17883 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17885 | _ACEOF |
| 17886 | |
| 17887 | fi |
| 17888 | done |
| 17889 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17890 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17891 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17892 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17894 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17895 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17896 | ac_cpp='$CPP $CPPFLAGS' |
| 17897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17901 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17902 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17903 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17904 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17906 | /* confdefs.h. */ |
| 17907 | _ACEOF |
| 17908 | cat confdefs.h >>conftest.$ac_ext |
| 17909 | cat >>conftest.$ac_ext <<_ACEOF |
| 17910 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17911 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17912 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17913 | #include <stdlib.h> |
| 17914 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17915 | int |
| 17916 | main () |
| 17917 | { |
| 17918 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17919 | volatile double A, B; |
| 17920 | char Buffer[100]; |
| 17921 | A = 1; |
| 17922 | A /= 10.0; |
| 17923 | sprintf(Buffer, "%a", A); |
| 17924 | B = atof(Buffer); |
| 17925 | if (A != B) |
| 17926 | return (1); |
| 17927 | if (A != 0x1.999999999999ap-4) |
| 17928 | return (1); |
| 17929 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17930 | ; |
| 17931 | return 0; |
| 17932 | } |
| 17933 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17934 | rm -f conftest$ac_exeext |
| 17935 | if { (ac_try="$ac_link" |
| 17936 | case "(($ac_try" in |
| 17937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17938 | *) ac_try_echo=$ac_try;; |
| 17939 | esac |
| 17940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17941 | (eval "$ac_link") 2>&5 |
| 17942 | ac_status=$? |
| 17943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17944 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17945 | { (case "(($ac_try" in |
| 17946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17947 | *) ac_try_echo=$ac_try;; |
| 17948 | esac |
| 17949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17950 | (eval "$ac_try") 2>&5 |
| 17951 | ac_status=$? |
| 17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17953 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17954 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17955 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17956 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17957 | echo "$as_me: failed program was:" >&5 |
| 17958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17959 | |
| 17960 | ( exit $ac_status ) |
| 17961 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17962 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17963 | 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] | 17964 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17965 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17966 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17967 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17968 | ac_cpp='$CPP $CPPFLAGS' |
| 17969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17972 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17973 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17974 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17975 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17976 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17978 | cat >>confdefs.h <<\_ACEOF |
| 17979 | #define HAVE_PRINTF_A 1 |
| 17980 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17981 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17982 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17983 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17984 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17985 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17986 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17987 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17989 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17990 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17991 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17992 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17993 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17994 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17995 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17996 | cat >conftest.$ac_ext <<_ACEOF |
| 17997 | /* confdefs.h. */ |
| 17998 | _ACEOF |
| 17999 | cat confdefs.h >>conftest.$ac_ext |
| 18000 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18001 | /* end confdefs.h. */ |
| 18002 | #include <stdlib.h> |
| 18003 | int |
| 18004 | main () |
| 18005 | { |
| 18006 | srand48(0);lrand48();drand48(); |
| 18007 | ; |
| 18008 | return 0; |
| 18009 | } |
| 18010 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18011 | rm -f conftest.$ac_objext |
| 18012 | if { (ac_try="$ac_compile" |
| 18013 | case "(($ac_try" in |
| 18014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18015 | *) ac_try_echo=$ac_try;; |
| 18016 | esac |
| 18017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18018 | (eval "$ac_compile") 2>conftest.er1 |
| 18019 | ac_status=$? |
| 18020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18021 | rm -f conftest.er1 |
| 18022 | cat conftest.err >&5 |
| 18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18024 | (exit $ac_status); } && |
| 18025 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18026 | { (case "(($ac_try" in |
| 18027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18028 | *) ac_try_echo=$ac_try;; |
| 18029 | esac |
| 18030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18031 | (eval "$ac_try") 2>&5 |
| 18032 | ac_status=$? |
| 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18034 | (exit $ac_status); }; } && |
| 18035 | { ac_try='test -s conftest.$ac_objext' |
| 18036 | { (case "(($ac_try" in |
| 18037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18038 | *) ac_try_echo=$ac_try;; |
| 18039 | esac |
| 18040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18041 | (eval "$ac_try") 2>&5 |
| 18042 | ac_status=$? |
| 18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18044 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18045 | ac_cv_func_rand48=yes |
| 18046 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18047 | echo "$as_me: failed program was:" >&5 |
| 18048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18049 | |
| 18050 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18051 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18054 | ac_ext=c |
| 18055 | ac_cpp='$CPP $CPPFLAGS' |
| 18056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18059 | |
| 18060 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18061 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18062 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18063 | |
| 18064 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18065 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18066 | cat >>confdefs.h <<\_ACEOF |
| 18067 | #define HAVE_RAND48 1 |
| 18068 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18069 | |
| 18070 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18071 | |
| 18072 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 18073 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 18074 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 18075 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 18076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18077 | else |
| 18078 | cat >conftest.$ac_ext <<_ACEOF |
| 18079 | /* confdefs.h. */ |
| 18080 | _ACEOF |
| 18081 | cat confdefs.h >>conftest.$ac_ext |
| 18082 | cat >>conftest.$ac_ext <<_ACEOF |
| 18083 | /* end confdefs.h. */ |
| 18084 | $ac_includes_default |
| 18085 | int |
| 18086 | main () |
| 18087 | { |
| 18088 | #ifndef strerror_s |
| 18089 | char *p = (char *) strerror_s; |
| 18090 | return !p; |
| 18091 | #endif |
| 18092 | |
| 18093 | ; |
| 18094 | return 0; |
| 18095 | } |
| 18096 | _ACEOF |
| 18097 | rm -f conftest.$ac_objext |
| 18098 | if { (ac_try="$ac_compile" |
| 18099 | case "(($ac_try" in |
| 18100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18101 | *) ac_try_echo=$ac_try;; |
| 18102 | esac |
| 18103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18104 | (eval "$ac_compile") 2>conftest.er1 |
| 18105 | ac_status=$? |
| 18106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18107 | rm -f conftest.er1 |
| 18108 | cat conftest.err >&5 |
| 18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18110 | (exit $ac_status); } && |
| 18111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18112 | { (case "(($ac_try" in |
| 18113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18114 | *) ac_try_echo=$ac_try;; |
| 18115 | esac |
| 18116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18117 | (eval "$ac_try") 2>&5 |
| 18118 | ac_status=$? |
| 18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18120 | (exit $ac_status); }; } && |
| 18121 | { ac_try='test -s conftest.$ac_objext' |
| 18122 | { (case "(($ac_try" in |
| 18123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18124 | *) ac_try_echo=$ac_try;; |
| 18125 | esac |
| 18126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18127 | (eval "$ac_try") 2>&5 |
| 18128 | ac_status=$? |
| 18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18130 | (exit $ac_status); }; }; then |
| 18131 | ac_cv_have_decl_strerror_s=yes |
| 18132 | else |
| 18133 | echo "$as_me: failed program was:" >&5 |
| 18134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18135 | |
| 18136 | ac_cv_have_decl_strerror_s=no |
| 18137 | fi |
| 18138 | |
| 18139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18140 | fi |
| 18141 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 18142 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 18143 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 18144 | |
| 18145 | cat >>confdefs.h <<_ACEOF |
| 18146 | #define HAVE_DECL_STRERROR_S 1 |
| 18147 | _ACEOF |
| 18148 | |
| 18149 | |
| 18150 | else |
| 18151 | cat >>confdefs.h <<_ACEOF |
| 18152 | #define HAVE_DECL_STRERROR_S 0 |
| 18153 | _ACEOF |
| 18154 | |
| 18155 | |
| 18156 | fi |
| 18157 | |
| 18158 | |
| 18159 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 18160 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 18161 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 18162 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 18163 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18165 | else |
| 18166 | ac_check_lib_save_LIBS=$LIBS |
| 18167 | LIBS="-lgcc $LIBS" |
| 18168 | cat >conftest.$ac_ext <<_ACEOF |
| 18169 | /* confdefs.h. */ |
| 18170 | _ACEOF |
| 18171 | cat confdefs.h >>conftest.$ac_ext |
| 18172 | cat >>conftest.$ac_ext <<_ACEOF |
| 18173 | /* end confdefs.h. */ |
| 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 _alloca (); |
| 18182 | int |
| 18183 | main () |
| 18184 | { |
| 18185 | return _alloca (); |
| 18186 | ; |
| 18187 | return 0; |
| 18188 | } |
| 18189 | _ACEOF |
| 18190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18191 | if { (ac_try="$ac_link" |
| 18192 | case "(($ac_try" in |
| 18193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18194 | *) ac_try_echo=$ac_try;; |
| 18195 | esac |
| 18196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18197 | (eval "$ac_link") 2>conftest.er1 |
| 18198 | ac_status=$? |
| 18199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18200 | rm -f conftest.er1 |
| 18201 | cat conftest.err >&5 |
| 18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18203 | (exit $ac_status); } && |
| 18204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18205 | { (case "(($ac_try" in |
| 18206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18207 | *) ac_try_echo=$ac_try;; |
| 18208 | esac |
| 18209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18210 | (eval "$ac_try") 2>&5 |
| 18211 | ac_status=$? |
| 18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18213 | (exit $ac_status); }; } && |
| 18214 | { ac_try='test -s conftest$ac_exeext' |
| 18215 | { (case "(($ac_try" in |
| 18216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18217 | *) ac_try_echo=$ac_try;; |
| 18218 | esac |
| 18219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18220 | (eval "$ac_try") 2>&5 |
| 18221 | ac_status=$? |
| 18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18223 | (exit $ac_status); }; }; then |
| 18224 | ac_cv_lib_gcc__alloca=yes |
| 18225 | else |
| 18226 | echo "$as_me: failed program was:" >&5 |
| 18227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18228 | |
| 18229 | ac_cv_lib_gcc__alloca=no |
| 18230 | fi |
| 18231 | |
| 18232 | rm -f core conftest.err conftest.$ac_objext \ |
| 18233 | conftest$ac_exeext conftest.$ac_ext |
| 18234 | LIBS=$ac_check_lib_save_LIBS |
| 18235 | fi |
| 18236 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 18237 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 18238 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 18239 | |
| 18240 | cat >>confdefs.h <<\_ACEOF |
| 18241 | #define HAVE__ALLOCA 1 |
| 18242 | _ACEOF |
| 18243 | |
| 18244 | fi |
| 18245 | |
| 18246 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 18247 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 18248 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 18249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18250 | else |
| 18251 | ac_check_lib_save_LIBS=$LIBS |
| 18252 | LIBS="-lgcc $LIBS" |
| 18253 | cat >conftest.$ac_ext <<_ACEOF |
| 18254 | /* confdefs.h. */ |
| 18255 | _ACEOF |
| 18256 | cat confdefs.h >>conftest.$ac_ext |
| 18257 | cat >>conftest.$ac_ext <<_ACEOF |
| 18258 | /* end confdefs.h. */ |
| 18259 | |
| 18260 | /* Override any GCC internal prototype to avoid an error. |
| 18261 | Use char because int might match the return type of a GCC |
| 18262 | builtin and then its argument prototype would still apply. */ |
| 18263 | #ifdef __cplusplus |
| 18264 | extern "C" |
| 18265 | #endif |
| 18266 | char __alloca (); |
| 18267 | int |
| 18268 | main () |
| 18269 | { |
| 18270 | return __alloca (); |
| 18271 | ; |
| 18272 | return 0; |
| 18273 | } |
| 18274 | _ACEOF |
| 18275 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18276 | if { (ac_try="$ac_link" |
| 18277 | case "(($ac_try" in |
| 18278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18279 | *) ac_try_echo=$ac_try;; |
| 18280 | esac |
| 18281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18282 | (eval "$ac_link") 2>conftest.er1 |
| 18283 | ac_status=$? |
| 18284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18285 | rm -f conftest.er1 |
| 18286 | cat conftest.err >&5 |
| 18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18288 | (exit $ac_status); } && |
| 18289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18290 | { (case "(($ac_try" in |
| 18291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18292 | *) ac_try_echo=$ac_try;; |
| 18293 | esac |
| 18294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18295 | (eval "$ac_try") 2>&5 |
| 18296 | ac_status=$? |
| 18297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18298 | (exit $ac_status); }; } && |
| 18299 | { ac_try='test -s conftest$ac_exeext' |
| 18300 | { (case "(($ac_try" in |
| 18301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18302 | *) ac_try_echo=$ac_try;; |
| 18303 | esac |
| 18304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18305 | (eval "$ac_try") 2>&5 |
| 18306 | ac_status=$? |
| 18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18308 | (exit $ac_status); }; }; then |
| 18309 | ac_cv_lib_gcc___alloca=yes |
| 18310 | else |
| 18311 | echo "$as_me: failed program was:" >&5 |
| 18312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18313 | |
| 18314 | ac_cv_lib_gcc___alloca=no |
| 18315 | fi |
| 18316 | |
| 18317 | rm -f core conftest.err conftest.$ac_objext \ |
| 18318 | conftest$ac_exeext conftest.$ac_ext |
| 18319 | LIBS=$ac_check_lib_save_LIBS |
| 18320 | fi |
| 18321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18322 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18323 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18324 | |
| 18325 | cat >>confdefs.h <<\_ACEOF |
| 18326 | #define HAVE___ALLOCA 1 |
| 18327 | _ACEOF |
| 18328 | |
| 18329 | fi |
| 18330 | |
| 18331 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18332 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18333 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18335 | else |
| 18336 | ac_check_lib_save_LIBS=$LIBS |
| 18337 | LIBS="-lgcc $LIBS" |
| 18338 | cat >conftest.$ac_ext <<_ACEOF |
| 18339 | /* confdefs.h. */ |
| 18340 | _ACEOF |
| 18341 | cat confdefs.h >>conftest.$ac_ext |
| 18342 | cat >>conftest.$ac_ext <<_ACEOF |
| 18343 | /* end confdefs.h. */ |
| 18344 | |
| 18345 | /* Override any GCC internal prototype to avoid an error. |
| 18346 | Use char because int might match the return type of a GCC |
| 18347 | builtin and then its argument prototype would still apply. */ |
| 18348 | #ifdef __cplusplus |
| 18349 | extern "C" |
| 18350 | #endif |
| 18351 | char __chkstk (); |
| 18352 | int |
| 18353 | main () |
| 18354 | { |
| 18355 | return __chkstk (); |
| 18356 | ; |
| 18357 | return 0; |
| 18358 | } |
| 18359 | _ACEOF |
| 18360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18361 | if { (ac_try="$ac_link" |
| 18362 | case "(($ac_try" in |
| 18363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18364 | *) ac_try_echo=$ac_try;; |
| 18365 | esac |
| 18366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18367 | (eval "$ac_link") 2>conftest.er1 |
| 18368 | ac_status=$? |
| 18369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18370 | rm -f conftest.er1 |
| 18371 | cat conftest.err >&5 |
| 18372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18373 | (exit $ac_status); } && |
| 18374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18375 | { (case "(($ac_try" in |
| 18376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18377 | *) ac_try_echo=$ac_try;; |
| 18378 | esac |
| 18379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18380 | (eval "$ac_try") 2>&5 |
| 18381 | ac_status=$? |
| 18382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18383 | (exit $ac_status); }; } && |
| 18384 | { ac_try='test -s conftest$ac_exeext' |
| 18385 | { (case "(($ac_try" in |
| 18386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18387 | *) ac_try_echo=$ac_try;; |
| 18388 | esac |
| 18389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18390 | (eval "$ac_try") 2>&5 |
| 18391 | ac_status=$? |
| 18392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18393 | (exit $ac_status); }; }; then |
| 18394 | ac_cv_lib_gcc___chkstk=yes |
| 18395 | else |
| 18396 | echo "$as_me: failed program was:" >&5 |
| 18397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18398 | |
| 18399 | ac_cv_lib_gcc___chkstk=no |
| 18400 | fi |
| 18401 | |
| 18402 | rm -f core conftest.err conftest.$ac_objext \ |
| 18403 | conftest$ac_exeext conftest.$ac_ext |
| 18404 | LIBS=$ac_check_lib_save_LIBS |
| 18405 | fi |
| 18406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18407 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18408 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18409 | |
| 18410 | cat >>confdefs.h <<\_ACEOF |
| 18411 | #define HAVE___CHKSTK 1 |
| 18412 | _ACEOF |
| 18413 | |
| 18414 | fi |
| 18415 | |
| 18416 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18417 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18418 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18420 | else |
| 18421 | ac_check_lib_save_LIBS=$LIBS |
| 18422 | LIBS="-lgcc $LIBS" |
| 18423 | cat >conftest.$ac_ext <<_ACEOF |
| 18424 | /* confdefs.h. */ |
| 18425 | _ACEOF |
| 18426 | cat confdefs.h >>conftest.$ac_ext |
| 18427 | cat >>conftest.$ac_ext <<_ACEOF |
| 18428 | /* end confdefs.h. */ |
| 18429 | |
| 18430 | /* Override any GCC internal prototype to avoid an error. |
| 18431 | Use char because int might match the return type of a GCC |
| 18432 | builtin and then its argument prototype would still apply. */ |
| 18433 | #ifdef __cplusplus |
| 18434 | extern "C" |
| 18435 | #endif |
| 18436 | char ___chkstk (); |
| 18437 | int |
| 18438 | main () |
| 18439 | { |
| 18440 | return ___chkstk (); |
| 18441 | ; |
| 18442 | return 0; |
| 18443 | } |
| 18444 | _ACEOF |
| 18445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18446 | if { (ac_try="$ac_link" |
| 18447 | case "(($ac_try" in |
| 18448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18449 | *) ac_try_echo=$ac_try;; |
| 18450 | esac |
| 18451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18452 | (eval "$ac_link") 2>conftest.er1 |
| 18453 | ac_status=$? |
| 18454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18455 | rm -f conftest.er1 |
| 18456 | cat conftest.err >&5 |
| 18457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18458 | (exit $ac_status); } && |
| 18459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18460 | { (case "(($ac_try" in |
| 18461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18462 | *) ac_try_echo=$ac_try;; |
| 18463 | esac |
| 18464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18465 | (eval "$ac_try") 2>&5 |
| 18466 | ac_status=$? |
| 18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18468 | (exit $ac_status); }; } && |
| 18469 | { ac_try='test -s conftest$ac_exeext' |
| 18470 | { (case "(($ac_try" in |
| 18471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18472 | *) ac_try_echo=$ac_try;; |
| 18473 | esac |
| 18474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18475 | (eval "$ac_try") 2>&5 |
| 18476 | ac_status=$? |
| 18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18478 | (exit $ac_status); }; }; then |
| 18479 | ac_cv_lib_gcc____chkstk=yes |
| 18480 | else |
| 18481 | echo "$as_me: failed program was:" >&5 |
| 18482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18483 | |
| 18484 | ac_cv_lib_gcc____chkstk=no |
| 18485 | fi |
| 18486 | |
| 18487 | rm -f core conftest.err conftest.$ac_objext \ |
| 18488 | conftest$ac_exeext conftest.$ac_ext |
| 18489 | LIBS=$ac_check_lib_save_LIBS |
| 18490 | fi |
| 18491 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18492 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18493 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18494 | |
| 18495 | cat >>confdefs.h <<\_ACEOF |
| 18496 | #define HAVE____CHKSTK 1 |
| 18497 | _ACEOF |
| 18498 | |
| 18499 | fi |
| 18500 | |
| 18501 | |
| 18502 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18503 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18504 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18506 | else |
| 18507 | ac_check_lib_save_LIBS=$LIBS |
| 18508 | LIBS="-lgcc $LIBS" |
| 18509 | cat >conftest.$ac_ext <<_ACEOF |
| 18510 | /* confdefs.h. */ |
| 18511 | _ACEOF |
| 18512 | cat confdefs.h >>conftest.$ac_ext |
| 18513 | cat >>conftest.$ac_ext <<_ACEOF |
| 18514 | /* end confdefs.h. */ |
| 18515 | |
| 18516 | /* Override any GCC internal prototype to avoid an error. |
| 18517 | Use char because int might match the return type of a GCC |
| 18518 | builtin and then its argument prototype would still apply. */ |
| 18519 | #ifdef __cplusplus |
| 18520 | extern "C" |
| 18521 | #endif |
| 18522 | char __ashldi3 (); |
| 18523 | int |
| 18524 | main () |
| 18525 | { |
| 18526 | return __ashldi3 (); |
| 18527 | ; |
| 18528 | return 0; |
| 18529 | } |
| 18530 | _ACEOF |
| 18531 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18532 | if { (ac_try="$ac_link" |
| 18533 | case "(($ac_try" in |
| 18534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18535 | *) ac_try_echo=$ac_try;; |
| 18536 | esac |
| 18537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18538 | (eval "$ac_link") 2>conftest.er1 |
| 18539 | ac_status=$? |
| 18540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18541 | rm -f conftest.er1 |
| 18542 | cat conftest.err >&5 |
| 18543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18544 | (exit $ac_status); } && |
| 18545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18546 | { (case "(($ac_try" in |
| 18547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18548 | *) ac_try_echo=$ac_try;; |
| 18549 | esac |
| 18550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18551 | (eval "$ac_try") 2>&5 |
| 18552 | ac_status=$? |
| 18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18554 | (exit $ac_status); }; } && |
| 18555 | { ac_try='test -s conftest$ac_exeext' |
| 18556 | { (case "(($ac_try" in |
| 18557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18558 | *) ac_try_echo=$ac_try;; |
| 18559 | esac |
| 18560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18561 | (eval "$ac_try") 2>&5 |
| 18562 | ac_status=$? |
| 18563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18564 | (exit $ac_status); }; }; then |
| 18565 | ac_cv_lib_gcc___ashldi3=yes |
| 18566 | else |
| 18567 | echo "$as_me: failed program was:" >&5 |
| 18568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18569 | |
| 18570 | ac_cv_lib_gcc___ashldi3=no |
| 18571 | fi |
| 18572 | |
| 18573 | rm -f core conftest.err conftest.$ac_objext \ |
| 18574 | conftest$ac_exeext conftest.$ac_ext |
| 18575 | LIBS=$ac_check_lib_save_LIBS |
| 18576 | fi |
| 18577 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18578 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18579 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18580 | |
| 18581 | cat >>confdefs.h <<\_ACEOF |
| 18582 | #define HAVE___ASHLDI3 1 |
| 18583 | _ACEOF |
| 18584 | |
| 18585 | fi |
| 18586 | |
| 18587 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18588 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18589 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18591 | else |
| 18592 | ac_check_lib_save_LIBS=$LIBS |
| 18593 | LIBS="-lgcc $LIBS" |
| 18594 | cat >conftest.$ac_ext <<_ACEOF |
| 18595 | /* confdefs.h. */ |
| 18596 | _ACEOF |
| 18597 | cat confdefs.h >>conftest.$ac_ext |
| 18598 | cat >>conftest.$ac_ext <<_ACEOF |
| 18599 | /* end confdefs.h. */ |
| 18600 | |
| 18601 | /* Override any GCC internal prototype to avoid an error. |
| 18602 | Use char because int might match the return type of a GCC |
| 18603 | builtin and then its argument prototype would still apply. */ |
| 18604 | #ifdef __cplusplus |
| 18605 | extern "C" |
| 18606 | #endif |
| 18607 | char __ashrdi3 (); |
| 18608 | int |
| 18609 | main () |
| 18610 | { |
| 18611 | return __ashrdi3 (); |
| 18612 | ; |
| 18613 | return 0; |
| 18614 | } |
| 18615 | _ACEOF |
| 18616 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18617 | if { (ac_try="$ac_link" |
| 18618 | case "(($ac_try" in |
| 18619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18620 | *) ac_try_echo=$ac_try;; |
| 18621 | esac |
| 18622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18623 | (eval "$ac_link") 2>conftest.er1 |
| 18624 | ac_status=$? |
| 18625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18626 | rm -f conftest.er1 |
| 18627 | cat conftest.err >&5 |
| 18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18629 | (exit $ac_status); } && |
| 18630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18631 | { (case "(($ac_try" in |
| 18632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18633 | *) ac_try_echo=$ac_try;; |
| 18634 | esac |
| 18635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18636 | (eval "$ac_try") 2>&5 |
| 18637 | ac_status=$? |
| 18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18639 | (exit $ac_status); }; } && |
| 18640 | { ac_try='test -s conftest$ac_exeext' |
| 18641 | { (case "(($ac_try" in |
| 18642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18643 | *) ac_try_echo=$ac_try;; |
| 18644 | esac |
| 18645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18646 | (eval "$ac_try") 2>&5 |
| 18647 | ac_status=$? |
| 18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18649 | (exit $ac_status); }; }; then |
| 18650 | ac_cv_lib_gcc___ashrdi3=yes |
| 18651 | else |
| 18652 | echo "$as_me: failed program was:" >&5 |
| 18653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18654 | |
| 18655 | ac_cv_lib_gcc___ashrdi3=no |
| 18656 | fi |
| 18657 | |
| 18658 | rm -f core conftest.err conftest.$ac_objext \ |
| 18659 | conftest$ac_exeext conftest.$ac_ext |
| 18660 | LIBS=$ac_check_lib_save_LIBS |
| 18661 | fi |
| 18662 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18663 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18664 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18665 | |
| 18666 | cat >>confdefs.h <<\_ACEOF |
| 18667 | #define HAVE___ASHRDI3 1 |
| 18668 | _ACEOF |
| 18669 | |
| 18670 | fi |
| 18671 | |
| 18672 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18673 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18674 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18676 | else |
| 18677 | ac_check_lib_save_LIBS=$LIBS |
| 18678 | LIBS="-lgcc $LIBS" |
| 18679 | cat >conftest.$ac_ext <<_ACEOF |
| 18680 | /* confdefs.h. */ |
| 18681 | _ACEOF |
| 18682 | cat confdefs.h >>conftest.$ac_ext |
| 18683 | cat >>conftest.$ac_ext <<_ACEOF |
| 18684 | /* end confdefs.h. */ |
| 18685 | |
| 18686 | /* Override any GCC internal prototype to avoid an error. |
| 18687 | Use char because int might match the return type of a GCC |
| 18688 | builtin and then its argument prototype would still apply. */ |
| 18689 | #ifdef __cplusplus |
| 18690 | extern "C" |
| 18691 | #endif |
| 18692 | char __divdi3 (); |
| 18693 | int |
| 18694 | main () |
| 18695 | { |
| 18696 | return __divdi3 (); |
| 18697 | ; |
| 18698 | return 0; |
| 18699 | } |
| 18700 | _ACEOF |
| 18701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18702 | if { (ac_try="$ac_link" |
| 18703 | case "(($ac_try" in |
| 18704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18705 | *) ac_try_echo=$ac_try;; |
| 18706 | esac |
| 18707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18708 | (eval "$ac_link") 2>conftest.er1 |
| 18709 | ac_status=$? |
| 18710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18711 | rm -f conftest.er1 |
| 18712 | cat conftest.err >&5 |
| 18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18714 | (exit $ac_status); } && |
| 18715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18716 | { (case "(($ac_try" in |
| 18717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18718 | *) ac_try_echo=$ac_try;; |
| 18719 | esac |
| 18720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18721 | (eval "$ac_try") 2>&5 |
| 18722 | ac_status=$? |
| 18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18724 | (exit $ac_status); }; } && |
| 18725 | { ac_try='test -s conftest$ac_exeext' |
| 18726 | { (case "(($ac_try" in |
| 18727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18728 | *) ac_try_echo=$ac_try;; |
| 18729 | esac |
| 18730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18731 | (eval "$ac_try") 2>&5 |
| 18732 | ac_status=$? |
| 18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18734 | (exit $ac_status); }; }; then |
| 18735 | ac_cv_lib_gcc___divdi3=yes |
| 18736 | else |
| 18737 | echo "$as_me: failed program was:" >&5 |
| 18738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18739 | |
| 18740 | ac_cv_lib_gcc___divdi3=no |
| 18741 | fi |
| 18742 | |
| 18743 | rm -f core conftest.err conftest.$ac_objext \ |
| 18744 | conftest$ac_exeext conftest.$ac_ext |
| 18745 | LIBS=$ac_check_lib_save_LIBS |
| 18746 | fi |
| 18747 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18748 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18749 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18750 | |
| 18751 | cat >>confdefs.h <<\_ACEOF |
| 18752 | #define HAVE___DIVDI3 1 |
| 18753 | _ACEOF |
| 18754 | |
| 18755 | fi |
| 18756 | |
| 18757 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18758 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18759 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18761 | else |
| 18762 | ac_check_lib_save_LIBS=$LIBS |
| 18763 | LIBS="-lgcc $LIBS" |
| 18764 | cat >conftest.$ac_ext <<_ACEOF |
| 18765 | /* confdefs.h. */ |
| 18766 | _ACEOF |
| 18767 | cat confdefs.h >>conftest.$ac_ext |
| 18768 | cat >>conftest.$ac_ext <<_ACEOF |
| 18769 | /* end confdefs.h. */ |
| 18770 | |
| 18771 | /* Override any GCC internal prototype to avoid an error. |
| 18772 | Use char because int might match the return type of a GCC |
| 18773 | builtin and then its argument prototype would still apply. */ |
| 18774 | #ifdef __cplusplus |
| 18775 | extern "C" |
| 18776 | #endif |
| 18777 | char __fixdfdi (); |
| 18778 | int |
| 18779 | main () |
| 18780 | { |
| 18781 | return __fixdfdi (); |
| 18782 | ; |
| 18783 | return 0; |
| 18784 | } |
| 18785 | _ACEOF |
| 18786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18787 | if { (ac_try="$ac_link" |
| 18788 | case "(($ac_try" in |
| 18789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18790 | *) ac_try_echo=$ac_try;; |
| 18791 | esac |
| 18792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18793 | (eval "$ac_link") 2>conftest.er1 |
| 18794 | ac_status=$? |
| 18795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18796 | rm -f conftest.er1 |
| 18797 | cat conftest.err >&5 |
| 18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18799 | (exit $ac_status); } && |
| 18800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18801 | { (case "(($ac_try" in |
| 18802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18803 | *) ac_try_echo=$ac_try;; |
| 18804 | esac |
| 18805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18806 | (eval "$ac_try") 2>&5 |
| 18807 | ac_status=$? |
| 18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18809 | (exit $ac_status); }; } && |
| 18810 | { ac_try='test -s conftest$ac_exeext' |
| 18811 | { (case "(($ac_try" in |
| 18812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18813 | *) ac_try_echo=$ac_try;; |
| 18814 | esac |
| 18815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18816 | (eval "$ac_try") 2>&5 |
| 18817 | ac_status=$? |
| 18818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18819 | (exit $ac_status); }; }; then |
| 18820 | ac_cv_lib_gcc___fixdfdi=yes |
| 18821 | else |
| 18822 | echo "$as_me: failed program was:" >&5 |
| 18823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18824 | |
| 18825 | ac_cv_lib_gcc___fixdfdi=no |
| 18826 | fi |
| 18827 | |
| 18828 | rm -f core conftest.err conftest.$ac_objext \ |
| 18829 | conftest$ac_exeext conftest.$ac_ext |
| 18830 | LIBS=$ac_check_lib_save_LIBS |
| 18831 | fi |
| 18832 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18833 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18834 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18835 | |
| 18836 | cat >>confdefs.h <<\_ACEOF |
| 18837 | #define HAVE___FIXDFDI 1 |
| 18838 | _ACEOF |
| 18839 | |
| 18840 | fi |
| 18841 | |
| 18842 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18843 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18844 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18846 | else |
| 18847 | ac_check_lib_save_LIBS=$LIBS |
| 18848 | LIBS="-lgcc $LIBS" |
| 18849 | cat >conftest.$ac_ext <<_ACEOF |
| 18850 | /* confdefs.h. */ |
| 18851 | _ACEOF |
| 18852 | cat confdefs.h >>conftest.$ac_ext |
| 18853 | cat >>conftest.$ac_ext <<_ACEOF |
| 18854 | /* end confdefs.h. */ |
| 18855 | |
| 18856 | /* Override any GCC internal prototype to avoid an error. |
| 18857 | Use char because int might match the return type of a GCC |
| 18858 | builtin and then its argument prototype would still apply. */ |
| 18859 | #ifdef __cplusplus |
| 18860 | extern "C" |
| 18861 | #endif |
| 18862 | char __fixsfdi (); |
| 18863 | int |
| 18864 | main () |
| 18865 | { |
| 18866 | return __fixsfdi (); |
| 18867 | ; |
| 18868 | return 0; |
| 18869 | } |
| 18870 | _ACEOF |
| 18871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18872 | if { (ac_try="$ac_link" |
| 18873 | case "(($ac_try" in |
| 18874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18875 | *) ac_try_echo=$ac_try;; |
| 18876 | esac |
| 18877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18878 | (eval "$ac_link") 2>conftest.er1 |
| 18879 | ac_status=$? |
| 18880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18881 | rm -f conftest.er1 |
| 18882 | cat conftest.err >&5 |
| 18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18884 | (exit $ac_status); } && |
| 18885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18886 | { (case "(($ac_try" in |
| 18887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18888 | *) ac_try_echo=$ac_try;; |
| 18889 | esac |
| 18890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18891 | (eval "$ac_try") 2>&5 |
| 18892 | ac_status=$? |
| 18893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18894 | (exit $ac_status); }; } && |
| 18895 | { ac_try='test -s conftest$ac_exeext' |
| 18896 | { (case "(($ac_try" in |
| 18897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18898 | *) ac_try_echo=$ac_try;; |
| 18899 | esac |
| 18900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18901 | (eval "$ac_try") 2>&5 |
| 18902 | ac_status=$? |
| 18903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18904 | (exit $ac_status); }; }; then |
| 18905 | ac_cv_lib_gcc___fixsfdi=yes |
| 18906 | else |
| 18907 | echo "$as_me: failed program was:" >&5 |
| 18908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18909 | |
| 18910 | ac_cv_lib_gcc___fixsfdi=no |
| 18911 | fi |
| 18912 | |
| 18913 | rm -f core conftest.err conftest.$ac_objext \ |
| 18914 | conftest$ac_exeext conftest.$ac_ext |
| 18915 | LIBS=$ac_check_lib_save_LIBS |
| 18916 | fi |
| 18917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18918 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18919 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18920 | |
| 18921 | cat >>confdefs.h <<\_ACEOF |
| 18922 | #define HAVE___FIXSFDI 1 |
| 18923 | _ACEOF |
| 18924 | |
| 18925 | fi |
| 18926 | |
| 18927 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18928 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18929 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18931 | else |
| 18932 | ac_check_lib_save_LIBS=$LIBS |
| 18933 | LIBS="-lgcc $LIBS" |
| 18934 | cat >conftest.$ac_ext <<_ACEOF |
| 18935 | /* confdefs.h. */ |
| 18936 | _ACEOF |
| 18937 | cat confdefs.h >>conftest.$ac_ext |
| 18938 | cat >>conftest.$ac_ext <<_ACEOF |
| 18939 | /* end confdefs.h. */ |
| 18940 | |
| 18941 | /* Override any GCC internal prototype to avoid an error. |
| 18942 | Use char because int might match the return type of a GCC |
| 18943 | builtin and then its argument prototype would still apply. */ |
| 18944 | #ifdef __cplusplus |
| 18945 | extern "C" |
| 18946 | #endif |
| 18947 | char __floatdidf (); |
| 18948 | int |
| 18949 | main () |
| 18950 | { |
| 18951 | return __floatdidf (); |
| 18952 | ; |
| 18953 | return 0; |
| 18954 | } |
| 18955 | _ACEOF |
| 18956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18957 | if { (ac_try="$ac_link" |
| 18958 | case "(($ac_try" in |
| 18959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18960 | *) ac_try_echo=$ac_try;; |
| 18961 | esac |
| 18962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18963 | (eval "$ac_link") 2>conftest.er1 |
| 18964 | ac_status=$? |
| 18965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18966 | rm -f conftest.er1 |
| 18967 | cat conftest.err >&5 |
| 18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18969 | (exit $ac_status); } && |
| 18970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18971 | { (case "(($ac_try" in |
| 18972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18973 | *) ac_try_echo=$ac_try;; |
| 18974 | esac |
| 18975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18976 | (eval "$ac_try") 2>&5 |
| 18977 | ac_status=$? |
| 18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18979 | (exit $ac_status); }; } && |
| 18980 | { ac_try='test -s conftest$ac_exeext' |
| 18981 | { (case "(($ac_try" in |
| 18982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18983 | *) ac_try_echo=$ac_try;; |
| 18984 | esac |
| 18985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18986 | (eval "$ac_try") 2>&5 |
| 18987 | ac_status=$? |
| 18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18989 | (exit $ac_status); }; }; then |
| 18990 | ac_cv_lib_gcc___floatdidf=yes |
| 18991 | else |
| 18992 | echo "$as_me: failed program was:" >&5 |
| 18993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18994 | |
| 18995 | ac_cv_lib_gcc___floatdidf=no |
| 18996 | fi |
| 18997 | |
| 18998 | rm -f core conftest.err conftest.$ac_objext \ |
| 18999 | conftest$ac_exeext conftest.$ac_ext |
| 19000 | LIBS=$ac_check_lib_save_LIBS |
| 19001 | fi |
| 19002 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 19003 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 19004 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 19005 | |
| 19006 | cat >>confdefs.h <<\_ACEOF |
| 19007 | #define HAVE___FLOATDIDF 1 |
| 19008 | _ACEOF |
| 19009 | |
| 19010 | fi |
| 19011 | |
| 19012 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 19013 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 19014 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 19015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19016 | else |
| 19017 | ac_check_lib_save_LIBS=$LIBS |
| 19018 | LIBS="-lgcc $LIBS" |
| 19019 | cat >conftest.$ac_ext <<_ACEOF |
| 19020 | /* confdefs.h. */ |
| 19021 | _ACEOF |
| 19022 | cat confdefs.h >>conftest.$ac_ext |
| 19023 | cat >>conftest.$ac_ext <<_ACEOF |
| 19024 | /* end confdefs.h. */ |
| 19025 | |
| 19026 | /* Override any GCC internal prototype to avoid an error. |
| 19027 | Use char because int might match the return type of a GCC |
| 19028 | builtin and then its argument prototype would still apply. */ |
| 19029 | #ifdef __cplusplus |
| 19030 | extern "C" |
| 19031 | #endif |
| 19032 | char __lshrdi3 (); |
| 19033 | int |
| 19034 | main () |
| 19035 | { |
| 19036 | return __lshrdi3 (); |
| 19037 | ; |
| 19038 | return 0; |
| 19039 | } |
| 19040 | _ACEOF |
| 19041 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19042 | if { (ac_try="$ac_link" |
| 19043 | case "(($ac_try" in |
| 19044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19045 | *) ac_try_echo=$ac_try;; |
| 19046 | esac |
| 19047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19048 | (eval "$ac_link") 2>conftest.er1 |
| 19049 | ac_status=$? |
| 19050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19051 | rm -f conftest.er1 |
| 19052 | cat conftest.err >&5 |
| 19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19054 | (exit $ac_status); } && |
| 19055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19056 | { (case "(($ac_try" in |
| 19057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19058 | *) ac_try_echo=$ac_try;; |
| 19059 | esac |
| 19060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19061 | (eval "$ac_try") 2>&5 |
| 19062 | ac_status=$? |
| 19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19064 | (exit $ac_status); }; } && |
| 19065 | { ac_try='test -s conftest$ac_exeext' |
| 19066 | { (case "(($ac_try" in |
| 19067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19068 | *) ac_try_echo=$ac_try;; |
| 19069 | esac |
| 19070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19071 | (eval "$ac_try") 2>&5 |
| 19072 | ac_status=$? |
| 19073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19074 | (exit $ac_status); }; }; then |
| 19075 | ac_cv_lib_gcc___lshrdi3=yes |
| 19076 | else |
| 19077 | echo "$as_me: failed program was:" >&5 |
| 19078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19079 | |
| 19080 | ac_cv_lib_gcc___lshrdi3=no |
| 19081 | fi |
| 19082 | |
| 19083 | rm -f core conftest.err conftest.$ac_objext \ |
| 19084 | conftest$ac_exeext conftest.$ac_ext |
| 19085 | LIBS=$ac_check_lib_save_LIBS |
| 19086 | fi |
| 19087 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 19088 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 19089 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 19090 | |
| 19091 | cat >>confdefs.h <<\_ACEOF |
| 19092 | #define HAVE___LSHRDI3 1 |
| 19093 | _ACEOF |
| 19094 | |
| 19095 | fi |
| 19096 | |
| 19097 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 19098 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 19099 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 19100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19101 | else |
| 19102 | ac_check_lib_save_LIBS=$LIBS |
| 19103 | LIBS="-lgcc $LIBS" |
| 19104 | cat >conftest.$ac_ext <<_ACEOF |
| 19105 | /* confdefs.h. */ |
| 19106 | _ACEOF |
| 19107 | cat confdefs.h >>conftest.$ac_ext |
| 19108 | cat >>conftest.$ac_ext <<_ACEOF |
| 19109 | /* end confdefs.h. */ |
| 19110 | |
| 19111 | /* Override any GCC internal prototype to avoid an error. |
| 19112 | Use char because int might match the return type of a GCC |
| 19113 | builtin and then its argument prototype would still apply. */ |
| 19114 | #ifdef __cplusplus |
| 19115 | extern "C" |
| 19116 | #endif |
| 19117 | char __moddi3 (); |
| 19118 | int |
| 19119 | main () |
| 19120 | { |
| 19121 | return __moddi3 (); |
| 19122 | ; |
| 19123 | return 0; |
| 19124 | } |
| 19125 | _ACEOF |
| 19126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19127 | if { (ac_try="$ac_link" |
| 19128 | case "(($ac_try" in |
| 19129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19130 | *) ac_try_echo=$ac_try;; |
| 19131 | esac |
| 19132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19133 | (eval "$ac_link") 2>conftest.er1 |
| 19134 | ac_status=$? |
| 19135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19136 | rm -f conftest.er1 |
| 19137 | cat conftest.err >&5 |
| 19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19139 | (exit $ac_status); } && |
| 19140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19141 | { (case "(($ac_try" in |
| 19142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19143 | *) ac_try_echo=$ac_try;; |
| 19144 | esac |
| 19145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19146 | (eval "$ac_try") 2>&5 |
| 19147 | ac_status=$? |
| 19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19149 | (exit $ac_status); }; } && |
| 19150 | { ac_try='test -s conftest$ac_exeext' |
| 19151 | { (case "(($ac_try" in |
| 19152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19153 | *) ac_try_echo=$ac_try;; |
| 19154 | esac |
| 19155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19156 | (eval "$ac_try") 2>&5 |
| 19157 | ac_status=$? |
| 19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19159 | (exit $ac_status); }; }; then |
| 19160 | ac_cv_lib_gcc___moddi3=yes |
| 19161 | else |
| 19162 | echo "$as_me: failed program was:" >&5 |
| 19163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19164 | |
| 19165 | ac_cv_lib_gcc___moddi3=no |
| 19166 | fi |
| 19167 | |
| 19168 | rm -f core conftest.err conftest.$ac_objext \ |
| 19169 | conftest$ac_exeext conftest.$ac_ext |
| 19170 | LIBS=$ac_check_lib_save_LIBS |
| 19171 | fi |
| 19172 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 19173 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 19174 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 19175 | |
| 19176 | cat >>confdefs.h <<\_ACEOF |
| 19177 | #define HAVE___MODDI3 1 |
| 19178 | _ACEOF |
| 19179 | |
| 19180 | fi |
| 19181 | |
| 19182 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 19183 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 19184 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 19185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19186 | else |
| 19187 | ac_check_lib_save_LIBS=$LIBS |
| 19188 | LIBS="-lgcc $LIBS" |
| 19189 | cat >conftest.$ac_ext <<_ACEOF |
| 19190 | /* confdefs.h. */ |
| 19191 | _ACEOF |
| 19192 | cat confdefs.h >>conftest.$ac_ext |
| 19193 | cat >>conftest.$ac_ext <<_ACEOF |
| 19194 | /* end confdefs.h. */ |
| 19195 | |
| 19196 | /* Override any GCC internal prototype to avoid an error. |
| 19197 | Use char because int might match the return type of a GCC |
| 19198 | builtin and then its argument prototype would still apply. */ |
| 19199 | #ifdef __cplusplus |
| 19200 | extern "C" |
| 19201 | #endif |
| 19202 | char __udivdi3 (); |
| 19203 | int |
| 19204 | main () |
| 19205 | { |
| 19206 | return __udivdi3 (); |
| 19207 | ; |
| 19208 | return 0; |
| 19209 | } |
| 19210 | _ACEOF |
| 19211 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19212 | if { (ac_try="$ac_link" |
| 19213 | case "(($ac_try" in |
| 19214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19215 | *) ac_try_echo=$ac_try;; |
| 19216 | esac |
| 19217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19218 | (eval "$ac_link") 2>conftest.er1 |
| 19219 | ac_status=$? |
| 19220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19221 | rm -f conftest.er1 |
| 19222 | cat conftest.err >&5 |
| 19223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19224 | (exit $ac_status); } && |
| 19225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19226 | { (case "(($ac_try" in |
| 19227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19228 | *) ac_try_echo=$ac_try;; |
| 19229 | esac |
| 19230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19231 | (eval "$ac_try") 2>&5 |
| 19232 | ac_status=$? |
| 19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19234 | (exit $ac_status); }; } && |
| 19235 | { ac_try='test -s conftest$ac_exeext' |
| 19236 | { (case "(($ac_try" in |
| 19237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19238 | *) ac_try_echo=$ac_try;; |
| 19239 | esac |
| 19240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19241 | (eval "$ac_try") 2>&5 |
| 19242 | ac_status=$? |
| 19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19244 | (exit $ac_status); }; }; then |
| 19245 | ac_cv_lib_gcc___udivdi3=yes |
| 19246 | else |
| 19247 | echo "$as_me: failed program was:" >&5 |
| 19248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19249 | |
| 19250 | ac_cv_lib_gcc___udivdi3=no |
| 19251 | fi |
| 19252 | |
| 19253 | rm -f core conftest.err conftest.$ac_objext \ |
| 19254 | conftest$ac_exeext conftest.$ac_ext |
| 19255 | LIBS=$ac_check_lib_save_LIBS |
| 19256 | fi |
| 19257 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 19258 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 19259 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 19260 | |
| 19261 | cat >>confdefs.h <<\_ACEOF |
| 19262 | #define HAVE___UDIVDI3 1 |
| 19263 | _ACEOF |
| 19264 | |
| 19265 | fi |
| 19266 | |
| 19267 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 19268 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 19269 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 19270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19271 | else |
| 19272 | ac_check_lib_save_LIBS=$LIBS |
| 19273 | LIBS="-lgcc $LIBS" |
| 19274 | cat >conftest.$ac_ext <<_ACEOF |
| 19275 | /* confdefs.h. */ |
| 19276 | _ACEOF |
| 19277 | cat confdefs.h >>conftest.$ac_ext |
| 19278 | cat >>conftest.$ac_ext <<_ACEOF |
| 19279 | /* end confdefs.h. */ |
| 19280 | |
| 19281 | /* Override any GCC internal prototype to avoid an error. |
| 19282 | Use char because int might match the return type of a GCC |
| 19283 | builtin and then its argument prototype would still apply. */ |
| 19284 | #ifdef __cplusplus |
| 19285 | extern "C" |
| 19286 | #endif |
| 19287 | char __umoddi3 (); |
| 19288 | int |
| 19289 | main () |
| 19290 | { |
| 19291 | return __umoddi3 (); |
| 19292 | ; |
| 19293 | return 0; |
| 19294 | } |
| 19295 | _ACEOF |
| 19296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19297 | if { (ac_try="$ac_link" |
| 19298 | case "(($ac_try" in |
| 19299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19300 | *) ac_try_echo=$ac_try;; |
| 19301 | esac |
| 19302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19303 | (eval "$ac_link") 2>conftest.er1 |
| 19304 | ac_status=$? |
| 19305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19306 | rm -f conftest.er1 |
| 19307 | cat conftest.err >&5 |
| 19308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19309 | (exit $ac_status); } && |
| 19310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19311 | { (case "(($ac_try" in |
| 19312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19313 | *) ac_try_echo=$ac_try;; |
| 19314 | esac |
| 19315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19316 | (eval "$ac_try") 2>&5 |
| 19317 | ac_status=$? |
| 19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19319 | (exit $ac_status); }; } && |
| 19320 | { ac_try='test -s conftest$ac_exeext' |
| 19321 | { (case "(($ac_try" in |
| 19322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19323 | *) ac_try_echo=$ac_try;; |
| 19324 | esac |
| 19325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19326 | (eval "$ac_try") 2>&5 |
| 19327 | ac_status=$? |
| 19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19329 | (exit $ac_status); }; }; then |
| 19330 | ac_cv_lib_gcc___umoddi3=yes |
| 19331 | else |
| 19332 | echo "$as_me: failed program was:" >&5 |
| 19333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19334 | |
| 19335 | ac_cv_lib_gcc___umoddi3=no |
| 19336 | fi |
| 19337 | |
| 19338 | rm -f core conftest.err conftest.$ac_objext \ |
| 19339 | conftest$ac_exeext conftest.$ac_ext |
| 19340 | LIBS=$ac_check_lib_save_LIBS |
| 19341 | fi |
| 19342 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19343 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19344 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19345 | |
| 19346 | cat >>confdefs.h <<\_ACEOF |
| 19347 | #define HAVE___UMODDI3 1 |
| 19348 | _ACEOF |
| 19349 | |
| 19350 | fi |
| 19351 | |
| 19352 | |
| 19353 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19354 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19355 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19357 | else |
| 19358 | ac_check_lib_save_LIBS=$LIBS |
| 19359 | LIBS="-lgcc $LIBS" |
| 19360 | cat >conftest.$ac_ext <<_ACEOF |
| 19361 | /* confdefs.h. */ |
| 19362 | _ACEOF |
| 19363 | cat confdefs.h >>conftest.$ac_ext |
| 19364 | cat >>conftest.$ac_ext <<_ACEOF |
| 19365 | /* end confdefs.h. */ |
| 19366 | |
| 19367 | /* Override any GCC internal prototype to avoid an error. |
| 19368 | Use char because int might match the return type of a GCC |
| 19369 | builtin and then its argument prototype would still apply. */ |
| 19370 | #ifdef __cplusplus |
| 19371 | extern "C" |
| 19372 | #endif |
| 19373 | char __main (); |
| 19374 | int |
| 19375 | main () |
| 19376 | { |
| 19377 | return __main (); |
| 19378 | ; |
| 19379 | return 0; |
| 19380 | } |
| 19381 | _ACEOF |
| 19382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19383 | if { (ac_try="$ac_link" |
| 19384 | case "(($ac_try" in |
| 19385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19386 | *) ac_try_echo=$ac_try;; |
| 19387 | esac |
| 19388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19389 | (eval "$ac_link") 2>conftest.er1 |
| 19390 | ac_status=$? |
| 19391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19392 | rm -f conftest.er1 |
| 19393 | cat conftest.err >&5 |
| 19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19395 | (exit $ac_status); } && |
| 19396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19397 | { (case "(($ac_try" in |
| 19398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19399 | *) ac_try_echo=$ac_try;; |
| 19400 | esac |
| 19401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19402 | (eval "$ac_try") 2>&5 |
| 19403 | ac_status=$? |
| 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19405 | (exit $ac_status); }; } && |
| 19406 | { ac_try='test -s conftest$ac_exeext' |
| 19407 | { (case "(($ac_try" in |
| 19408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19409 | *) ac_try_echo=$ac_try;; |
| 19410 | esac |
| 19411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19412 | (eval "$ac_try") 2>&5 |
| 19413 | ac_status=$? |
| 19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19415 | (exit $ac_status); }; }; then |
| 19416 | ac_cv_lib_gcc___main=yes |
| 19417 | else |
| 19418 | echo "$as_me: failed program was:" >&5 |
| 19419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19420 | |
| 19421 | ac_cv_lib_gcc___main=no |
| 19422 | fi |
| 19423 | |
| 19424 | rm -f core conftest.err conftest.$ac_objext \ |
| 19425 | conftest$ac_exeext conftest.$ac_ext |
| 19426 | LIBS=$ac_check_lib_save_LIBS |
| 19427 | fi |
| 19428 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19429 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19430 | if test $ac_cv_lib_gcc___main = yes; then |
| 19431 | |
| 19432 | cat >>confdefs.h <<\_ACEOF |
| 19433 | #define HAVE___MAIN 1 |
| 19434 | _ACEOF |
| 19435 | |
| 19436 | fi |
| 19437 | |
| 19438 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19439 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19440 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19442 | else |
| 19443 | ac_check_lib_save_LIBS=$LIBS |
| 19444 | LIBS="-lgcc $LIBS" |
| 19445 | cat >conftest.$ac_ext <<_ACEOF |
| 19446 | /* confdefs.h. */ |
| 19447 | _ACEOF |
| 19448 | cat confdefs.h >>conftest.$ac_ext |
| 19449 | cat >>conftest.$ac_ext <<_ACEOF |
| 19450 | /* end confdefs.h. */ |
| 19451 | |
| 19452 | /* Override any GCC internal prototype to avoid an error. |
| 19453 | Use char because int might match the return type of a GCC |
| 19454 | builtin and then its argument prototype would still apply. */ |
| 19455 | #ifdef __cplusplus |
| 19456 | extern "C" |
| 19457 | #endif |
| 19458 | char __cmpdi2 (); |
| 19459 | int |
| 19460 | main () |
| 19461 | { |
| 19462 | return __cmpdi2 (); |
| 19463 | ; |
| 19464 | return 0; |
| 19465 | } |
| 19466 | _ACEOF |
| 19467 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19468 | if { (ac_try="$ac_link" |
| 19469 | case "(($ac_try" in |
| 19470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19471 | *) ac_try_echo=$ac_try;; |
| 19472 | esac |
| 19473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19474 | (eval "$ac_link") 2>conftest.er1 |
| 19475 | ac_status=$? |
| 19476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19477 | rm -f conftest.er1 |
| 19478 | cat conftest.err >&5 |
| 19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19480 | (exit $ac_status); } && |
| 19481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19482 | { (case "(($ac_try" in |
| 19483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19484 | *) ac_try_echo=$ac_try;; |
| 19485 | esac |
| 19486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19487 | (eval "$ac_try") 2>&5 |
| 19488 | ac_status=$? |
| 19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19490 | (exit $ac_status); }; } && |
| 19491 | { ac_try='test -s conftest$ac_exeext' |
| 19492 | { (case "(($ac_try" in |
| 19493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19494 | *) ac_try_echo=$ac_try;; |
| 19495 | esac |
| 19496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19497 | (eval "$ac_try") 2>&5 |
| 19498 | ac_status=$? |
| 19499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19500 | (exit $ac_status); }; }; then |
| 19501 | ac_cv_lib_gcc___cmpdi2=yes |
| 19502 | else |
| 19503 | echo "$as_me: failed program was:" >&5 |
| 19504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19505 | |
| 19506 | ac_cv_lib_gcc___cmpdi2=no |
| 19507 | fi |
| 19508 | |
| 19509 | rm -f core conftest.err conftest.$ac_objext \ |
| 19510 | conftest$ac_exeext conftest.$ac_ext |
| 19511 | LIBS=$ac_check_lib_save_LIBS |
| 19512 | fi |
| 19513 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19514 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19515 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19516 | |
| 19517 | cat >>confdefs.h <<\_ACEOF |
| 19518 | #define HAVE___CMPDI2 1 |
| 19519 | _ACEOF |
| 19520 | |
| 19521 | fi |
| 19522 | |
| 19523 | fi |
| 19524 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19525 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19526 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19527 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19528 | cat >conftest.$ac_ext <<_ACEOF |
| 19529 | #include <windows.h> |
| 19530 | #include <imagehlp.h> |
| 19531 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19532 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19533 | _ACEOF |
| 19534 | rm -f conftest.$ac_objext |
| 19535 | if { (ac_try="$ac_compile" |
| 19536 | case "(($ac_try" in |
| 19537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19538 | *) ac_try_echo=$ac_try;; |
| 19539 | esac |
| 19540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19541 | (eval "$ac_compile") 2>conftest.er1 |
| 19542 | ac_status=$? |
| 19543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19544 | rm -f conftest.er1 |
| 19545 | cat conftest.err >&5 |
| 19546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19547 | (exit $ac_status); } && |
| 19548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19549 | { (case "(($ac_try" in |
| 19550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19551 | *) ac_try_echo=$ac_try;; |
| 19552 | esac |
| 19553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19554 | (eval "$ac_try") 2>&5 |
| 19555 | ac_status=$? |
| 19556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19557 | (exit $ac_status); }; } && |
| 19558 | { ac_try='test -s conftest.$ac_objext' |
| 19559 | { (case "(($ac_try" in |
| 19560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19561 | *) ac_try_echo=$ac_try;; |
| 19562 | esac |
| 19563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19564 | (eval "$ac_try") 2>&5 |
| 19565 | ac_status=$? |
| 19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19567 | (exit $ac_status); }; }; then |
| 19568 | |
| 19569 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19570 | echo "${ECHO_T}yes" >&6; } |
| 19571 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19572 | |
| 19573 | else |
| 19574 | echo "$as_me: failed program was:" >&5 |
| 19575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19576 | |
| 19577 | |
| 19578 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19579 | echo "${ECHO_T}no" >&6; } |
| 19580 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19581 | |
| 19582 | fi |
| 19583 | |
| 19584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19585 | |
| 19586 | cat >>confdefs.h <<_ACEOF |
| 19587 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19588 | _ACEOF |
| 19589 | |
| 19590 | fi |
| 19591 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19593 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19594 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19595 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19597 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19598 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19599 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19604 | cat >conftest.$ac_ext <<_ACEOF |
| 19605 | /* confdefs.h. */ |
| 19606 | _ACEOF |
| 19607 | cat confdefs.h >>conftest.$ac_ext |
| 19608 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19609 | /* end confdefs.h. */ |
| 19610 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19611 | int |
| 19612 | main () |
| 19613 | { |
| 19614 | float f; isnan(f); |
| 19615 | ; |
| 19616 | return 0; |
| 19617 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19618 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19619 | rm -f conftest.$ac_objext |
| 19620 | if { (ac_try="$ac_compile" |
| 19621 | case "(($ac_try" in |
| 19622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19623 | *) ac_try_echo=$ac_try;; |
| 19624 | esac |
| 19625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19626 | (eval "$ac_compile") 2>conftest.er1 |
| 19627 | ac_status=$? |
| 19628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19629 | rm -f conftest.er1 |
| 19630 | cat conftest.err >&5 |
| 19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19632 | (exit $ac_status); } && |
| 19633 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19634 | { (case "(($ac_try" in |
| 19635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19636 | *) ac_try_echo=$ac_try;; |
| 19637 | esac |
| 19638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19639 | (eval "$ac_try") 2>&5 |
| 19640 | ac_status=$? |
| 19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19642 | (exit $ac_status); }; } && |
| 19643 | { ac_try='test -s conftest.$ac_objext' |
| 19644 | { (case "(($ac_try" in |
| 19645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19646 | *) ac_try_echo=$ac_try;; |
| 19647 | esac |
| 19648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19649 | (eval "$ac_try") 2>&5 |
| 19650 | ac_status=$? |
| 19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19652 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19653 | ac_cv_func_isnan_in_math_h=yes |
| 19654 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19655 | echo "$as_me: failed program was:" >&5 |
| 19656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19657 | |
| 19658 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19662 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19663 | ac_cpp='$CPP $CPPFLAGS' |
| 19664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19667 | |
| 19668 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19669 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19670 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19671 | |
| 19672 | |
| 19673 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19675 | cat >>confdefs.h <<\_ACEOF |
| 19676 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19677 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19678 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19679 | fi |
| 19680 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19681 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19682 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19683 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19685 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19686 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19687 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19691 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19692 | cat >conftest.$ac_ext <<_ACEOF |
| 19693 | /* confdefs.h. */ |
| 19694 | _ACEOF |
| 19695 | cat confdefs.h >>conftest.$ac_ext |
| 19696 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19697 | /* end confdefs.h. */ |
| 19698 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19699 | int |
| 19700 | main () |
| 19701 | { |
| 19702 | float f; isnan(f); |
| 19703 | ; |
| 19704 | return 0; |
| 19705 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19706 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19707 | rm -f conftest.$ac_objext |
| 19708 | if { (ac_try="$ac_compile" |
| 19709 | case "(($ac_try" in |
| 19710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19711 | *) ac_try_echo=$ac_try;; |
| 19712 | esac |
| 19713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19714 | (eval "$ac_compile") 2>conftest.er1 |
| 19715 | ac_status=$? |
| 19716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19717 | rm -f conftest.er1 |
| 19718 | cat conftest.err >&5 |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); } && |
| 19721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19722 | { (case "(($ac_try" in |
| 19723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19724 | *) ac_try_echo=$ac_try;; |
| 19725 | esac |
| 19726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19727 | (eval "$ac_try") 2>&5 |
| 19728 | ac_status=$? |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); }; } && |
| 19731 | { ac_try='test -s conftest.$ac_objext' |
| 19732 | { (case "(($ac_try" in |
| 19733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19734 | *) ac_try_echo=$ac_try;; |
| 19735 | esac |
| 19736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19737 | (eval "$ac_try") 2>&5 |
| 19738 | ac_status=$? |
| 19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19740 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19741 | ac_cv_func_isnan_in_cmath=yes |
| 19742 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19743 | echo "$as_me: failed program was:" >&5 |
| 19744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19745 | |
| 19746 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19747 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19750 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19751 | ac_cpp='$CPP $CPPFLAGS' |
| 19752 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19753 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19754 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19755 | |
| 19756 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19757 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19758 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19759 | |
| 19760 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19762 | cat >>confdefs.h <<\_ACEOF |
| 19763 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19764 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19765 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19766 | fi |
| 19767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19768 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19769 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19770 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19772 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19773 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19774 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19775 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19776 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19777 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19779 | cat >conftest.$ac_ext <<_ACEOF |
| 19780 | /* confdefs.h. */ |
| 19781 | _ACEOF |
| 19782 | cat confdefs.h >>conftest.$ac_ext |
| 19783 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19784 | /* end confdefs.h. */ |
| 19785 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19786 | int |
| 19787 | main () |
| 19788 | { |
| 19789 | float f; std::isnan(f); |
| 19790 | ; |
| 19791 | return 0; |
| 19792 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19793 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19794 | rm -f conftest.$ac_objext |
| 19795 | if { (ac_try="$ac_compile" |
| 19796 | case "(($ac_try" in |
| 19797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19798 | *) ac_try_echo=$ac_try;; |
| 19799 | esac |
| 19800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19801 | (eval "$ac_compile") 2>conftest.er1 |
| 19802 | ac_status=$? |
| 19803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19804 | rm -f conftest.er1 |
| 19805 | cat conftest.err >&5 |
| 19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19807 | (exit $ac_status); } && |
| 19808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19809 | { (case "(($ac_try" in |
| 19810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19811 | *) ac_try_echo=$ac_try;; |
| 19812 | esac |
| 19813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19814 | (eval "$ac_try") 2>&5 |
| 19815 | ac_status=$? |
| 19816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19817 | (exit $ac_status); }; } && |
| 19818 | { ac_try='test -s conftest.$ac_objext' |
| 19819 | { (case "(($ac_try" in |
| 19820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19821 | *) ac_try_echo=$ac_try;; |
| 19822 | esac |
| 19823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19824 | (eval "$ac_try") 2>&5 |
| 19825 | ac_status=$? |
| 19826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19827 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19828 | ac_cv_func_std_isnan_in_cmath=yes |
| 19829 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19830 | echo "$as_me: failed program was:" >&5 |
| 19831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19832 | |
| 19833 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19834 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19837 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19838 | ac_cpp='$CPP $CPPFLAGS' |
| 19839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19842 | |
| 19843 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19844 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19845 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19846 | |
| 19847 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19849 | cat >>confdefs.h <<\_ACEOF |
| 19850 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19851 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19852 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19853 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19854 | |
| 19855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19856 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19857 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19858 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19860 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19861 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19862 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19866 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19867 | cat >conftest.$ac_ext <<_ACEOF |
| 19868 | /* confdefs.h. */ |
| 19869 | _ACEOF |
| 19870 | cat confdefs.h >>conftest.$ac_ext |
| 19871 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19872 | /* end confdefs.h. */ |
| 19873 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19874 | int |
| 19875 | main () |
| 19876 | { |
| 19877 | float f; isinf(f); |
| 19878 | ; |
| 19879 | return 0; |
| 19880 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19881 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | rm -f conftest.$ac_objext |
| 19883 | if { (ac_try="$ac_compile" |
| 19884 | case "(($ac_try" in |
| 19885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19886 | *) ac_try_echo=$ac_try;; |
| 19887 | esac |
| 19888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19889 | (eval "$ac_compile") 2>conftest.er1 |
| 19890 | ac_status=$? |
| 19891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19892 | rm -f conftest.er1 |
| 19893 | cat conftest.err >&5 |
| 19894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19895 | (exit $ac_status); } && |
| 19896 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 19903 | ac_status=$? |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); }; } && |
| 19906 | { ac_try='test -s conftest.$ac_objext' |
| 19907 | { (case "(($ac_try" in |
| 19908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19909 | *) ac_try_echo=$ac_try;; |
| 19910 | esac |
| 19911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19912 | (eval "$ac_try") 2>&5 |
| 19913 | ac_status=$? |
| 19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19915 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19916 | ac_cv_func_isinf_in_math_h=yes |
| 19917 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19918 | echo "$as_me: failed program was:" >&5 |
| 19919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19920 | |
| 19921 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19922 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19925 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19926 | ac_cpp='$CPP $CPPFLAGS' |
| 19927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19930 | |
| 19931 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19932 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19933 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19934 | |
| 19935 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19936 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19937 | cat >>confdefs.h <<\_ACEOF |
| 19938 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19939 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19940 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19941 | fi |
| 19942 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19943 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19944 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19945 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19947 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19948 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19949 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19954 | cat >conftest.$ac_ext <<_ACEOF |
| 19955 | /* confdefs.h. */ |
| 19956 | _ACEOF |
| 19957 | cat confdefs.h >>conftest.$ac_ext |
| 19958 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19959 | /* end confdefs.h. */ |
| 19960 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19961 | int |
| 19962 | main () |
| 19963 | { |
| 19964 | float f; isinf(f); |
| 19965 | ; |
| 19966 | return 0; |
| 19967 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19968 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19969 | rm -f conftest.$ac_objext |
| 19970 | if { (ac_try="$ac_compile" |
| 19971 | case "(($ac_try" in |
| 19972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19973 | *) ac_try_echo=$ac_try;; |
| 19974 | esac |
| 19975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19976 | (eval "$ac_compile") 2>conftest.er1 |
| 19977 | ac_status=$? |
| 19978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19979 | rm -f conftest.er1 |
| 19980 | cat conftest.err >&5 |
| 19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19982 | (exit $ac_status); } && |
| 19983 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19984 | { (case "(($ac_try" in |
| 19985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19986 | *) ac_try_echo=$ac_try;; |
| 19987 | esac |
| 19988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19989 | (eval "$ac_try") 2>&5 |
| 19990 | ac_status=$? |
| 19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19992 | (exit $ac_status); }; } && |
| 19993 | { ac_try='test -s conftest.$ac_objext' |
| 19994 | { (case "(($ac_try" in |
| 19995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19996 | *) ac_try_echo=$ac_try;; |
| 19997 | esac |
| 19998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19999 | (eval "$ac_try") 2>&5 |
| 20000 | ac_status=$? |
| 20001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20002 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20003 | ac_cv_func_isinf_in_cmath=yes |
| 20004 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20005 | echo "$as_me: failed program was:" >&5 |
| 20006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20007 | |
| 20008 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20009 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20012 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20013 | ac_cpp='$CPP $CPPFLAGS' |
| 20014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20017 | |
| 20018 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20019 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 20020 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20021 | |
| 20022 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20023 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20024 | cat >>confdefs.h <<\_ACEOF |
| 20025 | #define HAVE_ISINF_IN_CMATH 1 |
| 20026 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20027 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20028 | fi |
| 20029 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20030 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 20031 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 20032 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 20033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20034 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20035 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20036 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20040 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20041 | cat >conftest.$ac_ext <<_ACEOF |
| 20042 | /* confdefs.h. */ |
| 20043 | _ACEOF |
| 20044 | cat confdefs.h >>conftest.$ac_ext |
| 20045 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20046 | /* end confdefs.h. */ |
| 20047 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20048 | int |
| 20049 | main () |
| 20050 | { |
Eric Christopher | b2bc6e4 | 2012-03-26 02:09:01 +0000 | [diff] [blame] | 20051 | float f; std::isinf(f); |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20052 | ; |
| 20053 | return 0; |
| 20054 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20055 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20056 | rm -f conftest.$ac_objext |
| 20057 | if { (ac_try="$ac_compile" |
| 20058 | case "(($ac_try" in |
| 20059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20060 | *) ac_try_echo=$ac_try;; |
| 20061 | esac |
| 20062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20063 | (eval "$ac_compile") 2>conftest.er1 |
| 20064 | ac_status=$? |
| 20065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20066 | rm -f conftest.er1 |
| 20067 | cat conftest.err >&5 |
| 20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20069 | (exit $ac_status); } && |
| 20070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20071 | { (case "(($ac_try" in |
| 20072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20073 | *) ac_try_echo=$ac_try;; |
| 20074 | esac |
| 20075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20076 | (eval "$ac_try") 2>&5 |
| 20077 | ac_status=$? |
| 20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20079 | (exit $ac_status); }; } && |
| 20080 | { ac_try='test -s conftest.$ac_objext' |
| 20081 | { (case "(($ac_try" in |
| 20082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20083 | *) ac_try_echo=$ac_try;; |
| 20084 | esac |
| 20085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20086 | (eval "$ac_try") 2>&5 |
| 20087 | ac_status=$? |
| 20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20089 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20090 | ac_cv_func_std_isinf_in_cmath=yes |
| 20091 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20092 | echo "$as_me: failed program was:" >&5 |
| 20093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20094 | |
| 20095 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20096 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20099 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20100 | ac_cpp='$CPP $CPPFLAGS' |
| 20101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20104 | |
| 20105 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20106 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 20107 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20108 | |
| 20109 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20110 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20111 | cat >>confdefs.h <<\_ACEOF |
| 20112 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 20113 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20114 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20115 | fi |
| 20116 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20117 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 20118 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 20119 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 20120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20121 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20122 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20123 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20124 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20125 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20127 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20128 | cat >conftest.$ac_ext <<_ACEOF |
| 20129 | /* confdefs.h. */ |
| 20130 | _ACEOF |
| 20131 | cat confdefs.h >>conftest.$ac_ext |
| 20132 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20133 | /* end confdefs.h. */ |
| 20134 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20135 | int |
| 20136 | main () |
| 20137 | { |
| 20138 | float f; finite(f); |
| 20139 | ; |
| 20140 | return 0; |
| 20141 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20142 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20143 | rm -f conftest.$ac_objext |
| 20144 | if { (ac_try="$ac_compile" |
| 20145 | case "(($ac_try" in |
| 20146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20147 | *) ac_try_echo=$ac_try;; |
| 20148 | esac |
| 20149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20150 | (eval "$ac_compile") 2>conftest.er1 |
| 20151 | ac_status=$? |
| 20152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20153 | rm -f conftest.er1 |
| 20154 | cat conftest.err >&5 |
| 20155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20156 | (exit $ac_status); } && |
| 20157 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20158 | { (case "(($ac_try" in |
| 20159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20160 | *) ac_try_echo=$ac_try;; |
| 20161 | esac |
| 20162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20163 | (eval "$ac_try") 2>&5 |
| 20164 | ac_status=$? |
| 20165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20166 | (exit $ac_status); }; } && |
| 20167 | { ac_try='test -s conftest.$ac_objext' |
| 20168 | { (case "(($ac_try" in |
| 20169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20170 | *) ac_try_echo=$ac_try;; |
| 20171 | esac |
| 20172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20173 | (eval "$ac_try") 2>&5 |
| 20174 | ac_status=$? |
| 20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20176 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20177 | ac_cv_func_finite_in_ieeefp_h=yes |
| 20178 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20179 | echo "$as_me: failed program was:" >&5 |
| 20180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20181 | |
| 20182 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20183 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20186 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20187 | ac_cpp='$CPP $CPPFLAGS' |
| 20188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20191 | |
| 20192 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20193 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 20194 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20195 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 20196 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20197 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20198 | cat >>confdefs.h <<\_ACEOF |
| 20199 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 20200 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20201 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20202 | fi |
| 20203 | |
| 20204 | |
| 20205 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20206 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20207 | |
| 20208 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20209 | for ac_header in stdlib.h unistd.h |
| 20210 | do |
| 20211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20212 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20213 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20217 | fi |
| 20218 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20220 | echo "${ECHO_T}$ac_res" >&6; } |
| 20221 | else |
| 20222 | # Is the header compilable? |
| 20223 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 20225 | cat >conftest.$ac_ext <<_ACEOF |
| 20226 | /* confdefs.h. */ |
| 20227 | _ACEOF |
| 20228 | cat confdefs.h >>conftest.$ac_ext |
| 20229 | cat >>conftest.$ac_ext <<_ACEOF |
| 20230 | /* end confdefs.h. */ |
| 20231 | $ac_includes_default |
| 20232 | #include <$ac_header> |
| 20233 | _ACEOF |
| 20234 | rm -f conftest.$ac_objext |
| 20235 | if { (ac_try="$ac_compile" |
| 20236 | case "(($ac_try" in |
| 20237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20238 | *) ac_try_echo=$ac_try;; |
| 20239 | esac |
| 20240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20241 | (eval "$ac_compile") 2>conftest.er1 |
| 20242 | ac_status=$? |
| 20243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20244 | rm -f conftest.er1 |
| 20245 | cat conftest.err >&5 |
| 20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20247 | (exit $ac_status); } && |
| 20248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20249 | { (case "(($ac_try" in |
| 20250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20251 | *) ac_try_echo=$ac_try;; |
| 20252 | esac |
| 20253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20254 | (eval "$ac_try") 2>&5 |
| 20255 | ac_status=$? |
| 20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20257 | (exit $ac_status); }; } && |
| 20258 | { ac_try='test -s conftest.$ac_objext' |
| 20259 | { (case "(($ac_try" in |
| 20260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20261 | *) ac_try_echo=$ac_try;; |
| 20262 | esac |
| 20263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20264 | (eval "$ac_try") 2>&5 |
| 20265 | ac_status=$? |
| 20266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20267 | (exit $ac_status); }; }; then |
| 20268 | ac_header_compiler=yes |
| 20269 | else |
| 20270 | echo "$as_me: failed program was:" >&5 |
| 20271 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20272 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20273 | ac_header_compiler=no |
| 20274 | fi |
| 20275 | |
| 20276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20277 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20278 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20279 | |
| 20280 | # Is the header present? |
| 20281 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20283 | cat >conftest.$ac_ext <<_ACEOF |
| 20284 | /* confdefs.h. */ |
| 20285 | _ACEOF |
| 20286 | cat confdefs.h >>conftest.$ac_ext |
| 20287 | cat >>conftest.$ac_ext <<_ACEOF |
| 20288 | /* end confdefs.h. */ |
| 20289 | #include <$ac_header> |
| 20290 | _ACEOF |
| 20291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20292 | case "(($ac_try" in |
| 20293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20294 | *) ac_try_echo=$ac_try;; |
| 20295 | esac |
| 20296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20298 | ac_status=$? |
| 20299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20300 | rm -f conftest.er1 |
| 20301 | cat conftest.err >&5 |
| 20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20303 | (exit $ac_status); } >/dev/null; then |
| 20304 | if test -s conftest.err; then |
| 20305 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20306 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20307 | else |
| 20308 | ac_cpp_err= |
| 20309 | fi |
| 20310 | else |
| 20311 | ac_cpp_err=yes |
| 20312 | fi |
| 20313 | if test -z "$ac_cpp_err"; then |
| 20314 | ac_header_preproc=yes |
| 20315 | else |
| 20316 | echo "$as_me: failed program was:" >&5 |
| 20317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20318 | |
| 20319 | ac_header_preproc=no |
| 20320 | fi |
| 20321 | |
| 20322 | rm -f conftest.err conftest.$ac_ext |
| 20323 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20324 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20325 | |
| 20326 | # So? What about this header? |
| 20327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20328 | yes:no: ) |
| 20329 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20333 | ac_header_preproc=yes |
| 20334 | ;; |
| 20335 | no:yes:* ) |
| 20336 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20338 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20339 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20340 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20342 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20343 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20346 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20348 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20349 | ## ------------------------------------ ## |
| 20350 | ## Report this to http://llvm.org/bugs/ ## |
| 20351 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20352 | _ASBOX |
| 20353 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20354 | ;; |
| 20355 | esac |
| 20356 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20360 | else |
| 20361 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20362 | fi |
| 20363 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20364 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20365 | echo "${ECHO_T}$ac_res" >&6; } |
| 20366 | |
| 20367 | fi |
| 20368 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20369 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20370 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20371 | _ACEOF |
| 20372 | |
| 20373 | fi |
| 20374 | |
| 20375 | done |
| 20376 | |
| 20377 | |
| 20378 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20379 | do |
| 20380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20381 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20383 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20385 | else |
| 20386 | cat >conftest.$ac_ext <<_ACEOF |
| 20387 | /* confdefs.h. */ |
| 20388 | _ACEOF |
| 20389 | cat confdefs.h >>conftest.$ac_ext |
| 20390 | cat >>conftest.$ac_ext <<_ACEOF |
| 20391 | /* end confdefs.h. */ |
| 20392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20394 | #define $ac_func innocuous_$ac_func |
| 20395 | |
| 20396 | /* System header to define __stub macros and hopefully few prototypes, |
| 20397 | which can conflict with char $ac_func (); below. |
| 20398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20399 | <limits.h> exists even on freestanding compilers. */ |
| 20400 | |
| 20401 | #ifdef __STDC__ |
| 20402 | # include <limits.h> |
| 20403 | #else |
| 20404 | # include <assert.h> |
| 20405 | #endif |
| 20406 | |
| 20407 | #undef $ac_func |
| 20408 | |
| 20409 | /* Override any GCC internal prototype to avoid an error. |
| 20410 | Use char because int might match the return type of a GCC |
| 20411 | builtin and then its argument prototype would still apply. */ |
| 20412 | #ifdef __cplusplus |
| 20413 | extern "C" |
| 20414 | #endif |
| 20415 | char $ac_func (); |
| 20416 | /* The GNU C library defines this for functions which it implements |
| 20417 | to always fail with ENOSYS. Some functions are actually named |
| 20418 | something starting with __ and the normal name is an alias. */ |
| 20419 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20420 | choke me |
| 20421 | #endif |
| 20422 | |
| 20423 | int |
| 20424 | main () |
| 20425 | { |
| 20426 | return $ac_func (); |
| 20427 | ; |
| 20428 | return 0; |
| 20429 | } |
| 20430 | _ACEOF |
| 20431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20432 | if { (ac_try="$ac_link" |
| 20433 | case "(($ac_try" in |
| 20434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20435 | *) ac_try_echo=$ac_try;; |
| 20436 | esac |
| 20437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20438 | (eval "$ac_link") 2>conftest.er1 |
| 20439 | ac_status=$? |
| 20440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20441 | rm -f conftest.er1 |
| 20442 | cat conftest.err >&5 |
| 20443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20444 | (exit $ac_status); } && |
| 20445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20446 | { (case "(($ac_try" in |
| 20447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20448 | *) ac_try_echo=$ac_try;; |
| 20449 | esac |
| 20450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20451 | (eval "$ac_try") 2>&5 |
| 20452 | ac_status=$? |
| 20453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20454 | (exit $ac_status); }; } && |
| 20455 | { ac_try='test -s conftest$ac_exeext' |
| 20456 | { (case "(($ac_try" in |
| 20457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20458 | *) ac_try_echo=$ac_try;; |
| 20459 | esac |
| 20460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20461 | (eval "$ac_try") 2>&5 |
| 20462 | ac_status=$? |
| 20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20464 | (exit $ac_status); }; }; then |
| 20465 | eval "$as_ac_var=yes" |
| 20466 | else |
| 20467 | echo "$as_me: failed program was:" >&5 |
| 20468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20469 | |
| 20470 | eval "$as_ac_var=no" |
| 20471 | fi |
| 20472 | |
| 20473 | rm -f core conftest.err conftest.$ac_objext \ |
| 20474 | conftest$ac_exeext conftest.$ac_ext |
| 20475 | fi |
| 20476 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20477 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20478 | echo "${ECHO_T}$ac_res" >&6; } |
| 20479 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20480 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20481 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20482 | _ACEOF |
| 20483 | |
| 20484 | fi |
| 20485 | done |
| 20486 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20487 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20488 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20489 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20491 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20492 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20493 | ac_cv_func_mmap_fixed_mapped=no |
| 20494 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20495 | cat >conftest.$ac_ext <<_ACEOF |
| 20496 | /* confdefs.h. */ |
| 20497 | _ACEOF |
| 20498 | cat confdefs.h >>conftest.$ac_ext |
| 20499 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20500 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20501 | $ac_includes_default |
| 20502 | /* malloc might have been renamed as rpl_malloc. */ |
| 20503 | #undef malloc |
| 20504 | |
| 20505 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20506 | Here is a matrix of mmap possibilities: |
| 20507 | mmap private not fixed |
| 20508 | mmap private fixed at somewhere currently unmapped |
| 20509 | mmap private fixed at somewhere already mapped |
| 20510 | mmap shared not fixed |
| 20511 | mmap shared fixed at somewhere currently unmapped |
| 20512 | mmap shared fixed at somewhere already mapped |
| 20513 | For private mappings, we should verify that changes cannot be read() |
| 20514 | back from the file, nor mmap's back from the file at a different |
| 20515 | address. (There have been systems where private was not correctly |
| 20516 | implemented like the infamous i386 svr4.0, and systems where the |
| 20517 | VM page cache was not coherent with the file system buffer cache |
| 20518 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20519 | For shared mappings, we should conversely verify that changes get |
| 20520 | propagated back to all the places they're supposed to be. |
| 20521 | |
| 20522 | Grep wants private fixed already mapped. |
| 20523 | The main things grep needs to know about mmap are: |
| 20524 | * does it exist and is it safe to write into the mmap'd area |
| 20525 | * how to use it (BSD variants) */ |
| 20526 | |
| 20527 | #include <fcntl.h> |
| 20528 | #include <sys/mman.h> |
| 20529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20530 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20531 | char *malloc (); |
| 20532 | #endif |
| 20533 | |
| 20534 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20535 | #if !HAVE_GETPAGESIZE |
| 20536 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20537 | # if !HAVE_SYS_PARAM_H |
| 20538 | # define HAVE_SYS_PARAM_H 1 |
| 20539 | # endif |
| 20540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20541 | # ifdef _SC_PAGESIZE |
| 20542 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20543 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20544 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20545 | # include <sys/param.h> |
| 20546 | # ifdef EXEC_PAGESIZE |
| 20547 | # define getpagesize() EXEC_PAGESIZE |
| 20548 | # else /* no EXEC_PAGESIZE */ |
| 20549 | # ifdef NBPG |
| 20550 | # define getpagesize() NBPG * CLSIZE |
| 20551 | # ifndef CLSIZE |
| 20552 | # define CLSIZE 1 |
| 20553 | # endif /* no CLSIZE */ |
| 20554 | # else /* no NBPG */ |
| 20555 | # ifdef NBPC |
| 20556 | # define getpagesize() NBPC |
| 20557 | # else /* no NBPC */ |
| 20558 | # ifdef PAGESIZE |
| 20559 | # define getpagesize() PAGESIZE |
| 20560 | # endif /* PAGESIZE */ |
| 20561 | # endif /* no NBPC */ |
| 20562 | # endif /* no NBPG */ |
| 20563 | # endif /* no EXEC_PAGESIZE */ |
| 20564 | # else /* no HAVE_SYS_PARAM_H */ |
| 20565 | # define getpagesize() 8192 /* punt totally */ |
| 20566 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20567 | # endif /* no _SC_PAGESIZE */ |
| 20568 | |
| 20569 | #endif /* no HAVE_GETPAGESIZE */ |
| 20570 | |
| 20571 | int |
| 20572 | main () |
| 20573 | { |
| 20574 | char *data, *data2, *data3; |
| 20575 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20576 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20577 | |
| 20578 | pagesize = getpagesize (); |
| 20579 | |
| 20580 | /* First, make a file with some known garbage in it. */ |
| 20581 | data = (char *) malloc (pagesize); |
| 20582 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20583 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20584 | for (i = 0; i < pagesize; ++i) |
| 20585 | *(data + i) = rand (); |
| 20586 | umask (0); |
| 20587 | fd = creat ("conftest.mmap", 0600); |
| 20588 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20590 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20591 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20592 | close (fd); |
| 20593 | |
| 20594 | /* Next, try to mmap the file at a fixed address which already has |
| 20595 | something else allocated at it. If we can, also make sure that |
| 20596 | we see the same garbage. */ |
| 20597 | fd = open ("conftest.mmap", O_RDWR); |
| 20598 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20599 | return 1; |
| 20600 | data2 = (char *) malloc (2 * pagesize); |
| 20601 | if (!data2) |
| 20602 | return 1; |
| 20603 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20604 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20605 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20606 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20607 | for (i = 0; i < pagesize; ++i) |
| 20608 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20609 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20610 | |
| 20611 | /* Finally, make sure that changes to the mapped area do not |
| 20612 | percolate back to the file as seen by read(). (This is a bug on |
| 20613 | some variants of i386 svr4.0.) */ |
| 20614 | for (i = 0; i < pagesize; ++i) |
| 20615 | *(data2 + i) = *(data2 + i) + 1; |
| 20616 | data3 = (char *) malloc (pagesize); |
| 20617 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20618 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20619 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20620 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20621 | for (i = 0; i < pagesize; ++i) |
| 20622 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20623 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20624 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20625 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20626 | } |
| 20627 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20628 | rm -f conftest$ac_exeext |
| 20629 | if { (ac_try="$ac_link" |
| 20630 | case "(($ac_try" in |
| 20631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20632 | *) ac_try_echo=$ac_try;; |
| 20633 | esac |
| 20634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20635 | (eval "$ac_link") 2>&5 |
| 20636 | ac_status=$? |
| 20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20639 | { (case "(($ac_try" in |
| 20640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20641 | *) ac_try_echo=$ac_try;; |
| 20642 | esac |
| 20643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20644 | (eval "$ac_try") 2>&5 |
| 20645 | ac_status=$? |
| 20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20647 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20648 | ac_cv_func_mmap_fixed_mapped=yes |
| 20649 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20650 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20651 | echo "$as_me: failed program was:" >&5 |
| 20652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20653 | |
| 20654 | ( exit $ac_status ) |
| 20655 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20656 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20657 | 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] | 20658 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20659 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20660 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20661 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20662 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20663 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20664 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20666 | cat >>confdefs.h <<\_ACEOF |
| 20667 | #define HAVE_MMAP 1 |
| 20668 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20669 | |
| 20670 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20671 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20672 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20673 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20674 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20675 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20677 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20678 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20679 | ac_cpp='$CPP $CPPFLAGS' |
| 20680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20684 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20685 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20686 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20687 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20689 | /* confdefs.h. */ |
| 20690 | _ACEOF |
| 20691 | cat confdefs.h >>conftest.$ac_ext |
| 20692 | cat >>conftest.$ac_ext <<_ACEOF |
| 20693 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20695 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20696 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20697 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20698 | |
| 20699 | int |
| 20700 | main () |
| 20701 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20702 | |
| 20703 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20704 | fd = creat ("foo",0777); |
| 20705 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20706 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20707 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20708 | ; |
| 20709 | return 0; |
| 20710 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20711 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20712 | rm -f conftest$ac_exeext |
| 20713 | if { (ac_try="$ac_link" |
| 20714 | case "(($ac_try" in |
| 20715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20716 | *) ac_try_echo=$ac_try;; |
| 20717 | esac |
| 20718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20719 | (eval "$ac_link") 2>&5 |
| 20720 | ac_status=$? |
| 20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20722 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20723 | { (case "(($ac_try" in |
| 20724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20725 | *) ac_try_echo=$ac_try;; |
| 20726 | esac |
| 20727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20728 | (eval "$ac_try") 2>&5 |
| 20729 | ac_status=$? |
| 20730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20731 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20732 | ac_cv_func_mmap_file=yes |
| 20733 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20734 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20735 | echo "$as_me: failed program was:" >&5 |
| 20736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20737 | |
| 20738 | ( exit $ac_status ) |
| 20739 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20741 | 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] | 20742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20743 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20745 | ac_ext=c |
| 20746 | ac_cpp='$CPP $CPPFLAGS' |
| 20747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20750 | |
| 20751 | |
| 20752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20753 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20754 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20755 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20756 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20757 | cat >>confdefs.h <<\_ACEOF |
| 20758 | #define HAVE_MMAP_FILE |
| 20759 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20760 | |
| 20761 | MMAP_FILE=yes |
| 20762 | |
| 20763 | fi |
| 20764 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20765 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20766 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20767 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20769 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20770 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20771 | ac_cv_need_dev_zero_for_mmap=yes |
| 20772 | else |
| 20773 | ac_cv_need_dev_zero_for_mmap=no |
| 20774 | fi |
| 20775 | |
| 20776 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20777 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20778 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20779 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20781 | cat >>confdefs.h <<\_ACEOF |
| 20782 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20783 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20784 | |
| 20785 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20786 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20787 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20788 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20790 | 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] | 20791 | fi |
| 20792 | if test "$ac_cv_func_mmap_file" = "no" |
| 20793 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20794 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20795 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20796 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20797 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20798 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20799 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20800 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20801 | ac_ext=cpp |
| 20802 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20806 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20807 | cat >conftest.$ac_ext <<_ACEOF |
| 20808 | /* confdefs.h. */ |
| 20809 | _ACEOF |
| 20810 | cat confdefs.h >>conftest.$ac_ext |
| 20811 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20812 | /* end confdefs.h. */ |
| 20813 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20814 | volatile unsigned long val = 1; |
| 20815 | __sync_synchronize(); |
| 20816 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20817 | __sync_add_and_fetch(&val, 1); |
| 20818 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20819 | return 0; |
| 20820 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20821 | |
| 20822 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20823 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20824 | if { (ac_try="$ac_link" |
| 20825 | case "(($ac_try" in |
| 20826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20827 | *) ac_try_echo=$ac_try;; |
| 20828 | esac |
| 20829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20830 | (eval "$ac_link") 2>conftest.er1 |
| 20831 | ac_status=$? |
| 20832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20833 | rm -f conftest.er1 |
| 20834 | cat conftest.err >&5 |
| 20835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20836 | (exit $ac_status); } && |
| 20837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20838 | { (case "(($ac_try" in |
| 20839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20840 | *) ac_try_echo=$ac_try;; |
| 20841 | esac |
| 20842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20843 | (eval "$ac_try") 2>&5 |
| 20844 | ac_status=$? |
| 20845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20846 | (exit $ac_status); }; } && |
| 20847 | { ac_try='test -s conftest$ac_exeext' |
| 20848 | { (case "(($ac_try" in |
| 20849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20850 | *) ac_try_echo=$ac_try;; |
| 20851 | esac |
| 20852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20853 | (eval "$ac_try") 2>&5 |
| 20854 | ac_status=$? |
| 20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20856 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20857 | ac_ext=c |
| 20858 | ac_cpp='$CPP $CPPFLAGS' |
| 20859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20862 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20863 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20864 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20865 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20866 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20867 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20868 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20869 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20870 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20871 | echo "$as_me: failed program was:" >&5 |
| 20872 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20874 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20875 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20877 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20878 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20879 | _ACEOF |
| 20880 | |
| 20881 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20882 | 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] | 20883 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20884 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20885 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20886 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20887 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20888 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20889 | 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] | 20890 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20891 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20892 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20894 | else |
| 20895 | ac_ext=c |
| 20896 | ac_cpp='$CPP $CPPFLAGS' |
| 20897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20901 | cat >conftest.$ac_ext <<_ACEOF |
| 20902 | /* confdefs.h. */ |
| 20903 | _ACEOF |
| 20904 | cat confdefs.h >>conftest.$ac_ext |
| 20905 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20906 | /* end confdefs.h. */ |
| 20907 | #ifndef __x86_64__ |
| 20908 | error: Not x86-64 even if uname says so! |
| 20909 | #endif |
| 20910 | |
| 20911 | int |
| 20912 | main () |
| 20913 | { |
| 20914 | |
| 20915 | ; |
| 20916 | return 0; |
| 20917 | } |
| 20918 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20919 | rm -f conftest.$ac_objext |
| 20920 | if { (ac_try="$ac_compile" |
| 20921 | case "(($ac_try" in |
| 20922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20923 | *) ac_try_echo=$ac_try;; |
| 20924 | esac |
| 20925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20926 | (eval "$ac_compile") 2>conftest.er1 |
| 20927 | ac_status=$? |
| 20928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20929 | rm -f conftest.er1 |
| 20930 | cat conftest.err >&5 |
| 20931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20932 | (exit $ac_status); } && |
| 20933 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20934 | { (case "(($ac_try" in |
| 20935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20936 | *) ac_try_echo=$ac_try;; |
| 20937 | esac |
| 20938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20939 | (eval "$ac_try") 2>&5 |
| 20940 | ac_status=$? |
| 20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20942 | (exit $ac_status); }; } && |
| 20943 | { ac_try='test -s conftest.$ac_objext' |
| 20944 | { (case "(($ac_try" in |
| 20945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20946 | *) ac_try_echo=$ac_try;; |
| 20947 | esac |
| 20948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20949 | (eval "$ac_try") 2>&5 |
| 20950 | ac_status=$? |
| 20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20952 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20953 | llvm_cv_linux_mixed=no |
| 20954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20955 | echo "$as_me: failed program was:" >&5 |
| 20956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20957 | |
| 20958 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20959 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20960 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20962 | ac_ext=c |
| 20963 | ac_cpp='$CPP $CPPFLAGS' |
| 20964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20967 | |
| 20968 | |
| 20969 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20970 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20971 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20972 | |
| 20973 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20974 | llvm_cv_target_arch="x86" |
| 20975 | ARCH="x86" |
| 20976 | fi |
| 20977 | fi |
| 20978 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20979 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20980 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20981 | do |
| 20982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20983 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20985 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20987 | else |
| 20988 | cat >conftest.$ac_ext <<_ACEOF |
| 20989 | /* confdefs.h. */ |
| 20990 | _ACEOF |
| 20991 | cat confdefs.h >>conftest.$ac_ext |
| 20992 | cat >>conftest.$ac_ext <<_ACEOF |
| 20993 | /* end confdefs.h. */ |
| 20994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20996 | #define $ac_func innocuous_$ac_func |
| 20997 | |
| 20998 | /* System header to define __stub macros and hopefully few prototypes, |
| 20999 | which can conflict with char $ac_func (); below. |
| 21000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21001 | <limits.h> exists even on freestanding compilers. */ |
| 21002 | |
| 21003 | #ifdef __STDC__ |
| 21004 | # include <limits.h> |
| 21005 | #else |
| 21006 | # include <assert.h> |
| 21007 | #endif |
| 21008 | |
| 21009 | #undef $ac_func |
| 21010 | |
| 21011 | /* Override any GCC internal prototype to avoid an error. |
| 21012 | Use char because int might match the return type of a GCC |
| 21013 | builtin and then its argument prototype would still apply. */ |
| 21014 | #ifdef __cplusplus |
| 21015 | extern "C" |
| 21016 | #endif |
| 21017 | char $ac_func (); |
| 21018 | /* The GNU C library defines this for functions which it implements |
| 21019 | to always fail with ENOSYS. Some functions are actually named |
| 21020 | something starting with __ and the normal name is an alias. */ |
| 21021 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21022 | choke me |
| 21023 | #endif |
| 21024 | |
| 21025 | int |
| 21026 | main () |
| 21027 | { |
| 21028 | return $ac_func (); |
| 21029 | ; |
| 21030 | return 0; |
| 21031 | } |
| 21032 | _ACEOF |
| 21033 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21034 | if { (ac_try="$ac_link" |
| 21035 | case "(($ac_try" in |
| 21036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21037 | *) ac_try_echo=$ac_try;; |
| 21038 | esac |
| 21039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21040 | (eval "$ac_link") 2>conftest.er1 |
| 21041 | ac_status=$? |
| 21042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21043 | rm -f conftest.er1 |
| 21044 | cat conftest.err >&5 |
| 21045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21046 | (exit $ac_status); } && |
| 21047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21048 | { (case "(($ac_try" in |
| 21049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21050 | *) ac_try_echo=$ac_try;; |
| 21051 | esac |
| 21052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21053 | (eval "$ac_try") 2>&5 |
| 21054 | ac_status=$? |
| 21055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21056 | (exit $ac_status); }; } && |
| 21057 | { ac_try='test -s conftest$ac_exeext' |
| 21058 | { (case "(($ac_try" in |
| 21059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21060 | *) ac_try_echo=$ac_try;; |
| 21061 | esac |
| 21062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21063 | (eval "$ac_try") 2>&5 |
| 21064 | ac_status=$? |
| 21065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21066 | (exit $ac_status); }; }; then |
| 21067 | eval "$as_ac_var=yes" |
| 21068 | else |
| 21069 | echo "$as_me: failed program was:" >&5 |
| 21070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21071 | |
| 21072 | eval "$as_ac_var=no" |
| 21073 | fi |
| 21074 | |
| 21075 | rm -f core conftest.err conftest.$ac_objext \ |
| 21076 | conftest$ac_exeext conftest.$ac_ext |
| 21077 | fi |
| 21078 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21080 | echo "${ECHO_T}$ac_res" >&6; } |
| 21081 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21082 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21084 | _ACEOF |
| 21085 | |
| 21086 | fi |
| 21087 | done |
| 21088 | |
| 21089 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21090 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21091 | |
| 21092 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21093 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 21094 | |
| 21095 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 21096 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 21097 | prefix="/usr/local" |
| 21098 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21099 | eval LLVM_PREFIX="${prefix}"; |
| 21100 | eval LLVM_BINDIR="${prefix}/bin"; |
| 21101 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21102 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 21103 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21104 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21105 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 21106 | eval LLVM_INFODIR="${prefix}/info"; |
| 21107 | eval LLVM_MANDIR="${prefix}/man"; |
| 21108 | LLVM_CONFIGTIME=`date` |
| 21109 | |
| 21110 | |
| 21111 | |
| 21112 | |
| 21113 | |
| 21114 | |
| 21115 | |
| 21116 | |
| 21117 | |
| 21118 | |
| 21119 | |
Daniel Dunbar | c70b79e | 2012-03-02 16:24:21 +0000 | [diff] [blame] | 21120 | if test "${ENABLE_TIMESTAMPS}" = "0"; then |
| 21121 | LLVM_CONFIGTIME="(timestamp not enabled)" |
| 21122 | fi |
| 21123 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21124 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21125 | cat >>confdefs.h <<_ACEOF |
| 21126 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 21127 | _ACEOF |
| 21128 | |
| 21129 | |
| 21130 | cat >>confdefs.h <<_ACEOF |
| 21131 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 21132 | _ACEOF |
| 21133 | |
| 21134 | |
| 21135 | cat >>confdefs.h <<_ACEOF |
| 21136 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 21137 | _ACEOF |
| 21138 | |
| 21139 | |
| 21140 | cat >>confdefs.h <<_ACEOF |
| 21141 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 21142 | _ACEOF |
| 21143 | |
| 21144 | |
| 21145 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 21146 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21147 | _ACEOF |
| 21148 | |
| 21149 | |
| 21150 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 21151 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21152 | _ACEOF |
| 21153 | |
| 21154 | |
| 21155 | cat >>confdefs.h <<_ACEOF |
| 21156 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 21157 | _ACEOF |
| 21158 | |
| 21159 | |
| 21160 | cat >>confdefs.h <<_ACEOF |
| 21161 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 21162 | _ACEOF |
| 21163 | |
| 21164 | |
| 21165 | cat >>confdefs.h <<_ACEOF |
| 21166 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 21167 | _ACEOF |
| 21168 | |
| 21169 | |
| 21170 | cat >>confdefs.h <<_ACEOF |
| 21171 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 21172 | _ACEOF |
| 21173 | |
| 21174 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21175 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | 2864de7 | 2012-07-22 03:04:52 +0000 | [diff] [blame] | 21176 | #define LLVM_HOSTTRIPLE "$host" |
| 21177 | _ACEOF |
| 21178 | |
| 21179 | |
| 21180 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 21181 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21182 | _ACEOF |
| 21183 | |
| 21184 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21185 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 21186 | BINDINGS_TO_BUILD="" |
| 21187 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 21188 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 21189 | fi |
| 21190 | fi |
| 21191 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 21192 | |
| 21193 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21194 | ALL_BINDINGS=ocaml |
| 21195 | |
| 21196 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21197 | binding_prereqs_failed=0 |
| 21198 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 21199 | case "$a_binding" in |
| 21200 | ocaml) |
| 21201 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21202 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 21203 | 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] | 21204 | binding_prereqs_failed=1 |
| 21205 | fi |
| 21206 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21207 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 21208 | 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] | 21209 | binding_prereqs_failed=1 |
| 21210 | fi |
| 21211 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21212 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 21213 | 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] | 21214 | fi |
| 21215 | if test "x$with_ocaml_libdir" != xauto ; then |
| 21216 | OCAML_LIBDIR=$with_ocaml_libdir |
| 21217 | |
| 21218 | else |
| 21219 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 21220 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 21221 | then |
| 21222 | # ocaml stdlib is beneath our prefix; use stdlib |
| 21223 | OCAML_LIBDIR=$ocaml_stdlib |
| 21224 | |
| 21225 | else |
| 21226 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 21227 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 21228 | |
| 21229 | fi |
| 21230 | fi |
| 21231 | ;; |
| 21232 | esac |
| 21233 | done |
| 21234 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21235 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 21236 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 21237 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21238 | fi |
| 21239 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21240 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 21241 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 21242 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 21243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21244 | else |
| 21245 | ac_ext=cpp |
| 21246 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21250 | |
| 21251 | oldcxxflags="$CXXFLAGS" |
NAKAMURA Takumi | 273df0b | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 21252 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21253 | cat >conftest.$ac_ext <<_ACEOF |
| 21254 | /* confdefs.h. */ |
| 21255 | _ACEOF |
| 21256 | cat confdefs.h >>conftest.$ac_ext |
| 21257 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21258 | /* end confdefs.h. */ |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 21259 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21260 | int |
| 21261 | main () |
| 21262 | { |
Benjamin Kramer | cfe96c8 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 21263 | X<int>().f(); |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21264 | ; |
| 21265 | return 0; |
| 21266 | } |
| 21267 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21268 | rm -f conftest.$ac_objext |
| 21269 | if { (ac_try="$ac_compile" |
| 21270 | case "(($ac_try" in |
| 21271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21272 | *) ac_try_echo=$ac_try;; |
| 21273 | esac |
| 21274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21275 | (eval "$ac_compile") 2>conftest.er1 |
| 21276 | ac_status=$? |
| 21277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21278 | rm -f conftest.er1 |
| 21279 | cat conftest.err >&5 |
| 21280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21281 | (exit $ac_status); } && |
| 21282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21283 | { (case "(($ac_try" in |
| 21284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21285 | *) ac_try_echo=$ac_try;; |
| 21286 | esac |
| 21287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21288 | (eval "$ac_try") 2>&5 |
| 21289 | ac_status=$? |
| 21290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21291 | (exit $ac_status); }; } && |
| 21292 | { ac_try='test -s conftest.$ac_objext' |
| 21293 | { (case "(($ac_try" in |
| 21294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21295 | *) ac_try_echo=$ac_try;; |
| 21296 | esac |
| 21297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21298 | (eval "$ac_try") 2>&5 |
| 21299 | ac_status=$? |
| 21300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21301 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21302 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 21303 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21304 | echo "$as_me: failed program was:" >&5 |
| 21305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21306 | |
| 21307 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21308 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21309 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21311 | CXXFLAGS="$oldcxxflags" |
| 21312 | ac_ext=c |
| 21313 | ac_cpp='$CPP $CPPFLAGS' |
| 21314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21317 | |
| 21318 | |
| 21319 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21320 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21321 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21322 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21323 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21324 | |
| 21325 | else |
| 21326 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21327 | |
| 21328 | fi |
| 21329 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21330 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21331 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21332 | RPATH="-Wl,-R" |
| 21333 | else |
| 21334 | RPATH="-Wl,-rpath" |
| 21335 | fi |
| 21336 | |
| 21337 | |
| 21338 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21339 | RDYNAMIC="-Wl,-export-dynamic" |
| 21340 | else |
| 21341 | RDYNAMIC="" |
| 21342 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21343 | |
| 21344 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21345 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21346 | 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] | 21347 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21348 | |
| 21349 | |
| 21350 | |
| 21351 | |
| 21352 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21353 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21354 | |
| 21355 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21356 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21357 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21358 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21359 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21360 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21361 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21362 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21364 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21365 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21366 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21367 | ac_config_files="$ac_config_files llvm.spec" |
| 21368 | |
| 21369 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21370 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21371 | |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21372 | |
Dylan Noblesmith | 3e82b4a | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21373 | if test "${clang_src_root}" = ""; then |
Eric Christopher | 9b3cd48 | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21374 | clang_src_root="$srcdir/tools/clang" |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21375 | fi |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21376 | if test -f ${clang_src_root}/README.txt; then |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21377 | configh="include/clang/Config/config.h" |
| 21378 | doxy="docs/doxygen.cfg" |
| 21379 | ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21380 | |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21381 | ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21382 | |
| 21383 | fi |
| 21384 | |
Torok Edwin | 4c4b71c | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21385 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21386 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21388 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21390 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21391 | |
| 21392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21393 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21394 | |
| 21395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21396 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21397 | |
| 21398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21400 | |
| 21401 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21402 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21403 | |
| 21404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21405 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21406 | |
| 21407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21408 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21409 | |
| 21410 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21411 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21412 | |
| 21413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21414 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21415 | |
| 21416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21417 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21418 | |
| 21419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21420 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21421 | |
| 21422 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21423 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21424 | |
| 21425 | |
| 21426 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21427 | |
| 21428 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21429 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21430 | cat >confcache <<\_ACEOF |
| 21431 | # This file is a shell script that caches the results of configure |
| 21432 | # tests run on this system so they can be shared between configure |
| 21433 | # scripts and configure runs, see configure's option --config-cache. |
| 21434 | # It is not useful on other systems. If it contains results you don't |
| 21435 | # want to keep, you may remove or edit it. |
| 21436 | # |
| 21437 | # config.status only pays attention to the cache file if you give it |
| 21438 | # the --recheck option to rerun configure. |
| 21439 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21440 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21441 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21442 | # following values. |
| 21443 | |
| 21444 | _ACEOF |
| 21445 | |
| 21446 | # The following way of writing the cache mishandles newlines in values, |
| 21447 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21448 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21449 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21450 | # 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] | 21451 | ( |
| 21452 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21453 | eval ac_val=\$$ac_var |
| 21454 | case $ac_val in #( |
| 21455 | *${as_nl}*) |
| 21456 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21457 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21458 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21459 | esac |
| 21460 | case $ac_var in #( |
| 21461 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21462 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21463 | esac ;; |
| 21464 | esac |
| 21465 | done |
| 21466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21467 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21468 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21469 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21470 | # `set' does not quote correctly, so add quotes (double-quote |
| 21471 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21472 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21473 | "s/'/'\\\\''/g; |
| 21474 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21475 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21476 | *) |
| 21477 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21478 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21479 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21480 | esac | |
| 21481 | sort |
| 21482 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21483 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21485 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21486 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21487 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21488 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21489 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21490 | :end' >>confcache |
| 21491 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21492 | if test -w "$cache_file"; then |
| 21493 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21494 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21495 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21496 | cat confcache >$cache_file |
| 21497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21498 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21499 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21500 | fi |
| 21501 | fi |
| 21502 | rm -f confcache |
| 21503 | |
| 21504 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21505 | # Let make expand exec_prefix. |
| 21506 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21507 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21508 | DEFS=-DHAVE_CONFIG_H |
| 21509 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21510 | ac_libobjs= |
| 21511 | ac_ltlibobjs= |
| 21512 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21513 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21514 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21515 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21516 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21517 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21518 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21519 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21520 | done |
| 21521 | LIBOBJS=$ac_libobjs |
| 21522 | |
| 21523 | LTLIBOBJS=$ac_ltlibobjs |
| 21524 | |
| 21525 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21526 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21527 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21528 | Usually this means the macro was only invoked conditionally." >&5 |
| 21529 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21530 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21531 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21532 | fi |
| 21533 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21534 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21535 | Usually this means the macro was only invoked conditionally." >&5 |
| 21536 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21537 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21538 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21539 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21540 | |
| 21541 | : ${CONFIG_STATUS=./config.status} |
| 21542 | ac_clean_files_save=$ac_clean_files |
| 21543 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21544 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21545 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21546 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21547 | #! $SHELL |
| 21548 | # Generated by $as_me. |
| 21549 | # Run this file to recreate the current configuration. |
| 21550 | # Compiler output produced by configure, useful for debugging |
| 21551 | # configure, is in config.log if it exists. |
| 21552 | |
| 21553 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21554 | ac_cs_recheck=false |
| 21555 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21556 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21557 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21558 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21559 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21560 | ## --------------------- ## |
| 21561 | ## M4sh Initialization. ## |
| 21562 | ## --------------------- ## |
| 21563 | |
| 21564 | # Be Bourne compatible |
| 21565 | 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] | 21566 | emulate sh |
| 21567 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21568 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21569 | # is contrary to our usage. Disable this feature. |
| 21570 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21571 | setopt NO_GLOB_SUBST |
| 21572 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21573 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21574 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21575 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21576 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21577 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21578 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21579 | # PATH needs CR |
| 21580 | # Avoid depending upon Character Ranges. |
| 21581 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21582 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21583 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21584 | as_cr_digits='0123456789' |
| 21585 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21586 | |
| 21587 | # The user is always right. |
| 21588 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21589 | echo "#! /bin/sh" >conf$$.sh |
| 21590 | echo "exit 0" >>conf$$.sh |
| 21591 | chmod +x conf$$.sh |
| 21592 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21593 | PATH_SEPARATOR=';' |
| 21594 | else |
| 21595 | PATH_SEPARATOR=: |
| 21596 | fi |
| 21597 | rm -f conf$$.sh |
| 21598 | fi |
| 21599 | |
| 21600 | # Support unset when possible. |
| 21601 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21602 | as_unset=unset |
| 21603 | else |
| 21604 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21605 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | |
| 21608 | # IFS |
| 21609 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21610 | # there to prevent editors from complaining about space-tab. |
| 21611 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21612 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21613 | as_nl=' |
| 21614 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21615 | IFS=" "" $as_nl" |
| 21616 | |
| 21617 | # 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] | 21618 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21619 | *[\\/]* ) as_myself=$0 ;; |
| 21620 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21621 | for as_dir in $PATH |
| 21622 | do |
| 21623 | IFS=$as_save_IFS |
| 21624 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21625 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21626 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21627 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21629 | ;; |
| 21630 | esac |
| 21631 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21632 | # in which case we are not to be found in the path. |
| 21633 | if test "x$as_myself" = x; then |
| 21634 | as_myself=$0 |
| 21635 | fi |
| 21636 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21637 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21638 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21639 | fi |
| 21640 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21641 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21642 | for as_var in ENV MAIL MAILPATH |
| 21643 | 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] | 21644 | done |
| 21645 | PS1='$ ' |
| 21646 | PS2='> ' |
| 21647 | PS4='+ ' |
| 21648 | |
| 21649 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21650 | for as_var in \ |
| 21651 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21652 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21653 | LC_TELEPHONE LC_TIME |
| 21654 | do |
| 21655 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21656 | eval $as_var=C; export $as_var |
| 21657 | else |
| 21658 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21660 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21661 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21662 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21663 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21664 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21665 | as_expr=expr |
| 21666 | else |
| 21667 | as_expr=false |
| 21668 | fi |
| 21669 | |
| 21670 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21671 | as_basename=basename |
| 21672 | else |
| 21673 | as_basename=false |
| 21674 | fi |
| 21675 | |
| 21676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21677 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | as_me=`$as_basename -- "$0" || |
| 21679 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21680 | X"$0" : 'X\(//\)$' \| \ |
| 21681 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21682 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21683 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21684 | s//\1/ |
| 21685 | q |
| 21686 | } |
| 21687 | /^X\/\(\/\/\)$/{ |
| 21688 | s//\1/ |
| 21689 | q |
| 21690 | } |
| 21691 | /^X\/\(\/\).*/{ |
| 21692 | s//\1/ |
| 21693 | q |
| 21694 | } |
| 21695 | s/.*/./; q'` |
| 21696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21697 | # CDPATH. |
| 21698 | $as_unset CDPATH |
| 21699 | |
| 21700 | |
| 21701 | |
| 21702 | as_lineno_1=$LINENO |
| 21703 | as_lineno_2=$LINENO |
| 21704 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21705 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21706 | |
| 21707 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21708 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21709 | # line-number line after each line using $LINENO; the second 'sed' |
| 21710 | # does the real work. The second script uses 'N' to pair each |
| 21711 | # line-number line with the line containing $LINENO, and appends |
| 21712 | # trailing '-' during substitution so that $LINENO is not a special |
| 21713 | # case at line end. |
| 21714 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21715 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21716 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21717 | sed -n ' |
| 21718 | p |
| 21719 | /[$]LINENO/= |
| 21720 | ' <$as_myself | |
| 21721 | sed ' |
| 21722 | s/[$]LINENO.*/&-/ |
| 21723 | t lineno |
| 21724 | b |
| 21725 | :lineno |
| 21726 | N |
| 21727 | :loop |
| 21728 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21729 | t loop |
| 21730 | s/-\n.*// |
| 21731 | ' >$as_me.lineno && |
| 21732 | chmod +x "$as_me.lineno" || |
| 21733 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21734 | { (exit 1); exit 1; }; } |
| 21735 | |
| 21736 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21737 | # (the dirname of $[0] is not the place where we might find the |
| 21738 | # original and so on. Autoconf is especially sensitive to this). |
| 21739 | . "./$as_me.lineno" |
| 21740 | # Exit status is that of the last command. |
| 21741 | exit |
| 21742 | } |
| 21743 | |
| 21744 | |
| 21745 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21746 | as_dirname=dirname |
| 21747 | else |
| 21748 | as_dirname=false |
| 21749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21750 | |
| 21751 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21752 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21753 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21754 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21755 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21756 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21757 | esac;; |
| 21758 | *) |
| 21759 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21760 | esac |
| 21761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21762 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21763 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21764 | as_expr=expr |
| 21765 | else |
| 21766 | as_expr=false |
| 21767 | fi |
| 21768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21769 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | if test -d conf$$.dir; then |
| 21771 | rm -f conf$$.dir/conf$$.file |
| 21772 | else |
| 21773 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21774 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21775 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21776 | echo >conf$$.file |
| 21777 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21778 | as_ln_s='ln -s' |
| 21779 | # ... but there are two gotchas: |
| 21780 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21781 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21782 | # In both cases, we have to default to `cp -p'. |
| 21783 | 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] | 21784 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21785 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21786 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21787 | else |
| 21788 | as_ln_s='cp -p' |
| 21789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21790 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21791 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21792 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21793 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21794 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21795 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21796 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21797 | as_mkdir_p=false |
| 21798 | fi |
| 21799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21800 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21801 | # systems may use methods other than mode bits to determine executability. |
| 21802 | cat >conf$$.file <<_ASEOF |
| 21803 | #! /bin/sh |
| 21804 | exit 0 |
| 21805 | _ASEOF |
| 21806 | chmod +x conf$$.file |
| 21807 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21808 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21809 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21810 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21812 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21813 | |
| 21814 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21815 | 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] | 21816 | |
| 21817 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21818 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21819 | |
| 21820 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21821 | exec 6>&1 |
| 21822 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21823 | # 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] | 21824 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21825 | # values after options handling. |
| 21826 | ac_log=" |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21827 | This file was extended by LLVM $as_me 3.2svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21828 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21829 | |
| 21830 | CONFIG_FILES = $CONFIG_FILES |
| 21831 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21832 | CONFIG_LINKS = $CONFIG_LINKS |
| 21833 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21834 | $ $0 $@ |
| 21835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21836 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21837 | " |
| 21838 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21839 | _ACEOF |
| 21840 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21841 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21842 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21843 | config_files="$ac_config_files" |
| 21844 | config_headers="$ac_config_headers" |
| 21845 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21847 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21849 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21850 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21851 | \`$as_me' instantiates files from templates according to the |
| 21852 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21853 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21854 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21855 | |
| 21856 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21857 | -V, --version print version number, then exit |
| 21858 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21859 | -d, --debug don't remove temporary files |
| 21860 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21861 | --file=FILE[:TEMPLATE] |
| 21862 | instantiate the configuration file FILE |
| 21863 | --header=FILE[:TEMPLATE] |
| 21864 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21865 | |
| 21866 | Configuration files: |
| 21867 | $config_files |
| 21868 | |
| 21869 | Configuration headers: |
| 21870 | $config_headers |
| 21871 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21872 | Configuration commands: |
| 21873 | $config_commands |
| 21874 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21875 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21877 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21878 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21879 | ac_cs_version="\\ |
Benjamin Kramer | b85b2d5 | 2012-04-20 18:15:07 +0000 | [diff] [blame] | 21880 | LLVM config.status 3.2svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21881 | configured by $0, generated by GNU Autoconf 2.60, |
| 21882 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21883 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21884 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21885 | This config.status script is free software; the Free Software Foundation |
| 21886 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21887 | |
| 21888 | ac_pwd='$ac_pwd' |
| 21889 | srcdir='$srcdir' |
| 21890 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21891 | _ACEOF |
| 21892 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21893 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21894 | # If no file are specified by the user, then we need to provide default |
| 21895 | # 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] | 21896 | ac_need_defaults=: |
| 21897 | while test $# != 0 |
| 21898 | do |
| 21899 | case $1 in |
| 21900 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21901 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21902 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21903 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21904 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21905 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21906 | ac_option=$1 |
| 21907 | ac_optarg=$2 |
| 21908 | ac_shift=shift |
| 21909 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21910 | esac |
| 21911 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21912 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21913 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21914 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21915 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21916 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21917 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21918 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21919 | debug=: ;; |
| 21920 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21921 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21922 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21923 | ac_need_defaults=false;; |
| 21924 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21925 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21926 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21927 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21928 | --he | --h) |
| 21929 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21930 | { echo "$as_me: error: ambiguous option: $1 |
| 21931 | Try \`$0 --help' for more information." >&2 |
| 21932 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21933 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21934 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21935 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21936 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21937 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21938 | |
| 21939 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21940 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21941 | Try \`$0 --help' for more information." >&2 |
| 21942 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21943 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21944 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21945 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21946 | |
| 21947 | esac |
| 21948 | shift |
| 21949 | done |
| 21950 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21951 | ac_configure_extra_args= |
| 21952 | |
| 21953 | if $ac_cs_silent; then |
| 21954 | exec 6>/dev/null |
| 21955 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21956 | fi |
| 21957 | |
| 21958 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21959 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21960 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21961 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21962 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21963 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21964 | 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] | 21965 | fi |
| 21966 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21967 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21968 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21969 | exec 5>>config.log |
| 21970 | { |
| 21971 | echo |
| 21972 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21973 | ## Running $as_me. ## |
| 21974 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21975 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21976 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21978 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21979 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21980 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21981 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21982 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21983 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21984 | |
| 21985 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21986 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21987 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21988 | |
| 21989 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21990 | for ac_config_target in $ac_config_targets |
| 21991 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21992 | case $ac_config_target in |
| 21993 | "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] | 21994 | "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] | 21995 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21996 | "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] | 21997 | "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] | 21998 | "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21999 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22000 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 22001 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 22002 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 22003 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; |
| 22004 | "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 22005 | "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22006 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 22007 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 22008 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 22009 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 22010 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 22011 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22012 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 22013 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 22014 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22015 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 22016 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 22017 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 22018 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 22019 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22021 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 22022 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22023 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22024 | esac |
| 22025 | done |
| 22026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22028 | # If the user did not use the arguments to specify the items to instantiate, |
| 22029 | # then the envvar interface is used. Set only those that are not. |
| 22030 | # We use the long form for the default assignment because of an extremely |
| 22031 | # bizarre bug on SunOS 4.1.3. |
| 22032 | if $ac_need_defaults; then |
| 22033 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22034 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22035 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22036 | fi |
| 22037 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22038 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22039 | # 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] | 22040 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22041 | # Hook for its removal unless debugging. |
| 22042 | # Note that there is a small window in which the directory will not be cleaned: |
| 22043 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22044 | $debug || |
| 22045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22046 | tmp= |
| 22047 | trap 'exit_status=$? |
| 22048 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 22049 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22050 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22051 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22052 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22053 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22054 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22055 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22056 | test -n "$tmp" && test -d "$tmp" |
| 22057 | } || |
| 22058 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22059 | tmp=./conf$$-$RANDOM |
| 22060 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22061 | } || |
| 22062 | { |
| 22063 | echo "$me: cannot create a temporary directory in ." >&2 |
| 22064 | { (exit 1); exit 1; } |
| 22065 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22066 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22067 | # |
| 22068 | # Set up the sed scripts for CONFIG_FILES section. |
| 22069 | # |
| 22070 | |
| 22071 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22072 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22073 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22074 | |
| 22075 | _ACEOF |
| 22076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22077 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22079 | ac_delim='%!_!# ' |
| 22080 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22081 | cat >conf$$subs.sed <<_ACEOF |
| 22082 | SHELL!$SHELL$ac_delim |
| 22083 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 22084 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 22085 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 22086 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 22087 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 22088 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 22089 | exec_prefix!$exec_prefix$ac_delim |
| 22090 | prefix!$prefix$ac_delim |
| 22091 | program_transform_name!$program_transform_name$ac_delim |
| 22092 | bindir!$bindir$ac_delim |
| 22093 | sbindir!$sbindir$ac_delim |
| 22094 | libexecdir!$libexecdir$ac_delim |
| 22095 | datarootdir!$datarootdir$ac_delim |
| 22096 | datadir!$datadir$ac_delim |
| 22097 | sysconfdir!$sysconfdir$ac_delim |
| 22098 | sharedstatedir!$sharedstatedir$ac_delim |
| 22099 | localstatedir!$localstatedir$ac_delim |
| 22100 | includedir!$includedir$ac_delim |
| 22101 | oldincludedir!$oldincludedir$ac_delim |
| 22102 | docdir!$docdir$ac_delim |
| 22103 | infodir!$infodir$ac_delim |
| 22104 | htmldir!$htmldir$ac_delim |
| 22105 | dvidir!$dvidir$ac_delim |
| 22106 | pdfdir!$pdfdir$ac_delim |
| 22107 | psdir!$psdir$ac_delim |
| 22108 | libdir!$libdir$ac_delim |
| 22109 | localedir!$localedir$ac_delim |
| 22110 | mandir!$mandir$ac_delim |
| 22111 | DEFS!$DEFS$ac_delim |
| 22112 | ECHO_C!$ECHO_C$ac_delim |
| 22113 | ECHO_N!$ECHO_N$ac_delim |
| 22114 | ECHO_T!$ECHO_T$ac_delim |
| 22115 | LIBS!$LIBS$ac_delim |
| 22116 | build_alias!$build_alias$ac_delim |
| 22117 | host_alias!$host_alias$ac_delim |
| 22118 | target_alias!$target_alias$ac_delim |
| 22119 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 22120 | program_prefix!$program_prefix$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22121 | CC!$CC$ac_delim |
| 22122 | CFLAGS!$CFLAGS$ac_delim |
| 22123 | LDFLAGS!$LDFLAGS$ac_delim |
| 22124 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 22125 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 22126 | EXEEXT!$EXEEXT$ac_delim |
| 22127 | OBJEXT!$OBJEXT$ac_delim |
| 22128 | CXX!$CXX$ac_delim |
| 22129 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 22130 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 22131 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22132 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 22133 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 22134 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22135 | build!$build$ac_delim |
| 22136 | build_cpu!$build_cpu$ac_delim |
| 22137 | build_vendor!$build_vendor$ac_delim |
| 22138 | build_os!$build_os$ac_delim |
| 22139 | host!$host$ac_delim |
| 22140 | host_cpu!$host_cpu$ac_delim |
| 22141 | host_vendor!$host_vendor$ac_delim |
| 22142 | host_os!$host_os$ac_delim |
| 22143 | target!$target$ac_delim |
| 22144 | target_cpu!$target_cpu$ac_delim |
| 22145 | target_vendor!$target_vendor$ac_delim |
| 22146 | target_os!$target_os$ac_delim |
| 22147 | OS!$OS$ac_delim |
| 22148 | HOST_OS!$HOST_OS$ac_delim |
| 22149 | TARGET_OS!$TARGET_OS$ac_delim |
| 22150 | LINKALL!$LINKALL$ac_delim |
| 22151 | NOLINKALL!$NOLINKALL$ac_delim |
| 22152 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 22153 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 22154 | ARCH!$ARCH$ac_delim |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 22155 | HOST_ARCH!$HOST_ARCH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22156 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22157 | GREP!$GREP$ac_delim |
| 22158 | EGREP!$EGREP$ac_delim |
| 22159 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 22160 | BUILD_CC!$BUILD_CC$ac_delim |
| 22161 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 22162 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 22163 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22164 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 22165 | ENABLE_CXX11!$ENABLE_CXX11$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22166 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 22167 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 22168 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 22169 | ENABLE_WERROR!$ENABLE_WERROR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22170 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 22171 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 22172 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 22173 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 22174 | KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22175 | JIT!$JIT$ac_delim |
| 22176 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 22177 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22178 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22179 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22180 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22181 | 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] | 22182 | break |
| 22183 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22184 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22185 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22186 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22187 | else |
| 22188 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22190 | done |
| 22191 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22192 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22193 | if test -n "$ac_eof"; then |
| 22194 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22195 | ac_eof=`expr $ac_eof + 1` |
| 22196 | fi |
| 22197 | |
| 22198 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22199 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 22200 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22201 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22202 | sed ' |
| 22203 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22204 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22205 | :n |
| 22206 | t n |
| 22207 | s/'"$ac_delim"'$/,g/; t |
| 22208 | s/$/\\/; p |
| 22209 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22210 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22211 | rm -f conf$$subs.sed |
| 22212 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22213 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22214 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22215 | |
| 22216 | |
| 22217 | ac_delim='%!_!# ' |
| 22218 | for ac_last_try in false false false false false :; do |
| 22219 | cat >conf$$subs.sed <<_ACEOF |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 22220 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 22221 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 22222 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 22223 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 22224 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22225 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22226 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 22227 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 22228 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 22229 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22230 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22231 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22232 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 22233 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 22234 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22235 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22236 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22237 | NM!$NM$ac_delim |
| 22238 | ifGNUmake!$ifGNUmake$ac_delim |
| 22239 | LN_S!$LN_S$ac_delim |
| 22240 | CMP!$CMP$ac_delim |
| 22241 | CP!$CP$ac_delim |
| 22242 | DATE!$DATE$ac_delim |
| 22243 | FIND!$FIND$ac_delim |
| 22244 | MKDIR!$MKDIR$ac_delim |
| 22245 | MV!$MV$ac_delim |
| 22246 | RANLIB!$RANLIB$ac_delim |
| 22247 | AR!$AR$ac_delim |
| 22248 | RM!$RM$ac_delim |
| 22249 | SED!$SED$ac_delim |
| 22250 | TAR!$TAR$ac_delim |
| 22251 | BINPWD!$BINPWD$ac_delim |
| 22252 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 22253 | DOT!$DOT$ac_delim |
| 22254 | FDP!$FDP$ac_delim |
| 22255 | NEATO!$NEATO$ac_delim |
| 22256 | TWOPI!$TWOPI$ac_delim |
| 22257 | CIRCO!$CIRCO$ac_delim |
| 22258 | GV!$GV$ac_delim |
| 22259 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 22260 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22261 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 22262 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 22263 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 22264 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 22265 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22266 | DOXYGEN!$DOXYGEN$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22267 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 22268 | GZIPBIN!$GZIPBIN$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22269 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22270 | ZIP!$ZIP$ac_delim |
| 22271 | OCAMLC!$OCAMLC$ac_delim |
| 22272 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 22273 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 22274 | OCAMLDOC!$OCAMLDOC$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22275 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 22276 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22277 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 22278 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 22279 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 22280 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 22281 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22282 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 22283 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 22284 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22285 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 22286 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 22287 | USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim |
| 22288 | INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim |
| 22289 | INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 22290 | XML2CONFIG!$XML2CONFIG$ac_delim |
| 22291 | LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim |
| 22292 | LIBXML2_INC!$LIBXML2_INC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22293 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 22294 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 22295 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22296 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22297 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22298 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 22299 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 22300 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 22301 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 22302 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 22303 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 22304 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 22305 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 22306 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 22307 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 22308 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 22309 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22310 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 22311 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 22312 | RPATH!$RPATH$ac_delim |
| 22313 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 22314 | LIBOBJS!$LIBOBJS$ac_delim |
| 22315 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22316 | _ACEOF |
| 22317 | |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 22318 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22319 | break |
| 22320 | elif $ac_last_try; then |
| 22321 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22322 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22323 | { (exit 1); exit 1; }; } |
| 22324 | else |
| 22325 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22326 | fi |
| 22327 | done |
| 22328 | |
| 22329 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22330 | if test -n "$ac_eof"; then |
| 22331 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22332 | ac_eof=`expr $ac_eof + 1` |
| 22333 | fi |
| 22334 | |
| 22335 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22336 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 22337 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22338 | _ACEOF |
| 22339 | sed ' |
| 22340 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22341 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22342 | :n |
| 22343 | t n |
| 22344 | s/'"$ac_delim"'$/,g/; t |
| 22345 | s/$/\\/; p |
| 22346 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22347 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22348 | rm -f conf$$subs.sed |
| 22349 | cat >>$CONFIG_STATUS <<_ACEOF |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22350 | CEOF$ac_eof |
| 22351 | _ACEOF |
| 22352 | |
| 22353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22354 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22355 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22356 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22357 | # (actually we leave an empty line to preserve line numbers). |
| 22358 | if test "x$srcdir" = x.; then |
| 22359 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22360 | s/:*\$(srcdir):*/:/ |
| 22361 | s/:*\${srcdir}:*/:/ |
| 22362 | s/:*@srcdir@:*/:/ |
| 22363 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22364 | s/:*$// |
| 22365 | s/^[^=]*=[ ]*$// |
| 22366 | }' |
| 22367 | fi |
| 22368 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22369 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22370 | fi # test -n "$CONFIG_FILES" |
| 22371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22373 | 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] | 22374 | do |
| 22375 | case $ac_tag in |
| 22376 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22377 | esac |
| 22378 | case $ac_mode$ac_tag in |
| 22379 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22380 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22381 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22382 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22383 | :[FH]-) ac_tag=-:-;; |
| 22384 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22385 | esac |
| 22386 | ac_save_IFS=$IFS |
| 22387 | IFS=: |
| 22388 | set x $ac_tag |
| 22389 | IFS=$ac_save_IFS |
| 22390 | shift |
| 22391 | ac_file=$1 |
| 22392 | shift |
| 22393 | |
| 22394 | case $ac_mode in |
| 22395 | :L) ac_source=$1;; |
| 22396 | :[FH]) |
| 22397 | ac_file_inputs= |
| 22398 | for ac_f |
| 22399 | do |
| 22400 | case $ac_f in |
| 22401 | -) ac_f="$tmp/stdin";; |
| 22402 | *) # Look for the file first in the build tree, then in the source tree |
| 22403 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22404 | # because $ac_f cannot contain `:'. |
| 22405 | test -f "$ac_f" || |
| 22406 | case $ac_f in |
| 22407 | [\\/$]*) false;; |
| 22408 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22409 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22410 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22411 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22412 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22413 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22414 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22415 | done |
| 22416 | |
| 22417 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22418 | # use $as_me), people would be surprised to read: |
| 22419 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22420 | configure_input="Generated from "`IFS=: |
| 22421 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22422 | if test x"$ac_file" != x-; then |
| 22423 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22424 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22425 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22426 | fi |
| 22427 | |
| 22428 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22429 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22430 | esac |
| 22431 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22432 | esac |
| 22433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22434 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22435 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22436 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22437 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22438 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22439 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22441 | s//\1/ |
| 22442 | q |
| 22443 | } |
| 22444 | /^X\(\/\/\)[^/].*/{ |
| 22445 | s//\1/ |
| 22446 | q |
| 22447 | } |
| 22448 | /^X\(\/\/\)$/{ |
| 22449 | s//\1/ |
| 22450 | q |
| 22451 | } |
| 22452 | /^X\(\/\).*/{ |
| 22453 | s//\1/ |
| 22454 | q |
| 22455 | } |
| 22456 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22457 | { as_dir="$ac_dir" |
| 22458 | case $as_dir in #( |
| 22459 | -*) as_dir=./$as_dir;; |
| 22460 | esac |
| 22461 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22462 | as_dirs= |
| 22463 | while :; do |
| 22464 | case $as_dir in #( |
| 22465 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22466 | *) as_qdir=$as_dir;; |
| 22467 | esac |
| 22468 | as_dirs="'$as_qdir' $as_dirs" |
| 22469 | as_dir=`$as_dirname -- "$as_dir" || |
| 22470 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22471 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22472 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22473 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22474 | echo X"$as_dir" | |
| 22475 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22476 | s//\1/ |
| 22477 | q |
| 22478 | } |
| 22479 | /^X\(\/\/\)[^/].*/{ |
| 22480 | s//\1/ |
| 22481 | q |
| 22482 | } |
| 22483 | /^X\(\/\/\)$/{ |
| 22484 | s//\1/ |
| 22485 | q |
| 22486 | } |
| 22487 | /^X\(\/\).*/{ |
| 22488 | s//\1/ |
| 22489 | q |
| 22490 | } |
| 22491 | s/.*/./; q'` |
| 22492 | test -d "$as_dir" && break |
| 22493 | done |
| 22494 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22495 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22496 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22497 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22498 | ac_builddir=. |
| 22499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22500 | case "$ac_dir" in |
| 22501 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22502 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22503 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22504 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22505 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | case $ac_top_builddir_sub in |
| 22507 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22508 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22509 | esac ;; |
| 22510 | esac |
| 22511 | ac_abs_top_builddir=$ac_pwd |
| 22512 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22513 | # for backward compatibility: |
| 22514 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22515 | |
| 22516 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22517 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22518 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22519 | ac_top_srcdir=$ac_top_builddir_sub |
| 22520 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22521 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22522 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | ac_top_srcdir=$srcdir |
| 22524 | ac_abs_top_srcdir=$srcdir ;; |
| 22525 | *) # Relative name. |
| 22526 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22527 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22528 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22529 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22530 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22531 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22533 | case $ac_mode in |
| 22534 | :F) |
| 22535 | # |
| 22536 | # CONFIG_FILE |
| 22537 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22538 | |
| 22539 | case $INSTALL in |
| 22540 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22541 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22542 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22543 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22545 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22546 | # If the template does not know about datarootdir, expand it. |
| 22547 | # FIXME: This hack should be removed a few years after 2.60. |
| 22548 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22549 | |
| 22550 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22551 | p |
| 22552 | q |
| 22553 | } |
| 22554 | /@datadir@/p |
| 22555 | /@docdir@/p |
| 22556 | /@infodir@/p |
| 22557 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22558 | /@mandir@/p |
| 22559 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22560 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22561 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22562 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22563 | 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] | 22564 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22565 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22566 | ac_datarootdir_hack=' |
| 22567 | s&@datadir@&$datadir&g |
| 22568 | s&@docdir@&$docdir&g |
| 22569 | s&@infodir@&$infodir&g |
| 22570 | s&@localedir@&$localedir&g |
| 22571 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22572 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22573 | esac |
| 22574 | _ACEOF |
| 22575 | |
| 22576 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22577 | # Shell code in configure.ac might set extrasub. |
| 22578 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22579 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22580 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22581 | $extrasub |
| 22582 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22583 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22584 | :t |
| 22585 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22586 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22587 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22588 | s&@srcdir@&$ac_srcdir&;t t |
| 22589 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22590 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22591 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22592 | s&@builddir@&$ac_builddir&;t t |
| 22593 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22594 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22595 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22596 | $ac_datarootdir_hack |
Sebastian Pop | 94a935f | 2012-08-27 23:05:06 +0000 | [diff] [blame] | 22597 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22599 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22600 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22601 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22602 | { 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] | 22603 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22604 | 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] | 22605 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22608 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22609 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22610 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22611 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22612 | ;; |
| 22613 | :H) |
| 22614 | # |
| 22615 | # CONFIG_HEADER |
| 22616 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22617 | _ACEOF |
| 22618 | |
| 22619 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22620 | # substitutes the proper values into config.h.in to produce config.h. |
| 22621 | rm -f conftest.defines conftest.tail |
| 22622 | # First, append a space to every undef/define line, to ease matching. |
| 22623 | echo 's/$/ /' >conftest.defines |
| 22624 | # Then, protect against being on the right side of a sed subst, or in |
| 22625 | # an unquoted here document, in config.status. If some macros were |
| 22626 | # called several times there might be several #defines for the same |
| 22627 | # symbol, which is useless. But do not sort them, since the last |
| 22628 | # AC_DEFINE must be honored. |
| 22629 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22630 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22631 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22632 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22633 | # just an empty string. |
| 22634 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22635 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22636 | ac_dC=' ' |
| 22637 | ac_dD=' ,' |
| 22638 | |
| 22639 | uniq confdefs.h | |
| 22640 | sed -n ' |
| 22641 | t rset |
| 22642 | :rset |
| 22643 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22644 | t ok |
| 22645 | d |
| 22646 | :ok |
| 22647 | s/[\\&,]/\\&/g |
| 22648 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22649 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22650 | ' >>conftest.defines |
| 22651 | |
| 22652 | # Remove the space that was appended to ease matching. |
| 22653 | # Then replace #undef with comments. This is necessary, for |
| 22654 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22655 | # on some systems where configure will not decide to define it. |
| 22656 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22657 | echo 's/ $// |
| 22658 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22659 | |
| 22660 | # Break up conftest.defines: |
| 22661 | ac_max_sed_lines=50 |
| 22662 | |
| 22663 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22664 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22665 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22666 | # et cetera. |
| 22667 | ac_in='$ac_file_inputs' |
| 22668 | ac_out='"$tmp/out1"' |
| 22669 | ac_nxt='"$tmp/out2"' |
| 22670 | |
| 22671 | while : |
| 22672 | do |
| 22673 | # Write a here document: |
| 22674 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22675 | # First, check the format of the line: |
| 22676 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22677 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22678 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22679 | b |
| 22680 | :def |
| 22681 | _ACEOF |
| 22682 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22683 | echo 'CEOF |
| 22684 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22685 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22686 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22687 | grep . conftest.tail >/dev/null || break |
| 22688 | rm -f conftest.defines |
| 22689 | mv conftest.tail conftest.defines |
| 22690 | done |
| 22691 | rm -f conftest.defines conftest.tail |
| 22692 | |
| 22693 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22694 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22695 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22696 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22697 | cat "$ac_result" >>"$tmp/config.h" |
| 22698 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22699 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22700 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22701 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22702 | rm -f $ac_file |
| 22703 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22704 | fi |
| 22705 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22706 | echo "/* $configure_input */" |
| 22707 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22709 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22710 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22712 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22713 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22714 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22715 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22717 | |
| 22718 | case $ac_file$ac_mode in |
| 22719 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22720 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22721 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22722 | ${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] | 22723 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22724 | ${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] | 22725 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22726 | ${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] | 22727 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22728 | ${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] | 22729 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22730 | ${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] | 22731 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22732 | ${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] | 22733 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22734 | ${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] | 22735 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22736 | ${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] | 22737 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22738 | ${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] | 22739 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22740 | ${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] | 22741 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22742 | ${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] | 22743 | "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] | 22744 | ${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] | 22745 | |
| 22746 | esac |
| 22747 | done # for ac_tag |
| 22748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22750 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22751 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22752 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22753 | ac_clean_files=$ac_clean_files_save |
| 22754 | |
| 22755 | |
| 22756 | # configure is writing to config.log, and then calls config.status. |
| 22757 | # config.status does its own redirection, appending to config.log. |
| 22758 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22759 | # by configure, so config.status won't be able to write to it; its |
| 22760 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22761 | # effectively closing config.log, so it can be properly (re)opened and |
| 22762 | # appended to by config.status. When coming back to configure, we |
| 22763 | # need to make the FD available again. |
| 22764 | if test "$no_create" != yes; then |
| 22765 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22766 | ac_config_status_args= |
| 22767 | test "$silent" = yes && |
| 22768 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22769 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22770 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22771 | exec 5>>config.log |
| 22772 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22773 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22774 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22775 | fi |
| 22776 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22777 | # |
| 22778 | # CONFIG_SUBDIRS section. |
| 22779 | # |
| 22780 | if test "$no_recursion" != yes; then |
| 22781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22782 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22783 | ac_sub_configure_args= |
| 22784 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22785 | eval "set x $ac_configure_args" |
| 22786 | shift |
| 22787 | for ac_arg |
| 22788 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22789 | if test -n "$ac_prev"; then |
| 22790 | ac_prev= |
| 22791 | continue |
| 22792 | fi |
| 22793 | case $ac_arg in |
| 22794 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22795 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22796 | ac_prev=cache_file ;; |
| 22797 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22798 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22799 | | --c=*) |
| 22800 | ;; |
| 22801 | --config-cache | -C) |
| 22802 | ;; |
| 22803 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22804 | ac_prev=srcdir ;; |
| 22805 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22806 | ;; |
| 22807 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22808 | ac_prev=prefix ;; |
| 22809 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22810 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22811 | *) |
| 22812 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22813 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22814 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22815 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22816 | esac |
| 22817 | done |
| 22818 | |
| 22819 | # Always prepend --prefix to ensure using the same prefix |
| 22820 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22821 | ac_arg="--prefix=$prefix" |
| 22822 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22823 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22824 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22825 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22826 | |
| 22827 | ac_popdir=`pwd` |
| 22828 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22829 | |
| 22830 | # Do not complain, so a configure script can configure whichever |
| 22831 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22832 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22834 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22835 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22836 | echo "$ac_msg" >&6 |
| 22837 | { as_dir="$ac_dir" |
| 22838 | case $as_dir in #( |
| 22839 | -*) as_dir=./$as_dir;; |
| 22840 | esac |
| 22841 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22842 | as_dirs= |
| 22843 | while :; do |
| 22844 | case $as_dir in #( |
| 22845 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22846 | *) as_qdir=$as_dir;; |
| 22847 | esac |
| 22848 | as_dirs="'$as_qdir' $as_dirs" |
| 22849 | as_dir=`$as_dirname -- "$as_dir" || |
| 22850 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22851 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22852 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22853 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22854 | echo X"$as_dir" | |
| 22855 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22856 | s//\1/ |
| 22857 | q |
| 22858 | } |
| 22859 | /^X\(\/\/\)[^/].*/{ |
| 22860 | s//\1/ |
| 22861 | q |
| 22862 | } |
| 22863 | /^X\(\/\/\)$/{ |
| 22864 | s//\1/ |
| 22865 | q |
| 22866 | } |
| 22867 | /^X\(\/\).*/{ |
| 22868 | s//\1/ |
| 22869 | q |
| 22870 | } |
| 22871 | s/.*/./; q'` |
| 22872 | test -d "$as_dir" && break |
| 22873 | done |
| 22874 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22875 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22876 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22877 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22878 | ac_builddir=. |
| 22879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22880 | case "$ac_dir" in |
| 22881 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22882 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22884 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22885 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22886 | case $ac_top_builddir_sub in |
| 22887 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22888 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22889 | esac ;; |
| 22890 | esac |
| 22891 | ac_abs_top_builddir=$ac_pwd |
| 22892 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22893 | # for backward compatibility: |
| 22894 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22895 | |
| 22896 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22897 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22898 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22899 | ac_top_srcdir=$ac_top_builddir_sub |
| 22900 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22901 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22902 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22903 | ac_top_srcdir=$srcdir |
| 22904 | ac_abs_top_srcdir=$srcdir ;; |
| 22905 | *) # Relative name. |
| 22906 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22907 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22908 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22909 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22910 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22911 | |
| 22912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22913 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22914 | |
| 22915 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22916 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22917 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22918 | elif test -f "$ac_srcdir/configure"; then |
| 22919 | ac_sub_configure=$ac_srcdir/configure |
| 22920 | elif test -f "$ac_srcdir/configure.in"; then |
| 22921 | # This should be Cygnus configure. |
| 22922 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22923 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22924 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22926 | ac_sub_configure= |
| 22927 | fi |
| 22928 | |
| 22929 | # The recursion is here. |
| 22930 | if test -n "$ac_sub_configure"; then |
| 22931 | # Make the cache file name correct relative to the subdirectory. |
| 22932 | case $cache_file in |
| 22933 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22934 | *) # Relative name. |
| 22935 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22936 | esac |
| 22937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22938 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22939 | 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] | 22940 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22941 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22942 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22943 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22944 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22945 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22946 | fi |
| 22947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22948 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22949 | done |
| 22950 | fi |
| 22951 | |