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 | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for LLVM 3.3svn. |
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 | a6fdcaa | 2013-01-01 10:00:19 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2013 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 | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='3.3svn' |
| 565 | PACKAGE_STRING='LLVM 3.3svn' |
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 | |
Chandler Carruth | 5ebee9e | 2013-01-02 09:22:59 +0000 | [diff] [blame] | 568 | ac_unique_file="lib/IR/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 |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 643 | CC |
| 644 | CFLAGS |
| 645 | LDFLAGS |
| 646 | CPPFLAGS |
| 647 | ac_ct_CC |
| 648 | EXEEXT |
| 649 | OBJEXT |
| 650 | CXX |
| 651 | CXXFLAGS |
| 652 | ac_ct_CXX |
| 653 | CPP |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 654 | subdirs |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 655 | ENABLE_POLLY |
| 656 | LLVM_HAS_POLLY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 657 | build |
| 658 | build_cpu |
| 659 | build_vendor |
| 660 | build_os |
| 661 | host |
| 662 | host_cpu |
| 663 | host_vendor |
| 664 | host_os |
| 665 | target |
| 666 | target_cpu |
| 667 | target_vendor |
| 668 | target_os |
| 669 | OS |
| 670 | HOST_OS |
| 671 | TARGET_OS |
| 672 | LINKALL |
| 673 | NOLINKALL |
| 674 | LLVM_ON_UNIX |
| 675 | LLVM_ON_WIN32 |
| 676 | ARCH |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 677 | HOST_ARCH |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 678 | ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 679 | GREP |
| 680 | EGREP |
| 681 | LLVM_CROSS_COMPILING |
| 682 | BUILD_CC |
| 683 | BUILD_EXEEXT |
| 684 | BUILD_CXX |
| 685 | CVSBUILD |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 686 | ENABLE_LIBCPP |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 687 | ENABLE_CXX11 |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 688 | ENABLE_CLANG_ARCMT |
| 689 | ENABLE_CLANG_STATIC_ANALYZER |
| 690 | ENABLE_CLANG_REWRITER |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 691 | ENABLE_OPTIMIZED |
| 692 | ENABLE_PROFILING |
| 693 | DISABLE_ASSERTIONS |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 694 | ENABLE_WERROR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 695 | ENABLE_EXPENSIVE_CHECKS |
| 696 | EXPENSIVE_CHECKS |
| 697 | DEBUG_RUNTIME |
| 698 | DEBUG_SYMBOLS |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 699 | KEEP_SYMBOLS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 700 | JIT |
| 701 | TARGET_HAS_JIT |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 702 | ENABLE_DOCS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | ENABLE_DOXYGEN |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 704 | LLVM_ENABLE_THREADS |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 705 | ENABLE_PTHREADS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 706 | ENABLE_PIC |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 707 | ENABLE_SHARED |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 708 | ENABLE_EMBED_STDCXX |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 709 | ENABLE_TIMESTAMPS |
Eric Christopher | f0b3b74 | 2012-11-19 19:31:02 +0000 | [diff] [blame] | 710 | ENABLE_BACKTRACES |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 711 | TARGETS_TO_BUILD |
| 712 | LLVM_ENUM_TARGETS |
| 713 | LLVM_ENUM_ASM_PRINTERS |
| 714 | LLVM_ENUM_ASM_PARSERS |
| 715 | LLVM_ENUM_DISASSEMBLERS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 716 | OPTIMIZE_OPTION |
| 717 | EXTRA_OPTIONS |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 718 | EXTRA_LD_OPTIONS |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 719 | CLANG_SRC_ROOT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 720 | BINUTILS_INCDIR |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 721 | INTERNAL_PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 722 | NM |
| 723 | ifGNUmake |
| 724 | LN_S |
| 725 | CMP |
| 726 | CP |
| 727 | DATE |
| 728 | FIND |
| 729 | MKDIR |
| 730 | MV |
| 731 | RANLIB |
| 732 | AR |
| 733 | RM |
| 734 | SED |
| 735 | TAR |
| 736 | BINPWD |
| 737 | GRAPHVIZ |
| 738 | DOT |
| 739 | FDP |
| 740 | NEATO |
| 741 | TWOPI |
| 742 | CIRCO |
| 743 | GV |
| 744 | DOTTY |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 745 | XDOT_PY |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | INSTALL_PROGRAM |
| 747 | INSTALL_SCRIPT |
| 748 | INSTALL_DATA |
| 749 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 750 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 751 | DOXYGEN |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 752 | GROFF |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 753 | GZIPBIN |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 754 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 755 | ZIP |
| 756 | OCAMLC |
| 757 | OCAMLOPT |
| 758 | OCAMLDEP |
| 759 | OCAMLDOC |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 760 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 761 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 762 | INSTALL_LTDL_TRUE |
| 763 | INSTALL_LTDL_FALSE |
| 764 | CONVENIENCE_LTDL_TRUE |
| 765 | CONVENIENCE_LTDL_FALSE |
| 766 | LIBADD_DL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 767 | NO_VARIADIC_MACROS |
| 768 | NO_MISSING_FIELD_INITIALIZERS |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 769 | COVERED_SWITCH_DEFAULT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 770 | USE_UDIS86 |
| 771 | USE_OPROFILE |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 772 | USE_INTEL_JITEVENTS |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 773 | XML2CONFIG |
| 774 | LIBXML2_LIBS |
| 775 | LIBXML2_INC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 776 | HAVE_PTHREAD |
| 777 | HUGE_VAL_SANITY |
| 778 | MMAP_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 779 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 780 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 781 | LLVM_PREFIX |
| 782 | LLVM_BINDIR |
| 783 | LLVM_LIBDIR |
| 784 | LLVM_DATADIR |
| 785 | LLVM_DOCSDIR |
| 786 | LLVM_ETCDIR |
| 787 | LLVM_INCLUDEDIR |
| 788 | LLVM_INFODIR |
| 789 | LLVM_MANDIR |
| 790 | LLVM_CONFIGTIME |
| 791 | BINDINGS_TO_BUILD |
| 792 | ALL_BINDINGS |
| 793 | OCAML_LIBDIR |
| 794 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 795 | RPATH |
| 796 | RDYNAMIC |
Jordan Rose | 9208052 | 2012-10-01 18:40:32 +0000 | [diff] [blame] | 797 | program_prefix |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 798 | LIBOBJS |
| 799 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 800 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 801 | ac_precious_vars='build_alias |
| 802 | host_alias |
| 803 | target_alias |
| 804 | CC |
| 805 | CFLAGS |
| 806 | LDFLAGS |
| 807 | CPPFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 808 | CXX |
| 809 | CXXFLAGS |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 810 | CCC |
| 811 | CPP' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 812 | ac_subdirs_all='projects/llvm-gcc |
| 813 | projects/test-suite |
| 814 | projects/llvm-test |
| 815 | projects/poolalloc |
| 816 | projects/llvm-poolalloc |
| 817 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 818 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 819 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 820 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 821 | projects/llvm-java |
| 822 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 823 | projects/safecode |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 824 | projects/llvm-kernel |
| 825 | tools/polly' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 826 | |
| 827 | # Initialize some variables set by options. |
| 828 | ac_init_help= |
| 829 | ac_init_version=false |
| 830 | # The variables have the same names as the options, with |
| 831 | # dashes changed to underlines. |
| 832 | cache_file=/dev/null |
| 833 | exec_prefix=NONE |
| 834 | no_create= |
| 835 | no_recursion= |
| 836 | prefix=NONE |
| 837 | program_prefix=NONE |
| 838 | program_suffix=NONE |
| 839 | program_transform_name=s,x,x, |
| 840 | silent= |
| 841 | site= |
| 842 | srcdir= |
| 843 | verbose= |
| 844 | x_includes=NONE |
| 845 | x_libraries=NONE |
| 846 | |
| 847 | # Installation directory options. |
| 848 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 849 | # and all the variables that are supposed to be based on exec_prefix |
| 850 | # by default will actually change. |
| 851 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 852 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 853 | bindir='${exec_prefix}/bin' |
| 854 | sbindir='${exec_prefix}/sbin' |
| 855 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 856 | datarootdir='${prefix}/share' |
| 857 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 858 | sysconfdir='${prefix}/etc' |
| 859 | sharedstatedir='${prefix}/com' |
| 860 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 861 | includedir='${prefix}/include' |
| 862 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 863 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 864 | infodir='${datarootdir}/info' |
| 865 | htmldir='${docdir}' |
| 866 | dvidir='${docdir}' |
| 867 | pdfdir='${docdir}' |
| 868 | psdir='${docdir}' |
| 869 | libdir='${exec_prefix}/lib' |
| 870 | localedir='${datarootdir}/locale' |
| 871 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 872 | |
| 873 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 875 | for ac_option |
| 876 | do |
| 877 | # If the previous option needs an argument, assign it. |
| 878 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 880 | ac_prev= |
| 881 | continue |
| 882 | fi |
| 883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 884 | case $ac_option in |
| 885 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 886 | *) ac_optarg=yes ;; |
| 887 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 888 | |
| 889 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 891 | case $ac_dashdash$ac_option in |
| 892 | --) |
| 893 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 894 | |
| 895 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 896 | ac_prev=bindir ;; |
| 897 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 898 | bindir=$ac_optarg ;; |
| 899 | |
| 900 | -build | --build | --buil | --bui | --bu) |
| 901 | ac_prev=build_alias ;; |
| 902 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 903 | build_alias=$ac_optarg ;; |
| 904 | |
| 905 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 906 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 907 | ac_prev=cache_file ;; |
| 908 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 909 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 910 | cache_file=$ac_optarg ;; |
| 911 | |
| 912 | --config-cache | -C) |
| 913 | cache_file=config.cache ;; |
| 914 | |
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 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 918 | datadir=$ac_optarg ;; |
| 919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 920 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 921 | | --dataroo | --dataro | --datar) |
| 922 | ac_prev=datarootdir ;; |
| 923 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 924 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 925 | datarootdir=$ac_optarg ;; |
| 926 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 927 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 928 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 929 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 930 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 931 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 932 | { (exit 1); exit 1; }; } |
| 933 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 934 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 935 | |
| 936 | -docdir | --docdir | --docdi | --doc | --do) |
| 937 | ac_prev=docdir ;; |
| 938 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 939 | docdir=$ac_optarg ;; |
| 940 | |
| 941 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 942 | ac_prev=dvidir ;; |
| 943 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 944 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 945 | |
| 946 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 947 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 948 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 949 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 950 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 951 | { (exit 1); exit 1; }; } |
| 952 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 953 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 954 | |
| 955 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 956 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 957 | | --exec | --exe | --ex) |
| 958 | ac_prev=exec_prefix ;; |
| 959 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 960 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 961 | | --exec=* | --exe=* | --ex=*) |
| 962 | exec_prefix=$ac_optarg ;; |
| 963 | |
| 964 | -gas | --gas | --ga | --g) |
| 965 | # Obsolete; use --with-gas. |
| 966 | with_gas=yes ;; |
| 967 | |
| 968 | -help | --help | --hel | --he | -h) |
| 969 | ac_init_help=long ;; |
| 970 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 971 | ac_init_help=recursive ;; |
| 972 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 973 | ac_init_help=short ;; |
| 974 | |
| 975 | -host | --host | --hos | --ho) |
| 976 | ac_prev=host_alias ;; |
| 977 | -host=* | --host=* | --hos=* | --ho=*) |
| 978 | host_alias=$ac_optarg ;; |
| 979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 980 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 981 | ac_prev=htmldir ;; |
| 982 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 983 | | --ht=*) |
| 984 | htmldir=$ac_optarg ;; |
| 985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 986 | -includedir | --includedir | --includedi | --included | --include \ |
| 987 | | --includ | --inclu | --incl | --inc) |
| 988 | ac_prev=includedir ;; |
| 989 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 990 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 991 | includedir=$ac_optarg ;; |
| 992 | |
| 993 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 994 | ac_prev=infodir ;; |
| 995 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 996 | infodir=$ac_optarg ;; |
| 997 | |
| 998 | -libdir | --libdir | --libdi | --libd) |
| 999 | ac_prev=libdir ;; |
| 1000 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1001 | libdir=$ac_optarg ;; |
| 1002 | |
| 1003 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1004 | | --libexe | --libex | --libe) |
| 1005 | ac_prev=libexecdir ;; |
| 1006 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1007 | | --libexe=* | --libex=* | --libe=*) |
| 1008 | libexecdir=$ac_optarg ;; |
| 1009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1010 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1011 | ac_prev=localedir ;; |
| 1012 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1013 | localedir=$ac_optarg ;; |
| 1014 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1015 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1016 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1017 | ac_prev=localstatedir ;; |
| 1018 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1019 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1020 | localstatedir=$ac_optarg ;; |
| 1021 | |
| 1022 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1023 | ac_prev=mandir ;; |
| 1024 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1025 | mandir=$ac_optarg ;; |
| 1026 | |
| 1027 | -nfp | --nfp | --nf) |
| 1028 | # Obsolete; use --without-fp. |
| 1029 | with_fp=no ;; |
| 1030 | |
| 1031 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1032 | | --no-cr | --no-c | -n) |
| 1033 | no_create=yes ;; |
| 1034 | |
| 1035 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1036 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1037 | no_recursion=yes ;; |
| 1038 | |
| 1039 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1040 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1041 | | --oldin | --oldi | --old | --ol | --o) |
| 1042 | ac_prev=oldincludedir ;; |
| 1043 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1044 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1045 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1046 | oldincludedir=$ac_optarg ;; |
| 1047 | |
| 1048 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1049 | ac_prev=prefix ;; |
| 1050 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1051 | prefix=$ac_optarg ;; |
| 1052 | |
| 1053 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1054 | | --program-pre | --program-pr | --program-p) |
| 1055 | ac_prev=program_prefix ;; |
| 1056 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1057 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1058 | program_prefix=$ac_optarg ;; |
| 1059 | |
| 1060 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1061 | | --program-suf | --program-su | --program-s) |
| 1062 | ac_prev=program_suffix ;; |
| 1063 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1064 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1065 | program_suffix=$ac_optarg ;; |
| 1066 | |
| 1067 | -program-transform-name | --program-transform-name \ |
| 1068 | | --program-transform-nam | --program-transform-na \ |
| 1069 | | --program-transform-n | --program-transform- \ |
| 1070 | | --program-transform | --program-transfor \ |
| 1071 | | --program-transfo | --program-transf \ |
| 1072 | | --program-trans | --program-tran \ |
| 1073 | | --progr-tra | --program-tr | --program-t) |
| 1074 | ac_prev=program_transform_name ;; |
| 1075 | -program-transform-name=* | --program-transform-name=* \ |
| 1076 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1077 | | --program-transform-n=* | --program-transform-=* \ |
| 1078 | | --program-transform=* | --program-transfor=* \ |
| 1079 | | --program-transfo=* | --program-transf=* \ |
| 1080 | | --program-trans=* | --program-tran=* \ |
| 1081 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1082 | program_transform_name=$ac_optarg ;; |
| 1083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1084 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1085 | ac_prev=pdfdir ;; |
| 1086 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1087 | pdfdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1090 | ac_prev=psdir ;; |
| 1091 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1092 | psdir=$ac_optarg ;; |
| 1093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1094 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1095 | | -silent | --silent | --silen | --sile | --sil) |
| 1096 | silent=yes ;; |
| 1097 | |
| 1098 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1099 | ac_prev=sbindir ;; |
| 1100 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1101 | | --sbi=* | --sb=*) |
| 1102 | sbindir=$ac_optarg ;; |
| 1103 | |
| 1104 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1105 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1106 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1107 | | --sha | --sh) |
| 1108 | ac_prev=sharedstatedir ;; |
| 1109 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1110 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1111 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1112 | | --sha=* | --sh=*) |
| 1113 | sharedstatedir=$ac_optarg ;; |
| 1114 | |
| 1115 | -site | --site | --sit) |
| 1116 | ac_prev=site ;; |
| 1117 | -site=* | --site=* | --sit=*) |
| 1118 | site=$ac_optarg ;; |
| 1119 | |
| 1120 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1121 | ac_prev=srcdir ;; |
| 1122 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1123 | srcdir=$ac_optarg ;; |
| 1124 | |
| 1125 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1126 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1127 | ac_prev=sysconfdir ;; |
| 1128 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1129 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1130 | sysconfdir=$ac_optarg ;; |
| 1131 | |
| 1132 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1133 | ac_prev=target_alias ;; |
| 1134 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1135 | target_alias=$ac_optarg ;; |
| 1136 | |
| 1137 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1138 | verbose=yes ;; |
| 1139 | |
| 1140 | -version | --version | --versio | --versi | --vers | -V) |
| 1141 | ac_init_version=: ;; |
| 1142 | |
| 1143 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1144 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1146 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1147 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1148 | { (exit 1); exit 1; }; } |
| 1149 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1150 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1151 | |
| 1152 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1153 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1154 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1155 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1156 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1157 | { (exit 1); exit 1; }; } |
| 1158 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1159 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1160 | |
| 1161 | --x) |
| 1162 | # Obsolete; use --with-x. |
| 1163 | with_x=yes ;; |
| 1164 | |
| 1165 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1166 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1167 | ac_prev=x_includes ;; |
| 1168 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1169 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1170 | x_includes=$ac_optarg ;; |
| 1171 | |
| 1172 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1173 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1174 | ac_prev=x_libraries ;; |
| 1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1177 | x_libraries=$ac_optarg ;; |
| 1178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1179 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1180 | Try \`$0 --help' for more information." >&2 |
| 1181 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1182 | ;; |
| 1183 | |
| 1184 | *=*) |
| 1185 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1186 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1187 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1188 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1189 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1190 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1191 | export $ac_envvar ;; |
| 1192 | |
| 1193 | *) |
| 1194 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1195 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1197 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1198 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1199 | ;; |
| 1200 | |
| 1201 | esac |
| 1202 | done |
| 1203 | |
| 1204 | if test -n "$ac_prev"; then |
| 1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1206 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1207 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1208 | fi |
| 1209 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1210 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1211 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1212 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1213 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1214 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1215 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1216 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1217 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1218 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1220 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1221 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1222 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1223 | done |
| 1224 | |
| 1225 | # There might be people who depend on the old broken behavior: `$host' |
| 1226 | # used to hold the argument of --host etc. |
| 1227 | # FIXME: To remove some day. |
| 1228 | build=$build_alias |
| 1229 | host=$host_alias |
| 1230 | target=$target_alias |
| 1231 | |
| 1232 | # FIXME: To remove some day. |
| 1233 | if test "x$host_alias" != x; then |
| 1234 | if test "x$build_alias" = x; then |
| 1235 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1236 | 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] | 1237 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1238 | elif test "x$build_alias" != "x$host_alias"; then |
| 1239 | cross_compiling=yes |
| 1240 | fi |
| 1241 | fi |
| 1242 | |
| 1243 | ac_tool_prefix= |
| 1244 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1245 | |
| 1246 | test "$silent" = yes && exec 6>/dev/null |
| 1247 | |
| 1248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1249 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1250 | ac_ls_di=`ls -di .` && |
| 1251 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1252 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1253 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1254 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1255 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1256 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1257 | |
| 1258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1259 | # Find the source files, if location was not specified. |
| 1260 | if test -z "$srcdir"; then |
| 1261 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1262 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1263 | ac_confdir=`$as_dirname -- "$0" || |
| 1264 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1265 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1266 | X"$0" : 'X\(//\)$' \| \ |
| 1267 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1268 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1270 | s//\1/ |
| 1271 | q |
| 1272 | } |
| 1273 | /^X\(\/\/\)[^/].*/{ |
| 1274 | s//\1/ |
| 1275 | q |
| 1276 | } |
| 1277 | /^X\(\/\/\)$/{ |
| 1278 | s//\1/ |
| 1279 | q |
| 1280 | } |
| 1281 | /^X\(\/\).*/{ |
| 1282 | s//\1/ |
| 1283 | q |
| 1284 | } |
| 1285 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1286 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1288 | srcdir=.. |
| 1289 | fi |
| 1290 | else |
| 1291 | ac_srcdir_defaulted=no |
| 1292 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1293 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1294 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1295 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1296 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1297 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1298 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1299 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1300 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1301 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1302 | pwd)` |
| 1303 | # When building in place, set srcdir=. |
| 1304 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1305 | srcdir=. |
| 1306 | fi |
| 1307 | # Remove unnecessary trailing slashes from srcdir. |
| 1308 | # Double slashes in file names in object file debugging info |
| 1309 | # mess up M-x gdb in Emacs. |
| 1310 | case $srcdir in |
| 1311 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1312 | esac |
| 1313 | for ac_var in $ac_precious_vars; do |
| 1314 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1315 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1316 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1317 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1318 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1319 | |
| 1320 | # |
| 1321 | # Report the --help message. |
| 1322 | # |
| 1323 | if test "$ac_init_help" = "long"; then |
| 1324 | # Omit some internal or obsolete options to make the list less imposing. |
| 1325 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1326 | cat <<_ACEOF |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 1327 | \`configure' configures LLVM 3.3svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1328 | |
| 1329 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1330 | |
| 1331 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1332 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1333 | |
| 1334 | Defaults for the options are specified in brackets. |
| 1335 | |
| 1336 | Configuration: |
| 1337 | -h, --help display this help and exit |
| 1338 | --help=short display options specific to this package |
| 1339 | --help=recursive display the short help of all the included packages |
| 1340 | -V, --version display version information and exit |
| 1341 | -q, --quiet, --silent do not print \`checking...' messages |
| 1342 | --cache-file=FILE cache test results in FILE [disabled] |
| 1343 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1344 | -n, --no-create do not create output files |
| 1345 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1346 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1347 | Installation directories: |
| 1348 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1349 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1350 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1351 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1352 | |
| 1353 | By default, \`make install' will install all the files in |
| 1354 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1355 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1356 | for instance \`--prefix=\$HOME'. |
| 1357 | |
| 1358 | For better control, use the options below. |
| 1359 | |
| 1360 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1361 | --bindir=DIR user executables [EPREFIX/bin] |
| 1362 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1363 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1364 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1365 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1366 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1367 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1368 | --includedir=DIR C header files [PREFIX/include] |
| 1369 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1370 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1371 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1372 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1373 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1374 | --mandir=DIR man documentation [DATAROOTDIR/man] |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1375 | --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1376 | --htmldir=DIR html documentation [DOCDIR] |
| 1377 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1378 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1379 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1380 | _ACEOF |
| 1381 | |
| 1382 | cat <<\_ACEOF |
| 1383 | |
| 1384 | System types: |
| 1385 | --build=BUILD configure for building on BUILD [guessed] |
| 1386 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1387 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1388 | _ACEOF |
| 1389 | fi |
| 1390 | |
| 1391 | if test -n "$ac_init_help"; then |
| 1392 | case $ac_init_help in |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 1393 | short | recursive ) echo "Configuration of LLVM 3.3svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1394 | esac |
| 1395 | cat <<\_ACEOF |
| 1396 | |
| 1397 | Optional Features: |
| 1398 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1399 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 1400 | --enable-polly Use polly if available (default is YES) |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 1401 | --enable-libcpp Use libc++ if available (default is NO) |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 1402 | --enable-cxx11 Use c++11 if available (default is NO) |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 1403 | --enable-clang-arcmt Enable building of clang ARCMT (default is YES) |
| 1404 | --enable-clang-static-analyzer |
| 1405 | Enable building of clang Static Analyzer (default is |
| 1406 | YES) |
| 1407 | --enable-clang-rewriter Enable building of clang rewriter (default is YES) |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1408 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1409 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1410 | --enable-assertions Compile with assertion checks enabled (default is |
| 1411 | YES) |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 1412 | --enable-werror Compile with -Werror enabled (default is NO) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1413 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1414 | Compile with expensive debug checks enabled (default |
| 1415 | is NO) |
| 1416 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1417 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1418 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1419 | optimization is on and YES if it's off) |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 1420 | --enable-keep-symbols Do not strip installed executables) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1421 | --enable-jit Enable Just In Time Compiling (default is YES) |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 1422 | --enable-docs Build documents (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1423 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1424 | --enable-threads Use threads if available (default is YES) |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 1425 | --enable-pthreads Use pthreads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1426 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1427 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1428 | --enable-shared Build a shared library and link tools against it |
| 1429 | (default is NO) |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 1430 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 1431 | Win32 DLL (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1432 | --enable-timestamps Enable embedding timestamp information in build |
| 1433 | (default is YES) |
Eric Christopher | c69bdad | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 1434 | --enable-backtraces Enable embedding backtraces on crash (default is |
| 1435 | YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1436 | --enable-targets Build specific host targets: all or |
| 1437 | target1,target2,... Valid targets are: host, x86, |
Eric Christopher | 06b4234 | 2012-11-14 22:09:20 +0000 | [diff] [blame] | 1438 | x86_64, sparc, powerpc, arm, mips, hexagon, xcore, |
| 1439 | msp430, nvptx, and cpp (default=all) |
Victor Oliveira | 0e80e18 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 1440 | --enable-experimental-targets |
| 1441 | Build experimental host targets: disable or |
| 1442 | target1,target2,... (default=disable) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1443 | --enable-bindings Build specific language bindings: |
| 1444 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1445 | --enable-libffi Check for the presence of libffi (default is NO) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1446 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1447 | |
| 1448 | Optional Packages: |
| 1449 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1450 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1451 | --with-optimize-option Select the compiler options to use for optimized |
| 1452 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1453 | --with-extra-options Specify additional options to compile LLVM with |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 1454 | --with-extra-ld-options Specify additional options to link LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1455 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1456 | is stdlib) |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 1457 | --with-clang-srcdir Directory to the out-of-tree Clang source |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 1458 | --with-clang-resource-dir |
| 1459 | Relative directory from the Clang binary for |
| 1460 | resource files |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1461 | --with-c-include-dirs Colon separated list of directories clang will |
| 1462 | search for headers |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 1463 | --with-gcc-toolchain Directory where gcc is installed. |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 1464 | --with-default-sysroot Add --sysroot=<path> to all compiler invocations. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1465 | --with-binutils-include Specify path to binutils/include/ containing |
| 1466 | plugin-api.h file for gold plugin. |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 1467 | --with-bug-report-url Specify the URL where bug reports should be |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 1468 | submitted (default=http://llvm.org/bugs/) |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 1469 | --with-internal-prefix Installation directory for internal files |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1470 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1471 | --with-oprofile=<prefix> |
| 1472 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
Andrew Kaylor | 770b97b | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 1473 | --with-intel-jitevents Notify Intel JIT profiling API of generated code |
| 1474 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1475 | |
| 1476 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1477 | CC C compiler command |
| 1478 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1479 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1480 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1481 | 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] | 1482 | you have headers in a nonstandard directory <include dir> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1483 | CXX C++ compiler command |
| 1484 | CXXFLAGS C++ compiler flags |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1485 | CPP C preprocessor |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1486 | |
| 1487 | Use these variables to override the choices made by `configure' or to help |
| 1488 | it to find libraries and programs with nonstandard names/locations. |
| 1489 | |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 1490 | Report bugs to <http://llvm.org/bugs/>. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1491 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1493 | fi |
| 1494 | |
| 1495 | if test "$ac_init_help" = "recursive"; then |
| 1496 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1497 | 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] | 1498 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1499 | ac_builddir=. |
| 1500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1501 | case "$ac_dir" in |
| 1502 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1503 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1504 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1505 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1506 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1507 | case $ac_top_builddir_sub in |
| 1508 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1509 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1510 | esac ;; |
| 1511 | esac |
| 1512 | ac_abs_top_builddir=$ac_pwd |
| 1513 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1514 | # for backward compatibility: |
| 1515 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1516 | |
| 1517 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1518 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1520 | ac_top_srcdir=$ac_top_builddir_sub |
| 1521 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1522 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1523 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1524 | ac_top_srcdir=$srcdir |
| 1525 | ac_abs_top_srcdir=$srcdir ;; |
| 1526 | *) # Relative name. |
| 1527 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1528 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1529 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1531 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1533 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1534 | # Check for guested configure. |
| 1535 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1536 | echo && |
| 1537 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1538 | elif test -f "$ac_srcdir/configure"; then |
| 1539 | echo && |
| 1540 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1542 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1543 | fi || ac_status=$? |
| 1544 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | done |
| 1546 | fi |
| 1547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | if $ac_init_version; then |
| 1550 | cat <<\_ACEOF |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 1551 | LLVM configure 3.3svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1552 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1554 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1555 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1556 | This configure script is free software; the Free Software Foundation |
| 1557 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1558 | |
NAKAMURA Takumi | a6fdcaa | 2013-01-01 10:00:19 +0000 | [diff] [blame] | 1559 | Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1560 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1561 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1563 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1564 | This file contains any messages produced by compilers while |
| 1565 | running configure, to aid debugging if configure makes a mistake. |
| 1566 | |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 1567 | It was created by LLVM $as_me 3.3svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1568 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1569 | |
| 1570 | $ $0 $@ |
| 1571 | |
| 1572 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1573 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1574 | { |
| 1575 | cat <<_ASUNAME |
| 1576 | ## --------- ## |
| 1577 | ## Platform. ## |
| 1578 | ## --------- ## |
| 1579 | |
| 1580 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1581 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1582 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1583 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1584 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1585 | |
| 1586 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1587 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1588 | |
| 1589 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1590 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1591 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1592 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1593 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1594 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1595 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1596 | |
| 1597 | _ASUNAME |
| 1598 | |
| 1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1600 | for as_dir in $PATH |
| 1601 | do |
| 1602 | IFS=$as_save_IFS |
| 1603 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1604 | echo "PATH: $as_dir" |
| 1605 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1606 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1607 | |
| 1608 | } >&5 |
| 1609 | |
| 1610 | cat >&5 <<_ACEOF |
| 1611 | |
| 1612 | |
| 1613 | ## ----------- ## |
| 1614 | ## Core tests. ## |
| 1615 | ## ----------- ## |
| 1616 | |
| 1617 | _ACEOF |
| 1618 | |
| 1619 | |
| 1620 | # Keep a trace of the command line. |
| 1621 | # 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] | 1622 | # 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] | 1623 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1624 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1625 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1626 | ac_configure_args0= |
| 1627 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | ac_must_keep_next=false |
| 1629 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1630 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | for ac_arg |
| 1632 | do |
| 1633 | case $ac_arg in |
| 1634 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1635 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1636 | | -silent | --silent | --silen | --sile | --sil) |
| 1637 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1638 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1639 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1640 | esac |
| 1641 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1642 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1643 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1644 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1645 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1646 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1647 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1648 | case $ac_arg in |
| 1649 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1650 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1651 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1652 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1653 | case "$ac_configure_args0 " in |
| 1654 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1655 | esac |
| 1656 | ;; |
| 1657 | -* ) ac_must_keep_next=true ;; |
| 1658 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1659 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1660 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1661 | ;; |
| 1662 | esac |
| 1663 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1664 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1665 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1666 | $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] | 1667 | |
| 1668 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1669 | # config.log. We remove comments because anyway the quotes in there |
| 1670 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1671 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1672 | # 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] | 1673 | trap 'exit_status=$? |
| 1674 | # Save into config.log some information that might help in debugging. |
| 1675 | { |
| 1676 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1677 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1678 | cat <<\_ASBOX |
| 1679 | ## ---------------- ## |
| 1680 | ## Cache variables. ## |
| 1681 | ## ---------------- ## |
| 1682 | _ASBOX |
| 1683 | echo |
| 1684 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | ( |
| 1686 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1687 | eval ac_val=\$$ac_var |
| 1688 | case $ac_val in #( |
| 1689 | *${as_nl}*) |
| 1690 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1691 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1692 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1693 | esac |
| 1694 | case $ac_var in #( |
| 1695 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1696 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1697 | esac ;; |
| 1698 | esac |
| 1699 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1700 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1701 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1702 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1703 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1704 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1705 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1706 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1707 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1708 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1709 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1710 | esac | |
| 1711 | sort |
| 1712 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1713 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1714 | |
| 1715 | cat <<\_ASBOX |
| 1716 | ## ----------------- ## |
| 1717 | ## Output variables. ## |
| 1718 | ## ----------------- ## |
| 1719 | _ASBOX |
| 1720 | echo |
| 1721 | for ac_var in $ac_subst_vars |
| 1722 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1723 | eval ac_val=\$$ac_var |
| 1724 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1725 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1726 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1727 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1728 | done | sort |
| 1729 | echo |
| 1730 | |
| 1731 | if test -n "$ac_subst_files"; then |
| 1732 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1733 | ## ------------------- ## |
| 1734 | ## File substitutions. ## |
| 1735 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1736 | _ASBOX |
| 1737 | echo |
| 1738 | for ac_var in $ac_subst_files |
| 1739 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1740 | eval ac_val=\$$ac_var |
| 1741 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1742 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1743 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1744 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1745 | done | sort |
| 1746 | echo |
| 1747 | fi |
| 1748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1749 | if test -s confdefs.h; then |
| 1750 | cat <<\_ASBOX |
| 1751 | ## ----------- ## |
| 1752 | ## confdefs.h. ## |
| 1753 | ## ----------- ## |
| 1754 | _ASBOX |
| 1755 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1756 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1757 | echo |
| 1758 | fi |
| 1759 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1760 | echo "$as_me: caught signal $ac_signal" |
| 1761 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1763 | rm -f core *.core core.conftest.* && |
| 1764 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1766 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1767 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1768 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1769 | done |
| 1770 | ac_signal=0 |
| 1771 | |
| 1772 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1773 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1774 | |
| 1775 | # Predefined preprocessor variables. |
| 1776 | |
| 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1779 | _ACEOF |
| 1780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1784 | _ACEOF |
| 1785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1787 | cat >>confdefs.h <<_ACEOF |
| 1788 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1789 | _ACEOF |
| 1790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1791 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1792 | cat >>confdefs.h <<_ACEOF |
| 1793 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1794 | _ACEOF |
| 1795 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1797 | cat >>confdefs.h <<_ACEOF |
| 1798 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1799 | _ACEOF |
| 1800 | |
| 1801 | |
| 1802 | # 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] | 1803 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1804 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1805 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1806 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1807 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1808 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1809 | set x "$ac_default_prefix/share/config.site" \ |
| 1810 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1811 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1812 | shift |
| 1813 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1814 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | if test -r "$ac_site_file"; then |
| 1816 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1817 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1818 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1819 | . "$ac_site_file" |
| 1820 | fi |
| 1821 | done |
| 1822 | |
| 1823 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1824 | # Some versions of bash will fail to source /dev/null (special |
| 1825 | # files actually), so we avoid doing that. |
| 1826 | if test -f "$cache_file"; then |
| 1827 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1828 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1829 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1830 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1831 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | esac |
| 1833 | fi |
| 1834 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1835 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1836 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | >$cache_file |
| 1838 | fi |
| 1839 | |
| 1840 | # Check that the precious variables saved in the cache have kept the same |
| 1841 | # value. |
| 1842 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1843 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1844 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1845 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1846 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1847 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1848 | case $ac_old_set,$ac_new_set in |
| 1849 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1850 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1851 | 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] | 1852 | ac_cache_corrupted=: ;; |
| 1853 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1854 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1855 | 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] | 1856 | ac_cache_corrupted=: ;; |
| 1857 | ,);; |
| 1858 | *) |
| 1859 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1860 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1861 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1862 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1863 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1864 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1865 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1866 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1867 | fi;; |
| 1868 | esac |
| 1869 | # Pass precious variables to config.status. |
| 1870 | if test "$ac_new_set" = set; then |
| 1871 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1872 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1873 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1874 | esac |
| 1875 | case " $ac_configure_args " in |
| 1876 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1877 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | esac |
| 1879 | fi |
| 1880 | done |
| 1881 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1882 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1883 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1884 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1885 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1886 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1887 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1913 | ac_ext=c |
| 1914 | ac_cpp='$CPP $CPPFLAGS' |
| 1915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1918 | |
| 1919 | |
| 1920 | |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1921 | cat >>confdefs.h <<\_ACEOF |
| 1922 | #define LLVM_VERSION_MAJOR 3 |
| 1923 | _ACEOF |
| 1924 | |
| 1925 | |
| 1926 | cat >>confdefs.h <<\_ACEOF |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 1927 | #define LLVM_VERSION_MINOR 3 |
Dylan Noblesmith | fde8237 | 2012-02-13 18:48:10 +0000 | [diff] [blame] | 1928 | _ACEOF |
| 1929 | |
| 1930 | |
NAKAMURA Takumi | a6fdcaa | 2013-01-01 10:00:19 +0000 | [diff] [blame] | 1931 | LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1932 | |
| 1933 | |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1939 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1940 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1941 | if test -f "$ac_dir/install-sh"; then |
| 1942 | ac_aux_dir=$ac_dir |
| 1943 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1944 | break |
| 1945 | elif test -f "$ac_dir/install.sh"; then |
| 1946 | ac_aux_dir=$ac_dir |
| 1947 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1948 | break |
| 1949 | elif test -f "$ac_dir/shtool"; then |
| 1950 | ac_aux_dir=$ac_dir |
| 1951 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1952 | break |
| 1953 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1954 | done |
| 1955 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1956 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1957 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1958 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1959 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1960 | |
| 1961 | # These three variables are undocumented and unsupported, |
| 1962 | # and are intended to be withdrawn in a future Autoconf release. |
| 1963 | # They can cause serious problems if a builder's source tree is in a directory |
| 1964 | # whose full name contains unusual characters. |
| 1965 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1966 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1967 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1968 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1969 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1970 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1971 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1972 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1973 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1974 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1975 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1976 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1977 | fi |
| 1978 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 1979 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1980 | ac_cpp='$CPP $CPPFLAGS' |
| 1981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1984 | if test -n "$ac_tool_prefix"; then |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 1985 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1986 | do |
| 1987 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1988 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1989 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1990 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1991 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1993 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1994 | if test -n "$CC"; then |
| 1995 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1996 | else |
| 1997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1998 | for as_dir in $PATH |
| 1999 | do |
| 2000 | IFS=$as_save_IFS |
| 2001 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2002 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2003 | 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] | 2004 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2005 | 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] | 2006 | break 2 |
| 2007 | fi |
| 2008 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2009 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2010 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 | |
| 2012 | fi |
| 2013 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2014 | CC=$ac_cv_prog_CC |
| 2015 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2016 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2017 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2019 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2020 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | fi |
| 2022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2023 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2024 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2025 | done |
| 2026 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2027 | if test -z "$CC"; then |
| 2028 | ac_ct_CC=$CC |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2029 | for ac_prog in clang llvm-gcc gcc |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2030 | do |
| 2031 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2032 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2035 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2037 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2038 | if test -n "$ac_ct_CC"; then |
| 2039 | 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] | 2040 | else |
| 2041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2042 | for as_dir in $PATH |
| 2043 | do |
| 2044 | IFS=$as_save_IFS |
| 2045 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2047 | 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] | 2048 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2049 | 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] | 2050 | break 2 |
| 2051 | fi |
| 2052 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2053 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2054 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2055 | |
| 2056 | fi |
| 2057 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2058 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2059 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2060 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2061 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2062 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2063 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2064 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2065 | fi |
| 2066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2067 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2068 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2069 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2071 | if test "x$ac_ct_CC" = x; then |
| 2072 | CC="" |
| 2073 | else |
| 2074 | case $cross_compiling:$ac_tool_warned in |
| 2075 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2077 | whose name does not start with the host triplet. If you think this |
| 2078 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2079 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2080 | whose name does not start with the host triplet. If you think this |
| 2081 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2082 | ac_tool_warned=yes ;; |
| 2083 | esac |
| 2084 | CC=$ac_ct_CC |
| 2085 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2086 | fi |
| 2087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2089 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2090 | See \`config.log' for more details." >&5 |
| 2091 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2092 | See \`config.log' for more details." >&2;} |
| 2093 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2095 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2096 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2097 | ac_compiler=`set X $ac_compile; echo $2` |
| 2098 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2099 | case "(($ac_try" in |
| 2100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2101 | *) ac_try_echo=$ac_try;; |
| 2102 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2104 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2105 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2107 | (exit $ac_status); } |
| 2108 | { (ac_try="$ac_compiler -v >&5" |
| 2109 | case "(($ac_try" in |
| 2110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2111 | *) ac_try_echo=$ac_try;; |
| 2112 | esac |
| 2113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2114 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2115 | ac_status=$? |
| 2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2117 | (exit $ac_status); } |
| 2118 | { (ac_try="$ac_compiler -V >&5" |
| 2119 | case "(($ac_try" in |
| 2120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2121 | *) ac_try_echo=$ac_try;; |
| 2122 | esac |
| 2123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2124 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2125 | ac_status=$? |
| 2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2127 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2129 | cat >conftest.$ac_ext <<_ACEOF |
| 2130 | /* confdefs.h. */ |
| 2131 | _ACEOF |
| 2132 | cat confdefs.h >>conftest.$ac_ext |
| 2133 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2134 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2135 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2136 | int |
| 2137 | main () |
| 2138 | { |
| 2139 | |
| 2140 | ; |
| 2141 | return 0; |
| 2142 | } |
| 2143 | _ACEOF |
| 2144 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2145 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2146 | # Try to create an executable without -o first, disregard a.out. |
| 2147 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2148 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2149 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2150 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2151 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2152 | # |
| 2153 | # List of possible output files, starting from the most likely. |
| 2154 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2155 | # only as a last resort. b.out is created by i960 compilers. |
| 2156 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2157 | # |
| 2158 | # The IRIX 6 linker writes into existing files which may not be |
| 2159 | # executable, retaining their permissions. Remove them first so a |
| 2160 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2161 | ac_rmfiles= |
| 2162 | for ac_file in $ac_files |
| 2163 | do |
| 2164 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2165 | *.$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] | 2166 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2167 | esac |
| 2168 | done |
| 2169 | rm -f $ac_rmfiles |
| 2170 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2171 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2172 | case "(($ac_try" in |
| 2173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2174 | *) ac_try_echo=$ac_try;; |
| 2175 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2177 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2178 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2180 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2181 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2182 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2183 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2184 | # so that the user can short-circuit this test for compilers unknown to |
| 2185 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2186 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2187 | do |
| 2188 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2189 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2190 | *.$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] | 2191 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2192 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2193 | # We found the default executable, but exeext='' is most |
| 2194 | # certainly right. |
| 2195 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2196 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2197 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2198 | then :; else |
| 2199 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2200 | fi |
| 2201 | # We set ac_cv_exeext here because the later test for it is not |
| 2202 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2203 | # argument, so we may need to know it at that point already. |
| 2204 | # Even if this section looks crufty: it has the advantage of |
| 2205 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2206 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2207 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2208 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2209 | esac |
| 2210 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2213 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2214 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2216 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2217 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2218 | See \`config.log' for more details." >&5 |
| 2219 | echo "$as_me: error: C compiler cannot create executables |
| 2220 | See \`config.log' for more details." >&2;} |
| 2221 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2222 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2223 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2224 | ac_exeext=$ac_cv_exeext |
| 2225 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2226 | echo "${ECHO_T}$ac_file" >&6; } |
| 2227 | |
| 2228 | # Check that the compiler produces executables we can run. If not, either |
| 2229 | # the compiler is broken, or we cross compile. |
| 2230 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2231 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2232 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2233 | # If not cross compiling, check that we can run a simple program. |
| 2234 | if test "$cross_compiling" != yes; then |
| 2235 | if { ac_try='./$ac_file' |
| 2236 | { (case "(($ac_try" in |
| 2237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2238 | *) ac_try_echo=$ac_try;; |
| 2239 | esac |
| 2240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2241 | (eval "$ac_try") 2>&5 |
| 2242 | ac_status=$? |
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2244 | (exit $ac_status); }; }; then |
| 2245 | cross_compiling=no |
| 2246 | else |
| 2247 | if test "$cross_compiling" = maybe; then |
| 2248 | cross_compiling=yes |
| 2249 | else |
| 2250 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2251 | If you meant to cross compile, use \`--host'. |
| 2252 | See \`config.log' for more details." >&5 |
| 2253 | echo "$as_me: error: cannot run C compiled programs. |
| 2254 | If you meant to cross compile, use \`--host'. |
| 2255 | See \`config.log' for more details." >&2;} |
| 2256 | { (exit 1); exit 1; }; } |
| 2257 | fi |
| 2258 | fi |
| 2259 | fi |
| 2260 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2261 | echo "${ECHO_T}yes" >&6; } |
| 2262 | |
| 2263 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2264 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2265 | # Check that the compiler produces executables we can run. If not, either |
| 2266 | # the compiler is broken, or we cross compile. |
| 2267 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2268 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2269 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2270 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2271 | |
| 2272 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2273 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2274 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2275 | case "(($ac_try" in |
| 2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2277 | *) ac_try_echo=$ac_try;; |
| 2278 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2280 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2281 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2283 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2284 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2285 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2286 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2287 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2288 | for ac_file in conftest.exe conftest conftest.*; do |
| 2289 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2290 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2291 | *.$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] | 2292 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2293 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2294 | * ) break;; |
| 2295 | esac |
| 2296 | done |
| 2297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2298 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2299 | See \`config.log' for more details." >&5 |
| 2300 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2301 | See \`config.log' for more details." >&2;} |
| 2302 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2303 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2304 | |
| 2305 | rm -f conftest$ac_cv_exeext |
| 2306 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2307 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2308 | |
| 2309 | rm -f conftest.$ac_ext |
| 2310 | EXEEXT=$ac_cv_exeext |
| 2311 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2312 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2313 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2314 | if test "${ac_cv_objext+set}" = set; then |
| 2315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2316 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2317 | cat >conftest.$ac_ext <<_ACEOF |
| 2318 | /* confdefs.h. */ |
| 2319 | _ACEOF |
| 2320 | cat confdefs.h >>conftest.$ac_ext |
| 2321 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2322 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2323 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2324 | int |
| 2325 | main () |
| 2326 | { |
| 2327 | |
| 2328 | ; |
| 2329 | return 0; |
| 2330 | } |
| 2331 | _ACEOF |
| 2332 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2333 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2334 | case "(($ac_try" in |
| 2335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2336 | *) ac_try_echo=$ac_try;; |
| 2337 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2339 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2342 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2343 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2344 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2345 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2346 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2347 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2348 | break;; |
| 2349 | esac |
| 2350 | done |
| 2351 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2352 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2354 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2355 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2356 | See \`config.log' for more details." >&5 |
| 2357 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2358 | See \`config.log' for more details." >&2;} |
| 2359 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2360 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2361 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2362 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2363 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2364 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2365 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2366 | OBJEXT=$ac_cv_objext |
| 2367 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2368 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2369 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2370 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2373 | cat >conftest.$ac_ext <<_ACEOF |
| 2374 | /* confdefs.h. */ |
| 2375 | _ACEOF |
| 2376 | cat confdefs.h >>conftest.$ac_ext |
| 2377 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2378 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2379 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2380 | int |
| 2381 | main () |
| 2382 | { |
| 2383 | #ifndef __GNUC__ |
| 2384 | choke me |
| 2385 | #endif |
| 2386 | |
| 2387 | ; |
| 2388 | return 0; |
| 2389 | } |
| 2390 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2391 | rm -f conftest.$ac_objext |
| 2392 | if { (ac_try="$ac_compile" |
| 2393 | case "(($ac_try" in |
| 2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2395 | *) ac_try_echo=$ac_try;; |
| 2396 | esac |
| 2397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2398 | (eval "$ac_compile") 2>conftest.er1 |
| 2399 | ac_status=$? |
| 2400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2401 | rm -f conftest.er1 |
| 2402 | cat conftest.err >&5 |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); } && |
| 2405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2406 | { (case "(($ac_try" in |
| 2407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2408 | *) ac_try_echo=$ac_try;; |
| 2409 | esac |
| 2410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2411 | (eval "$ac_try") 2>&5 |
| 2412 | ac_status=$? |
| 2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2414 | (exit $ac_status); }; } && |
| 2415 | { ac_try='test -s conftest.$ac_objext' |
| 2416 | { (case "(($ac_try" in |
| 2417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2418 | *) ac_try_echo=$ac_try;; |
| 2419 | esac |
| 2420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2421 | (eval "$ac_try") 2>&5 |
| 2422 | ac_status=$? |
| 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2424 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2425 | ac_compiler_gnu=yes |
| 2426 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2427 | echo "$as_me: failed program was:" >&5 |
| 2428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2429 | |
| 2430 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2434 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 | |
| 2436 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2437 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2438 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2439 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 | ac_test_CFLAGS=${CFLAGS+set} |
| 2441 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2442 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2443 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2444 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2446 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2447 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2448 | ac_c_werror_flag=yes |
| 2449 | ac_cv_prog_cc_g=no |
| 2450 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2451 | cat >conftest.$ac_ext <<_ACEOF |
| 2452 | /* confdefs.h. */ |
| 2453 | _ACEOF |
| 2454 | cat confdefs.h >>conftest.$ac_ext |
| 2455 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2456 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2457 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2458 | int |
| 2459 | main () |
| 2460 | { |
| 2461 | |
| 2462 | ; |
| 2463 | return 0; |
| 2464 | } |
| 2465 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2466 | rm -f conftest.$ac_objext |
| 2467 | if { (ac_try="$ac_compile" |
| 2468 | case "(($ac_try" in |
| 2469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2470 | *) ac_try_echo=$ac_try;; |
| 2471 | esac |
| 2472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2473 | (eval "$ac_compile") 2>conftest.er1 |
| 2474 | ac_status=$? |
| 2475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2476 | rm -f conftest.er1 |
| 2477 | cat conftest.err >&5 |
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2479 | (exit $ac_status); } && |
| 2480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2481 | { (case "(($ac_try" in |
| 2482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2483 | *) ac_try_echo=$ac_try;; |
| 2484 | esac |
| 2485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2486 | (eval "$ac_try") 2>&5 |
| 2487 | ac_status=$? |
| 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); }; } && |
| 2490 | { ac_try='test -s conftest.$ac_objext' |
| 2491 | { (case "(($ac_try" in |
| 2492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2493 | *) ac_try_echo=$ac_try;; |
| 2494 | esac |
| 2495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2496 | (eval "$ac_try") 2>&5 |
| 2497 | ac_status=$? |
| 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2499 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2501 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2502 | echo "$as_me: failed program was:" >&5 |
| 2503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2504 | |
| 2505 | CFLAGS="" |
| 2506 | cat >conftest.$ac_ext <<_ACEOF |
| 2507 | /* confdefs.h. */ |
| 2508 | _ACEOF |
| 2509 | cat confdefs.h >>conftest.$ac_ext |
| 2510 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2511 | /* end confdefs.h. */ |
| 2512 | |
| 2513 | int |
| 2514 | main () |
| 2515 | { |
| 2516 | |
| 2517 | ; |
| 2518 | return 0; |
| 2519 | } |
| 2520 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2521 | rm -f conftest.$ac_objext |
| 2522 | if { (ac_try="$ac_compile" |
| 2523 | case "(($ac_try" in |
| 2524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2525 | *) ac_try_echo=$ac_try;; |
| 2526 | esac |
| 2527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2528 | (eval "$ac_compile") 2>conftest.er1 |
| 2529 | ac_status=$? |
| 2530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2531 | rm -f conftest.er1 |
| 2532 | cat conftest.err >&5 |
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2534 | (exit $ac_status); } && |
| 2535 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2536 | { (case "(($ac_try" in |
| 2537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2538 | *) ac_try_echo=$ac_try;; |
| 2539 | esac |
| 2540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2541 | (eval "$ac_try") 2>&5 |
| 2542 | ac_status=$? |
| 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2544 | (exit $ac_status); }; } && |
| 2545 | { ac_try='test -s conftest.$ac_objext' |
| 2546 | { (case "(($ac_try" in |
| 2547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2548 | *) ac_try_echo=$ac_try;; |
| 2549 | esac |
| 2550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2551 | (eval "$ac_try") 2>&5 |
| 2552 | ac_status=$? |
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2554 | (exit $ac_status); }; }; then |
| 2555 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2556 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2557 | echo "$as_me: failed program was:" >&5 |
| 2558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2559 | |
| 2560 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2561 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | int |
| 2570 | main () |
| 2571 | { |
| 2572 | |
| 2573 | ; |
| 2574 | return 0; |
| 2575 | } |
| 2576 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2577 | rm -f conftest.$ac_objext |
| 2578 | if { (ac_try="$ac_compile" |
| 2579 | case "(($ac_try" in |
| 2580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2581 | *) ac_try_echo=$ac_try;; |
| 2582 | esac |
| 2583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2584 | (eval "$ac_compile") 2>conftest.er1 |
| 2585 | ac_status=$? |
| 2586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2587 | rm -f conftest.er1 |
| 2588 | cat conftest.err >&5 |
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2590 | (exit $ac_status); } && |
| 2591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2592 | { (case "(($ac_try" in |
| 2593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2594 | *) ac_try_echo=$ac_try;; |
| 2595 | esac |
| 2596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2597 | (eval "$ac_try") 2>&5 |
| 2598 | ac_status=$? |
| 2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2600 | (exit $ac_status); }; } && |
| 2601 | { ac_try='test -s conftest.$ac_objext' |
| 2602 | { (case "(($ac_try" in |
| 2603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2604 | *) ac_try_echo=$ac_try;; |
| 2605 | esac |
| 2606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2607 | (eval "$ac_try") 2>&5 |
| 2608 | ac_status=$? |
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2610 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2611 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2612 | else |
| 2613 | echo "$as_me: failed program was:" >&5 |
| 2614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2615 | |
| 2616 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2617 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2623 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2626 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2627 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2629 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2630 | if test "$ac_test_CFLAGS" = set; then |
| 2631 | CFLAGS=$ac_save_CFLAGS |
| 2632 | elif test $ac_cv_prog_cc_g = yes; then |
| 2633 | if test "$GCC" = yes; then |
| 2634 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2635 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2636 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | fi |
| 2638 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2639 | if test "$GCC" = yes; then |
| 2640 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2642 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | fi |
| 2644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2645 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2646 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2647 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2649 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2650 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2651 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2652 | cat >conftest.$ac_ext <<_ACEOF |
| 2653 | /* confdefs.h. */ |
| 2654 | _ACEOF |
| 2655 | cat confdefs.h >>conftest.$ac_ext |
| 2656 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2657 | /* end confdefs.h. */ |
| 2658 | #include <stdarg.h> |
| 2659 | #include <stdio.h> |
| 2660 | #include <sys/types.h> |
| 2661 | #include <sys/stat.h> |
| 2662 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2663 | struct buf { int x; }; |
| 2664 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2665 | static char *e (p, i) |
| 2666 | char **p; |
| 2667 | int i; |
| 2668 | { |
| 2669 | return p[i]; |
| 2670 | } |
| 2671 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2672 | { |
| 2673 | char *s; |
| 2674 | va_list v; |
| 2675 | va_start (v,p); |
| 2676 | s = g (p, va_arg (v,int)); |
| 2677 | va_end (v); |
| 2678 | return s; |
| 2679 | } |
| 2680 | |
| 2681 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2682 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2683 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2684 | 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] | 2685 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2686 | 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] | 2687 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2688 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2690 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2691 | inside strings and character constants. */ |
| 2692 | #define FOO(x) 'x' |
| 2693 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2694 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2695 | int test (int i, double x); |
| 2696 | struct s1 {int (*f) (int a);}; |
| 2697 | struct s2 {int (*f) (double a);}; |
| 2698 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2699 | int argc; |
| 2700 | char **argv; |
| 2701 | int |
| 2702 | main () |
| 2703 | { |
| 2704 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2705 | ; |
| 2706 | return 0; |
| 2707 | } |
| 2708 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2709 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2710 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2711 | do |
| 2712 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2713 | rm -f conftest.$ac_objext |
| 2714 | if { (ac_try="$ac_compile" |
| 2715 | case "(($ac_try" in |
| 2716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2717 | *) ac_try_echo=$ac_try;; |
| 2718 | esac |
| 2719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2720 | (eval "$ac_compile") 2>conftest.er1 |
| 2721 | ac_status=$? |
| 2722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2723 | rm -f conftest.er1 |
| 2724 | cat conftest.err >&5 |
| 2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2726 | (exit $ac_status); } && |
| 2727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2728 | { (case "(($ac_try" in |
| 2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2730 | *) ac_try_echo=$ac_try;; |
| 2731 | esac |
| 2732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2733 | (eval "$ac_try") 2>&5 |
| 2734 | ac_status=$? |
| 2735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2736 | (exit $ac_status); }; } && |
| 2737 | { ac_try='test -s conftest.$ac_objext' |
| 2738 | { (case "(($ac_try" in |
| 2739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2740 | *) ac_try_echo=$ac_try;; |
| 2741 | esac |
| 2742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2743 | (eval "$ac_try") 2>&5 |
| 2744 | ac_status=$? |
| 2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2746 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2747 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2748 | else |
| 2749 | echo "$as_me: failed program was:" >&5 |
| 2750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2751 | |
| 2752 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2753 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2755 | rm -f core conftest.err conftest.$ac_objext |
| 2756 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2757 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2758 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2759 | CC=$ac_save_CC |
| 2760 | |
| 2761 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | # AC_CACHE_VAL |
| 2763 | case "x$ac_cv_prog_cc_c89" in |
| 2764 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2765 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2766 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2768 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2769 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2770 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2771 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2772 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2773 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2774 | esac |
| 2775 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2777 | ac_ext=c |
| 2778 | ac_cpp='$CPP $CPPFLAGS' |
| 2779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2782 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 2783 | ac_ext=cpp |
| 2784 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2788 | if test -z "$CXX"; then |
| 2789 | if test -n "$CCC"; then |
| 2790 | CXX=$CCC |
| 2791 | else |
| 2792 | if test -n "$ac_tool_prefix"; then |
| 2793 | for ac_prog in clang++ llvm-g++ g++ |
| 2794 | do |
| 2795 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2796 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2799 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2801 | else |
| 2802 | if test -n "$CXX"; then |
| 2803 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2804 | else |
| 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2806 | for as_dir in $PATH |
| 2807 | do |
| 2808 | IFS=$as_save_IFS |
| 2809 | test -z "$as_dir" && as_dir=. |
| 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2812 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2814 | break 2 |
| 2815 | fi |
| 2816 | done |
| 2817 | done |
| 2818 | IFS=$as_save_IFS |
| 2819 | |
| 2820 | fi |
| 2821 | fi |
| 2822 | CXX=$ac_cv_prog_CXX |
| 2823 | if test -n "$CXX"; then |
| 2824 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2825 | echo "${ECHO_T}$CXX" >&6; } |
| 2826 | else |
| 2827 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2828 | echo "${ECHO_T}no" >&6; } |
| 2829 | fi |
| 2830 | |
| 2831 | |
| 2832 | test -n "$CXX" && break |
| 2833 | done |
| 2834 | fi |
| 2835 | if test -z "$CXX"; then |
| 2836 | ac_ct_CXX=$CXX |
| 2837 | for ac_prog in clang++ llvm-g++ g++ |
| 2838 | do |
| 2839 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2840 | set dummy $ac_prog; ac_word=$2 |
| 2841 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2843 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2845 | else |
| 2846 | if test -n "$ac_ct_CXX"; then |
| 2847 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2848 | else |
| 2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2850 | for as_dir in $PATH |
| 2851 | do |
| 2852 | IFS=$as_save_IFS |
| 2853 | test -z "$as_dir" && as_dir=. |
| 2854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2856 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2858 | break 2 |
| 2859 | fi |
| 2860 | done |
| 2861 | done |
| 2862 | IFS=$as_save_IFS |
| 2863 | |
| 2864 | fi |
| 2865 | fi |
| 2866 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2867 | if test -n "$ac_ct_CXX"; then |
| 2868 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2869 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2870 | else |
| 2871 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2872 | echo "${ECHO_T}no" >&6; } |
| 2873 | fi |
| 2874 | |
| 2875 | |
| 2876 | test -n "$ac_ct_CXX" && break |
| 2877 | done |
| 2878 | |
| 2879 | if test "x$ac_ct_CXX" = x; then |
| 2880 | CXX="g++" |
| 2881 | else |
| 2882 | case $cross_compiling:$ac_tool_warned in |
| 2883 | yes:) |
| 2884 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2885 | whose name does not start with the host triplet. If you think this |
| 2886 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2887 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2888 | whose name does not start with the host triplet. If you think this |
| 2889 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2890 | ac_tool_warned=yes ;; |
| 2891 | esac |
| 2892 | CXX=$ac_ct_CXX |
| 2893 | fi |
| 2894 | fi |
| 2895 | |
| 2896 | fi |
| 2897 | fi |
| 2898 | # Provide some information about the compiler. |
| 2899 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2900 | ac_compiler=`set X $ac_compile; echo $2` |
| 2901 | { (ac_try="$ac_compiler --version >&5" |
| 2902 | case "(($ac_try" in |
| 2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2904 | *) ac_try_echo=$ac_try;; |
| 2905 | esac |
| 2906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2907 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2908 | ac_status=$? |
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2910 | (exit $ac_status); } |
| 2911 | { (ac_try="$ac_compiler -v >&5" |
| 2912 | case "(($ac_try" in |
| 2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2914 | *) ac_try_echo=$ac_try;; |
| 2915 | esac |
| 2916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2917 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2918 | ac_status=$? |
| 2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2920 | (exit $ac_status); } |
| 2921 | { (ac_try="$ac_compiler -V >&5" |
| 2922 | case "(($ac_try" in |
| 2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2924 | *) ac_try_echo=$ac_try;; |
| 2925 | esac |
| 2926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2927 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2928 | ac_status=$? |
| 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); } |
| 2931 | |
| 2932 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2933 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2934 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2936 | else |
| 2937 | cat >conftest.$ac_ext <<_ACEOF |
| 2938 | /* confdefs.h. */ |
| 2939 | _ACEOF |
| 2940 | cat confdefs.h >>conftest.$ac_ext |
| 2941 | cat >>conftest.$ac_ext <<_ACEOF |
| 2942 | /* end confdefs.h. */ |
| 2943 | |
| 2944 | int |
| 2945 | main () |
| 2946 | { |
| 2947 | #ifndef __GNUC__ |
| 2948 | choke me |
| 2949 | #endif |
| 2950 | |
| 2951 | ; |
| 2952 | return 0; |
| 2953 | } |
| 2954 | _ACEOF |
| 2955 | rm -f conftest.$ac_objext |
| 2956 | if { (ac_try="$ac_compile" |
| 2957 | case "(($ac_try" in |
| 2958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2959 | *) ac_try_echo=$ac_try;; |
| 2960 | esac |
| 2961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2962 | (eval "$ac_compile") 2>conftest.er1 |
| 2963 | ac_status=$? |
| 2964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2965 | rm -f conftest.er1 |
| 2966 | cat conftest.err >&5 |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); } && |
| 2969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2970 | { (case "(($ac_try" in |
| 2971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2972 | *) ac_try_echo=$ac_try;; |
| 2973 | esac |
| 2974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2975 | (eval "$ac_try") 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); }; } && |
| 2979 | { ac_try='test -s conftest.$ac_objext' |
| 2980 | { (case "(($ac_try" in |
| 2981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2982 | *) ac_try_echo=$ac_try;; |
| 2983 | esac |
| 2984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2985 | (eval "$ac_try") 2>&5 |
| 2986 | ac_status=$? |
| 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2988 | (exit $ac_status); }; }; then |
| 2989 | ac_compiler_gnu=yes |
| 2990 | else |
| 2991 | echo "$as_me: failed program was:" >&5 |
| 2992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2993 | |
| 2994 | ac_compiler_gnu=no |
| 2995 | fi |
| 2996 | |
| 2997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2998 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2999 | |
| 3000 | fi |
| 3001 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3002 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 3003 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3004 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3005 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3006 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3007 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3008 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3010 | else |
| 3011 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3012 | ac_cxx_werror_flag=yes |
| 3013 | ac_cv_prog_cxx_g=no |
| 3014 | CXXFLAGS="-g" |
| 3015 | cat >conftest.$ac_ext <<_ACEOF |
| 3016 | /* confdefs.h. */ |
| 3017 | _ACEOF |
| 3018 | cat confdefs.h >>conftest.$ac_ext |
| 3019 | cat >>conftest.$ac_ext <<_ACEOF |
| 3020 | /* end confdefs.h. */ |
| 3021 | |
| 3022 | int |
| 3023 | main () |
| 3024 | { |
| 3025 | |
| 3026 | ; |
| 3027 | return 0; |
| 3028 | } |
| 3029 | _ACEOF |
| 3030 | rm -f conftest.$ac_objext |
| 3031 | if { (ac_try="$ac_compile" |
| 3032 | case "(($ac_try" in |
| 3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3034 | *) ac_try_echo=$ac_try;; |
| 3035 | esac |
| 3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3037 | (eval "$ac_compile") 2>conftest.er1 |
| 3038 | ac_status=$? |
| 3039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3040 | rm -f conftest.er1 |
| 3041 | cat conftest.err >&5 |
| 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); } && |
| 3044 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3045 | { (case "(($ac_try" in |
| 3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3047 | *) ac_try_echo=$ac_try;; |
| 3048 | esac |
| 3049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3050 | (eval "$ac_try") 2>&5 |
| 3051 | ac_status=$? |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); }; } && |
| 3054 | { ac_try='test -s conftest.$ac_objext' |
| 3055 | { (case "(($ac_try" in |
| 3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3057 | *) ac_try_echo=$ac_try;; |
| 3058 | esac |
| 3059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3060 | (eval "$ac_try") 2>&5 |
| 3061 | ac_status=$? |
| 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3063 | (exit $ac_status); }; }; then |
| 3064 | ac_cv_prog_cxx_g=yes |
| 3065 | else |
| 3066 | echo "$as_me: failed program was:" >&5 |
| 3067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3068 | |
| 3069 | CXXFLAGS="" |
| 3070 | cat >conftest.$ac_ext <<_ACEOF |
| 3071 | /* confdefs.h. */ |
| 3072 | _ACEOF |
| 3073 | cat confdefs.h >>conftest.$ac_ext |
| 3074 | cat >>conftest.$ac_ext <<_ACEOF |
| 3075 | /* end confdefs.h. */ |
| 3076 | |
| 3077 | int |
| 3078 | main () |
| 3079 | { |
| 3080 | |
| 3081 | ; |
| 3082 | return 0; |
| 3083 | } |
| 3084 | _ACEOF |
| 3085 | rm -f conftest.$ac_objext |
| 3086 | if { (ac_try="$ac_compile" |
| 3087 | case "(($ac_try" in |
| 3088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3089 | *) ac_try_echo=$ac_try;; |
| 3090 | esac |
| 3091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3092 | (eval "$ac_compile") 2>conftest.er1 |
| 3093 | ac_status=$? |
| 3094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3095 | rm -f conftest.er1 |
| 3096 | cat conftest.err >&5 |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); } && |
| 3099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3100 | { (case "(($ac_try" in |
| 3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3102 | *) ac_try_echo=$ac_try;; |
| 3103 | esac |
| 3104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3105 | (eval "$ac_try") 2>&5 |
| 3106 | ac_status=$? |
| 3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3108 | (exit $ac_status); }; } && |
| 3109 | { ac_try='test -s conftest.$ac_objext' |
| 3110 | { (case "(($ac_try" in |
| 3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3112 | *) ac_try_echo=$ac_try;; |
| 3113 | esac |
| 3114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3115 | (eval "$ac_try") 2>&5 |
| 3116 | ac_status=$? |
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3118 | (exit $ac_status); }; }; then |
| 3119 | : |
| 3120 | else |
| 3121 | echo "$as_me: failed program was:" >&5 |
| 3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3123 | |
| 3124 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3125 | CXXFLAGS="-g" |
| 3126 | cat >conftest.$ac_ext <<_ACEOF |
| 3127 | /* confdefs.h. */ |
| 3128 | _ACEOF |
| 3129 | cat confdefs.h >>conftest.$ac_ext |
| 3130 | cat >>conftest.$ac_ext <<_ACEOF |
| 3131 | /* end confdefs.h. */ |
| 3132 | |
| 3133 | int |
| 3134 | main () |
| 3135 | { |
| 3136 | |
| 3137 | ; |
| 3138 | return 0; |
| 3139 | } |
| 3140 | _ACEOF |
| 3141 | rm -f conftest.$ac_objext |
| 3142 | if { (ac_try="$ac_compile" |
| 3143 | case "(($ac_try" in |
| 3144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3145 | *) ac_try_echo=$ac_try;; |
| 3146 | esac |
| 3147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3148 | (eval "$ac_compile") 2>conftest.er1 |
| 3149 | ac_status=$? |
| 3150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3151 | rm -f conftest.er1 |
| 3152 | cat conftest.err >&5 |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); } && |
| 3155 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3156 | { (case "(($ac_try" in |
| 3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3158 | *) ac_try_echo=$ac_try;; |
| 3159 | esac |
| 3160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3161 | (eval "$ac_try") 2>&5 |
| 3162 | ac_status=$? |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); }; } && |
| 3165 | { ac_try='test -s conftest.$ac_objext' |
| 3166 | { (case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
| 3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3171 | (eval "$ac_try") 2>&5 |
| 3172 | ac_status=$? |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); }; }; then |
| 3175 | ac_cv_prog_cxx_g=yes |
| 3176 | else |
| 3177 | echo "$as_me: failed program was:" >&5 |
| 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3179 | |
| 3180 | |
| 3181 | fi |
| 3182 | |
| 3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3184 | fi |
| 3185 | |
| 3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3187 | fi |
| 3188 | |
| 3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3190 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3191 | fi |
| 3192 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3193 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3194 | if test "$ac_test_CXXFLAGS" = set; then |
| 3195 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3196 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3197 | if test "$GXX" = yes; then |
| 3198 | CXXFLAGS="-g -O2" |
| 3199 | else |
| 3200 | CXXFLAGS="-g" |
| 3201 | fi |
| 3202 | else |
| 3203 | if test "$GXX" = yes; then |
| 3204 | CXXFLAGS="-O2" |
| 3205 | else |
| 3206 | CXXFLAGS= |
| 3207 | fi |
| 3208 | fi |
| 3209 | ac_ext=c |
| 3210 | ac_cpp='$CPP $CPPFLAGS' |
| 3211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3214 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3215 | ac_ext=c |
| 3216 | ac_cpp='$CPP $CPPFLAGS' |
| 3217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3220 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3221 | 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] | 3222 | # On Suns, sometimes $CPP names a directory. |
| 3223 | if test -n "$CPP" && test -d "$CPP"; then |
| 3224 | CPP= |
| 3225 | fi |
| 3226 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3227 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3229 | else |
| 3230 | # Double quotes because CPP needs to be expanded |
| 3231 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3232 | do |
| 3233 | ac_preproc_ok=false |
| 3234 | for ac_c_preproc_warn_flag in '' yes |
| 3235 | do |
| 3236 | # Use a header file that comes with gcc, so configuring glibc |
| 3237 | # with a fresh cross-compiler works. |
| 3238 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3239 | # <limits.h> exists even on freestanding compilers. |
| 3240 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3241 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3242 | cat >conftest.$ac_ext <<_ACEOF |
| 3243 | /* confdefs.h. */ |
| 3244 | _ACEOF |
| 3245 | cat confdefs.h >>conftest.$ac_ext |
| 3246 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3247 | /* end confdefs.h. */ |
| 3248 | #ifdef __STDC__ |
| 3249 | # include <limits.h> |
| 3250 | #else |
| 3251 | # include <assert.h> |
| 3252 | #endif |
| 3253 | Syntax error |
| 3254 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3255 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3256 | case "(($ac_try" in |
| 3257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3258 | *) ac_try_echo=$ac_try;; |
| 3259 | esac |
| 3260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3261 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3262 | ac_status=$? |
| 3263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3264 | rm -f conftest.er1 |
| 3265 | cat conftest.err >&5 |
| 3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3267 | (exit $ac_status); } >/dev/null; then |
| 3268 | if test -s conftest.err; then |
| 3269 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3270 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3271 | else |
| 3272 | ac_cpp_err= |
| 3273 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3275 | ac_cpp_err=yes |
| 3276 | fi |
| 3277 | if test -z "$ac_cpp_err"; then |
| 3278 | : |
| 3279 | else |
| 3280 | echo "$as_me: failed program was:" >&5 |
| 3281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3282 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3283 | # Broken: fails on valid input. |
| 3284 | continue |
| 3285 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3286 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3287 | rm -f conftest.err conftest.$ac_ext |
| 3288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3289 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3290 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3291 | cat >conftest.$ac_ext <<_ACEOF |
| 3292 | /* confdefs.h. */ |
| 3293 | _ACEOF |
| 3294 | cat confdefs.h >>conftest.$ac_ext |
| 3295 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3296 | /* end confdefs.h. */ |
| 3297 | #include <ac_nonexistent.h> |
| 3298 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3300 | case "(($ac_try" in |
| 3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3302 | *) ac_try_echo=$ac_try;; |
| 3303 | esac |
| 3304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3306 | ac_status=$? |
| 3307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3308 | rm -f conftest.er1 |
| 3309 | cat conftest.err >&5 |
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3311 | (exit $ac_status); } >/dev/null; then |
| 3312 | if test -s conftest.err; then |
| 3313 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3314 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3315 | else |
| 3316 | ac_cpp_err= |
| 3317 | fi |
| 3318 | else |
| 3319 | ac_cpp_err=yes |
| 3320 | fi |
| 3321 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | # Broken: success on invalid input. |
| 3323 | continue |
| 3324 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3325 | echo "$as_me: failed program was:" >&5 |
| 3326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3327 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | # Passes both tests. |
| 3329 | ac_preproc_ok=: |
| 3330 | break |
| 3331 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3332 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3333 | rm -f conftest.err conftest.$ac_ext |
| 3334 | |
| 3335 | done |
| 3336 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3337 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3338 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | break |
| 3340 | fi |
| 3341 | |
| 3342 | done |
| 3343 | ac_cv_prog_CPP=$CPP |
| 3344 | |
| 3345 | fi |
| 3346 | CPP=$ac_cv_prog_CPP |
| 3347 | else |
| 3348 | ac_cv_prog_CPP=$CPP |
| 3349 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3350 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3351 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3352 | ac_preproc_ok=false |
| 3353 | for ac_c_preproc_warn_flag in '' yes |
| 3354 | do |
| 3355 | # Use a header file that comes with gcc, so configuring glibc |
| 3356 | # with a fresh cross-compiler works. |
| 3357 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3358 | # <limits.h> exists even on freestanding compilers. |
| 3359 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3360 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3361 | cat >conftest.$ac_ext <<_ACEOF |
| 3362 | /* confdefs.h. */ |
| 3363 | _ACEOF |
| 3364 | cat confdefs.h >>conftest.$ac_ext |
| 3365 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3366 | /* end confdefs.h. */ |
| 3367 | #ifdef __STDC__ |
| 3368 | # include <limits.h> |
| 3369 | #else |
| 3370 | # include <assert.h> |
| 3371 | #endif |
| 3372 | Syntax error |
| 3373 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3375 | case "(($ac_try" in |
| 3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3377 | *) ac_try_echo=$ac_try;; |
| 3378 | esac |
| 3379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3380 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3381 | ac_status=$? |
| 3382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3383 | rm -f conftest.er1 |
| 3384 | cat conftest.err >&5 |
| 3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3386 | (exit $ac_status); } >/dev/null; then |
| 3387 | if test -s conftest.err; then |
| 3388 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3390 | else |
| 3391 | ac_cpp_err= |
| 3392 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3394 | ac_cpp_err=yes |
| 3395 | fi |
| 3396 | if test -z "$ac_cpp_err"; then |
| 3397 | : |
| 3398 | else |
| 3399 | echo "$as_me: failed program was:" >&5 |
| 3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3401 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3402 | # Broken: fails on valid input. |
| 3403 | continue |
| 3404 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3405 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3406 | rm -f conftest.err conftest.$ac_ext |
| 3407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3408 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3409 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3410 | cat >conftest.$ac_ext <<_ACEOF |
| 3411 | /* confdefs.h. */ |
| 3412 | _ACEOF |
| 3413 | cat confdefs.h >>conftest.$ac_ext |
| 3414 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3415 | /* end confdefs.h. */ |
| 3416 | #include <ac_nonexistent.h> |
| 3417 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3418 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3419 | case "(($ac_try" in |
| 3420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3421 | *) ac_try_echo=$ac_try;; |
| 3422 | esac |
| 3423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3424 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3425 | ac_status=$? |
| 3426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3427 | rm -f conftest.er1 |
| 3428 | cat conftest.err >&5 |
| 3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3430 | (exit $ac_status); } >/dev/null; then |
| 3431 | if test -s conftest.err; then |
| 3432 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3433 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3434 | else |
| 3435 | ac_cpp_err= |
| 3436 | fi |
| 3437 | else |
| 3438 | ac_cpp_err=yes |
| 3439 | fi |
| 3440 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3441 | # Broken: success on invalid input. |
| 3442 | continue |
| 3443 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3444 | echo "$as_me: failed program was:" >&5 |
| 3445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3446 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3447 | # Passes both tests. |
| 3448 | ac_preproc_ok=: |
| 3449 | break |
| 3450 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3451 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3452 | rm -f conftest.err conftest.$ac_ext |
| 3453 | |
| 3454 | done |
| 3455 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3456 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3457 | if $ac_preproc_ok; then |
| 3458 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3459 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3460 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3461 | See \`config.log' for more details." >&5 |
| 3462 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3463 | See \`config.log' for more details." >&2;} |
| 3464 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3465 | fi |
| 3466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3467 | ac_ext=c |
| 3468 | ac_cpp='$CPP $CPPFLAGS' |
| 3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3472 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3473 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3474 | |
| 3475 | |
| 3476 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 3477 | subdirs="$subdirs projects/llvm-gcc" |
| 3478 | |
| 3479 | fi |
| 3480 | |
| 3481 | if test -d ${srcdir}/projects/test-suite ; then |
| 3482 | subdirs="$subdirs projects/test-suite" |
| 3483 | |
| 3484 | fi |
| 3485 | |
| 3486 | if test -d ${srcdir}/projects/llvm-test ; then |
| 3487 | subdirs="$subdirs projects/llvm-test" |
| 3488 | |
| 3489 | fi |
| 3490 | |
| 3491 | if test -d ${srcdir}/projects/poolalloc ; then |
| 3492 | subdirs="$subdirs projects/poolalloc" |
| 3493 | |
| 3494 | fi |
| 3495 | |
| 3496 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 3497 | subdirs="$subdirs projects/llvm-poolalloc" |
| 3498 | |
| 3499 | fi |
| 3500 | |
| 3501 | for i in `ls ${srcdir}/projects` |
| 3502 | do |
| 3503 | if test -d ${srcdir}/projects/${i} ; then |
| 3504 | case ${i} in |
| 3505 | sample) subdirs="$subdirs projects/sample" |
| 3506 | ;; |
| 3507 | privbracket) subdirs="$subdirs projects/privbracket" |
| 3508 | ;; |
| 3509 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
| 3510 | ;; |
| 3511 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
| 3512 | ;; |
| 3513 | llvm-java) subdirs="$subdirs projects/llvm-java" |
| 3514 | ;; |
| 3515 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
| 3516 | ;; |
| 3517 | safecode) subdirs="$subdirs projects/safecode" |
| 3518 | ;; |
| 3519 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
| 3520 | ;; |
Daniel Dunbar | d45162b | 2011-12-07 22:07:03 +0000 | [diff] [blame] | 3521 | compiler-rt) ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3522 | llvm-gcc) ;; |
| 3523 | test-suite) ;; |
| 3524 | llvm-test) ;; |
| 3525 | poolalloc) ;; |
| 3526 | llvm-poolalloc) ;; |
| 3527 | *) |
| 3528 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 3529 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
| 3530 | ;; |
| 3531 | esac |
| 3532 | fi |
| 3533 | done |
| 3534 | |
| 3535 | # Check whether --enable-polly was given. |
| 3536 | if test "${enable_polly+set}" = set; then |
| 3537 | enableval=$enable_polly; |
| 3538 | else |
| 3539 | enableval=default |
| 3540 | fi |
| 3541 | |
| 3542 | case "$enableval" in |
| 3543 | yes) ENABLE_POLLY=1 |
| 3544 | ;; |
| 3545 | no) ENABLE_POLLY=0 |
| 3546 | ;; |
| 3547 | default) ENABLE_POLLY=1 |
| 3548 | ;; |
| 3549 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3550 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3551 | { (exit 1); exit 1; }; } ;; |
| 3552 | esac |
| 3553 | |
| 3554 | |
| 3555 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3556 | LLVM_HAS_POLLY=1 |
| 3557 | |
| 3558 | subdirs="$subdirs tools/polly" |
| 3559 | |
| 3560 | fi |
| 3561 | |
| 3562 | |
| 3563 | # Make sure we can run config.sub. |
| 3564 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3565 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3566 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3567 | { (exit 1); exit 1; }; } |
| 3568 | |
| 3569 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3570 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3571 | if test "${ac_cv_build+set}" = set; then |
| 3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3573 | else |
| 3574 | ac_build_alias=$build_alias |
| 3575 | test "x$ac_build_alias" = x && |
| 3576 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3577 | test "x$ac_build_alias" = x && |
| 3578 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3579 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3580 | { (exit 1); exit 1; }; } |
| 3581 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3582 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3583 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3584 | { (exit 1); exit 1; }; } |
| 3585 | |
| 3586 | fi |
| 3587 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3588 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3589 | case $ac_cv_build in |
| 3590 | *-*-*) ;; |
| 3591 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3592 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3593 | { (exit 1); exit 1; }; };; |
| 3594 | esac |
| 3595 | build=$ac_cv_build |
| 3596 | ac_save_IFS=$IFS; IFS='-' |
| 3597 | set x $ac_cv_build |
| 3598 | shift |
| 3599 | build_cpu=$1 |
| 3600 | build_vendor=$2 |
| 3601 | shift; shift |
| 3602 | # Remember, the first character of IFS is used to create $*, |
| 3603 | # except with old shells: |
| 3604 | build_os=$* |
| 3605 | IFS=$ac_save_IFS |
| 3606 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3607 | |
| 3608 | |
| 3609 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3610 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3611 | if test "${ac_cv_host+set}" = set; then |
| 3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3613 | else |
| 3614 | if test "x$host_alias" = x; then |
| 3615 | ac_cv_host=$ac_cv_build |
| 3616 | else |
| 3617 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3618 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3619 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3620 | { (exit 1); exit 1; }; } |
| 3621 | fi |
| 3622 | |
| 3623 | fi |
| 3624 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3625 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3626 | case $ac_cv_host in |
| 3627 | *-*-*) ;; |
| 3628 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3629 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3630 | { (exit 1); exit 1; }; };; |
| 3631 | esac |
| 3632 | host=$ac_cv_host |
| 3633 | ac_save_IFS=$IFS; IFS='-' |
| 3634 | set x $ac_cv_host |
| 3635 | shift |
| 3636 | host_cpu=$1 |
| 3637 | host_vendor=$2 |
| 3638 | shift; shift |
| 3639 | # Remember, the first character of IFS is used to create $*, |
| 3640 | # except with old shells: |
| 3641 | host_os=$* |
| 3642 | IFS=$ac_save_IFS |
| 3643 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3644 | |
| 3645 | |
| 3646 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3647 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3648 | if test "${ac_cv_target+set}" = set; then |
| 3649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3650 | else |
| 3651 | if test "x$target_alias" = x; then |
| 3652 | ac_cv_target=$ac_cv_host |
| 3653 | else |
| 3654 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3655 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3656 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3657 | { (exit 1); exit 1; }; } |
| 3658 | fi |
| 3659 | |
| 3660 | fi |
| 3661 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3662 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3663 | case $ac_cv_target in |
| 3664 | *-*-*) ;; |
| 3665 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3666 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3667 | { (exit 1); exit 1; }; };; |
| 3668 | esac |
| 3669 | target=$ac_cv_target |
| 3670 | ac_save_IFS=$IFS; IFS='-' |
| 3671 | set x $ac_cv_target |
| 3672 | shift |
| 3673 | target_cpu=$1 |
| 3674 | target_vendor=$2 |
| 3675 | shift; shift |
| 3676 | # Remember, the first character of IFS is used to create $*, |
| 3677 | # except with old shells: |
| 3678 | target_os=$* |
| 3679 | IFS=$ac_save_IFS |
| 3680 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3681 | |
| 3682 | |
| 3683 | # The aliases save the names the user supplied, while $host etc. |
| 3684 | # will get canonicalized. |
| 3685 | test -n "$target_alias" && |
| 3686 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3687 | NONENONEs,x,x, && |
| 3688 | program_prefix=${target_alias}- |
| 3689 | |
| 3690 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3691 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3692 | if test "${llvm_cv_os_type+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3694 | else |
| 3695 | case $host in |
| 3696 | *-*-aix*) |
| 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="AIX" |
| 3700 | llvm_cv_platform_type="Unix" ;; |
| 3701 | *-*-irix*) |
| 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="IRIX" |
| 3705 | llvm_cv_platform_type="Unix" ;; |
| 3706 | *-*-cygwin*) |
| 3707 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3708 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3709 | llvm_cv_os_type="Cygwin" |
| 3710 | llvm_cv_platform_type="Unix" ;; |
| 3711 | *-*-darwin*) |
| 3712 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3713 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3714 | llvm_cv_os_type="Darwin" |
| 3715 | llvm_cv_platform_type="Unix" ;; |
| 3716 | *-*-minix*) |
| 3717 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3718 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3719 | llvm_cv_os_type="Minix" |
| 3720 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3721 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 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="FreeBSD" |
| 3725 | llvm_cv_platform_type="Unix" ;; |
| 3726 | *-*-openbsd*) |
| 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="OpenBSD" |
| 3730 | llvm_cv_platform_type="Unix" ;; |
| 3731 | *-*-netbsd*) |
| 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="NetBSD" |
| 3735 | llvm_cv_platform_type="Unix" ;; |
| 3736 | *-*-dragonfly*) |
| 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="DragonFly" |
| 3740 | llvm_cv_platform_type="Unix" ;; |
| 3741 | *-*-hpux*) |
| 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="HP-UX" |
| 3745 | llvm_cv_platform_type="Unix" ;; |
| 3746 | *-*-interix*) |
| 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="Interix" |
| 3750 | llvm_cv_platform_type="Unix" ;; |
| 3751 | *-*-linux*) |
| 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="Linux" |
| 3755 | llvm_cv_platform_type="Unix" ;; |
Rafael Espindola | f613919 | 2011-12-22 14:01:18 +0000 | [diff] [blame] | 3756 | *-*-gnu*) |
| 3757 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3758 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3759 | llvm_cv_os_type="GNU" |
| 3760 | llvm_cv_platform_type="Unix" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3761 | *-*-solaris*) |
| 3762 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3763 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3764 | llvm_cv_os_type="SunOS" |
| 3765 | llvm_cv_platform_type="Unix" ;; |
| 3766 | *-*-auroraux*) |
| 3767 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3768 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3769 | llvm_cv_os_type="AuroraUX" |
| 3770 | llvm_cv_platform_type="Unix" ;; |
| 3771 | *-*-win32*) |
| 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="Win32" |
| 3775 | llvm_cv_platform_type="Win32" ;; |
| 3776 | *-*-mingw*) |
| 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="MingW" |
| 3780 | llvm_cv_platform_type="Win32" ;; |
| 3781 | *-*-haiku*) |
| 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="Haiku" |
| 3785 | llvm_cv_platform_type="Unix" ;; |
| 3786 | *-unknown-eabi*) |
| 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 | *-unknown-elf*) |
| 3792 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3793 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3794 | llvm_cv_os_type="Freestanding" |
| 3795 | llvm_cv_platform_type="Unix" ;; |
| 3796 | *) |
| 3797 | llvm_cv_link_all_option="" |
| 3798 | llvm_cv_no_link_all_option="" |
| 3799 | llvm_cv_os_type="Unknown" |
| 3800 | llvm_cv_platform_type="Unknown" ;; |
| 3801 | esac |
| 3802 | fi |
| 3803 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3804 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3805 | |
| 3806 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3807 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3808 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3810 | else |
| 3811 | case $target in |
| 3812 | *-*-aix*) |
| 3813 | llvm_cv_target_os_type="AIX" ;; |
| 3814 | *-*-irix*) |
| 3815 | llvm_cv_target_os_type="IRIX" ;; |
| 3816 | *-*-cygwin*) |
| 3817 | llvm_cv_target_os_type="Cygwin" ;; |
| 3818 | *-*-darwin*) |
| 3819 | llvm_cv_target_os_type="Darwin" ;; |
| 3820 | *-*-minix*) |
| 3821 | llvm_cv_target_os_type="Minix" ;; |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 3822 | *-*-freebsd* | *-*-kfreebsd-gnu) |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3823 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3824 | *-*-openbsd*) |
| 3825 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3826 | *-*-netbsd*) |
| 3827 | llvm_cv_target_os_type="NetBSD" ;; |
| 3828 | *-*-dragonfly*) |
| 3829 | llvm_cv_target_os_type="DragonFly" ;; |
| 3830 | *-*-hpux*) |
| 3831 | llvm_cv_target_os_type="HP-UX" ;; |
| 3832 | *-*-interix*) |
| 3833 | llvm_cv_target_os_type="Interix" ;; |
| 3834 | *-*-linux*) |
| 3835 | llvm_cv_target_os_type="Linux" ;; |
Sylvestre Ledru | 703bf84 | 2012-04-05 19:34:15 +0000 | [diff] [blame] | 3836 | *-*-gnu*) |
| 3837 | llvm_cv_target_os_type="GNU" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3838 | *-*-solaris*) |
| 3839 | llvm_cv_target_os_type="SunOS" ;; |
| 3840 | *-*-auroraux*) |
| 3841 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3842 | *-*-win32*) |
| 3843 | llvm_cv_target_os_type="Win32" ;; |
| 3844 | *-*-mingw*) |
| 3845 | llvm_cv_target_os_type="MingW" ;; |
| 3846 | *-*-haiku*) |
| 3847 | llvm_cv_target_os_type="Haiku" ;; |
| 3848 | *-*-rtems*) |
| 3849 | llvm_cv_target_os_type="RTEMS" ;; |
| 3850 | *-*-nacl*) |
| 3851 | llvm_cv_target_os_type="NativeClient" ;; |
| 3852 | *-unknown-eabi*) |
| 3853 | llvm_cv_target_os_type="Freestanding" ;; |
| 3854 | *) |
| 3855 | llvm_cv_target_os_type="Unknown" ;; |
| 3856 | esac |
| 3857 | fi |
| 3858 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3859 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3860 | |
| 3861 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3862 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3863 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3864 | { (exit 1); exit 1; }; } |
| 3865 | fi |
| 3866 | |
| 3867 | OS=$llvm_cv_os_type |
| 3868 | |
| 3869 | HOST_OS=$llvm_cv_os_type |
| 3870 | |
| 3871 | TARGET_OS=$llvm_cv_target_os_type |
| 3872 | |
| 3873 | |
| 3874 | LINKALL=$llvm_cv_link_all_option |
| 3875 | |
| 3876 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3877 | |
| 3878 | |
| 3879 | case $llvm_cv_platform_type in |
| 3880 | Unix) |
| 3881 | |
| 3882 | cat >>confdefs.h <<\_ACEOF |
| 3883 | #define LLVM_ON_UNIX 1 |
| 3884 | _ACEOF |
| 3885 | |
| 3886 | LLVM_ON_UNIX=1 |
| 3887 | |
| 3888 | LLVM_ON_WIN32=0 |
| 3889 | |
| 3890 | ;; |
| 3891 | Win32) |
| 3892 | |
| 3893 | cat >>confdefs.h <<\_ACEOF |
| 3894 | #define LLVM_ON_WIN32 1 |
| 3895 | _ACEOF |
| 3896 | |
| 3897 | LLVM_ON_UNIX=0 |
| 3898 | |
| 3899 | LLVM_ON_WIN32=1 |
| 3900 | |
| 3901 | ;; |
| 3902 | esac |
| 3903 | |
| 3904 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3905 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3906 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3908 | else |
| 3909 | case $target in |
| 3910 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3911 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3912 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3913 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3914 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Simon Atanasyan | 4830ccf | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 3915 | mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; |
| 3916 | mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3917 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3918 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 3919 | hexagon-*) llvm_cv_target_arch="Hexagon" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3920 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 3921 | nvptx-*) llvm_cv_target_arch="NVPTX" ;; |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3922 | *) llvm_cv_target_arch="Unknown" ;; |
| 3923 | esac |
| 3924 | fi |
| 3925 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3926 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3927 | |
| 3928 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3929 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3930 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3931 | fi |
| 3932 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3933 | case "$llvm_cv_target_arch" in |
| 3934 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3935 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3936 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3937 | esac |
| 3938 | |
| 3939 | ARCH=$llvm_cv_target_arch |
| 3940 | |
| 3941 | |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3942 | case $host in |
| 3943 | i?86-*) host_arch="x86" ;; |
| 3944 | amd64-* | x86_64-*) host_arch="x86_64" ;; |
| 3945 | sparc*-*) host_arch="Sparc" ;; |
| 3946 | powerpc*-*) host_arch="PowerPC" ;; |
| 3947 | arm*-*) host_arch="ARM" ;; |
Simon Atanasyan | 4830ccf | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 3948 | mips-* | mips64-*) host_arch="Mips" ;; |
| 3949 | mipsel-* | mips64el-*) host_arch="Mips" ;; |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3950 | xcore-*) host_arch="XCore" ;; |
| 3951 | msp430-*) host_arch="MSP430" ;; |
| 3952 | hexagon-*) host_arch="Hexagon" ;; |
| 3953 | mblaze-*) host_arch="MBlaze" ;; |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 3954 | *) host_arch="Unknown" ;; |
| 3955 | esac |
| 3956 | |
| 3957 | if test "$host_arch" = "Unknown" ; then |
| 3958 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 |
| 3959 | echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} |
| 3960 | fi |
| 3961 | |
| 3962 | HOST_ARCH=$host_arch |
| 3963 | |
| 3964 | |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 3965 | |
| 3966 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3967 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3968 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3969 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3971 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3972 | # Extract the first word of "grep ggrep" to use in msg output |
| 3973 | if test -z "$GREP"; then |
| 3974 | set dummy grep ggrep; ac_prog_name=$2 |
| 3975 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3977 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3978 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3979 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3981 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3982 | do |
| 3983 | IFS=$as_save_IFS |
| 3984 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3985 | for ac_prog in grep ggrep; do |
| 3986 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3987 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3988 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3989 | # 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] | 3990 | # Check for GNU $ac_path_GREP |
| 3991 | case `"$ac_path_GREP" --version 2>&1` in |
| 3992 | *GNU*) |
| 3993 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3994 | *) |
| 3995 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3996 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3997 | while : |
| 3998 | do |
| 3999 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4000 | mv "conftest.tmp" "conftest.in" |
| 4001 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4002 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4003 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4004 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4005 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4006 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4007 | # Best one so far, save it but keep looking for a better one |
| 4008 | ac_cv_path_GREP="$ac_path_GREP" |
| 4009 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4011 | # 10*(2^10) chars as input seems more than enough |
| 4012 | test $ac_count -gt 10 && break |
| 4013 | done |
| 4014 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4015 | esac |
| 4016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4017 | |
| 4018 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4019 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4020 | done |
| 4021 | |
| 4022 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4023 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4024 | |
| 4025 | |
| 4026 | fi |
| 4027 | |
| 4028 | GREP="$ac_cv_path_GREP" |
| 4029 | if test -z "$GREP"; then |
| 4030 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4031 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4032 | { (exit 1); exit 1; }; } |
| 4033 | fi |
| 4034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4035 | else |
| 4036 | ac_cv_path_GREP=$GREP |
| 4037 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 4038 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4041 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4042 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4043 | GREP="$ac_cv_path_GREP" |
| 4044 | |
| 4045 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4046 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4047 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4048 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4050 | else |
| 4051 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4052 | then ac_cv_path_EGREP="$GREP -E" |
| 4053 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4054 | # Extract the first word of "egrep" to use in msg output |
| 4055 | if test -z "$EGREP"; then |
| 4056 | set dummy egrep; ac_prog_name=$2 |
| 4057 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4059 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4060 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4061 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4063 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4064 | do |
| 4065 | IFS=$as_save_IFS |
| 4066 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4067 | for ac_prog in egrep; do |
| 4068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4069 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4070 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4071 | # 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] | 4072 | # Check for GNU $ac_path_EGREP |
| 4073 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4074 | *GNU*) |
| 4075 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4076 | *) |
| 4077 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4078 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4079 | while : |
| 4080 | do |
| 4081 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4082 | mv "conftest.tmp" "conftest.in" |
| 4083 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4084 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4085 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4086 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4087 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4088 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4089 | # Best one so far, save it but keep looking for a better one |
| 4090 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4091 | ac_path_EGREP_max=$ac_count |
| 4092 | fi |
| 4093 | # 10*(2^10) chars as input seems more than enough |
| 4094 | test $ac_count -gt 10 && break |
| 4095 | done |
| 4096 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4097 | esac |
| 4098 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4099 | |
| 4100 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4101 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4102 | done |
| 4103 | |
| 4104 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4105 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4106 | |
| 4107 | |
| 4108 | fi |
| 4109 | |
| 4110 | EGREP="$ac_cv_path_EGREP" |
| 4111 | if test -z "$EGREP"; then |
| 4112 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4113 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4114 | { (exit 1); exit 1; }; } |
| 4115 | fi |
| 4116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4117 | else |
| 4118 | ac_cv_path_EGREP=$EGREP |
| 4119 | fi |
| 4120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4122 | fi |
| 4123 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4124 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4125 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4126 | EGREP="$ac_cv_path_EGREP" |
| 4127 | |
| 4128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4129 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4130 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4131 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4134 | cat >conftest.$ac_ext <<_ACEOF |
| 4135 | /* confdefs.h. */ |
| 4136 | _ACEOF |
| 4137 | cat confdefs.h >>conftest.$ac_ext |
| 4138 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4139 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4140 | #include <stdlib.h> |
| 4141 | #include <stdarg.h> |
| 4142 | #include <string.h> |
| 4143 | #include <float.h> |
| 4144 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4145 | int |
| 4146 | main () |
| 4147 | { |
| 4148 | |
| 4149 | ; |
| 4150 | return 0; |
| 4151 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4152 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4153 | rm -f conftest.$ac_objext |
| 4154 | if { (ac_try="$ac_compile" |
| 4155 | case "(($ac_try" in |
| 4156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 | *) ac_try_echo=$ac_try;; |
| 4158 | esac |
| 4159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4160 | (eval "$ac_compile") 2>conftest.er1 |
| 4161 | ac_status=$? |
| 4162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4163 | rm -f conftest.er1 |
| 4164 | cat conftest.err >&5 |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); } && |
| 4167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4168 | { (case "(($ac_try" in |
| 4169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4170 | *) ac_try_echo=$ac_try;; |
| 4171 | esac |
| 4172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4173 | (eval "$ac_try") 2>&5 |
| 4174 | ac_status=$? |
| 4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4176 | (exit $ac_status); }; } && |
| 4177 | { ac_try='test -s conftest.$ac_objext' |
| 4178 | { (case "(($ac_try" in |
| 4179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4180 | *) ac_try_echo=$ac_try;; |
| 4181 | esac |
| 4182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4183 | (eval "$ac_try") 2>&5 |
| 4184 | ac_status=$? |
| 4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4186 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4187 | ac_cv_header_stdc=yes |
| 4188 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4189 | echo "$as_me: failed program was:" >&5 |
| 4190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4191 | |
| 4192 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4193 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4196 | |
| 4197 | if test $ac_cv_header_stdc = yes; then |
| 4198 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4199 | cat >conftest.$ac_ext <<_ACEOF |
| 4200 | /* confdefs.h. */ |
| 4201 | _ACEOF |
| 4202 | cat confdefs.h >>conftest.$ac_ext |
| 4203 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4204 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4205 | #include <string.h> |
| 4206 | |
| 4207 | _ACEOF |
| 4208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4209 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4210 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4211 | else |
| 4212 | ac_cv_header_stdc=no |
| 4213 | fi |
| 4214 | rm -f conftest* |
| 4215 | |
| 4216 | fi |
| 4217 | |
| 4218 | if test $ac_cv_header_stdc = yes; then |
| 4219 | # 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] | 4220 | cat >conftest.$ac_ext <<_ACEOF |
| 4221 | /* confdefs.h. */ |
| 4222 | _ACEOF |
| 4223 | cat confdefs.h >>conftest.$ac_ext |
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4225 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4226 | #include <stdlib.h> |
| 4227 | |
| 4228 | _ACEOF |
| 4229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4230 | $EGREP "free" >/dev/null 2>&1; then |
| 4231 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4232 | else |
| 4233 | ac_cv_header_stdc=no |
| 4234 | fi |
| 4235 | rm -f conftest* |
| 4236 | |
| 4237 | fi |
| 4238 | |
| 4239 | if test $ac_cv_header_stdc = yes; then |
| 4240 | # /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] | 4241 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4242 | : |
| 4243 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4244 | cat >conftest.$ac_ext <<_ACEOF |
| 4245 | /* confdefs.h. */ |
| 4246 | _ACEOF |
| 4247 | cat confdefs.h >>conftest.$ac_ext |
| 4248 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4249 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4250 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4251 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4252 | #if ((' ' & 0x0FF) == 0x020) |
| 4253 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4254 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4255 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4256 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4257 | (('a' <= (c) && (c) <= 'i') \ |
| 4258 | || ('j' <= (c) && (c) <= 'r') \ |
| 4259 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4260 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4261 | #endif |
| 4262 | |
| 4263 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4264 | int |
| 4265 | main () |
| 4266 | { |
| 4267 | int i; |
| 4268 | for (i = 0; i < 256; i++) |
| 4269 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 4270 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4271 | return 2; |
| 4272 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4273 | } |
| 4274 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4275 | rm -f conftest$ac_exeext |
| 4276 | if { (ac_try="$ac_link" |
| 4277 | case "(($ac_try" in |
| 4278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4279 | *) ac_try_echo=$ac_try;; |
| 4280 | esac |
| 4281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4282 | (eval "$ac_link") 2>&5 |
| 4283 | ac_status=$? |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4286 | { (case "(($ac_try" in |
| 4287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4288 | *) ac_try_echo=$ac_try;; |
| 4289 | esac |
| 4290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4291 | (eval "$ac_try") 2>&5 |
| 4292 | ac_status=$? |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); }; }; then |
| 4295 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4296 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4297 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4298 | echo "$as_me: failed program was:" >&5 |
| 4299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4300 | |
| 4301 | ( exit $ac_status ) |
| 4302 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4303 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4304 | 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] | 4305 | fi |
| 4306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4307 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4308 | fi |
| 4309 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4310 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4311 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4312 | if test $ac_cv_header_stdc = yes; then |
| 4313 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4314 | cat >>confdefs.h <<\_ACEOF |
| 4315 | #define STDC_HEADERS 1 |
| 4316 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4317 | |
| 4318 | fi |
| 4319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4320 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4330 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4331 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4332 | do |
| 4333 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4336 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4338 | else |
| 4339 | cat >conftest.$ac_ext <<_ACEOF |
| 4340 | /* confdefs.h. */ |
| 4341 | _ACEOF |
| 4342 | cat confdefs.h >>conftest.$ac_ext |
| 4343 | cat >>conftest.$ac_ext <<_ACEOF |
| 4344 | /* end confdefs.h. */ |
| 4345 | $ac_includes_default |
| 4346 | |
| 4347 | #include <$ac_header> |
| 4348 | _ACEOF |
| 4349 | rm -f conftest.$ac_objext |
| 4350 | if { (ac_try="$ac_compile" |
| 4351 | case "(($ac_try" in |
| 4352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4353 | *) ac_try_echo=$ac_try;; |
| 4354 | esac |
| 4355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4356 | (eval "$ac_compile") 2>conftest.er1 |
| 4357 | ac_status=$? |
| 4358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4359 | rm -f conftest.er1 |
| 4360 | cat conftest.err >&5 |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); } && |
| 4363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4364 | { (case "(($ac_try" in |
| 4365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4366 | *) ac_try_echo=$ac_try;; |
| 4367 | esac |
| 4368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4369 | (eval "$ac_try") 2>&5 |
| 4370 | ac_status=$? |
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4372 | (exit $ac_status); }; } && |
| 4373 | { ac_try='test -s conftest.$ac_objext' |
| 4374 | { (case "(($ac_try" in |
| 4375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4376 | *) ac_try_echo=$ac_try;; |
| 4377 | esac |
| 4378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4379 | (eval "$ac_try") 2>&5 |
| 4380 | ac_status=$? |
| 4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4382 | (exit $ac_status); }; }; then |
| 4383 | eval "$as_ac_Header=yes" |
| 4384 | else |
| 4385 | echo "$as_me: failed program was:" >&5 |
| 4386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4387 | |
| 4388 | eval "$as_ac_Header=no" |
| 4389 | fi |
| 4390 | |
| 4391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4392 | fi |
| 4393 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4395 | echo "${ECHO_T}$ac_res" >&6; } |
| 4396 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4397 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4398 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4399 | _ACEOF |
| 4400 | |
| 4401 | fi |
| 4402 | |
| 4403 | done |
| 4404 | |
| 4405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4406 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4407 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4408 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4411 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4412 | cat >conftest.$ac_ext <<_ACEOF |
| 4413 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4414 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4415 | cat confdefs.h >>conftest.$ac_ext |
| 4416 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4417 | /* end confdefs.h. */ |
| 4418 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4420 | |
| 4421 | int |
| 4422 | main () |
| 4423 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4424 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4425 | bogus endian macros |
| 4426 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4427 | |
| 4428 | ; |
| 4429 | return 0; |
| 4430 | } |
| 4431 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4432 | rm -f conftest.$ac_objext |
| 4433 | if { (ac_try="$ac_compile" |
| 4434 | case "(($ac_try" in |
| 4435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4436 | *) ac_try_echo=$ac_try;; |
| 4437 | esac |
| 4438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4439 | (eval "$ac_compile") 2>conftest.er1 |
| 4440 | ac_status=$? |
| 4441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4442 | rm -f conftest.er1 |
| 4443 | cat conftest.err >&5 |
| 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4445 | (exit $ac_status); } && |
| 4446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4447 | { (case "(($ac_try" in |
| 4448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4449 | *) ac_try_echo=$ac_try;; |
| 4450 | esac |
| 4451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4452 | (eval "$ac_try") 2>&5 |
| 4453 | ac_status=$? |
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4455 | (exit $ac_status); }; } && |
| 4456 | { ac_try='test -s conftest.$ac_objext' |
| 4457 | { (case "(($ac_try" in |
| 4458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4459 | *) ac_try_echo=$ac_try;; |
| 4460 | esac |
| 4461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4462 | (eval "$ac_try") 2>&5 |
| 4463 | ac_status=$? |
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4466 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4467 | cat >conftest.$ac_ext <<_ACEOF |
| 4468 | /* confdefs.h. */ |
| 4469 | _ACEOF |
| 4470 | cat confdefs.h >>conftest.$ac_ext |
| 4471 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4472 | /* end confdefs.h. */ |
| 4473 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4474 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4475 | |
| 4476 | int |
| 4477 | main () |
| 4478 | { |
| 4479 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4480 | not big endian |
| 4481 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4482 | |
| 4483 | ; |
| 4484 | return 0; |
| 4485 | } |
| 4486 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4487 | rm -f conftest.$ac_objext |
| 4488 | if { (ac_try="$ac_compile" |
| 4489 | case "(($ac_try" in |
| 4490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4491 | *) ac_try_echo=$ac_try;; |
| 4492 | esac |
| 4493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4494 | (eval "$ac_compile") 2>conftest.er1 |
| 4495 | ac_status=$? |
| 4496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4497 | rm -f conftest.er1 |
| 4498 | cat conftest.err >&5 |
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 | (exit $ac_status); } && |
| 4501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4502 | { (case "(($ac_try" in |
| 4503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4504 | *) ac_try_echo=$ac_try;; |
| 4505 | esac |
| 4506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4507 | (eval "$ac_try") 2>&5 |
| 4508 | ac_status=$? |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); }; } && |
| 4511 | { ac_try='test -s conftest.$ac_objext' |
| 4512 | { (case "(($ac_try" in |
| 4513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4514 | *) ac_try_echo=$ac_try;; |
| 4515 | esac |
| 4516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4517 | (eval "$ac_try") 2>&5 |
| 4518 | ac_status=$? |
| 4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4520 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4521 | ac_cv_c_bigendian=yes |
| 4522 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4523 | echo "$as_me: failed program was:" >&5 |
| 4524 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4526 | ac_cv_c_bigendian=no |
| 4527 | fi |
| 4528 | |
| 4529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4530 | else |
| 4531 | echo "$as_me: failed program was:" >&5 |
| 4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4533 | |
| 4534 | # It does not; compile a test program. |
| 4535 | if test "$cross_compiling" = yes; then |
| 4536 | # try to guess the endianness by grepping values into an object file |
| 4537 | ac_cv_c_bigendian=unknown |
| 4538 | cat >conftest.$ac_ext <<_ACEOF |
| 4539 | /* confdefs.h. */ |
| 4540 | _ACEOF |
| 4541 | cat confdefs.h >>conftest.$ac_ext |
| 4542 | cat >>conftest.$ac_ext <<_ACEOF |
| 4543 | /* end confdefs.h. */ |
| 4544 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4545 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4546 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4547 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4548 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4549 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4550 | int |
| 4551 | main () |
| 4552 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4553 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4554 | ; |
| 4555 | return 0; |
| 4556 | } |
| 4557 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4558 | rm -f conftest.$ac_objext |
| 4559 | if { (ac_try="$ac_compile" |
| 4560 | case "(($ac_try" in |
| 4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4562 | *) ac_try_echo=$ac_try;; |
| 4563 | esac |
| 4564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4565 | (eval "$ac_compile") 2>conftest.er1 |
| 4566 | ac_status=$? |
| 4567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4568 | rm -f conftest.er1 |
| 4569 | cat conftest.err >&5 |
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4571 | (exit $ac_status); } && |
| 4572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4573 | { (case "(($ac_try" in |
| 4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4575 | *) ac_try_echo=$ac_try;; |
| 4576 | esac |
| 4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4578 | (eval "$ac_try") 2>&5 |
| 4579 | ac_status=$? |
| 4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4581 | (exit $ac_status); }; } && |
| 4582 | { ac_try='test -s conftest.$ac_objext' |
| 4583 | { (case "(($ac_try" in |
| 4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4585 | *) ac_try_echo=$ac_try;; |
| 4586 | esac |
| 4587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4588 | (eval "$ac_try") 2>&5 |
| 4589 | ac_status=$? |
| 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4591 | (exit $ac_status); }; }; then |
| 4592 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4593 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4594 | fi |
| 4595 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4596 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4597 | ac_cv_c_bigendian=no |
| 4598 | else |
| 4599 | # finding both strings is unlikely to happen, but who knows? |
| 4600 | ac_cv_c_bigendian=unknown |
| 4601 | fi |
| 4602 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4603 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4604 | echo "$as_me: failed program was:" >&5 |
| 4605 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4607 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4608 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4611 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4612 | cat >conftest.$ac_ext <<_ACEOF |
| 4613 | /* confdefs.h. */ |
| 4614 | _ACEOF |
| 4615 | cat confdefs.h >>conftest.$ac_ext |
| 4616 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4617 | /* end confdefs.h. */ |
| 4618 | $ac_includes_default |
| 4619 | int |
| 4620 | main () |
| 4621 | { |
| 4622 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4623 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4624 | union |
| 4625 | { |
| 4626 | long int l; |
| 4627 | char c[sizeof (long int)]; |
| 4628 | } u; |
| 4629 | u.l = 1; |
| 4630 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4631 | |
| 4632 | ; |
| 4633 | return 0; |
| 4634 | } |
| 4635 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4636 | rm -f conftest$ac_exeext |
| 4637 | if { (ac_try="$ac_link" |
| 4638 | case "(($ac_try" in |
| 4639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4640 | *) ac_try_echo=$ac_try;; |
| 4641 | esac |
| 4642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4643 | (eval "$ac_link") 2>&5 |
| 4644 | ac_status=$? |
| 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4647 | { (case "(($ac_try" in |
| 4648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4649 | *) ac_try_echo=$ac_try;; |
| 4650 | esac |
| 4651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4652 | (eval "$ac_try") 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4656 | ac_cv_c_bigendian=no |
| 4657 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4659 | echo "$as_me: failed program was:" >&5 |
| 4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4661 | |
| 4662 | ( exit $ac_status ) |
| 4663 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4664 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4665 | 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] | 4666 | fi |
| 4667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4669 | fi |
| 4670 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4672 | fi |
| 4673 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4674 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4675 | case $ac_cv_c_bigendian in |
| 4676 | yes) |
| 4677 | ENDIAN=big |
| 4678 | ;; |
| 4679 | no) |
| 4680 | ENDIAN=little |
| 4681 | ;; |
| 4682 | *) |
| 4683 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4684 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4685 | echo "$as_me: error: unknown endianness |
| 4686 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4687 | { (exit 1); exit 1; }; } ;; |
| 4688 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4689 | |
| 4690 | |
| 4691 | if test "$cross_compiling" = yes; then |
| 4692 | LLVM_CROSS_COMPILING=1 |
| 4693 | |
| 4694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4695 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4696 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4697 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4699 | else |
| 4700 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4701 | ac_cv_build_exeext=.exe |
| 4702 | else |
| 4703 | ac_build_prefix=${build_alias}- |
| 4704 | |
| 4705 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4706 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4709 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4711 | else |
| 4712 | if test -n "$BUILD_CC"; then |
| 4713 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4714 | else |
| 4715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4716 | for as_dir in $PATH |
| 4717 | do |
| 4718 | IFS=$as_save_IFS |
| 4719 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4721 | 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] | 4722 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4723 | 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] | 4724 | break 2 |
| 4725 | fi |
| 4726 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4727 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4728 | IFS=$as_save_IFS |
| 4729 | |
| 4730 | fi |
| 4731 | fi |
| 4732 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4733 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4735 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4736 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4737 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4738 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4739 | fi |
| 4740 | |
| 4741 | |
| 4742 | if test -z "$BUILD_CC"; then |
| 4743 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4744 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4747 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4749 | else |
| 4750 | if test -n "$BUILD_CC"; then |
| 4751 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4752 | else |
| 4753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4754 | for as_dir in $PATH |
| 4755 | do |
| 4756 | IFS=$as_save_IFS |
| 4757 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4758 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4759 | 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] | 4760 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4761 | 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] | 4762 | break 2 |
| 4763 | fi |
| 4764 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4765 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4766 | IFS=$as_save_IFS |
| 4767 | |
| 4768 | fi |
| 4769 | fi |
| 4770 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4771 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4772 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4773 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4774 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4775 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4776 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4777 | fi |
| 4778 | |
| 4779 | |
| 4780 | if test -z "$BUILD_CC"; then |
| 4781 | # Extract the first word of "cc", so it can be a program name with args. |
| 4782 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4783 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4785 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4787 | else |
| 4788 | if test -n "$BUILD_CC"; then |
| 4789 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4790 | else |
| 4791 | ac_prog_rejected=no |
| 4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4793 | for as_dir in $PATH |
| 4794 | do |
| 4795 | IFS=$as_save_IFS |
| 4796 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4797 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4798 | 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] | 4799 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4800 | ac_prog_rejected=yes |
| 4801 | continue |
| 4802 | fi |
| 4803 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4804 | 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] | 4805 | break 2 |
| 4806 | fi |
| 4807 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4808 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4809 | IFS=$as_save_IFS |
| 4810 | |
| 4811 | if test $ac_prog_rejected = yes; then |
| 4812 | # We found a bogon in the path, so make sure we never use it. |
| 4813 | set dummy $ac_cv_prog_BUILD_CC |
| 4814 | shift |
| 4815 | if test $# != 0; then |
| 4816 | # We chose a different compiler from the bogus one. |
| 4817 | # However, it has the same basename, so the bogon will be chosen |
| 4818 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4819 | shift |
| 4820 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4821 | fi |
| 4822 | fi |
| 4823 | fi |
| 4824 | fi |
| 4825 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4826 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4827 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4828 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4829 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4830 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4831 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4832 | fi |
| 4833 | |
| 4834 | |
| 4835 | fi |
| 4836 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4837 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4838 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4839 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4840 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4841 | rm -f conftest* |
| 4842 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4843 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4844 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4845 | (eval $ac_build_link) 2>&5 |
| 4846 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4848 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4849 | for file in conftest.*; do |
| 4850 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4851 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4852 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4853 | esac |
| 4854 | done |
| 4855 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4856 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4857 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4858 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4859 | fi |
| 4860 | rm -f conftest* |
| 4861 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4862 | fi |
| 4863 | fi |
| 4864 | |
| 4865 | BUILD_EXEEXT="" |
| 4866 | 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] | 4867 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4868 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4869 | ac_build_exeext=$BUILD_EXEEXT |
| 4870 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4871 | ac_build_prefix=${build_alias}- |
| 4872 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4873 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4876 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4878 | else |
| 4879 | if test -n "$BUILD_CXX"; then |
| 4880 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4881 | else |
| 4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4883 | for as_dir in $PATH |
| 4884 | do |
| 4885 | IFS=$as_save_IFS |
| 4886 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4888 | 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] | 4889 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4890 | 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] | 4891 | break 2 |
| 4892 | fi |
| 4893 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4894 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4895 | IFS=$as_save_IFS |
| 4896 | |
| 4897 | fi |
| 4898 | fi |
| 4899 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4900 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4901 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4902 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4903 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4904 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4905 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4906 | fi |
| 4907 | |
| 4908 | |
| 4909 | if test -z "$BUILD_CXX"; then |
| 4910 | # Extract the first word of "g++", so it can be a program name with args. |
| 4911 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4912 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4914 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4916 | else |
| 4917 | if test -n "$BUILD_CXX"; then |
| 4918 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4919 | else |
| 4920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4921 | for as_dir in $PATH |
| 4922 | do |
| 4923 | IFS=$as_save_IFS |
| 4924 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4926 | 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] | 4927 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4928 | 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] | 4929 | break 2 |
| 4930 | fi |
| 4931 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4932 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4933 | IFS=$as_save_IFS |
| 4934 | |
| 4935 | fi |
| 4936 | fi |
| 4937 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4938 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4939 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4940 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4942 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4943 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4944 | fi |
| 4945 | |
| 4946 | |
| 4947 | if test -z "$BUILD_CXX"; then |
| 4948 | # Extract the first word of "c++", so it can be a program name with args. |
| 4949 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4952 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4954 | else |
| 4955 | if test -n "$BUILD_CXX"; then |
| 4956 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4957 | else |
| 4958 | ac_prog_rejected=no |
| 4959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4960 | for as_dir in $PATH |
| 4961 | do |
| 4962 | IFS=$as_save_IFS |
| 4963 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4965 | 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] | 4966 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4967 | ac_prog_rejected=yes |
| 4968 | continue |
| 4969 | fi |
| 4970 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4971 | 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] | 4972 | break 2 |
| 4973 | fi |
| 4974 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4975 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4976 | IFS=$as_save_IFS |
| 4977 | |
| 4978 | if test $ac_prog_rejected = yes; then |
| 4979 | # We found a bogon in the path, so make sure we never use it. |
| 4980 | set dummy $ac_cv_prog_BUILD_CXX |
| 4981 | shift |
| 4982 | if test $# != 0; then |
| 4983 | # We chose a different compiler from the bogus one. |
| 4984 | # However, it has the same basename, so the bogon will be chosen |
| 4985 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4986 | shift |
| 4987 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4988 | fi |
| 4989 | fi |
| 4990 | fi |
| 4991 | fi |
| 4992 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4993 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4994 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4995 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4996 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4997 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4998 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4999 | fi |
| 5000 | |
| 5001 | |
| 5002 | fi |
| 5003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5004 | else |
| 5005 | LLVM_CROSS_COMPILING=0 |
| 5006 | |
| 5007 | fi |
| 5008 | |
Dan Gohman | 56fb5f9 | 2010-08-04 16:25:01 +0000 | [diff] [blame] | 5009 | 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] | 5010 | cvsbuild="yes" |
| 5011 | optimize="no" |
| 5012 | CVSBUILD=CVSBUILD=1 |
| 5013 | |
| 5014 | else |
| 5015 | cvsbuild="no" |
| 5016 | optimize="yes" |
| 5017 | fi |
| 5018 | |
| 5019 | |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 5020 | # Check whether --enable-libcpp was given. |
| 5021 | if test "${enable_libcpp+set}" = set; then |
| 5022 | enableval=$enable_libcpp; |
| 5023 | else |
| 5024 | enableval=default |
| 5025 | fi |
| 5026 | |
| 5027 | case "$enableval" in |
| 5028 | yes) ENABLE_LIBCPP=1 |
| 5029 | ;; |
| 5030 | no) ENABLE_LIBCPP=0 |
| 5031 | ;; |
| 5032 | default) ENABLE_LIBCPP=0 |
| 5033 | ;; |
| 5034 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 |
| 5035 | echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} |
| 5036 | { (exit 1); exit 1; }; } ;; |
| 5037 | esac |
| 5038 | |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 5039 | # Check whether --enable-cxx11 was given. |
| 5040 | if test "${enable_cxx11+set}" = set; then |
| 5041 | enableval=$enable_cxx11; |
| 5042 | else |
| 5043 | enableval=default |
| 5044 | fi |
| 5045 | |
| 5046 | case "$enableval" in |
| 5047 | yes) ENABLE_CXX11=1 |
| 5048 | ;; |
| 5049 | no) ENABLE_CXX11=0 |
| 5050 | ;; |
| 5051 | default) ENABLE_CXX11=0 |
| 5052 | ;; |
| 5053 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 |
| 5054 | echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} |
| 5055 | { (exit 1); exit 1; }; } ;; |
| 5056 | esac |
| 5057 | |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 5058 | clang_arcmt="yes" |
| 5059 | # Check whether --enable-clang-arcmt was given. |
| 5060 | if test "${enable_clang_arcmt+set}" = set; then |
| 5061 | enableval=$enable_clang_arcmt; clang_arcmt="$enableval" |
| 5062 | else |
| 5063 | enableval="yes" |
| 5064 | fi |
| 5065 | |
| 5066 | case "$enableval" in |
| 5067 | yes) ENABLE_CLANG_ARCMT=1 |
| 5068 | ;; |
| 5069 | no) ENABLE_CLANG_ARCMT=0 |
| 5070 | ;; |
| 5071 | default) ENABLE_CLANG_ARCMT=1 |
| 5072 | ;; |
| 5073 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 |
| 5074 | echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} |
| 5075 | { (exit 1); exit 1; }; } ;; |
| 5076 | esac |
| 5077 | |
| 5078 | clang_static_analyzer="yes" |
| 5079 | # Check whether --enable-clang-static-analyzer was given. |
| 5080 | if test "${enable_clang_static_analyzer+set}" = set; then |
| 5081 | enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" |
| 5082 | else |
| 5083 | enableval="yes" |
| 5084 | fi |
| 5085 | |
| 5086 | case "$enableval" in |
| 5087 | yes) ENABLE_CLANG_STATIC_ANALYZER=1 |
| 5088 | ;; |
| 5089 | no) ENABLE_CLANG_STATIC_ANALYZER=0 |
| 5090 | ;; |
| 5091 | default) ENABLE_CLANG_STATIC_ANALYZER=1 |
| 5092 | ;; |
| 5093 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 |
| 5094 | echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} |
| 5095 | { (exit 1); exit 1; }; } ;; |
| 5096 | esac |
| 5097 | |
| 5098 | # Check whether --enable-clang-rewriter was given. |
| 5099 | if test "${enable_clang_rewriter+set}" = set; then |
| 5100 | enableval=$enable_clang_rewriter; |
| 5101 | else |
| 5102 | enableval="yes" |
| 5103 | fi |
| 5104 | |
| 5105 | case "$enableval" in |
| 5106 | yes) ENABLE_CLANG_REWRITER=1 |
| 5107 | ;; |
| 5108 | no) |
Benjamin Kramer | 23c5021 | 2012-12-26 10:48:49 +0000 | [diff] [blame] | 5109 | if test ${clang_arcmt} != "no" ; then |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 5110 | { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 |
| 5111 | echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} |
| 5112 | { (exit 1); exit 1; }; } |
| 5113 | fi |
Benjamin Kramer | 23c5021 | 2012-12-26 10:48:49 +0000 | [diff] [blame] | 5114 | if test ${clang_static_analyzer} != "no" ; then |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 5115 | { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 |
| 5116 | echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} |
| 5117 | { (exit 1); exit 1; }; } |
| 5118 | fi |
| 5119 | ENABLE_CLANG_REWRITER=0 |
| 5120 | |
| 5121 | ;; |
| 5122 | default) ENABLE_CLANG_REWRITER=1 |
| 5123 | ;; |
| 5124 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 |
| 5125 | echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} |
| 5126 | { (exit 1); exit 1; }; } ;; |
| 5127 | esac |
| 5128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5129 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5130 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5131 | enableval=$enable_optimized; |
| 5132 | else |
| 5133 | enableval=$optimize |
| 5134 | fi |
| 5135 | |
| 5136 | if test ${enableval} = "no" ; then |
| 5137 | ENABLE_OPTIMIZED= |
| 5138 | |
| 5139 | else |
| 5140 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 5141 | |
| 5142 | fi |
| 5143 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5144 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5145 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 5146 | enableval=$enable_profiling; |
| 5147 | else |
| 5148 | enableval="no" |
| 5149 | fi |
| 5150 | |
| 5151 | if test ${enableval} = "no" ; then |
| 5152 | ENABLE_PROFILING= |
| 5153 | |
| 5154 | else |
| 5155 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 5156 | |
| 5157 | fi |
| 5158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5159 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5160 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5161 | enableval=$enable_assertions; |
| 5162 | else |
| 5163 | enableval="yes" |
| 5164 | fi |
| 5165 | |
| 5166 | if test ${enableval} = "yes" ; then |
| 5167 | DISABLE_ASSERTIONS= |
| 5168 | |
| 5169 | else |
| 5170 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 5171 | |
| 5172 | fi |
| 5173 | |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 5174 | # Check whether --enable-werror was given. |
| 5175 | if test "${enable_werror+set}" = set; then |
| 5176 | enableval=$enable_werror; |
| 5177 | else |
| 5178 | enableval="no" |
| 5179 | fi |
| 5180 | |
| 5181 | case "$enableval" in |
| 5182 | yes) ENABLE_WERROR=1 |
| 5183 | ;; |
| 5184 | no) ENABLE_WERROR=0 |
| 5185 | ;; |
| 5186 | default) ENABLE_WERROR=0 |
| 5187 | ;; |
| 5188 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 |
| 5189 | echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} |
| 5190 | { (exit 1); exit 1; }; } ;; |
| 5191 | esac |
| 5192 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5193 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5194 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 5195 | enableval=$enable_expensive_checks; |
| 5196 | else |
| 5197 | enableval="no" |
| 5198 | fi |
| 5199 | |
| 5200 | if test ${enableval} = "yes" ; then |
| 5201 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 5202 | |
| 5203 | EXPENSIVE_CHECKS=yes |
| 5204 | |
| 5205 | else |
| 5206 | ENABLE_EXPENSIVE_CHECKS= |
| 5207 | |
| 5208 | EXPENSIVE_CHECKS=no |
| 5209 | |
| 5210 | fi |
| 5211 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5212 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5213 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 5214 | enableval=$enable_debug_runtime; |
| 5215 | else |
| 5216 | enableval=no |
| 5217 | fi |
| 5218 | |
| 5219 | if test ${enableval} = "no" ; then |
| 5220 | DEBUG_RUNTIME= |
| 5221 | |
| 5222 | else |
| 5223 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5224 | |
| 5225 | fi |
| 5226 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5227 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5228 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 5229 | enableval=$enable_debug_symbols; |
| 5230 | else |
| 5231 | enableval=no |
| 5232 | fi |
| 5233 | |
| 5234 | if test ${enableval} = "no" ; then |
| 5235 | DEBUG_SYMBOLS= |
| 5236 | |
| 5237 | else |
| 5238 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5239 | |
| 5240 | fi |
| 5241 | |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 5242 | # Check whether --enable-keep-symbols was given. |
| 5243 | if test "${enable_keep_symbols+set}" = set; then |
| 5244 | enableval=$enable_keep_symbols; |
| 5245 | else |
| 5246 | enableval=no |
| 5247 | fi |
| 5248 | |
| 5249 | if test ${enableval} = "no" ; then |
| 5250 | KEEP_SYMBOLS= |
| 5251 | |
| 5252 | else |
| 5253 | KEEP_SYMBOLS=KEEP_SYMBOLS=1 |
| 5254 | |
| 5255 | fi |
| 5256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5257 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5258 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5259 | enableval=$enable_jit; |
| 5260 | else |
| 5261 | enableval=default |
| 5262 | fi |
| 5263 | |
| 5264 | if test ${enableval} = "no" |
| 5265 | then |
| 5266 | JIT= |
| 5267 | |
| 5268 | else |
| 5269 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5270 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5271 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5272 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5273 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5274 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5275 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5276 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5277 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 5278 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 5279 | ;; |
Bruno Cardoso Lopes | dca6cdd | 2011-07-21 16:28:51 +0000 | [diff] [blame] | 5280 | Mips) TARGET_HAS_JIT=1 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 5281 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5282 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 5283 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5284 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 5285 | ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5286 | Hexagon) TARGET_HAS_JIT=0 |
| 5287 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5288 | MBlaze) TARGET_HAS_JIT=0 |
| 5289 | ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5290 | NVPTX) TARGET_HAS_JIT=0 |
| 5291 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5292 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5293 | ;; |
| 5294 | esac |
| 5295 | fi |
| 5296 | |
Rafael Espindola | 9d9ae9f | 2010-11-12 19:24:06 +0000 | [diff] [blame] | 5297 | # Check whether --enable-docs was given. |
| 5298 | if test "${enable_docs+set}" = set; then |
| 5299 | enableval=$enable_docs; |
| 5300 | else |
| 5301 | enableval=default |
| 5302 | fi |
| 5303 | |
| 5304 | case "$enableval" in |
| 5305 | yes) ENABLE_DOCS=1 |
| 5306 | ;; |
| 5307 | no) ENABLE_DOCS=0 |
| 5308 | ;; |
| 5309 | default) ENABLE_DOCS=1 |
| 5310 | ;; |
| 5311 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5312 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5313 | { (exit 1); exit 1; }; } ;; |
| 5314 | esac |
| 5315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5316 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5317 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5318 | enableval=$enable_doxygen; |
| 5319 | else |
| 5320 | enableval=default |
| 5321 | fi |
| 5322 | |
| 5323 | case "$enableval" in |
| 5324 | yes) ENABLE_DOXYGEN=1 |
| 5325 | ;; |
| 5326 | no) ENABLE_DOXYGEN=0 |
| 5327 | ;; |
| 5328 | default) ENABLE_DOXYGEN=0 |
| 5329 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5331 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5332 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5333 | esac |
| 5334 | |
| 5335 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5336 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5337 | enableval=$enable_threads; |
| 5338 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5339 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5340 | fi |
| 5341 | |
| 5342 | case "$enableval" in |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5343 | yes) LLVM_ENABLE_THREADS=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5344 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5345 | no) LLVM_ENABLE_THREADS=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5346 | ;; |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5347 | default) LLVM_ENABLE_THREADS=1 |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5348 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5349 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5350 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5351 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5352 | esac |
| 5353 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5354 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 5355 | #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 5356 | _ACEOF |
| 5357 | |
| 5358 | |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 5359 | # Check whether --enable-pthreads was given. |
| 5360 | if test "${enable_pthreads+set}" = set; then |
| 5361 | enableval=$enable_pthreads; |
| 5362 | else |
| 5363 | enableval=default |
| 5364 | fi |
| 5365 | |
| 5366 | case "$enableval" in |
| 5367 | yes) ENABLE_PTHREADS=1 |
| 5368 | ;; |
| 5369 | no) ENABLE_PTHREADS=0 |
| 5370 | ;; |
| 5371 | default) ENABLE_PTHREADS=1 |
| 5372 | ;; |
| 5373 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5374 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5375 | { (exit 1); exit 1; }; } ;; |
| 5376 | esac |
| 5377 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5378 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5379 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5380 | enableval=$enable_pic; |
| 5381 | else |
| 5382 | enableval=default |
| 5383 | fi |
| 5384 | |
| 5385 | case "$enableval" in |
| 5386 | yes) ENABLE_PIC=1 |
| 5387 | ;; |
| 5388 | no) ENABLE_PIC=0 |
| 5389 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 5390 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5391 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5392 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5393 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5394 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 5395 | esac |
| 5396 | |
| 5397 | cat >>confdefs.h <<_ACEOF |
| 5398 | #define ENABLE_PIC $ENABLE_PIC |
| 5399 | _ACEOF |
| 5400 | |
| 5401 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 5402 | # Check whether --enable-shared was given. |
| 5403 | if test "${enable_shared+set}" = set; then |
| 5404 | enableval=$enable_shared; |
| 5405 | else |
| 5406 | enableval=default |
| 5407 | fi |
| 5408 | |
| 5409 | case "$enableval" in |
| 5410 | yes) ENABLE_SHARED=1 |
| 5411 | ;; |
| 5412 | no) ENABLE_SHARED=0 |
| 5413 | ;; |
| 5414 | default) ENABLE_SHARED=0 |
| 5415 | ;; |
| 5416 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5417 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5418 | { (exit 1); exit 1; }; } ;; |
| 5419 | esac |
| 5420 | |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5421 | # Check whether --enable-embed-stdcxx was given. |
| 5422 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5423 | enableval=$enable_embed_stdcxx; |
| 5424 | else |
| 5425 | enableval=default |
| 5426 | fi |
| 5427 | |
| 5428 | case "$enableval" in |
| 5429 | yes) ENABLE_EMBED_STDCXX=1 |
| 5430 | ;; |
| 5431 | no) ENABLE_EMBED_STDCXX=0 |
| 5432 | ;; |
NAKAMURA Takumi | e9d3c1c | 2011-10-13 18:04:52 +0000 | [diff] [blame] | 5433 | default) ENABLE_EMBED_STDCXX=0 |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 5434 | ;; |
| 5435 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5436 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5437 | { (exit 1); exit 1; }; } ;; |
| 5438 | esac |
| 5439 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 5440 | # Check whether --enable-timestamps was given. |
| 5441 | if test "${enable_timestamps+set}" = set; then |
| 5442 | enableval=$enable_timestamps; |
| 5443 | else |
| 5444 | enableval=default |
| 5445 | fi |
| 5446 | |
| 5447 | case "$enableval" in |
| 5448 | yes) ENABLE_TIMESTAMPS=1 |
| 5449 | ;; |
| 5450 | no) ENABLE_TIMESTAMPS=0 |
| 5451 | ;; |
| 5452 | default) ENABLE_TIMESTAMPS=1 |
| 5453 | ;; |
| 5454 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5455 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5456 | { (exit 1); exit 1; }; } ;; |
| 5457 | esac |
| 5458 | |
| 5459 | cat >>confdefs.h <<_ACEOF |
| 5460 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5461 | _ACEOF |
| 5462 | |
| 5463 | |
Eric Christopher | c69bdad | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5464 | |
| 5465 | # Check whether --enable-backtraces was given. |
| 5466 | if test "${enable_backtraces+set}" = set; then |
| 5467 | enableval=$enable_backtraces; |
| 5468 | else |
| 5469 | enableval=default |
| 5470 | fi |
| 5471 | |
| 5472 | case "$enableval" in |
Eric Christopher | f0b3b74 | 2012-11-19 19:31:02 +0000 | [diff] [blame] | 5473 | yes) ENABLE_BACKTRACES=1 |
Eric Christopher | c69bdad | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5474 | ;; |
Eric Christopher | f0b3b74 | 2012-11-19 19:31:02 +0000 | [diff] [blame] | 5475 | no) ENABLE_BACKTRACES=0 |
Eric Christopher | c69bdad | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5476 | ;; |
Eric Christopher | f0b3b74 | 2012-11-19 19:31:02 +0000 | [diff] [blame] | 5477 | default) ENABLE_BACKTRACES=1 |
Eric Christopher | c69bdad | 2012-09-21 23:03:29 +0000 | [diff] [blame] | 5478 | ;; |
| 5479 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 |
| 5480 | echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} |
| 5481 | { (exit 1); exit 1; }; } ;; |
| 5482 | esac |
| 5483 | |
| 5484 | cat >>confdefs.h <<_ACEOF |
| 5485 | #define ENABLE_BACKTRACES $ENABLE_BACKTRACES |
| 5486 | _ACEOF |
| 5487 | |
| 5488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5489 | TARGETS_TO_BUILD="" |
| 5490 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5491 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5492 | enableval=$enable_targets; |
| 5493 | else |
| 5494 | enableval=all |
| 5495 | fi |
| 5496 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5497 | if test "$enableval" = host-only ; then |
| 5498 | enableval=host |
| 5499 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5500 | case "$enableval" in |
Eric Christopher | 06b4234 | 2012-11-14 22:09:20 +0000 | [diff] [blame] | 5501 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5502 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5503 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5504 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5505 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5506 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5507 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5508 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5509 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Rafael Espindola | 97fb69b | 2011-12-28 17:08:00 +0000 | [diff] [blame] | 5510 | mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Simon Atanasyan | 4830ccf | 2012-10-29 19:49:45 +0000 | [diff] [blame] | 5511 | mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5512 | mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5513 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5514 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 5515 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5516 | hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5517 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5518 | nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5519 | host) case "$llvm_cv_target_arch" in |
| 5520 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5521 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5522 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5523 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5524 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5525 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 5526 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5527 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5528 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Tony Linthicum | b4b5415 | 2011-12-12 21:14:40 +0000 | [diff] [blame] | 5529 | Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; |
Justin Holewinski | 49683f3 | 2012-05-04 20:18:50 +0000 | [diff] [blame] | 5530 | NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5531 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5532 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5533 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5534 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5535 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5536 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5537 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5538 | esac |
| 5539 | done |
| 5540 | ;; |
| 5541 | esac |
Victor Oliveira | 0e80e18 | 2012-08-09 01:13:59 +0000 | [diff] [blame] | 5542 | |
| 5543 | # Check whether --enable-experimental-targets was given. |
| 5544 | if test "${enable_experimental_targets+set}" = set; then |
| 5545 | enableval=$enable_experimental_targets; |
| 5546 | else |
| 5547 | enableval=disable |
| 5548 | fi |
| 5549 | |
| 5550 | |
| 5551 | if test ${enableval} != "disable" |
| 5552 | then |
| 5553 | TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" |
| 5554 | fi |
| 5555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5556 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5557 | |
| 5558 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5559 | for a_target in $TARGETS_TO_BUILD; do |
| 5560 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5561 | |
| 5562 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5563 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5564 | _ACEOF |
| 5565 | |
| 5566 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5567 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5568 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5569 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5570 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5571 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5572 | fi |
Eric Christopher | c4b2271 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5573 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5574 | LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" |
| 5575 | fi |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5576 | |
| 5577 | cat >>confdefs.h <<_ACEOF |
| 5578 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame] | 5579 | _ACEOF |
| 5580 | |
| 5581 | |
| 5582 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5583 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5584 | _ACEOF |
| 5585 | |
| 5586 | |
| 5587 | cat >>confdefs.h <<_ACEOF |
Evan Cheng | e78085a | 2011-07-22 21:58:54 +0000 | [diff] [blame] | 5588 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
Evan Cheng | 4396613 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 5589 | _ACEOF |
| 5590 | |
| 5591 | |
| 5592 | cat >>confdefs.h <<_ACEOF |
Eric Christopher | 753f326 | 2010-08-30 18:34:48 +0000 | [diff] [blame] | 5593 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5594 | _ACEOF |
| 5595 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5596 | 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] | 5597 | |
| 5598 | cat >>confdefs.h <<_ACEOF |
| 5599 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5600 | _ACEOF |
| 5601 | |
Jan Sjödin | 6e70cc1 | 2011-03-14 22:12:35 +0000 | [diff] [blame] | 5602 | fi |
Eric Christopher | c4b2271 | 2012-03-26 21:56:56 +0000 | [diff] [blame] | 5603 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then |
| 5604 | |
| 5605 | cat >>confdefs.h <<_ACEOF |
| 5606 | #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER |
| 5607 | _ACEOF |
| 5608 | |
| 5609 | fi |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5610 | fi |
| 5611 | done |
| 5612 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5613 | LLVM_ENUM_TARGETS="" |
| 5614 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5615 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5616 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5617 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5618 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
Chris Lattner | e15f2e1 | 2010-11-14 19:10:47 +0000 | [diff] [blame] | 5619 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
Jim Grosbach | 7ac1609 | 2010-10-01 22:39:28 +0000 | [diff] [blame] | 5620 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5621 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5622 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5623 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5624 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5625 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5626 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5627 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5628 | done |
| 5629 | |
| 5630 | |
| 5631 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5632 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5634 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5635 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5636 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5637 | withval=$with_optimize_option; |
| 5638 | else |
| 5639 | withval=default |
| 5640 | fi |
| 5641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5642 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5643 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5644 | case "$withval" in |
| 5645 | default) |
| 5646 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5647 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5648 | MingW) optimize_option=-O2 ;; |
| 5649 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5650 | esac ;; |
| 5651 | *) optimize_option="$withval" ;; |
| 5652 | esac |
| 5653 | OPTIMIZE_OPTION=$optimize_option |
| 5654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5656 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5657 | |
| 5658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5659 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5660 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5661 | withval=$with_extra_options; |
| 5662 | else |
| 5663 | withval=default |
| 5664 | fi |
| 5665 | |
| 5666 | case "$withval" in |
| 5667 | default) EXTRA_OPTIONS= ;; |
| 5668 | *) EXTRA_OPTIONS=$withval ;; |
| 5669 | esac |
| 5670 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5671 | |
| 5672 | |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 5673 | |
| 5674 | # Check whether --with-extra-ld-options was given. |
| 5675 | if test "${with_extra_ld_options+set}" = set; then |
| 5676 | withval=$with_extra_ld_options; |
| 5677 | else |
| 5678 | withval=default |
| 5679 | fi |
| 5680 | |
| 5681 | case "$withval" in |
| 5682 | default) EXTRA_LD_OPTIONS= ;; |
| 5683 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5684 | esac |
| 5685 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5686 | |
| 5687 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5688 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5689 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5690 | enableval=$enable_bindings; |
| 5691 | else |
| 5692 | enableval=default |
| 5693 | fi |
| 5694 | |
| 5695 | BINDINGS_TO_BUILD="" |
| 5696 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5697 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5698 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5699 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5700 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5701 | case "$a_binding" in |
| 5702 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5703 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5704 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5705 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5706 | esac |
| 5707 | done |
| 5708 | ;; |
| 5709 | esac |
| 5710 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5711 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5712 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5713 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5714 | withval=$with_ocaml_libdir; |
| 5715 | else |
| 5716 | withval=auto |
| 5717 | fi |
| 5718 | |
| 5719 | case "$withval" in |
| 5720 | auto) with_ocaml_libdir="$withval" ;; |
| 5721 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5722 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5723 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5724 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5725 | esac |
| 5726 | |
| 5727 | |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5728 | # Check whether --with-clang-srcdir was given. |
| 5729 | if test "${with_clang_srcdir+set}" = set; then |
| 5730 | withval=$with_clang_srcdir; |
| 5731 | else |
| 5732 | withval="-" |
| 5733 | fi |
| 5734 | |
| 5735 | case "$withval" in |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 5736 | -) clang_src_root="" ;; |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 5737 | /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; |
| 5738 | *) clang_src_root="$ac_pwd/$withval" ;; |
| 5739 | esac |
| 5740 | CLANG_SRC_ROOT=$clang_src_root |
| 5741 | |
| 5742 | |
| 5743 | |
Chandler Carruth | 6b24116 | 2010-10-19 08:21:25 +0000 | [diff] [blame] | 5744 | # Check whether --with-clang-resource-dir was given. |
| 5745 | if test "${with_clang_resource_dir+set}" = set; then |
| 5746 | withval=$with_clang_resource_dir; |
| 5747 | else |
| 5748 | withval="" |
| 5749 | fi |
| 5750 | |
| 5751 | |
| 5752 | cat >>confdefs.h <<_ACEOF |
| 5753 | #define CLANG_RESOURCE_DIR "$withval" |
| 5754 | _ACEOF |
| 5755 | |
| 5756 | |
| 5757 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5758 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5759 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5760 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5761 | else |
| 5762 | withval="" |
| 5763 | fi |
| 5764 | |
| 5765 | |
| 5766 | cat >>confdefs.h <<_ACEOF |
| 5767 | #define C_INCLUDE_DIRS "$withval" |
| 5768 | _ACEOF |
| 5769 | |
| 5770 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5771 | # Clang normally uses the system c++ headers and libraries. With this option, |
| 5772 | # clang will use the ones provided by a gcc installation instead. This option should |
| 5773 | # 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] | 5774 | |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5775 | # Check whether --with-gcc-toolchain was given. |
| 5776 | if test "${with_gcc_toolchain+set}" = set; then |
| 5777 | withval=$with_gcc_toolchain; |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5778 | else |
| 5779 | withval="" |
| 5780 | fi |
| 5781 | |
| 5782 | |
| 5783 | cat >>confdefs.h <<_ACEOF |
Rafael Espindola | 1aee22e | 2012-02-03 00:59:30 +0000 | [diff] [blame] | 5784 | #define GCC_INSTALL_PREFIX "$withval" |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5785 | _ACEOF |
| 5786 | |
| 5787 | |
| 5788 | |
Sebastian Pop | e4f1b37 | 2012-04-30 20:06:58 +0000 | [diff] [blame] | 5789 | # Check whether --with-default-sysroot was given. |
| 5790 | if test "${with_default_sysroot+set}" = set; then |
| 5791 | withval=$with_default_sysroot; |
Sebastian Pop | 7e5c316 | 2012-04-16 04:11:45 +0000 | [diff] [blame] | 5792 | else |
| 5793 | withval="" |
| 5794 | fi |
| 5795 | |
| 5796 | |
| 5797 | cat >>confdefs.h <<_ACEOF |
| 5798 | #define DEFAULT_SYSROOT "$withval" |
| 5799 | _ACEOF |
| 5800 | |
| 5801 | |
| 5802 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5803 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5804 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5805 | withval=$with_binutils_include; |
| 5806 | else |
| 5807 | withval=default |
| 5808 | fi |
| 5809 | |
| 5810 | case "$withval" in |
| 5811 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5812 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5813 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5814 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5815 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5816 | esac |
| 5817 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5818 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5819 | |
| 5820 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5821 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5823 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5824 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5825 | fi |
| 5826 | fi |
| 5827 | |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5828 | |
| 5829 | # Check whether --with-bug-report-url was given. |
| 5830 | if test "${with_bug_report_url+set}" = set; then |
| 5831 | withval=$with_bug_report_url; |
| 5832 | else |
NAKAMURA Takumi | 4362c62 | 2011-08-12 01:50:43 +0000 | [diff] [blame] | 5833 | withval="http://llvm.org/bugs/" |
Eric Christopher | 91e7ccd | 2011-07-20 17:04:49 +0000 | [diff] [blame] | 5834 | fi |
| 5835 | |
| 5836 | |
| 5837 | cat >>confdefs.h <<_ACEOF |
| 5838 | #define BUG_REPORT_URL "$withval" |
| 5839 | _ACEOF |
| 5840 | |
| 5841 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5842 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5843 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5844 | enableval=$enable_libffi; case "$enableval" in |
| 5845 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5846 | no) llvm_cv_enable_libffi="no" ;; |
| 5847 | *) { { 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] | 5848 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5849 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5850 | esac |
| 5851 | else |
| 5852 | llvm_cv_enable_libffi=no |
| 5853 | fi |
| 5854 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5855 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5856 | |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 5857 | # Check whether --with-internal-prefix was given. |
| 5858 | if test "${with_internal_prefix+set}" = set; then |
| 5859 | withval=$with_internal_prefix; |
| 5860 | else |
| 5861 | withval="" |
| 5862 | fi |
| 5863 | |
| 5864 | INTERNAL_PREFIX=$withval |
| 5865 | |
| 5866 | |
| 5867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5868 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5869 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5870 | if test "${lt_cv_path_NM+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5872 | else |
| 5873 | if test -n "$NM"; then |
| 5874 | # Let the user override the test. |
| 5875 | lt_cv_path_NM="$NM" |
| 5876 | else |
| 5877 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5878 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5879 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5880 | fi |
| 5881 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5882 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5883 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5884 | IFS="$lt_save_ifs" |
| 5885 | test -z "$ac_dir" && ac_dir=. |
| 5886 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5887 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5888 | # Check to see if the nm accepts a BSD-compat flag. |
| 5889 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5890 | # nm: unknown option "B" ignored |
| 5891 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5892 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5893 | */dev/null* | *'Invalid file or object type'*) |
| 5894 | lt_cv_path_NM="$tmp_nm -B" |
| 5895 | break |
| 5896 | ;; |
| 5897 | *) |
| 5898 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5899 | */dev/null*) |
| 5900 | lt_cv_path_NM="$tmp_nm -p" |
| 5901 | break |
| 5902 | ;; |
| 5903 | *) |
| 5904 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5905 | continue # so that we can try to find one that supports BSD flags |
| 5906 | ;; |
| 5907 | esac |
| 5908 | ;; |
| 5909 | esac |
| 5910 | fi |
| 5911 | done |
| 5912 | IFS="$lt_save_ifs" |
| 5913 | done |
| 5914 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5915 | fi |
| 5916 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5917 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5918 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5919 | NM="$lt_cv_path_NM" |
| 5920 | |
| 5921 | |
| 5922 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5923 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5924 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5925 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5927 | else |
| 5928 | llvm_cv_gnu_make_command='' |
| 5929 | for a in "$MAKE" make gmake gnumake ; do |
| 5930 | if test -z "$a" ; then continue ; fi ; |
| 5931 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5932 | then |
| 5933 | llvm_cv_gnu_make_command=$a ; |
| 5934 | break; |
| 5935 | fi |
| 5936 | done |
| 5937 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5938 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5939 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5940 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5941 | ifGNUmake='' ; |
| 5942 | else |
| 5943 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5944 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5945 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5946 | fi |
| 5947 | |
| 5948 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5949 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5950 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5951 | LN_S=$as_ln_s |
| 5952 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5953 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5954 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5955 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5956 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5957 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5958 | fi |
| 5959 | |
| 5960 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5961 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5964 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5966 | else |
| 5967 | case $CMP in |
| 5968 | [\\/]* | ?:[\\/]*) |
| 5969 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5970 | ;; |
| 5971 | *) |
| 5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5973 | for as_dir in $PATH |
| 5974 | do |
| 5975 | IFS=$as_save_IFS |
| 5976 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5978 | 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] | 5979 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | 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] | 5981 | break 2 |
| 5982 | fi |
| 5983 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5984 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5985 | IFS=$as_save_IFS |
| 5986 | |
| 5987 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5988 | ;; |
| 5989 | esac |
| 5990 | fi |
| 5991 | CMP=$ac_cv_path_CMP |
| 5992 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5993 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5994 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5995 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5996 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5997 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5998 | fi |
| 5999 | |
| 6000 | |
| 6001 | # Extract the first word of "cp", so it can be a program name with args. |
| 6002 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6005 | if test "${ac_cv_path_CP+set}" = set; then |
| 6006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6007 | else |
| 6008 | case $CP in |
| 6009 | [\\/]* | ?:[\\/]*) |
| 6010 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6011 | ;; |
| 6012 | *) |
| 6013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6014 | for as_dir in $PATH |
| 6015 | do |
| 6016 | IFS=$as_save_IFS |
| 6017 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6019 | 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] | 6020 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | 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] | 6022 | break 2 |
| 6023 | fi |
| 6024 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6025 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6026 | IFS=$as_save_IFS |
| 6027 | |
| 6028 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6029 | ;; |
| 6030 | esac |
| 6031 | fi |
| 6032 | CP=$ac_cv_path_CP |
| 6033 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6034 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6035 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6036 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6037 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6038 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6039 | fi |
| 6040 | |
| 6041 | |
| 6042 | # Extract the first word of "date", so it can be a program name with args. |
| 6043 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6046 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6048 | else |
| 6049 | case $DATE in |
| 6050 | [\\/]* | ?:[\\/]*) |
| 6051 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6052 | ;; |
| 6053 | *) |
| 6054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6055 | for as_dir in $PATH |
| 6056 | do |
| 6057 | IFS=$as_save_IFS |
| 6058 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6060 | 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] | 6061 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6062 | 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] | 6063 | break 2 |
| 6064 | fi |
| 6065 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6066 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6067 | IFS=$as_save_IFS |
| 6068 | |
| 6069 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6070 | ;; |
| 6071 | esac |
| 6072 | fi |
| 6073 | DATE=$ac_cv_path_DATE |
| 6074 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6075 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6076 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6077 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6078 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6079 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6080 | fi |
| 6081 | |
| 6082 | |
| 6083 | # Extract the first word of "find", so it can be a program name with args. |
| 6084 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6085 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6087 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6089 | else |
| 6090 | case $FIND in |
| 6091 | [\\/]* | ?:[\\/]*) |
| 6092 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6093 | ;; |
| 6094 | *) |
| 6095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6096 | for as_dir in $PATH |
| 6097 | do |
| 6098 | IFS=$as_save_IFS |
| 6099 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6101 | 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] | 6102 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6103 | 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] | 6104 | break 2 |
| 6105 | fi |
| 6106 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6107 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6108 | IFS=$as_save_IFS |
| 6109 | |
| 6110 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6111 | ;; |
| 6112 | esac |
| 6113 | fi |
| 6114 | FIND=$ac_cv_path_FIND |
| 6115 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6116 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6117 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6118 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6119 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6120 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6121 | fi |
| 6122 | |
| 6123 | |
| 6124 | # Extract the first word of "grep", so it can be a program name with args. |
| 6125 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6126 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6128 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6130 | else |
| 6131 | case $GREP in |
| 6132 | [\\/]* | ?:[\\/]*) |
| 6133 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6134 | ;; |
| 6135 | *) |
| 6136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6137 | for as_dir in $PATH |
| 6138 | do |
| 6139 | IFS=$as_save_IFS |
| 6140 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6142 | 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] | 6143 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6144 | 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] | 6145 | break 2 |
| 6146 | fi |
| 6147 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6148 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6149 | IFS=$as_save_IFS |
| 6150 | |
| 6151 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6152 | ;; |
| 6153 | esac |
| 6154 | fi |
| 6155 | GREP=$ac_cv_path_GREP |
| 6156 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6157 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6158 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6161 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6162 | fi |
| 6163 | |
| 6164 | |
| 6165 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6166 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6169 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6171 | else |
| 6172 | case $MKDIR in |
| 6173 | [\\/]* | ?:[\\/]*) |
| 6174 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6175 | ;; |
| 6176 | *) |
| 6177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6178 | for as_dir in $PATH |
| 6179 | do |
| 6180 | IFS=$as_save_IFS |
| 6181 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6183 | 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] | 6184 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6185 | 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] | 6186 | break 2 |
| 6187 | fi |
| 6188 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6189 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6190 | IFS=$as_save_IFS |
| 6191 | |
| 6192 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6193 | ;; |
| 6194 | esac |
| 6195 | fi |
| 6196 | MKDIR=$ac_cv_path_MKDIR |
| 6197 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6198 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6199 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6200 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6201 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6202 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6203 | fi |
| 6204 | |
| 6205 | |
| 6206 | # Extract the first word of "mv", so it can be a program name with args. |
| 6207 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6210 | if test "${ac_cv_path_MV+set}" = set; then |
| 6211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6212 | else |
| 6213 | case $MV in |
| 6214 | [\\/]* | ?:[\\/]*) |
| 6215 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6216 | ;; |
| 6217 | *) |
| 6218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6219 | for as_dir in $PATH |
| 6220 | do |
| 6221 | IFS=$as_save_IFS |
| 6222 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6223 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6224 | 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] | 6225 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | 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] | 6227 | break 2 |
| 6228 | fi |
| 6229 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6230 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6231 | IFS=$as_save_IFS |
| 6232 | |
| 6233 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6234 | ;; |
| 6235 | esac |
| 6236 | fi |
| 6237 | MV=$ac_cv_path_MV |
| 6238 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6239 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6240 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6241 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6242 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6243 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6244 | fi |
| 6245 | |
| 6246 | |
| 6247 | if test -n "$ac_tool_prefix"; then |
| 6248 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6249 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6250 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6252 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6254 | else |
| 6255 | if test -n "$RANLIB"; then |
| 6256 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6257 | else |
| 6258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6259 | for as_dir in $PATH |
| 6260 | do |
| 6261 | IFS=$as_save_IFS |
| 6262 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6263 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6264 | 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] | 6265 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6266 | 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] | 6267 | break 2 |
| 6268 | fi |
| 6269 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6270 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6271 | IFS=$as_save_IFS |
| 6272 | |
| 6273 | fi |
| 6274 | fi |
| 6275 | RANLIB=$ac_cv_prog_RANLIB |
| 6276 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6277 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6278 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6279 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6280 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6281 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6282 | fi |
| 6283 | |
| 6284 | |
| 6285 | fi |
| 6286 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6287 | ac_ct_RANLIB=$RANLIB |
| 6288 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6289 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6292 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6294 | else |
| 6295 | if test -n "$ac_ct_RANLIB"; then |
| 6296 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6297 | else |
| 6298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6299 | for as_dir in $PATH |
| 6300 | do |
| 6301 | IFS=$as_save_IFS |
| 6302 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6304 | 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] | 6305 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6306 | 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] | 6307 | break 2 |
| 6308 | fi |
| 6309 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6310 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6311 | IFS=$as_save_IFS |
| 6312 | |
| 6313 | fi |
| 6314 | fi |
| 6315 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6316 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6317 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6318 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6319 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6321 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6322 | fi |
| 6323 | |
| 6324 | if test "x$ac_ct_RANLIB" = x; then |
| 6325 | RANLIB=":" |
| 6326 | else |
| 6327 | case $cross_compiling:$ac_tool_warned in |
| 6328 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6329 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6330 | whose name does not start with the host triplet. If you think this |
| 6331 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6332 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6333 | whose name does not start with the host triplet. If you think this |
| 6334 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6335 | ac_tool_warned=yes ;; |
| 6336 | esac |
| 6337 | RANLIB=$ac_ct_RANLIB |
| 6338 | fi |
| 6339 | else |
| 6340 | RANLIB="$ac_cv_prog_RANLIB" |
| 6341 | fi |
| 6342 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6343 | if test -n "$ac_tool_prefix"; then |
| 6344 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6345 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6348 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6350 | else |
| 6351 | if test -n "$AR"; then |
| 6352 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6353 | else |
| 6354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6355 | for as_dir in $PATH |
| 6356 | do |
| 6357 | IFS=$as_save_IFS |
| 6358 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6360 | 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] | 6361 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6362 | 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] | 6363 | break 2 |
| 6364 | fi |
| 6365 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6366 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6367 | IFS=$as_save_IFS |
| 6368 | |
| 6369 | fi |
| 6370 | fi |
| 6371 | AR=$ac_cv_prog_AR |
| 6372 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6373 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6374 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6375 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6376 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6377 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6378 | fi |
| 6379 | |
| 6380 | |
| 6381 | fi |
| 6382 | if test -z "$ac_cv_prog_AR"; then |
| 6383 | ac_ct_AR=$AR |
| 6384 | # Extract the first word of "ar", so it can be a program name with args. |
| 6385 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6388 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6390 | else |
| 6391 | if test -n "$ac_ct_AR"; then |
| 6392 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6393 | else |
| 6394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6395 | for as_dir in $PATH |
| 6396 | do |
| 6397 | IFS=$as_save_IFS |
| 6398 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6400 | 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] | 6401 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6402 | 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] | 6403 | break 2 |
| 6404 | fi |
| 6405 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6406 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6407 | IFS=$as_save_IFS |
| 6408 | |
| 6409 | fi |
| 6410 | fi |
| 6411 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6412 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6413 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6414 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6415 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6417 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6418 | fi |
| 6419 | |
| 6420 | if test "x$ac_ct_AR" = x; then |
| 6421 | AR="false" |
| 6422 | else |
| 6423 | case $cross_compiling:$ac_tool_warned in |
| 6424 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6425 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6426 | whose name does not start with the host triplet. If you think this |
| 6427 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6428 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6429 | whose name does not start with the host triplet. If you think this |
| 6430 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6431 | ac_tool_warned=yes ;; |
| 6432 | esac |
| 6433 | AR=$ac_ct_AR |
| 6434 | fi |
| 6435 | else |
| 6436 | AR="$ac_cv_prog_AR" |
| 6437 | fi |
| 6438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6439 | # Extract the first word of "rm", so it can be a program name with args. |
| 6440 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6441 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6443 | if test "${ac_cv_path_RM+set}" = set; then |
| 6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | else |
| 6446 | case $RM in |
| 6447 | [\\/]* | ?:[\\/]*) |
| 6448 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6449 | ;; |
| 6450 | *) |
| 6451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6452 | for as_dir in $PATH |
| 6453 | do |
| 6454 | IFS=$as_save_IFS |
| 6455 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6457 | 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] | 6458 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6459 | 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] | 6460 | break 2 |
| 6461 | fi |
| 6462 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6463 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6464 | IFS=$as_save_IFS |
| 6465 | |
| 6466 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6467 | ;; |
| 6468 | esac |
| 6469 | fi |
| 6470 | RM=$ac_cv_path_RM |
| 6471 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6472 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6473 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6474 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6475 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6476 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6477 | fi |
| 6478 | |
| 6479 | |
| 6480 | # Extract the first word of "sed", so it can be a program name with args. |
| 6481 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6484 | if test "${ac_cv_path_SED+set}" = set; then |
| 6485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6486 | else |
| 6487 | case $SED in |
| 6488 | [\\/]* | ?:[\\/]*) |
| 6489 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6490 | ;; |
| 6491 | *) |
| 6492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6493 | for as_dir in $PATH |
| 6494 | do |
| 6495 | IFS=$as_save_IFS |
| 6496 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6497 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6498 | 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] | 6499 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6500 | 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] | 6501 | break 2 |
| 6502 | fi |
| 6503 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6504 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6505 | IFS=$as_save_IFS |
| 6506 | |
| 6507 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6508 | ;; |
| 6509 | esac |
| 6510 | fi |
| 6511 | SED=$ac_cv_path_SED |
| 6512 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6513 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6514 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6515 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6516 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6517 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6518 | fi |
| 6519 | |
| 6520 | |
| 6521 | # Extract the first word of "tar", so it can be a program name with args. |
| 6522 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6523 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6525 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6527 | else |
| 6528 | case $TAR in |
| 6529 | [\\/]* | ?:[\\/]*) |
| 6530 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6531 | ;; |
| 6532 | *) |
| 6533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6534 | for as_dir in $PATH |
| 6535 | do |
| 6536 | IFS=$as_save_IFS |
| 6537 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6538 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6539 | 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] | 6540 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6541 | 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] | 6542 | break 2 |
| 6543 | fi |
| 6544 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6545 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6546 | IFS=$as_save_IFS |
| 6547 | |
| 6548 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6549 | ;; |
| 6550 | esac |
| 6551 | fi |
| 6552 | TAR=$ac_cv_path_TAR |
| 6553 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6554 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6555 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6556 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6557 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6558 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6559 | fi |
| 6560 | |
| 6561 | |
| 6562 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6563 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6564 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6566 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6568 | else |
| 6569 | case $BINPWD in |
| 6570 | [\\/]* | ?:[\\/]*) |
| 6571 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6572 | ;; |
| 6573 | *) |
| 6574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6575 | for as_dir in $PATH |
| 6576 | do |
| 6577 | IFS=$as_save_IFS |
| 6578 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6579 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6580 | 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] | 6581 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6582 | 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] | 6583 | break 2 |
| 6584 | fi |
| 6585 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6586 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6587 | IFS=$as_save_IFS |
| 6588 | |
| 6589 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6590 | ;; |
| 6591 | esac |
| 6592 | fi |
| 6593 | BINPWD=$ac_cv_path_BINPWD |
| 6594 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6595 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6596 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6598 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6599 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6600 | fi |
| 6601 | |
| 6602 | |
| 6603 | |
| 6604 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6605 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6608 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6610 | else |
| 6611 | case $GRAPHVIZ in |
| 6612 | [\\/]* | ?:[\\/]*) |
| 6613 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6614 | ;; |
| 6615 | *) |
| 6616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6617 | for as_dir in $PATH |
| 6618 | do |
| 6619 | IFS=$as_save_IFS |
| 6620 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6622 | 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] | 6623 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6624 | 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] | 6625 | break 2 |
| 6626 | fi |
| 6627 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6628 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6629 | IFS=$as_save_IFS |
| 6630 | |
| 6631 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6632 | ;; |
| 6633 | esac |
| 6634 | fi |
| 6635 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6636 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6637 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6638 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6639 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6641 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6642 | fi |
| 6643 | |
| 6644 | |
| 6645 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6646 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6647 | cat >>confdefs.h <<\_ACEOF |
| 6648 | #define HAVE_GRAPHVIZ 1 |
| 6649 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6650 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6651 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6652 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6653 | fi |
| 6654 | |
| 6655 | cat >>confdefs.h <<_ACEOF |
| 6656 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6657 | _ACEOF |
| 6658 | |
| 6659 | fi |
| 6660 | # Extract the first word of "dot", so it can be a program name with args. |
| 6661 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6662 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6664 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6666 | else |
| 6667 | case $DOT in |
| 6668 | [\\/]* | ?:[\\/]*) |
| 6669 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6670 | ;; |
| 6671 | *) |
| 6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6673 | for as_dir in $PATH |
| 6674 | do |
| 6675 | IFS=$as_save_IFS |
| 6676 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6678 | 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] | 6679 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6680 | 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] | 6681 | break 2 |
| 6682 | fi |
| 6683 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6684 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6685 | IFS=$as_save_IFS |
| 6686 | |
| 6687 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6688 | ;; |
| 6689 | esac |
| 6690 | fi |
| 6691 | DOT=$ac_cv_path_DOT |
| 6692 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6693 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6694 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6695 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6696 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6697 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6698 | fi |
| 6699 | |
| 6700 | |
| 6701 | if test "$DOT" != "echo dot" ; then |
| 6702 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6703 | cat >>confdefs.h <<\_ACEOF |
| 6704 | #define HAVE_DOT 1 |
| 6705 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6706 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6707 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6708 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6709 | fi |
| 6710 | |
| 6711 | cat >>confdefs.h <<_ACEOF |
| 6712 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6713 | _ACEOF |
| 6714 | |
| 6715 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6716 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6717 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6718 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6720 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6722 | else |
| 6723 | case $FDP in |
| 6724 | [\\/]* | ?:[\\/]*) |
| 6725 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6726 | ;; |
| 6727 | *) |
| 6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6729 | for as_dir in $PATH |
| 6730 | do |
| 6731 | IFS=$as_save_IFS |
| 6732 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6734 | 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] | 6735 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6736 | 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] | 6737 | break 2 |
| 6738 | fi |
| 6739 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6740 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6741 | IFS=$as_save_IFS |
| 6742 | |
| 6743 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6744 | ;; |
| 6745 | esac |
| 6746 | fi |
| 6747 | FDP=$ac_cv_path_FDP |
| 6748 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6749 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6750 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6751 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6753 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6754 | fi |
| 6755 | |
| 6756 | |
| 6757 | if test "$FDP" != "echo fdp" ; then |
| 6758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | cat >>confdefs.h <<\_ACEOF |
| 6760 | #define HAVE_FDP 1 |
| 6761 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6762 | |
| 6763 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6764 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6765 | fi |
| 6766 | |
| 6767 | cat >>confdefs.h <<_ACEOF |
| 6768 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6769 | _ACEOF |
| 6770 | |
| 6771 | fi |
| 6772 | # Extract the first word of "neato", so it can be a program name with args. |
| 6773 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6776 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6778 | else |
| 6779 | case $NEATO in |
| 6780 | [\\/]* | ?:[\\/]*) |
| 6781 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6782 | ;; |
| 6783 | *) |
| 6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6785 | for as_dir in $PATH |
| 6786 | do |
| 6787 | IFS=$as_save_IFS |
| 6788 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6790 | 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] | 6791 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6792 | 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] | 6793 | break 2 |
| 6794 | fi |
| 6795 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6797 | IFS=$as_save_IFS |
| 6798 | |
| 6799 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6800 | ;; |
| 6801 | esac |
| 6802 | fi |
| 6803 | NEATO=$ac_cv_path_NEATO |
| 6804 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6805 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6806 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6807 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6808 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6809 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6810 | fi |
| 6811 | |
| 6812 | |
| 6813 | if test "$NEATO" != "echo neato" ; then |
| 6814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6815 | cat >>confdefs.h <<\_ACEOF |
| 6816 | #define HAVE_NEATO 1 |
| 6817 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6818 | |
| 6819 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6820 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6821 | fi |
| 6822 | |
| 6823 | cat >>confdefs.h <<_ACEOF |
| 6824 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6825 | _ACEOF |
| 6826 | |
| 6827 | fi |
| 6828 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6829 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6830 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6832 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6834 | else |
| 6835 | case $TWOPI in |
| 6836 | [\\/]* | ?:[\\/]*) |
| 6837 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6838 | ;; |
| 6839 | *) |
| 6840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6841 | for as_dir in $PATH |
| 6842 | do |
| 6843 | IFS=$as_save_IFS |
| 6844 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6846 | 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] | 6847 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6848 | 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] | 6849 | break 2 |
| 6850 | fi |
| 6851 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6852 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6853 | IFS=$as_save_IFS |
| 6854 | |
| 6855 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6856 | ;; |
| 6857 | esac |
| 6858 | fi |
| 6859 | TWOPI=$ac_cv_path_TWOPI |
| 6860 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6861 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6862 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6863 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6864 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6865 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6866 | fi |
| 6867 | |
| 6868 | |
| 6869 | if test "$TWOPI" != "echo twopi" ; then |
| 6870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6871 | cat >>confdefs.h <<\_ACEOF |
| 6872 | #define HAVE_TWOPI 1 |
| 6873 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6874 | |
| 6875 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6876 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6877 | fi |
| 6878 | |
| 6879 | cat >>confdefs.h <<_ACEOF |
| 6880 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6881 | _ACEOF |
| 6882 | |
| 6883 | fi |
| 6884 | # Extract the first word of "circo", so it can be a program name with args. |
| 6885 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6886 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6888 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6890 | else |
| 6891 | case $CIRCO in |
| 6892 | [\\/]* | ?:[\\/]*) |
| 6893 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6894 | ;; |
| 6895 | *) |
| 6896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6897 | for as_dir in $PATH |
| 6898 | do |
| 6899 | IFS=$as_save_IFS |
| 6900 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6902 | 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] | 6903 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6904 | 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] | 6905 | break 2 |
| 6906 | fi |
| 6907 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6908 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6909 | IFS=$as_save_IFS |
| 6910 | |
| 6911 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6912 | ;; |
| 6913 | esac |
| 6914 | fi |
| 6915 | CIRCO=$ac_cv_path_CIRCO |
| 6916 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6917 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6918 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6919 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6921 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6922 | fi |
| 6923 | |
| 6924 | |
| 6925 | if test "$CIRCO" != "echo circo" ; then |
| 6926 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6927 | cat >>confdefs.h <<\_ACEOF |
| 6928 | #define HAVE_CIRCO 1 |
| 6929 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 6930 | |
| 6931 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6932 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6933 | fi |
| 6934 | |
| 6935 | cat >>confdefs.h <<_ACEOF |
| 6936 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6937 | _ACEOF |
| 6938 | |
| 6939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6940 | for ac_prog in gv gsview32 |
| 6941 | do |
| 6942 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6943 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6944 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6946 | if test "${ac_cv_path_GV+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6948 | else |
| 6949 | case $GV in |
| 6950 | [\\/]* | ?:[\\/]*) |
| 6951 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6952 | ;; |
| 6953 | *) |
| 6954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6955 | for as_dir in $PATH |
| 6956 | do |
| 6957 | IFS=$as_save_IFS |
| 6958 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6959 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6960 | 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] | 6961 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6962 | 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] | 6963 | break 2 |
| 6964 | fi |
| 6965 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6966 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6967 | IFS=$as_save_IFS |
| 6968 | |
| 6969 | ;; |
| 6970 | esac |
| 6971 | fi |
| 6972 | GV=$ac_cv_path_GV |
| 6973 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6974 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6975 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6976 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6978 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6979 | fi |
| 6980 | |
| 6981 | |
| 6982 | test -n "$GV" && break |
| 6983 | done |
| 6984 | test -n "$GV" || GV="echo gv" |
| 6985 | |
| 6986 | if test "$GV" != "echo gv" ; then |
| 6987 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6988 | cat >>confdefs.h <<\_ACEOF |
| 6989 | #define HAVE_GV 1 |
| 6990 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6991 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6992 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6993 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6994 | fi |
| 6995 | |
| 6996 | cat >>confdefs.h <<_ACEOF |
| 6997 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6998 | _ACEOF |
| 6999 | |
| 7000 | fi |
| 7001 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7002 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7005 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | else |
| 7008 | case $DOTTY in |
| 7009 | [\\/]* | ?:[\\/]*) |
| 7010 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7011 | ;; |
| 7012 | *) |
| 7013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7014 | for as_dir in $PATH |
| 7015 | do |
| 7016 | IFS=$as_save_IFS |
| 7017 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7019 | 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] | 7020 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7021 | 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] | 7022 | break 2 |
| 7023 | fi |
| 7024 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7026 | IFS=$as_save_IFS |
| 7027 | |
| 7028 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7029 | ;; |
| 7030 | esac |
| 7031 | fi |
| 7032 | DOTTY=$ac_cv_path_DOTTY |
| 7033 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7034 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7035 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7036 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7038 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7039 | fi |
| 7040 | |
| 7041 | |
| 7042 | if test "$DOTTY" != "echo dotty" ; then |
| 7043 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7044 | cat >>confdefs.h <<\_ACEOF |
| 7045 | #define HAVE_DOTTY 1 |
| 7046 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7047 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7048 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7049 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7050 | fi |
| 7051 | |
| 7052 | cat >>confdefs.h <<_ACEOF |
| 7053 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7054 | _ACEOF |
| 7055 | |
| 7056 | fi |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 7057 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 7058 | set dummy xdot.py; ac_word=$2 |
| 7059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7061 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7063 | else |
| 7064 | case $XDOT_PY in |
| 7065 | [\\/]* | ?:[\\/]*) |
| 7066 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 7067 | ;; |
| 7068 | *) |
| 7069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7070 | for as_dir in $PATH |
| 7071 | do |
| 7072 | IFS=$as_save_IFS |
| 7073 | test -z "$as_dir" && as_dir=. |
| 7074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7076 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 7077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7078 | break 2 |
| 7079 | fi |
| 7080 | done |
| 7081 | done |
| 7082 | IFS=$as_save_IFS |
| 7083 | |
| 7084 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 7085 | ;; |
| 7086 | esac |
| 7087 | fi |
| 7088 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 7089 | if test -n "$XDOT_PY"; then |
| 7090 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 7091 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 7092 | else |
| 7093 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7094 | echo "${ECHO_T}no" >&6; } |
| 7095 | fi |
| 7096 | |
| 7097 | |
| 7098 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 7099 | |
| 7100 | cat >>confdefs.h <<\_ACEOF |
| 7101 | #define HAVE_XDOT_PY 1 |
| 7102 | _ACEOF |
| 7103 | |
| 7104 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7105 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7106 | fi |
| 7107 | |
| 7108 | cat >>confdefs.h <<_ACEOF |
| 7109 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 7110 | _ACEOF |
| 7111 | |
| 7112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7114 | # Find a good install program. We prefer a C program (faster), |
| 7115 | # so one script is as good as another. But avoid the broken or |
| 7116 | # incompatible versions: |
| 7117 | # SysV /etc/install, /usr/sbin/install |
| 7118 | # SunOS /usr/etc/install |
| 7119 | # IRIX /sbin/install |
| 7120 | # AIX /bin/install |
| 7121 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7122 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7123 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7124 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7125 | # OS/2's system install, which has a completely different semantic |
| 7126 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7127 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7128 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7129 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7130 | if test "${ac_cv_path_install+set}" = set; then |
| 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7132 | else |
| 7133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7134 | for as_dir in $PATH |
| 7135 | do |
| 7136 | IFS=$as_save_IFS |
| 7137 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7138 | # Account for people who put trailing slashes in PATH elements. |
| 7139 | case $as_dir/ in |
| 7140 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7141 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7142 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7143 | /usr/ucb/* ) ;; |
| 7144 | *) |
| 7145 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7146 | # Don't use installbsd from OSF since it installs stuff as root |
| 7147 | # by default. |
| 7148 | for ac_prog in ginstall scoinst install; do |
| 7149 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7150 | 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] | 7151 | if test $ac_prog = install && |
| 7152 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7153 | # AIX install. It has an incompatible calling convention. |
| 7154 | : |
| 7155 | elif test $ac_prog = install && |
| 7156 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7157 | # program-specific install script used by HP pwplus--don't use. |
| 7158 | : |
| 7159 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7160 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7161 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7162 | fi |
| 7163 | fi |
| 7164 | done |
| 7165 | done |
| 7166 | ;; |
| 7167 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7168 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7169 | IFS=$as_save_IFS |
| 7170 | |
| 7171 | |
| 7172 | fi |
| 7173 | if test "${ac_cv_path_install+set}" = set; then |
| 7174 | INSTALL=$ac_cv_path_install |
| 7175 | else |
| 7176 | # As a last resort, use the slow shell script. Don't cache a |
| 7177 | # value for INSTALL within a source directory, because that will |
| 7178 | # break other packages using the cache if that directory is |
| 7179 | # removed, or if the value is a relative name. |
| 7180 | INSTALL=$ac_install_sh |
| 7181 | fi |
| 7182 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7183 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7184 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7185 | |
| 7186 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7187 | # It thinks the first close brace ends the variable substitution. |
| 7188 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7189 | |
| 7190 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7191 | |
| 7192 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7193 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 7194 | case "$INSTALL" in |
| 7195 | [\\/$]* | ?:[\\/]* ) ;; |
| 7196 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 7197 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7198 | |
| 7199 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7200 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7201 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7203 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7205 | else |
| 7206 | case $BZIP2 in |
| 7207 | [\\/]* | ?:[\\/]*) |
| 7208 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7209 | ;; |
| 7210 | *) |
| 7211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7212 | for as_dir in $PATH |
| 7213 | do |
| 7214 | IFS=$as_save_IFS |
| 7215 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7217 | 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] | 7218 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7219 | 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] | 7220 | break 2 |
| 7221 | fi |
| 7222 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7223 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | IFS=$as_save_IFS |
| 7225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7226 | ;; |
| 7227 | esac |
| 7228 | fi |
| 7229 | BZIP2=$ac_cv_path_BZIP2 |
| 7230 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7231 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7232 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7233 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7235 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7236 | fi |
| 7237 | |
| 7238 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 7239 | # Extract the first word of "cat", so it can be a program name with args. |
| 7240 | set dummy cat; ac_word=$2 |
| 7241 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7243 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7245 | else |
| 7246 | case $CAT in |
| 7247 | [\\/]* | ?:[\\/]*) |
| 7248 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7249 | ;; |
| 7250 | *) |
| 7251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7252 | for as_dir in $PATH |
| 7253 | do |
| 7254 | IFS=$as_save_IFS |
| 7255 | test -z "$as_dir" && as_dir=. |
| 7256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7258 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7260 | break 2 |
| 7261 | fi |
| 7262 | done |
| 7263 | done |
| 7264 | IFS=$as_save_IFS |
| 7265 | |
| 7266 | ;; |
| 7267 | esac |
| 7268 | fi |
| 7269 | CAT=$ac_cv_path_CAT |
| 7270 | if test -n "$CAT"; then |
| 7271 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7272 | echo "${ECHO_T}$CAT" >&6; } |
| 7273 | else |
| 7274 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7275 | echo "${ECHO_T}no" >&6; } |
| 7276 | fi |
| 7277 | |
| 7278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7279 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7280 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7281 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7283 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7285 | else |
| 7286 | case $DOXYGEN in |
| 7287 | [\\/]* | ?:[\\/]*) |
| 7288 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7289 | ;; |
| 7290 | *) |
| 7291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7292 | for as_dir in $PATH |
| 7293 | do |
| 7294 | IFS=$as_save_IFS |
| 7295 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7297 | 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] | 7298 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7299 | 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] | 7300 | break 2 |
| 7301 | fi |
| 7302 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7303 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7304 | IFS=$as_save_IFS |
| 7305 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7306 | ;; |
| 7307 | esac |
| 7308 | fi |
| 7309 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7310 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7311 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7312 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7313 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7314 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7315 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7316 | fi |
| 7317 | |
| 7318 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7319 | # Extract the first word of "groff", so it can be a program name with args. |
| 7320 | set dummy groff; ac_word=$2 |
| 7321 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7323 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7325 | else |
| 7326 | case $GROFF in |
| 7327 | [\\/]* | ?:[\\/]*) |
| 7328 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7329 | ;; |
| 7330 | *) |
| 7331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7332 | for as_dir in $PATH |
| 7333 | do |
| 7334 | IFS=$as_save_IFS |
| 7335 | test -z "$as_dir" && as_dir=. |
| 7336 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7338 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7339 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7340 | break 2 |
| 7341 | fi |
| 7342 | done |
| 7343 | done |
| 7344 | IFS=$as_save_IFS |
| 7345 | |
| 7346 | ;; |
| 7347 | esac |
| 7348 | fi |
| 7349 | GROFF=$ac_cv_path_GROFF |
| 7350 | if test -n "$GROFF"; then |
| 7351 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7352 | echo "${ECHO_T}$GROFF" >&6; } |
| 7353 | else |
| 7354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7355 | echo "${ECHO_T}no" >&6; } |
| 7356 | fi |
| 7357 | |
| 7358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7359 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7360 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7363 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7365 | else |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7366 | case $GZIPBIN in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7367 | [\\/]* | ?:[\\/]*) |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7368 | 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] | 7369 | ;; |
| 7370 | *) |
| 7371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7372 | for as_dir in $PATH |
| 7373 | do |
| 7374 | IFS=$as_save_IFS |
| 7375 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7377 | 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] | 7378 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7379 | 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] | 7380 | break 2 |
| 7381 | fi |
| 7382 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7383 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7384 | IFS=$as_save_IFS |
| 7385 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7386 | ;; |
| 7387 | esac |
| 7388 | fi |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 7389 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7390 | if test -n "$GZIPBIN"; then |
| 7391 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7392 | echo "${ECHO_T}$GZIPBIN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7393 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7394 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7395 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7396 | fi |
| 7397 | |
| 7398 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7399 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7400 | set dummy pdfroff; ac_word=$2 |
| 7401 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7403 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7405 | else |
| 7406 | case $PDFROFF in |
| 7407 | [\\/]* | ?:[\\/]*) |
| 7408 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7409 | ;; |
| 7410 | *) |
| 7411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7412 | for as_dir in $PATH |
| 7413 | do |
| 7414 | IFS=$as_save_IFS |
| 7415 | test -z "$as_dir" && as_dir=. |
| 7416 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7418 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7420 | break 2 |
| 7421 | fi |
| 7422 | done |
| 7423 | done |
| 7424 | IFS=$as_save_IFS |
| 7425 | |
| 7426 | ;; |
| 7427 | esac |
| 7428 | fi |
| 7429 | PDFROFF=$ac_cv_path_PDFROFF |
| 7430 | if test -n "$PDFROFF"; then |
| 7431 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7432 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7433 | else |
| 7434 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7435 | echo "${ECHO_T}no" >&6; } |
| 7436 | fi |
| 7437 | |
| 7438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7439 | # Extract the first word of "zip", so it can be a program name with args. |
| 7440 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7441 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7443 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | else |
| 7446 | case $ZIP in |
| 7447 | [\\/]* | ?:[\\/]*) |
| 7448 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7449 | ;; |
| 7450 | *) |
| 7451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7452 | for as_dir in $PATH |
| 7453 | do |
| 7454 | IFS=$as_save_IFS |
| 7455 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7457 | 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] | 7458 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7459 | 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] | 7460 | break 2 |
| 7461 | fi |
| 7462 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7463 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7464 | IFS=$as_save_IFS |
| 7465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7466 | ;; |
| 7467 | esac |
| 7468 | fi |
| 7469 | ZIP=$ac_cv_path_ZIP |
| 7470 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7471 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7472 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7473 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7474 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7475 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7476 | fi |
| 7477 | |
| 7478 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7479 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7480 | do |
| 7481 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7482 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7483 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7485 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7487 | else |
| 7488 | case $OCAMLC in |
| 7489 | [\\/]* | ?:[\\/]*) |
| 7490 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7491 | ;; |
| 7492 | *) |
| 7493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7494 | for as_dir in $PATH |
| 7495 | do |
| 7496 | IFS=$as_save_IFS |
| 7497 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7499 | 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] | 7500 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7501 | 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] | 7502 | break 2 |
| 7503 | fi |
| 7504 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7505 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7506 | IFS=$as_save_IFS |
| 7507 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7508 | ;; |
| 7509 | esac |
| 7510 | fi |
| 7511 | OCAMLC=$ac_cv_path_OCAMLC |
| 7512 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7513 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7514 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7515 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7516 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7517 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7518 | fi |
| 7519 | |
| 7520 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7521 | test -n "$OCAMLC" && break |
| 7522 | done |
| 7523 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7524 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7525 | do |
| 7526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7527 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7530 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7532 | else |
| 7533 | case $OCAMLOPT in |
| 7534 | [\\/]* | ?:[\\/]*) |
| 7535 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7536 | ;; |
| 7537 | *) |
| 7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7539 | for as_dir in $PATH |
| 7540 | do |
| 7541 | IFS=$as_save_IFS |
| 7542 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7544 | 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] | 7545 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7546 | 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] | 7547 | break 2 |
| 7548 | fi |
| 7549 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7550 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7551 | IFS=$as_save_IFS |
| 7552 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7553 | ;; |
| 7554 | esac |
| 7555 | fi |
| 7556 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7557 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7558 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7559 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7560 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7562 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7563 | fi |
| 7564 | |
| 7565 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7566 | test -n "$OCAMLOPT" && break |
| 7567 | done |
| 7568 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7569 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7570 | do |
| 7571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7572 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7575 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7577 | else |
| 7578 | case $OCAMLDEP in |
| 7579 | [\\/]* | ?:[\\/]*) |
| 7580 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7581 | ;; |
| 7582 | *) |
| 7583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7584 | for as_dir in $PATH |
| 7585 | do |
| 7586 | IFS=$as_save_IFS |
| 7587 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7589 | 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] | 7590 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7591 | 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] | 7592 | break 2 |
| 7593 | fi |
| 7594 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7595 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7596 | IFS=$as_save_IFS |
| 7597 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7598 | ;; |
| 7599 | esac |
| 7600 | fi |
| 7601 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7602 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7603 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7604 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7605 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7607 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7608 | fi |
| 7609 | |
| 7610 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 7611 | test -n "$OCAMLDEP" && break |
| 7612 | done |
| 7613 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 7614 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7615 | do |
| 7616 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7617 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7618 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7620 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7622 | else |
| 7623 | case $OCAMLDOC in |
| 7624 | [\\/]* | ?:[\\/]*) |
| 7625 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7626 | ;; |
| 7627 | *) |
| 7628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7629 | for as_dir in $PATH |
| 7630 | do |
| 7631 | IFS=$as_save_IFS |
| 7632 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7634 | 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] | 7635 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7636 | 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] | 7637 | break 2 |
| 7638 | fi |
| 7639 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7640 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7641 | IFS=$as_save_IFS |
| 7642 | |
| 7643 | ;; |
| 7644 | esac |
| 7645 | fi |
| 7646 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7647 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7648 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7649 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7650 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7651 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7652 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 7653 | fi |
| 7654 | |
| 7655 | |
| 7656 | test -n "$OCAMLDOC" && break |
| 7657 | done |
| 7658 | |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 7659 | for ac_prog in gas as |
| 7660 | do |
| 7661 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7662 | set dummy $ac_prog; ac_word=$2 |
| 7663 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7665 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7667 | else |
| 7668 | case $GAS in |
| 7669 | [\\/]* | ?:[\\/]*) |
| 7670 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7671 | ;; |
| 7672 | *) |
| 7673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7674 | for as_dir in $PATH |
| 7675 | do |
| 7676 | IFS=$as_save_IFS |
| 7677 | test -z "$as_dir" && as_dir=. |
| 7678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7680 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 7681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7682 | break 2 |
| 7683 | fi |
| 7684 | done |
| 7685 | done |
| 7686 | IFS=$as_save_IFS |
| 7687 | |
| 7688 | ;; |
| 7689 | esac |
| 7690 | fi |
| 7691 | GAS=$ac_cv_path_GAS |
| 7692 | if test -n "$GAS"; then |
| 7693 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7694 | echo "${ECHO_T}$GAS" >&6; } |
| 7695 | else |
| 7696 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7697 | echo "${ECHO_T}no" >&6; } |
| 7698 | fi |
| 7699 | |
| 7700 | |
| 7701 | test -n "$GAS" && break |
| 7702 | done |
| 7703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7704 | |
Daniel Dunbar | ee0f32d | 2010-08-11 23:53:59 +0000 | [diff] [blame] | 7705 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7706 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7707 | if test "${llvm_cv_link_version+set}" = set; then |
| 7708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7709 | else |
| 7710 | |
| 7711 | version_string="$(ld -v 2>&1 | head -1)" |
| 7712 | |
| 7713 | # Check for ld64. |
| 7714 | if (echo "$version_string" | grep -q "ld64"); then |
Charles Davis | 8b37637 | 2012-02-28 02:55:41 +0000 | [diff] [blame] | 7715 | 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] | 7716 | else |
| 7717 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7718 | fi |
| 7719 | |
| 7720 | fi |
| 7721 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7722 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7723 | |
| 7724 | cat >>confdefs.h <<_ACEOF |
| 7725 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7726 | _ACEOF |
| 7727 | |
| 7728 | |
| 7729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7730 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7731 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7732 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7734 | else |
| 7735 | ac_ext=c |
| 7736 | ac_cpp='$CPP $CPPFLAGS' |
| 7737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7740 | |
| 7741 | oldcflags="$CFLAGS" |
| 7742 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7743 | cat >conftest.$ac_ext <<_ACEOF |
| 7744 | /* confdefs.h. */ |
| 7745 | _ACEOF |
| 7746 | cat confdefs.h >>conftest.$ac_ext |
| 7747 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7748 | /* end confdefs.h. */ |
| 7749 | |
| 7750 | int |
| 7751 | main () |
| 7752 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | ; |
| 7755 | return 0; |
| 7756 | } |
| 7757 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7759 | if { (ac_try="$ac_link" |
| 7760 | case "(($ac_try" in |
| 7761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7762 | *) ac_try_echo=$ac_try;; |
| 7763 | esac |
| 7764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7765 | (eval "$ac_link") 2>conftest.er1 |
| 7766 | ac_status=$? |
| 7767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7768 | rm -f conftest.er1 |
| 7769 | cat conftest.err >&5 |
| 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7771 | (exit $ac_status); } && |
| 7772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7773 | { (case "(($ac_try" in |
| 7774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7775 | *) ac_try_echo=$ac_try;; |
| 7776 | esac |
| 7777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7778 | (eval "$ac_try") 2>&5 |
| 7779 | ac_status=$? |
| 7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7781 | (exit $ac_status); }; } && |
| 7782 | { ac_try='test -s conftest$ac_exeext' |
| 7783 | { (case "(($ac_try" in |
| 7784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7785 | *) ac_try_echo=$ac_try;; |
| 7786 | esac |
| 7787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7788 | (eval "$ac_try") 2>&5 |
| 7789 | ac_status=$? |
| 7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7791 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7792 | llvm_cv_link_use_r=yes |
| 7793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7794 | echo "$as_me: failed program was:" >&5 |
| 7795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7796 | |
| 7797 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7798 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7799 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7800 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7801 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7802 | CFLAGS="$oldcflags" |
| 7803 | ac_ext=c |
| 7804 | ac_cpp='$CPP $CPPFLAGS' |
| 7805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7808 | |
| 7809 | |
| 7810 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7811 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7812 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7813 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7814 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7815 | cat >>confdefs.h <<\_ACEOF |
| 7816 | #define HAVE_LINK_R 1 |
| 7817 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7818 | |
| 7819 | fi |
| 7820 | |
| 7821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7822 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7823 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7824 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7826 | else |
| 7827 | ac_ext=c |
| 7828 | ac_cpp='$CPP $CPPFLAGS' |
| 7829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7832 | |
| 7833 | oldcflags="$CFLAGS" |
| 7834 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7835 | cat >conftest.$ac_ext <<_ACEOF |
| 7836 | /* confdefs.h. */ |
| 7837 | _ACEOF |
| 7838 | cat confdefs.h >>conftest.$ac_ext |
| 7839 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7840 | /* end confdefs.h. */ |
| 7841 | |
| 7842 | int |
| 7843 | main () |
| 7844 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7845 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7846 | ; |
| 7847 | return 0; |
| 7848 | } |
| 7849 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7851 | if { (ac_try="$ac_link" |
| 7852 | case "(($ac_try" in |
| 7853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7854 | *) ac_try_echo=$ac_try;; |
| 7855 | esac |
| 7856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7857 | (eval "$ac_link") 2>conftest.er1 |
| 7858 | ac_status=$? |
| 7859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7860 | rm -f conftest.er1 |
| 7861 | cat conftest.err >&5 |
| 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 | (exit $ac_status); } && |
| 7864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 7871 | ac_status=$? |
| 7872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7873 | (exit $ac_status); }; } && |
| 7874 | { ac_try='test -s conftest$ac_exeext' |
| 7875 | { (case "(($ac_try" in |
| 7876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7877 | *) ac_try_echo=$ac_try;; |
| 7878 | esac |
| 7879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7880 | (eval "$ac_try") 2>&5 |
| 7881 | ac_status=$? |
| 7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7883 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7884 | llvm_cv_link_use_export_dynamic=yes |
| 7885 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7886 | echo "$as_me: failed program was:" >&5 |
| 7887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7888 | |
| 7889 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7891 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7892 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7893 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7894 | CFLAGS="$oldcflags" |
| 7895 | ac_ext=c |
| 7896 | ac_cpp='$CPP $CPPFLAGS' |
| 7897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7900 | |
| 7901 | |
| 7902 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7903 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7904 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7905 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7906 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7907 | cat >>confdefs.h <<\_ACEOF |
| 7908 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7909 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 7910 | |
| 7911 | fi |
| 7912 | |
| 7913 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7914 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7915 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7916 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7918 | else |
| 7919 | ac_ext=c |
| 7920 | ac_cpp='$CPP $CPPFLAGS' |
| 7921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7924 | |
| 7925 | oldcflags="$CFLAGS" |
| 7926 | |
| 7927 | # The following code is from the autoconf manual, |
| 7928 | # "11.13: Limitations of Usual Tools". |
| 7929 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 7930 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 7931 | # with $RANDOM to make collisions less likely. |
| 7932 | : ${TMPDIR=/tmp} |
| 7933 | { |
| 7934 | tmp=` |
| 7935 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 7936 | ` && |
| 7937 | test -n "$tmp" && test -d "$tmp" |
| 7938 | } || { |
| 7939 | tmp=$TMPDIR/foo$$-$RANDOM |
| 7940 | (umask 077 && mkdir "$tmp") |
| 7941 | } || exit $? |
| 7942 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7943 | echo "{" > "$tmp/export.map" |
| 7944 | echo " global: main;" >> "$tmp/export.map" |
| 7945 | echo " local: *;" >> "$tmp/export.map" |
| 7946 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7947 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7948 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7949 | cat >conftest.$ac_ext <<_ACEOF |
| 7950 | /* confdefs.h. */ |
| 7951 | _ACEOF |
| 7952 | cat confdefs.h >>conftest.$ac_ext |
| 7953 | cat >>conftest.$ac_ext <<_ACEOF |
| 7954 | /* end confdefs.h. */ |
| 7955 | |
| 7956 | int |
| 7957 | main () |
| 7958 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 7959 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7960 | ; |
| 7961 | return 0; |
| 7962 | } |
| 7963 | _ACEOF |
| 7964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7965 | if { (ac_try="$ac_link" |
| 7966 | case "(($ac_try" in |
| 7967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7968 | *) ac_try_echo=$ac_try;; |
| 7969 | esac |
| 7970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7971 | (eval "$ac_link") 2>conftest.er1 |
| 7972 | ac_status=$? |
| 7973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7974 | rm -f conftest.er1 |
| 7975 | cat conftest.err >&5 |
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); } && |
| 7978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7979 | { (case "(($ac_try" in |
| 7980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7981 | *) ac_try_echo=$ac_try;; |
| 7982 | esac |
| 7983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7984 | (eval "$ac_try") 2>&5 |
| 7985 | ac_status=$? |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); }; } && |
| 7988 | { ac_try='test -s conftest$ac_exeext' |
| 7989 | { (case "(($ac_try" in |
| 7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7991 | *) ac_try_echo=$ac_try;; |
| 7992 | esac |
| 7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7994 | (eval "$ac_try") 2>&5 |
| 7995 | ac_status=$? |
| 7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7997 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 7998 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 7999 | else |
| 8000 | echo "$as_me: failed program was:" >&5 |
| 8001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8002 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8003 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8004 | fi |
| 8005 | |
| 8006 | rm -f core conftest.err conftest.$ac_objext \ |
| 8007 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8008 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8009 | rmdir "$tmp" |
| 8010 | CFLAGS="$oldcflags" |
| 8011 | ac_ext=c |
| 8012 | ac_cpp='$CPP $CPPFLAGS' |
| 8013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8016 | |
| 8017 | |
| 8018 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8019 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8020 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8021 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8022 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8023 | |
| 8024 | fi |
| 8025 | |
| 8026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8027 | |
| 8028 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8029 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8030 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8031 | if test "${ac_cv_c_const+set}" = set; then |
| 8032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8033 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8034 | cat >conftest.$ac_ext <<_ACEOF |
| 8035 | /* confdefs.h. */ |
| 8036 | _ACEOF |
| 8037 | cat confdefs.h >>conftest.$ac_ext |
| 8038 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8039 | /* end confdefs.h. */ |
| 8040 | |
| 8041 | int |
| 8042 | main () |
| 8043 | { |
| 8044 | /* FIXME: Include the comments suggested by Paul. */ |
| 8045 | #ifndef __cplusplus |
| 8046 | /* Ultrix mips cc rejects this. */ |
| 8047 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8048 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8049 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8050 | char const *const *ccp; |
| 8051 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8052 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8053 | struct point {int x, y;}; |
| 8054 | static struct point const zero = {0,0}; |
| 8055 | /* AIX XL C 1.02.0.0 rejects this. |
| 8056 | It does not let you subtract one const X* pointer from another in |
| 8057 | an arm of an if-expression whose if-part is not a constant |
| 8058 | expression */ |
| 8059 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8060 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8061 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8062 | ++ccp; |
| 8063 | p = (char**) ccp; |
| 8064 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8065 | { /* SCO 3.2v4 cc rejects this. */ |
| 8066 | char *t; |
| 8067 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8068 | |
| 8069 | *t++ = 0; |
| 8070 | if (s) return 0; |
| 8071 | } |
| 8072 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8073 | int x[] = {25, 17}; |
| 8074 | const int *foo = &x[0]; |
| 8075 | ++foo; |
| 8076 | } |
| 8077 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8078 | typedef const int *iptr; |
| 8079 | iptr p = 0; |
| 8080 | ++p; |
| 8081 | } |
| 8082 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8083 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8084 | struct s { int j; const int *ap[3]; }; |
| 8085 | struct s *b; b->j = 5; |
| 8086 | } |
| 8087 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8088 | const int foo = 10; |
| 8089 | if (!foo) return 0; |
| 8090 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8091 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8092 | #endif |
| 8093 | |
| 8094 | ; |
| 8095 | return 0; |
| 8096 | } |
| 8097 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8098 | rm -f conftest.$ac_objext |
| 8099 | if { (ac_try="$ac_compile" |
| 8100 | case "(($ac_try" in |
| 8101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8102 | *) ac_try_echo=$ac_try;; |
| 8103 | esac |
| 8104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8105 | (eval "$ac_compile") 2>conftest.er1 |
| 8106 | ac_status=$? |
| 8107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8108 | rm -f conftest.er1 |
| 8109 | cat conftest.err >&5 |
| 8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8111 | (exit $ac_status); } && |
| 8112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8113 | { (case "(($ac_try" in |
| 8114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8115 | *) ac_try_echo=$ac_try;; |
| 8116 | esac |
| 8117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8118 | (eval "$ac_try") 2>&5 |
| 8119 | ac_status=$? |
| 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8121 | (exit $ac_status); }; } && |
| 8122 | { ac_try='test -s conftest.$ac_objext' |
| 8123 | { (case "(($ac_try" in |
| 8124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8125 | *) ac_try_echo=$ac_try;; |
| 8126 | esac |
| 8127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8128 | (eval "$ac_try") 2>&5 |
| 8129 | ac_status=$? |
| 8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8131 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8132 | ac_cv_c_const=yes |
| 8133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8134 | echo "$as_me: failed program was:" >&5 |
| 8135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8136 | |
| 8137 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8138 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8139 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8141 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8142 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8143 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8144 | if test $ac_cv_c_const = no; then |
| 8145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8146 | cat >>confdefs.h <<\_ACEOF |
| 8147 | #define const |
| 8148 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8149 | |
| 8150 | fi |
| 8151 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8152 | |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8157 | ac_header_dirent=no |
| 8158 | 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] | 8159 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8160 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8161 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8164 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8165 | cat >conftest.$ac_ext <<_ACEOF |
| 8166 | /* confdefs.h. */ |
| 8167 | _ACEOF |
| 8168 | cat confdefs.h >>conftest.$ac_ext |
| 8169 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8170 | /* end confdefs.h. */ |
| 8171 | #include <sys/types.h> |
| 8172 | #include <$ac_hdr> |
| 8173 | |
| 8174 | int |
| 8175 | main () |
| 8176 | { |
| 8177 | if ((DIR *) 0) |
| 8178 | return 0; |
| 8179 | ; |
| 8180 | return 0; |
| 8181 | } |
| 8182 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8183 | rm -f conftest.$ac_objext |
| 8184 | if { (ac_try="$ac_compile" |
| 8185 | case "(($ac_try" in |
| 8186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8187 | *) ac_try_echo=$ac_try;; |
| 8188 | esac |
| 8189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8190 | (eval "$ac_compile") 2>conftest.er1 |
| 8191 | ac_status=$? |
| 8192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8193 | rm -f conftest.er1 |
| 8194 | cat conftest.err >&5 |
| 8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8196 | (exit $ac_status); } && |
| 8197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8198 | { (case "(($ac_try" in |
| 8199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8200 | *) ac_try_echo=$ac_try;; |
| 8201 | esac |
| 8202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8203 | (eval "$ac_try") 2>&5 |
| 8204 | ac_status=$? |
| 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 | (exit $ac_status); }; } && |
| 8207 | { ac_try='test -s conftest.$ac_objext' |
| 8208 | { (case "(($ac_try" in |
| 8209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8210 | *) ac_try_echo=$ac_try;; |
| 8211 | esac |
| 8212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8213 | (eval "$ac_try") 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8217 | eval "$as_ac_Header=yes" |
| 8218 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8219 | echo "$as_me: failed program was:" >&5 |
| 8220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8221 | |
| 8222 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8223 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8226 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8227 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8228 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8229 | echo "${ECHO_T}$ac_res" >&6; } |
| 8230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8231 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8232 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8233 | _ACEOF |
| 8234 | |
| 8235 | ac_header_dirent=$ac_hdr; break |
| 8236 | fi |
| 8237 | |
| 8238 | done |
| 8239 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8240 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8241 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8242 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8243 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8245 | else |
| 8246 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8247 | cat >conftest.$ac_ext <<_ACEOF |
| 8248 | /* confdefs.h. */ |
| 8249 | _ACEOF |
| 8250 | cat confdefs.h >>conftest.$ac_ext |
| 8251 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8252 | /* end confdefs.h. */ |
| 8253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8254 | /* Override any GCC internal prototype to avoid an error. |
| 8255 | Use char because int might match the return type of a GCC |
| 8256 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8257 | #ifdef __cplusplus |
| 8258 | extern "C" |
| 8259 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8260 | char opendir (); |
| 8261 | int |
| 8262 | main () |
| 8263 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8265 | ; |
| 8266 | return 0; |
| 8267 | } |
| 8268 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8269 | for ac_lib in '' dir; do |
| 8270 | if test -z "$ac_lib"; then |
| 8271 | ac_res="none required" |
| 8272 | else |
| 8273 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8274 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8276 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8277 | if { (ac_try="$ac_link" |
| 8278 | case "(($ac_try" in |
| 8279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8280 | *) ac_try_echo=$ac_try;; |
| 8281 | esac |
| 8282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8283 | (eval "$ac_link") 2>conftest.er1 |
| 8284 | ac_status=$? |
| 8285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8286 | rm -f conftest.er1 |
| 8287 | cat conftest.err >&5 |
| 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); } && |
| 8290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8291 | { (case "(($ac_try" in |
| 8292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8293 | *) ac_try_echo=$ac_try;; |
| 8294 | esac |
| 8295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8296 | (eval "$ac_try") 2>&5 |
| 8297 | ac_status=$? |
| 8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8299 | (exit $ac_status); }; } && |
| 8300 | { ac_try='test -s conftest$ac_exeext' |
| 8301 | { (case "(($ac_try" in |
| 8302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8303 | *) ac_try_echo=$ac_try;; |
| 8304 | esac |
| 8305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8306 | (eval "$ac_try") 2>&5 |
| 8307 | ac_status=$? |
| 8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8309 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8310 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8311 | else |
| 8312 | echo "$as_me: failed program was:" >&5 |
| 8313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8314 | |
| 8315 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8316 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8317 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8318 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8319 | conftest$ac_exeext |
| 8320 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8321 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8322 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8323 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8324 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8325 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8326 | else |
| 8327 | ac_cv_search_opendir=no |
| 8328 | fi |
| 8329 | rm conftest.$ac_ext |
| 8330 | LIBS=$ac_func_search_save_LIBS |
| 8331 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8332 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8333 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8334 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8335 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8336 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8338 | fi |
| 8339 | |
| 8340 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8341 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8342 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8343 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8345 | else |
| 8346 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8347 | cat >conftest.$ac_ext <<_ACEOF |
| 8348 | /* confdefs.h. */ |
| 8349 | _ACEOF |
| 8350 | cat confdefs.h >>conftest.$ac_ext |
| 8351 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8352 | /* end confdefs.h. */ |
| 8353 | |
| 8354 | /* Override any GCC internal prototype to avoid an error. |
| 8355 | Use char because int might match the return type of a GCC |
| 8356 | builtin and then its argument prototype would still apply. */ |
| 8357 | #ifdef __cplusplus |
| 8358 | extern "C" |
| 8359 | #endif |
| 8360 | char opendir (); |
| 8361 | int |
| 8362 | main () |
| 8363 | { |
| 8364 | return opendir (); |
| 8365 | ; |
| 8366 | return 0; |
| 8367 | } |
| 8368 | _ACEOF |
| 8369 | for ac_lib in '' x; do |
| 8370 | if test -z "$ac_lib"; then |
| 8371 | ac_res="none required" |
| 8372 | else |
| 8373 | ac_res=-l$ac_lib |
| 8374 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8375 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8376 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8377 | if { (ac_try="$ac_link" |
| 8378 | case "(($ac_try" in |
| 8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8380 | *) ac_try_echo=$ac_try;; |
| 8381 | esac |
| 8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8383 | (eval "$ac_link") 2>conftest.er1 |
| 8384 | ac_status=$? |
| 8385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8386 | rm -f conftest.er1 |
| 8387 | cat conftest.err >&5 |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); } && |
| 8390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8391 | { (case "(($ac_try" in |
| 8392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8393 | *) ac_try_echo=$ac_try;; |
| 8394 | esac |
| 8395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8396 | (eval "$ac_try") 2>&5 |
| 8397 | ac_status=$? |
| 8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8399 | (exit $ac_status); }; } && |
| 8400 | { ac_try='test -s conftest$ac_exeext' |
| 8401 | { (case "(($ac_try" in |
| 8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8403 | *) ac_try_echo=$ac_try;; |
| 8404 | esac |
| 8405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8406 | (eval "$ac_try") 2>&5 |
| 8407 | ac_status=$? |
| 8408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8409 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8410 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8411 | else |
| 8412 | echo "$as_me: failed program was:" >&5 |
| 8413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8414 | |
| 8415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8416 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8417 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8418 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8419 | conftest$ac_exeext |
| 8420 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8421 | break |
| 8422 | fi |
| 8423 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8424 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8425 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8426 | else |
| 8427 | ac_cv_search_opendir=no |
| 8428 | fi |
| 8429 | rm conftest.$ac_ext |
| 8430 | LIBS=$ac_func_search_save_LIBS |
| 8431 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8432 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8433 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8434 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8435 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8436 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8437 | |
| 8438 | fi |
| 8439 | |
| 8440 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8441 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8442 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8443 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8444 | do |
| 8445 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8446 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8451 | fi |
| 8452 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8453 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8454 | echo "${ECHO_T}$ac_res" >&6; } |
| 8455 | else |
| 8456 | # Is the header compilable? |
| 8457 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8458 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8459 | cat >conftest.$ac_ext <<_ACEOF |
| 8460 | /* confdefs.h. */ |
| 8461 | _ACEOF |
| 8462 | cat confdefs.h >>conftest.$ac_ext |
| 8463 | cat >>conftest.$ac_ext <<_ACEOF |
| 8464 | /* end confdefs.h. */ |
| 8465 | $ac_includes_default |
| 8466 | #include <$ac_header> |
| 8467 | _ACEOF |
| 8468 | rm -f conftest.$ac_objext |
| 8469 | if { (ac_try="$ac_compile" |
| 8470 | case "(($ac_try" in |
| 8471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8472 | *) ac_try_echo=$ac_try;; |
| 8473 | esac |
| 8474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8475 | (eval "$ac_compile") 2>conftest.er1 |
| 8476 | ac_status=$? |
| 8477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8478 | rm -f conftest.er1 |
| 8479 | cat conftest.err >&5 |
| 8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8481 | (exit $ac_status); } && |
| 8482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8483 | { (case "(($ac_try" in |
| 8484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8485 | *) ac_try_echo=$ac_try;; |
| 8486 | esac |
| 8487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8488 | (eval "$ac_try") 2>&5 |
| 8489 | ac_status=$? |
| 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8491 | (exit $ac_status); }; } && |
| 8492 | { ac_try='test -s conftest.$ac_objext' |
| 8493 | { (case "(($ac_try" in |
| 8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8495 | *) ac_try_echo=$ac_try;; |
| 8496 | esac |
| 8497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8498 | (eval "$ac_try") 2>&5 |
| 8499 | ac_status=$? |
| 8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8501 | (exit $ac_status); }; }; then |
| 8502 | ac_header_compiler=yes |
| 8503 | else |
| 8504 | echo "$as_me: failed program was:" >&5 |
| 8505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8506 | |
| 8507 | ac_header_compiler=no |
| 8508 | fi |
| 8509 | |
| 8510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8511 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8512 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8513 | |
| 8514 | # Is the header present? |
| 8515 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8516 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8517 | cat >conftest.$ac_ext <<_ACEOF |
| 8518 | /* confdefs.h. */ |
| 8519 | _ACEOF |
| 8520 | cat confdefs.h >>conftest.$ac_ext |
| 8521 | cat >>conftest.$ac_ext <<_ACEOF |
| 8522 | /* end confdefs.h. */ |
| 8523 | #include <$ac_header> |
| 8524 | _ACEOF |
| 8525 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8526 | case "(($ac_try" in |
| 8527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8528 | *) ac_try_echo=$ac_try;; |
| 8529 | esac |
| 8530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8531 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8532 | ac_status=$? |
| 8533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8534 | rm -f conftest.er1 |
| 8535 | cat conftest.err >&5 |
| 8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8537 | (exit $ac_status); } >/dev/null; then |
| 8538 | if test -s conftest.err; then |
| 8539 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8540 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8541 | else |
| 8542 | ac_cpp_err= |
| 8543 | fi |
| 8544 | else |
| 8545 | ac_cpp_err=yes |
| 8546 | fi |
| 8547 | if test -z "$ac_cpp_err"; then |
| 8548 | ac_header_preproc=yes |
| 8549 | else |
| 8550 | echo "$as_me: failed program was:" >&5 |
| 8551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8552 | |
| 8553 | ac_header_preproc=no |
| 8554 | fi |
| 8555 | |
| 8556 | rm -f conftest.err conftest.$ac_ext |
| 8557 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8558 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8559 | |
| 8560 | # So? What about this header? |
| 8561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8562 | yes:no: ) |
| 8563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8566 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8567 | ac_header_preproc=yes |
| 8568 | ;; |
| 8569 | no:yes:* ) |
| 8570 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8571 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8572 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8573 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8574 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8575 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8576 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8577 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8578 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8579 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8580 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8581 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8582 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 8583 | ## ------------------------------------ ## |
| 8584 | ## Report this to http://llvm.org/bugs/ ## |
| 8585 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8586 | _ASBOX |
| 8587 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8588 | ;; |
| 8589 | esac |
| 8590 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8591 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8594 | else |
| 8595 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8596 | fi |
| 8597 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8599 | echo "${ECHO_T}$ac_res" >&6; } |
| 8600 | |
| 8601 | fi |
| 8602 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8603 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8604 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8605 | _ACEOF |
| 8606 | |
| 8607 | fi |
| 8608 | |
| 8609 | done |
| 8610 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8611 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8612 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8613 | enableval=$enable_ltdl_install; |
| 8614 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8615 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8616 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8617 | |
| 8618 | |
| 8619 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8620 | INSTALL_LTDL_TRUE= |
| 8621 | INSTALL_LTDL_FALSE='#' |
| 8622 | else |
| 8623 | INSTALL_LTDL_TRUE='#' |
| 8624 | INSTALL_LTDL_FALSE= |
| 8625 | fi |
| 8626 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8627 | |
| 8628 | |
| 8629 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8630 | CONVENIENCE_LTDL_TRUE= |
| 8631 | CONVENIENCE_LTDL_FALSE='#' |
| 8632 | else |
| 8633 | CONVENIENCE_LTDL_TRUE='#' |
| 8634 | CONVENIENCE_LTDL_FALSE= |
| 8635 | fi |
| 8636 | |
| 8637 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8638 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8639 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8640 | library_names_spec= |
| 8641 | libname_spec='lib$name' |
| 8642 | soname_spec= |
| 8643 | shrext_cmds=".so" |
| 8644 | postinstall_cmds= |
| 8645 | postuninstall_cmds= |
| 8646 | finish_cmds= |
| 8647 | finish_eval= |
| 8648 | shlibpath_var= |
| 8649 | shlibpath_overrides_runpath=unknown |
| 8650 | version_type=none |
| 8651 | dynamic_linker="$host_os ld.so" |
| 8652 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8653 | if test "$GCC" = yes; then |
| 8654 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8655 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8656 | # if the path contains ";" then we assume it to be the separator |
| 8657 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8658 | # assumed that no part of a normal pathname contains ";" but that should |
| 8659 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8660 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8661 | else |
| 8662 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8663 | fi |
| 8664 | else |
| 8665 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8666 | fi |
| 8667 | need_lib_prefix=unknown |
| 8668 | hardcode_into_libs=no |
| 8669 | |
| 8670 | # when you set need_version to no, make sure it does not cause -set_version |
| 8671 | # flags to be left without arguments |
| 8672 | need_version=unknown |
| 8673 | |
| 8674 | case $host_os in |
| 8675 | aix3*) |
| 8676 | version_type=linux |
| 8677 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8678 | shlibpath_var=LIBPATH |
| 8679 | |
| 8680 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8682 | ;; |
| 8683 | |
| 8684 | aix4* | aix5*) |
| 8685 | version_type=linux |
| 8686 | need_lib_prefix=no |
| 8687 | need_version=no |
| 8688 | hardcode_into_libs=yes |
| 8689 | if test "$host_cpu" = ia64; then |
| 8690 | # AIX 5 supports IA64 |
| 8691 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8692 | shlibpath_var=LD_LIBRARY_PATH |
| 8693 | else |
| 8694 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8695 | # for dependence libraries. The import file would start with |
| 8696 | # the line `#! .'. This would cause the generated library to |
| 8697 | # depend on `.', always an invalid library. This was fixed in |
| 8698 | # development snapshots of GCC prior to 3.0. |
| 8699 | case $host_os in |
| 8700 | aix4 | aix4.[01] | aix4.[01].*) |
| 8701 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8702 | echo ' yes ' |
| 8703 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8704 | : |
| 8705 | else |
| 8706 | can_build_shared=no |
| 8707 | fi |
| 8708 | ;; |
| 8709 | esac |
| 8710 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8711 | # soname into executable. Probably we can add versioning support to |
| 8712 | # collect2, so additional links can be useful in future. |
| 8713 | if test "$aix_use_runtimelinking" = yes; then |
| 8714 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8715 | # instead of lib<name>.a to let people know that these are not |
| 8716 | # typical AIX shared libraries. |
| 8717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8718 | else |
| 8719 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8720 | # and later when we are not doing run time linking. |
| 8721 | library_names_spec='${libname}${release}.a $libname.a' |
| 8722 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8723 | fi |
| 8724 | shlibpath_var=LIBPATH |
| 8725 | fi |
| 8726 | ;; |
| 8727 | |
| 8728 | amigaos*) |
| 8729 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8730 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8731 | 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' |
| 8732 | ;; |
| 8733 | |
| 8734 | beos*) |
| 8735 | library_names_spec='${libname}${shared_ext}' |
| 8736 | dynamic_linker="$host_os ld.so" |
| 8737 | shlibpath_var=LIBRARY_PATH |
| 8738 | ;; |
| 8739 | |
| 8740 | bsdi[45]*) |
| 8741 | version_type=linux |
| 8742 | need_version=no |
| 8743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8744 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8745 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8746 | shlibpath_var=LD_LIBRARY_PATH |
| 8747 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8748 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8749 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8750 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8751 | # libtool to hard-code these into programs |
| 8752 | ;; |
| 8753 | |
| 8754 | cygwin* | mingw* | pw32*) |
| 8755 | version_type=windows |
| 8756 | shrext_cmds=".dll" |
| 8757 | need_version=no |
| 8758 | need_lib_prefix=no |
| 8759 | |
| 8760 | case $GCC,$host_os in |
| 8761 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8762 | library_names_spec='$libname.dll.a' |
| 8763 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8764 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8765 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8766 | dldir=$destdir/`dirname \$dlpath`~ |
| 8767 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8768 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8769 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8770 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8771 | dlpath=$dir/\$dldll~ |
| 8772 | $rm \$dlpath' |
| 8773 | shlibpath_overrides_runpath=yes |
| 8774 | |
| 8775 | case $host_os in |
| 8776 | cygwin*) |
| 8777 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8778 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8779 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8780 | ;; |
| 8781 | mingw*) |
| 8782 | # MinGW DLLs use traditional 'lib' prefix |
| 8783 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8784 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8785 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8786 | # It is most probably a Windows format PATH printed by |
| 8787 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8788 | # path with ; separators, and with drive letters. We can handle the |
| 8789 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8790 | # especially as we might pass files found there to a mingw objdump, |
| 8791 | # which wouldn't understand a cygwinified path. Ahh. |
| 8792 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8793 | else |
| 8794 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8795 | fi |
| 8796 | ;; |
| 8797 | pw32*) |
| 8798 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8799 | 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] | 8800 | ;; |
| 8801 | esac |
| 8802 | ;; |
| 8803 | |
| 8804 | *) |
| 8805 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8806 | ;; |
| 8807 | esac |
| 8808 | dynamic_linker='Win32 ld.exe' |
| 8809 | # FIXME: first we should search . and the directory the executable is in |
| 8810 | shlibpath_var=PATH |
| 8811 | ;; |
| 8812 | |
| 8813 | darwin* | rhapsody*) |
| 8814 | dynamic_linker="$host_os dyld" |
| 8815 | version_type=darwin |
| 8816 | need_lib_prefix=no |
| 8817 | need_version=no |
| 8818 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8819 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8820 | shlibpath_overrides_runpath=yes |
| 8821 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8822 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8823 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8824 | if test "$GCC" = yes; then |
| 8825 | 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"` |
| 8826 | else |
| 8827 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8828 | fi |
| 8829 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8830 | ;; |
| 8831 | |
| 8832 | dgux*) |
| 8833 | version_type=linux |
| 8834 | need_lib_prefix=no |
| 8835 | need_version=no |
| 8836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8838 | shlibpath_var=LD_LIBRARY_PATH |
| 8839 | ;; |
| 8840 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8841 | freebsd1.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8842 | dynamic_linker=no |
| 8843 | ;; |
| 8844 | |
| 8845 | kfreebsd*-gnu) |
| 8846 | version_type=linux |
| 8847 | need_lib_prefix=no |
| 8848 | need_version=no |
| 8849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8850 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8851 | shlibpath_var=LD_LIBRARY_PATH |
| 8852 | shlibpath_overrides_runpath=no |
| 8853 | hardcode_into_libs=yes |
| 8854 | dynamic_linker='GNU ld.so' |
| 8855 | ;; |
| 8856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8857 | freebsd* | dragonfly*) |
| 8858 | # DragonFly does not have aout. When/if they implement a new |
| 8859 | # versioning mechanism, adjust this. |
| 8860 | if test -x /usr/bin/objformat; then |
| 8861 | objformat=`/usr/bin/objformat` |
| 8862 | else |
| 8863 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8864 | freebsd[123].*) objformat=aout ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8865 | *) objformat=elf ;; |
| 8866 | esac |
| 8867 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8868 | version_type=freebsd-$objformat |
| 8869 | case $version_type in |
| 8870 | freebsd-elf*) |
| 8871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8872 | need_version=no |
| 8873 | need_lib_prefix=no |
| 8874 | ;; |
| 8875 | freebsd-*) |
| 8876 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8877 | need_version=yes |
| 8878 | ;; |
| 8879 | esac |
| 8880 | shlibpath_var=LD_LIBRARY_PATH |
| 8881 | case $host_os in |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 8882 | freebsd2.*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8883 | shlibpath_overrides_runpath=yes |
| 8884 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8885 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8886 | shlibpath_overrides_runpath=yes |
| 8887 | hardcode_into_libs=yes |
| 8888 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8889 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8890 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8891 | shlibpath_overrides_runpath=no |
| 8892 | hardcode_into_libs=yes |
| 8893 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8894 | freebsd*) # from 4.6 on |
| 8895 | shlibpath_overrides_runpath=yes |
| 8896 | hardcode_into_libs=yes |
| 8897 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8898 | esac |
| 8899 | ;; |
| 8900 | |
| 8901 | gnu*) |
| 8902 | version_type=linux |
| 8903 | need_lib_prefix=no |
| 8904 | need_version=no |
| 8905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8906 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8907 | shlibpath_var=LD_LIBRARY_PATH |
| 8908 | hardcode_into_libs=yes |
| 8909 | ;; |
| 8910 | |
| 8911 | hpux9* | hpux10* | hpux11*) |
| 8912 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8913 | # link against other versions. |
| 8914 | version_type=sunos |
| 8915 | need_lib_prefix=no |
| 8916 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8917 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8918 | ia64*) |
| 8919 | shrext_cmds='.so' |
| 8920 | hardcode_into_libs=yes |
| 8921 | dynamic_linker="$host_os dld.so" |
| 8922 | shlibpath_var=LD_LIBRARY_PATH |
| 8923 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8926 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8927 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8928 | else |
| 8929 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8930 | fi |
| 8931 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8932 | ;; |
| 8933 | hppa*64*) |
| 8934 | shrext_cmds='.sl' |
| 8935 | hardcode_into_libs=yes |
| 8936 | dynamic_linker="$host_os dld.sl" |
| 8937 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8938 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8941 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8942 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8943 | ;; |
| 8944 | *) |
| 8945 | shrext_cmds='.sl' |
| 8946 | dynamic_linker="$host_os dld.sl" |
| 8947 | shlibpath_var=SHLIB_PATH |
| 8948 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8950 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8951 | ;; |
| 8952 | esac |
| 8953 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8954 | postinstall_cmds='chmod 555 $lib' |
| 8955 | ;; |
| 8956 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8957 | interix3*) |
| 8958 | version_type=linux |
| 8959 | need_lib_prefix=no |
| 8960 | need_version=no |
| 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='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8964 | shlibpath_var=LD_LIBRARY_PATH |
| 8965 | shlibpath_overrides_runpath=no |
| 8966 | hardcode_into_libs=yes |
| 8967 | ;; |
| 8968 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8969 | irix5* | irix6* | nonstopux*) |
| 8970 | case $host_os in |
| 8971 | nonstopux*) version_type=nonstopux ;; |
| 8972 | *) |
| 8973 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8974 | version_type=linux |
| 8975 | else |
| 8976 | version_type=irix |
| 8977 | fi ;; |
| 8978 | esac |
| 8979 | need_lib_prefix=no |
| 8980 | need_version=no |
| 8981 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8983 | case $host_os in |
| 8984 | irix5* | nonstopux*) |
| 8985 | libsuff= shlibsuff= |
| 8986 | ;; |
| 8987 | *) |
| 8988 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8989 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8990 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8991 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8992 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8993 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8994 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8995 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8996 | esac |
| 8997 | ;; |
| 8998 | esac |
| 8999 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9000 | shlibpath_overrides_runpath=no |
| 9001 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9002 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9003 | hardcode_into_libs=yes |
| 9004 | ;; |
| 9005 | |
| 9006 | # No shared lib support for Linux oldld, aout, or coff. |
| 9007 | linux*oldld* | linux*aout* | linux*coff*) |
| 9008 | dynamic_linker=no |
| 9009 | ;; |
| 9010 | |
| 9011 | # This must be Linux ELF. |
| 9012 | linux*) |
| 9013 | version_type=linux |
| 9014 | need_lib_prefix=no |
| 9015 | need_version=no |
| 9016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9017 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9018 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9019 | shlibpath_var=LD_LIBRARY_PATH |
| 9020 | shlibpath_overrides_runpath=no |
| 9021 | # This implies no fast_install, which is unacceptable. |
| 9022 | # Some rework will be needed to allow for fast_install |
| 9023 | # before this can be enabled. |
| 9024 | hardcode_into_libs=yes |
| 9025 | |
| 9026 | # Append ld.so.conf contents to the search path |
| 9027 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9028 | 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] | 9029 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9030 | fi |
| 9031 | |
| 9032 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9033 | # powerpc, because MkLinux only supported shared libraries with the |
| 9034 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9035 | # most powerpc-linux boxes support dynamic linking these days and |
| 9036 | # people can always --disable-shared, the test was removed, and we |
| 9037 | # assume the GNU/Linux dynamic linker is in use. |
| 9038 | dynamic_linker='GNU/Linux ld.so' |
| 9039 | ;; |
| 9040 | |
| 9041 | knetbsd*-gnu) |
| 9042 | version_type=linux |
| 9043 | need_lib_prefix=no |
| 9044 | need_version=no |
| 9045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9047 | shlibpath_var=LD_LIBRARY_PATH |
| 9048 | shlibpath_overrides_runpath=no |
| 9049 | hardcode_into_libs=yes |
| 9050 | dynamic_linker='GNU ld.so' |
| 9051 | ;; |
| 9052 | |
| 9053 | netbsd*) |
| 9054 | version_type=sunos |
| 9055 | need_lib_prefix=no |
| 9056 | need_version=no |
| 9057 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9059 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9060 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9061 | else |
| 9062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9064 | dynamic_linker='NetBSD ld.elf_so' |
| 9065 | fi |
| 9066 | shlibpath_var=LD_LIBRARY_PATH |
| 9067 | shlibpath_overrides_runpath=yes |
| 9068 | hardcode_into_libs=yes |
| 9069 | ;; |
| 9070 | |
| 9071 | newsos6) |
| 9072 | version_type=linux |
| 9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9074 | shlibpath_var=LD_LIBRARY_PATH |
| 9075 | shlibpath_overrides_runpath=yes |
| 9076 | ;; |
| 9077 | |
| 9078 | nto-qnx*) |
| 9079 | version_type=linux |
| 9080 | need_lib_prefix=no |
| 9081 | need_version=no |
| 9082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9083 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9084 | shlibpath_var=LD_LIBRARY_PATH |
| 9085 | shlibpath_overrides_runpath=yes |
| 9086 | ;; |
| 9087 | |
Eric Christopher | b0f6759 | 2012-08-06 20:52:18 +0000 | [diff] [blame] | 9088 | openbsd* | bitrig*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9089 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9090 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9091 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9092 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9093 | case $host_os in |
| 9094 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9095 | *) need_version=no ;; |
| 9096 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9098 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9099 | shlibpath_var=LD_LIBRARY_PATH |
| 9100 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9101 | case $host_os in |
| 9102 | openbsd2.[89] | openbsd2.[89].*) |
| 9103 | shlibpath_overrides_runpath=no |
| 9104 | ;; |
| 9105 | *) |
| 9106 | shlibpath_overrides_runpath=yes |
| 9107 | ;; |
| 9108 | esac |
| 9109 | else |
| 9110 | shlibpath_overrides_runpath=yes |
| 9111 | fi |
| 9112 | ;; |
| 9113 | |
| 9114 | os2*) |
| 9115 | libname_spec='$name' |
| 9116 | shrext_cmds=".dll" |
| 9117 | need_lib_prefix=no |
| 9118 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9119 | dynamic_linker='OS/2 ld.exe' |
| 9120 | shlibpath_var=LIBPATH |
| 9121 | ;; |
| 9122 | |
| 9123 | osf3* | osf4* | osf5*) |
| 9124 | version_type=osf |
| 9125 | need_lib_prefix=no |
| 9126 | need_version=no |
| 9127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9129 | shlibpath_var=LD_LIBRARY_PATH |
| 9130 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9131 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9132 | ;; |
| 9133 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9134 | solaris*) |
| 9135 | version_type=linux |
| 9136 | need_lib_prefix=no |
| 9137 | need_version=no |
| 9138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9139 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9140 | shlibpath_var=LD_LIBRARY_PATH |
| 9141 | shlibpath_overrides_runpath=yes |
| 9142 | hardcode_into_libs=yes |
| 9143 | # ldd complains unless libraries are executable |
| 9144 | postinstall_cmds='chmod +x $lib' |
| 9145 | ;; |
| 9146 | |
| 9147 | sunos4*) |
| 9148 | version_type=sunos |
| 9149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9150 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9151 | shlibpath_var=LD_LIBRARY_PATH |
| 9152 | shlibpath_overrides_runpath=yes |
| 9153 | if test "$with_gnu_ld" = yes; then |
| 9154 | need_lib_prefix=no |
| 9155 | fi |
| 9156 | need_version=yes |
| 9157 | ;; |
| 9158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9159 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | version_type=linux |
| 9161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9163 | shlibpath_var=LD_LIBRARY_PATH |
| 9164 | case $host_vendor in |
| 9165 | sni) |
| 9166 | shlibpath_overrides_runpath=no |
| 9167 | need_lib_prefix=no |
| 9168 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9169 | runpath_var=LD_RUN_PATH |
| 9170 | ;; |
| 9171 | siemens) |
| 9172 | need_lib_prefix=no |
| 9173 | ;; |
| 9174 | motorola) |
| 9175 | need_lib_prefix=no |
| 9176 | need_version=no |
| 9177 | shlibpath_overrides_runpath=no |
| 9178 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9179 | ;; |
| 9180 | esac |
| 9181 | ;; |
| 9182 | |
| 9183 | sysv4*MP*) |
| 9184 | if test -d /usr/nec ;then |
| 9185 | version_type=linux |
| 9186 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9187 | soname_spec='$libname${shared_ext}.$major' |
| 9188 | shlibpath_var=LD_LIBRARY_PATH |
| 9189 | fi |
| 9190 | ;; |
| 9191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9192 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9193 | version_type=freebsd-elf |
| 9194 | need_lib_prefix=no |
| 9195 | need_version=no |
| 9196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9198 | shlibpath_var=LD_LIBRARY_PATH |
| 9199 | hardcode_into_libs=yes |
| 9200 | if test "$with_gnu_ld" = yes; then |
| 9201 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9202 | shlibpath_overrides_runpath=no |
| 9203 | else |
| 9204 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9205 | shlibpath_overrides_runpath=yes |
| 9206 | case $host_os in |
| 9207 | sco3.2v5*) |
| 9208 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9209 | ;; |
| 9210 | esac |
| 9211 | fi |
| 9212 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9213 | ;; |
| 9214 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9215 | uts4*) |
| 9216 | version_type=linux |
| 9217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9218 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9219 | shlibpath_var=LD_LIBRARY_PATH |
| 9220 | ;; |
| 9221 | |
| 9222 | *) |
| 9223 | dynamic_linker=no |
| 9224 | ;; |
| 9225 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9226 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9227 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9228 | test "$dynamic_linker" = no && can_build_shared=no |
| 9229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9230 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9231 | if test "$GCC" = yes; then |
| 9232 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9233 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9235 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9237 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9238 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9240 | else |
| 9241 | |
| 9242 | module=yes |
| 9243 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9244 | |
| 9245 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9246 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9247 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | if test -n "$libltdl_cv_shlibext"; then |
| 9249 | |
| 9250 | cat >>confdefs.h <<_ACEOF |
| 9251 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9252 | _ACEOF |
| 9253 | |
| 9254 | fi |
| 9255 | |
| 9256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9257 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9258 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9259 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9261 | else |
| 9262 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9263 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9264 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9265 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9266 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9267 | |
| 9268 | cat >>confdefs.h <<_ACEOF |
| 9269 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9270 | _ACEOF |
| 9271 | |
| 9272 | fi |
| 9273 | |
| 9274 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9275 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9276 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9277 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9279 | else |
| 9280 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9281 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9282 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9283 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9284 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9285 | sys_search_path= |
| 9286 | for dir in $libltdl_cv_sys_search_path; do |
| 9287 | if test -z "$sys_search_path"; then |
| 9288 | sys_search_path="$dir" |
| 9289 | else |
| 9290 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9291 | fi |
| 9292 | done |
| 9293 | |
| 9294 | cat >>confdefs.h <<_ACEOF |
| 9295 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9296 | _ACEOF |
| 9297 | |
| 9298 | fi |
| 9299 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9300 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9301 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9302 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9304 | else |
| 9305 | libltdl_cv_objdir="$objdir" |
| 9306 | if test -n "$objdir"; then |
| 9307 | : |
| 9308 | else |
| 9309 | rm -f .libs 2>/dev/null |
| 9310 | mkdir .libs 2>/dev/null |
| 9311 | if test -d .libs; then |
| 9312 | libltdl_cv_objdir=.libs |
| 9313 | else |
| 9314 | # MS-DOS does not allow filenames that begin with a dot. |
| 9315 | libltdl_cv_objdir=_libs |
| 9316 | fi |
| 9317 | rmdir .libs 2>/dev/null |
| 9318 | fi |
| 9319 | |
| 9320 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9321 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9322 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9323 | |
| 9324 | cat >>confdefs.h <<_ACEOF |
| 9325 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9326 | _ACEOF |
| 9327 | |
| 9328 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | # 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] | 9334 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9335 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9336 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9338 | else |
| 9339 | |
| 9340 | # These are sane defaults that work on at least a few old systems. |
| 9341 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9342 | |
| 9343 | # Character class describing NM global symbol codes. |
| 9344 | symcode='[BCDEGRST]' |
| 9345 | |
| 9346 | # Regexp to match symbols that can be accessed directly from C. |
| 9347 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9348 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9349 | # Transform an extracted symbol line into a proper C declaration |
| 9350 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9351 | |
| 9352 | # Transform an extracted symbol line into symbol name and symbol address |
| 9353 | 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'" |
| 9354 | |
| 9355 | # Define system-specific variables. |
| 9356 | case $host_os in |
| 9357 | aix*) |
| 9358 | symcode='[BCDT]' |
| 9359 | ;; |
| 9360 | cygwin* | mingw* | pw32*) |
| 9361 | symcode='[ABCDGISTW]' |
| 9362 | ;; |
| 9363 | hpux*) # Its linker distinguishes data from code symbols |
| 9364 | if test "$host_cpu" = ia64; then |
| 9365 | symcode='[ABCDEGRST]' |
| 9366 | fi |
| 9367 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9368 | 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'" |
| 9369 | ;; |
| 9370 | linux*) |
| 9371 | if test "$host_cpu" = ia64; then |
| 9372 | symcode='[ABCDGIRSTW]' |
| 9373 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9374 | 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'" |
| 9375 | fi |
| 9376 | ;; |
| 9377 | irix* | nonstopux*) |
| 9378 | symcode='[BCDEGRST]' |
| 9379 | ;; |
| 9380 | osf*) |
| 9381 | symcode='[BCDEGQRST]' |
| 9382 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9383 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9384 | symcode='[BDRT]' |
| 9385 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9386 | sco3.2v5*) |
| 9387 | symcode='[DT]' |
| 9388 | ;; |
| 9389 | sysv4.2uw2*) |
| 9390 | symcode='[DT]' |
| 9391 | ;; |
| 9392 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9393 | symcode='[ABDT]' |
| 9394 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9395 | sysv4) |
| 9396 | symcode='[DFNSTU]' |
| 9397 | ;; |
| 9398 | esac |
| 9399 | |
| 9400 | # Handle CRLF in mingw tool chain |
| 9401 | opt_cr= |
| 9402 | case $build_os in |
| 9403 | mingw*) |
| 9404 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9405 | ;; |
| 9406 | esac |
| 9407 | |
| 9408 | # If we're using GNU nm, then use its standard symbol codes. |
| 9409 | case `$NM -V 2>&1` in |
| 9410 | *GNU* | *'with BFD'*) |
| 9411 | symcode='[ABCDGIRSTW]' ;; |
| 9412 | esac |
| 9413 | |
| 9414 | # Try without a prefix undercore, then with it. |
| 9415 | for ac_symprfx in "" "_"; do |
| 9416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9417 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9418 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9419 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9420 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9421 | 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] | 9422 | |
| 9423 | # Check to see that the pipe works correctly. |
| 9424 | pipe_works=no |
| 9425 | |
| 9426 | rm -f conftest* |
| 9427 | cat > conftest.$ac_ext <<EOF |
| 9428 | #ifdef __cplusplus |
| 9429 | extern "C" { |
| 9430 | #endif |
| 9431 | char nm_test_var; |
| 9432 | void nm_test_func(){} |
| 9433 | #ifdef __cplusplus |
| 9434 | } |
| 9435 | #endif |
| 9436 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9437 | EOF |
| 9438 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9440 | (eval $ac_compile) 2>&5 |
| 9441 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9443 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9444 | # Now try to grab the symbols. |
| 9445 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9446 | 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] | 9447 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9448 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9450 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9451 | # Try sorting and uniquifying the output. |
| 9452 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9453 | mv -f "$nlist"T "$nlist" |
| 9454 | else |
| 9455 | rm -f "$nlist"T |
| 9456 | fi |
| 9457 | |
| 9458 | # Make sure that we snagged all the symbols we need. |
| 9459 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9460 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9461 | cat <<EOF > conftest.$ac_ext |
| 9462 | #ifdef __cplusplus |
| 9463 | extern "C" { |
| 9464 | #endif |
| 9465 | |
| 9466 | EOF |
| 9467 | # Now generate the symbol file. |
| 9468 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9469 | |
| 9470 | cat <<EOF >> conftest.$ac_ext |
| 9471 | #if defined (__STDC__) && __STDC__ |
| 9472 | # define lt_ptr_t void * |
| 9473 | #else |
| 9474 | # define lt_ptr_t char * |
| 9475 | # define const |
| 9476 | #endif |
| 9477 | |
| 9478 | /* The mapping between symbol names and symbols. */ |
| 9479 | const struct { |
| 9480 | const char *name; |
| 9481 | lt_ptr_t address; |
| 9482 | } |
| 9483 | lt_preloaded_symbols[] = |
| 9484 | { |
| 9485 | EOF |
| 9486 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9487 | cat <<\EOF >> conftest.$ac_ext |
| 9488 | {0, (lt_ptr_t) 0} |
| 9489 | }; |
| 9490 | |
| 9491 | #ifdef __cplusplus |
| 9492 | } |
| 9493 | #endif |
| 9494 | EOF |
| 9495 | # Now try linking the two files. |
| 9496 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9497 | lt_save_LIBS="$LIBS" |
| 9498 | lt_save_CFLAGS="$CFLAGS" |
| 9499 | LIBS="conftstm.$ac_objext" |
| 9500 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9502 | (eval $ac_link) 2>&5 |
| 9503 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9506 | pipe_works=yes |
| 9507 | fi |
| 9508 | LIBS="$lt_save_LIBS" |
| 9509 | CFLAGS="$lt_save_CFLAGS" |
| 9510 | else |
| 9511 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9512 | fi |
| 9513 | else |
| 9514 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9515 | fi |
| 9516 | else |
| 9517 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9518 | fi |
| 9519 | else |
| 9520 | echo "$progname: failed program was:" >&5 |
| 9521 | cat conftest.$ac_ext >&5 |
| 9522 | fi |
| 9523 | rm -f conftest* conftst* |
| 9524 | |
| 9525 | # Do not use the global_symbol_pipe unless it works. |
| 9526 | if test "$pipe_works" = yes; then |
| 9527 | break |
| 9528 | else |
| 9529 | lt_cv_sys_global_symbol_pipe= |
| 9530 | fi |
| 9531 | done |
| 9532 | |
| 9533 | fi |
| 9534 | |
| 9535 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9536 | lt_cv_sys_global_symbol_to_cdecl= |
| 9537 | fi |
| 9538 | 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] | 9539 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9540 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9541 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9542 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9543 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9544 | fi |
| 9545 | |
| 9546 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9547 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9548 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9549 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9551 | else |
| 9552 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9553 | libltdl_cv_preloaded_symbols=yes |
| 9554 | else |
| 9555 | libltdl_cv_preloaded_symbols=no |
| 9556 | fi |
| 9557 | |
| 9558 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9559 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9560 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9561 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9562 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9563 | cat >>confdefs.h <<\_ACEOF |
| 9564 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9565 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9566 | |
| 9567 | fi |
| 9568 | |
| 9569 | LIBADD_DL= |
| 9570 | |
| 9571 | ac_ext=c |
| 9572 | ac_cpp='$CPP $CPPFLAGS' |
| 9573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9576 | |
| 9577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9578 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9579 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9580 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9582 | else |
| 9583 | cat >conftest.$ac_ext <<_ACEOF |
| 9584 | /* confdefs.h. */ |
| 9585 | _ACEOF |
| 9586 | cat confdefs.h >>conftest.$ac_ext |
| 9587 | cat >>conftest.$ac_ext <<_ACEOF |
| 9588 | /* end confdefs.h. */ |
| 9589 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9591 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9592 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9593 | /* System header to define __stub macros and hopefully few prototypes, |
| 9594 | which can conflict with char shl_load (); below. |
| 9595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9596 | <limits.h> exists even on freestanding compilers. */ |
| 9597 | |
| 9598 | #ifdef __STDC__ |
| 9599 | # include <limits.h> |
| 9600 | #else |
| 9601 | # include <assert.h> |
| 9602 | #endif |
| 9603 | |
| 9604 | #undef shl_load |
| 9605 | |
| 9606 | /* Override any GCC internal prototype to avoid an error. |
| 9607 | Use char because int might match the return type of a GCC |
| 9608 | builtin and then its argument prototype would still apply. */ |
| 9609 | #ifdef __cplusplus |
| 9610 | extern "C" |
| 9611 | #endif |
| 9612 | char shl_load (); |
| 9613 | /* The GNU C library defines this for functions which it implements |
| 9614 | to always fail with ENOSYS. Some functions are actually named |
| 9615 | something starting with __ and the normal name is an alias. */ |
| 9616 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9617 | choke me |
| 9618 | #endif |
| 9619 | |
| 9620 | int |
| 9621 | main () |
| 9622 | { |
| 9623 | return shl_load (); |
| 9624 | ; |
| 9625 | return 0; |
| 9626 | } |
| 9627 | _ACEOF |
| 9628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9629 | if { (ac_try="$ac_link" |
| 9630 | case "(($ac_try" in |
| 9631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9632 | *) ac_try_echo=$ac_try;; |
| 9633 | esac |
| 9634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9635 | (eval "$ac_link") 2>conftest.er1 |
| 9636 | ac_status=$? |
| 9637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9638 | rm -f conftest.er1 |
| 9639 | cat conftest.err >&5 |
| 9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9641 | (exit $ac_status); } && |
| 9642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9643 | { (case "(($ac_try" in |
| 9644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9645 | *) ac_try_echo=$ac_try;; |
| 9646 | esac |
| 9647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9648 | (eval "$ac_try") 2>&5 |
| 9649 | ac_status=$? |
| 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9651 | (exit $ac_status); }; } && |
| 9652 | { ac_try='test -s conftest$ac_exeext' |
| 9653 | { (case "(($ac_try" in |
| 9654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9655 | *) ac_try_echo=$ac_try;; |
| 9656 | esac |
| 9657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9658 | (eval "$ac_try") 2>&5 |
| 9659 | ac_status=$? |
| 9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9661 | (exit $ac_status); }; }; then |
| 9662 | ac_cv_func_shl_load=yes |
| 9663 | else |
| 9664 | echo "$as_me: failed program was:" >&5 |
| 9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9666 | |
| 9667 | ac_cv_func_shl_load=no |
| 9668 | fi |
| 9669 | |
| 9670 | rm -f core conftest.err conftest.$ac_objext \ |
| 9671 | conftest$ac_exeext conftest.$ac_ext |
| 9672 | fi |
| 9673 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9674 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9675 | if test $ac_cv_func_shl_load = yes; then |
| 9676 | |
| 9677 | cat >>confdefs.h <<\_ACEOF |
| 9678 | #define HAVE_SHL_LOAD 1 |
| 9679 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9680 | |
| 9681 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9682 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9683 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9684 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9686 | else |
| 9687 | ac_check_lib_save_LIBS=$LIBS |
| 9688 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9689 | cat >conftest.$ac_ext <<_ACEOF |
| 9690 | /* confdefs.h. */ |
| 9691 | _ACEOF |
| 9692 | cat confdefs.h >>conftest.$ac_ext |
| 9693 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9694 | /* end confdefs.h. */ |
| 9695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9696 | /* Override any GCC internal prototype to avoid an error. |
| 9697 | Use char because int might match the return type of a GCC |
| 9698 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9699 | #ifdef __cplusplus |
| 9700 | extern "C" |
| 9701 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9702 | char shl_load (); |
| 9703 | int |
| 9704 | main () |
| 9705 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9706 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9707 | ; |
| 9708 | return 0; |
| 9709 | } |
| 9710 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9712 | if { (ac_try="$ac_link" |
| 9713 | case "(($ac_try" in |
| 9714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9715 | *) ac_try_echo=$ac_try;; |
| 9716 | esac |
| 9717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9718 | (eval "$ac_link") 2>conftest.er1 |
| 9719 | ac_status=$? |
| 9720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9721 | rm -f conftest.er1 |
| 9722 | cat conftest.err >&5 |
| 9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9724 | (exit $ac_status); } && |
| 9725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9726 | { (case "(($ac_try" in |
| 9727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9728 | *) ac_try_echo=$ac_try;; |
| 9729 | esac |
| 9730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9731 | (eval "$ac_try") 2>&5 |
| 9732 | ac_status=$? |
| 9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9734 | (exit $ac_status); }; } && |
| 9735 | { ac_try='test -s conftest$ac_exeext' |
| 9736 | { (case "(($ac_try" in |
| 9737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9738 | *) ac_try_echo=$ac_try;; |
| 9739 | esac |
| 9740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9741 | (eval "$ac_try") 2>&5 |
| 9742 | ac_status=$? |
| 9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9744 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9745 | ac_cv_lib_dld_shl_load=yes |
| 9746 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9747 | echo "$as_me: failed program was:" >&5 |
| 9748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9749 | |
| 9750 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9751 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9752 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9753 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9754 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9755 | LIBS=$ac_check_lib_save_LIBS |
| 9756 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9757 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9758 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9759 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9761 | cat >>confdefs.h <<\_ACEOF |
| 9762 | #define HAVE_SHL_LOAD 1 |
| 9763 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9764 | |
| 9765 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9766 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9767 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9768 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9769 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9771 | else |
| 9772 | ac_check_lib_save_LIBS=$LIBS |
| 9773 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9774 | cat >conftest.$ac_ext <<_ACEOF |
| 9775 | /* confdefs.h. */ |
| 9776 | _ACEOF |
| 9777 | cat confdefs.h >>conftest.$ac_ext |
| 9778 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9779 | /* end confdefs.h. */ |
| 9780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9781 | /* Override any GCC internal prototype to avoid an error. |
| 9782 | Use char because int might match the return type of a GCC |
| 9783 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9784 | #ifdef __cplusplus |
| 9785 | extern "C" |
| 9786 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9787 | char dlopen (); |
| 9788 | int |
| 9789 | main () |
| 9790 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9791 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9792 | ; |
| 9793 | return 0; |
| 9794 | } |
| 9795 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9796 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9797 | if { (ac_try="$ac_link" |
| 9798 | case "(($ac_try" in |
| 9799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9800 | *) ac_try_echo=$ac_try;; |
| 9801 | esac |
| 9802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9803 | (eval "$ac_link") 2>conftest.er1 |
| 9804 | ac_status=$? |
| 9805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9806 | rm -f conftest.er1 |
| 9807 | cat conftest.err >&5 |
| 9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9809 | (exit $ac_status); } && |
| 9810 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9811 | { (case "(($ac_try" in |
| 9812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9813 | *) ac_try_echo=$ac_try;; |
| 9814 | esac |
| 9815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9816 | (eval "$ac_try") 2>&5 |
| 9817 | ac_status=$? |
| 9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9819 | (exit $ac_status); }; } && |
| 9820 | { ac_try='test -s conftest$ac_exeext' |
| 9821 | { (case "(($ac_try" in |
| 9822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9823 | *) ac_try_echo=$ac_try;; |
| 9824 | esac |
| 9825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9826 | (eval "$ac_try") 2>&5 |
| 9827 | ac_status=$? |
| 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9829 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9830 | ac_cv_lib_dl_dlopen=yes |
| 9831 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9832 | echo "$as_me: failed program was:" >&5 |
| 9833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9834 | |
| 9835 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9836 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9837 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9838 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9839 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9840 | LIBS=$ac_check_lib_save_LIBS |
| 9841 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9842 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9843 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9844 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9845 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9846 | cat >>confdefs.h <<\_ACEOF |
| 9847 | #define HAVE_LIBDL 1 |
| 9848 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9849 | |
| 9850 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9851 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9852 | cat >conftest.$ac_ext <<_ACEOF |
| 9853 | /* confdefs.h. */ |
| 9854 | _ACEOF |
| 9855 | cat confdefs.h >>conftest.$ac_ext |
| 9856 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9857 | /* end confdefs.h. */ |
| 9858 | #if HAVE_DLFCN_H |
| 9859 | # include <dlfcn.h> |
| 9860 | #endif |
| 9861 | |
| 9862 | int |
| 9863 | main () |
| 9864 | { |
| 9865 | dlopen(0, 0); |
| 9866 | ; |
| 9867 | return 0; |
| 9868 | } |
| 9869 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9870 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9871 | if { (ac_try="$ac_link" |
| 9872 | case "(($ac_try" in |
| 9873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9874 | *) ac_try_echo=$ac_try;; |
| 9875 | esac |
| 9876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9877 | (eval "$ac_link") 2>conftest.er1 |
| 9878 | ac_status=$? |
| 9879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9880 | rm -f conftest.er1 |
| 9881 | cat conftest.err >&5 |
| 9882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9883 | (exit $ac_status); } && |
| 9884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9885 | { (case "(($ac_try" in |
| 9886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9887 | *) ac_try_echo=$ac_try;; |
| 9888 | esac |
| 9889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9890 | (eval "$ac_try") 2>&5 |
| 9891 | ac_status=$? |
| 9892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9893 | (exit $ac_status); }; } && |
| 9894 | { ac_try='test -s conftest$ac_exeext' |
| 9895 | { (case "(($ac_try" in |
| 9896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9897 | *) ac_try_echo=$ac_try;; |
| 9898 | esac |
| 9899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9900 | (eval "$ac_try") 2>&5 |
| 9901 | ac_status=$? |
| 9902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9903 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9904 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9905 | cat >>confdefs.h <<\_ACEOF |
| 9906 | #define HAVE_LIBDL 1 |
| 9907 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9908 | libltdl_cv_func_dlopen="yes" |
| 9909 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9910 | echo "$as_me: failed program was:" >&5 |
| 9911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9912 | |
| 9913 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9914 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9915 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9917 | else |
| 9918 | ac_check_lib_save_LIBS=$LIBS |
| 9919 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9920 | cat >conftest.$ac_ext <<_ACEOF |
| 9921 | /* confdefs.h. */ |
| 9922 | _ACEOF |
| 9923 | cat confdefs.h >>conftest.$ac_ext |
| 9924 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9925 | /* end confdefs.h. */ |
| 9926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9927 | /* Override any GCC internal prototype to avoid an error. |
| 9928 | Use char because int might match the return type of a GCC |
| 9929 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9930 | #ifdef __cplusplus |
| 9931 | extern "C" |
| 9932 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9933 | char dlopen (); |
| 9934 | int |
| 9935 | main () |
| 9936 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9937 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9938 | ; |
| 9939 | return 0; |
| 9940 | } |
| 9941 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9943 | if { (ac_try="$ac_link" |
| 9944 | case "(($ac_try" in |
| 9945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9946 | *) ac_try_echo=$ac_try;; |
| 9947 | esac |
| 9948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9949 | (eval "$ac_link") 2>conftest.er1 |
| 9950 | ac_status=$? |
| 9951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9952 | rm -f conftest.er1 |
| 9953 | cat conftest.err >&5 |
| 9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9955 | (exit $ac_status); } && |
| 9956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9957 | { (case "(($ac_try" in |
| 9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9959 | *) ac_try_echo=$ac_try;; |
| 9960 | esac |
| 9961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9962 | (eval "$ac_try") 2>&5 |
| 9963 | ac_status=$? |
| 9964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9965 | (exit $ac_status); }; } && |
| 9966 | { ac_try='test -s conftest$ac_exeext' |
| 9967 | { (case "(($ac_try" in |
| 9968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9969 | *) ac_try_echo=$ac_try;; |
| 9970 | esac |
| 9971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9972 | (eval "$ac_try") 2>&5 |
| 9973 | ac_status=$? |
| 9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9975 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9976 | ac_cv_lib_svld_dlopen=yes |
| 9977 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9978 | echo "$as_me: failed program was:" >&5 |
| 9979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9980 | |
| 9981 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9982 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9983 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9984 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9985 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9986 | LIBS=$ac_check_lib_save_LIBS |
| 9987 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9988 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9989 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 9990 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9992 | cat >>confdefs.h <<\_ACEOF |
| 9993 | #define HAVE_LIBDL 1 |
| 9994 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9995 | |
| 9996 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9998 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9999 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10000 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10002 | else |
| 10003 | ac_check_lib_save_LIBS=$LIBS |
| 10004 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10005 | cat >conftest.$ac_ext <<_ACEOF |
| 10006 | /* confdefs.h. */ |
| 10007 | _ACEOF |
| 10008 | cat confdefs.h >>conftest.$ac_ext |
| 10009 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10010 | /* end confdefs.h. */ |
| 10011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10012 | /* Override any GCC internal prototype to avoid an error. |
| 10013 | Use char because int might match the return type of a GCC |
| 10014 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10015 | #ifdef __cplusplus |
| 10016 | extern "C" |
| 10017 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10018 | char dld_link (); |
| 10019 | int |
| 10020 | main () |
| 10021 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10022 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10023 | ; |
| 10024 | return 0; |
| 10025 | } |
| 10026 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10027 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10028 | if { (ac_try="$ac_link" |
| 10029 | case "(($ac_try" in |
| 10030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10031 | *) ac_try_echo=$ac_try;; |
| 10032 | esac |
| 10033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10034 | (eval "$ac_link") 2>conftest.er1 |
| 10035 | ac_status=$? |
| 10036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10037 | rm -f conftest.er1 |
| 10038 | cat conftest.err >&5 |
| 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10040 | (exit $ac_status); } && |
| 10041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10042 | { (case "(($ac_try" in |
| 10043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10044 | *) ac_try_echo=$ac_try;; |
| 10045 | esac |
| 10046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10047 | (eval "$ac_try") 2>&5 |
| 10048 | ac_status=$? |
| 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); }; } && |
| 10051 | { ac_try='test -s conftest$ac_exeext' |
| 10052 | { (case "(($ac_try" in |
| 10053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10054 | *) ac_try_echo=$ac_try;; |
| 10055 | esac |
| 10056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10057 | (eval "$ac_try") 2>&5 |
| 10058 | ac_status=$? |
| 10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10060 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | ac_cv_lib_dld_dld_link=yes |
| 10062 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10063 | echo "$as_me: failed program was:" >&5 |
| 10064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10065 | |
| 10066 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10067 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10068 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10069 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10070 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10071 | LIBS=$ac_check_lib_save_LIBS |
| 10072 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10073 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10074 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10075 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10076 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10077 | cat >>confdefs.h <<\_ACEOF |
| 10078 | #define HAVE_DLD 1 |
| 10079 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10080 | |
| 10081 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10082 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10083 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10084 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10085 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10087 | else |
| 10088 | cat >conftest.$ac_ext <<_ACEOF |
| 10089 | /* confdefs.h. */ |
| 10090 | _ACEOF |
| 10091 | cat confdefs.h >>conftest.$ac_ext |
| 10092 | cat >>conftest.$ac_ext <<_ACEOF |
| 10093 | /* end confdefs.h. */ |
| 10094 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10096 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10097 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10098 | /* System header to define __stub macros and hopefully few prototypes, |
| 10099 | which can conflict with char _dyld_func_lookup (); below. |
| 10100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10101 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10102 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10103 | #ifdef __STDC__ |
| 10104 | # include <limits.h> |
| 10105 | #else |
| 10106 | # include <assert.h> |
| 10107 | #endif |
| 10108 | |
| 10109 | #undef _dyld_func_lookup |
| 10110 | |
| 10111 | /* Override any GCC internal prototype to avoid an error. |
| 10112 | Use char because int might match the return type of a GCC |
| 10113 | builtin and then its argument prototype would still apply. */ |
| 10114 | #ifdef __cplusplus |
| 10115 | extern "C" |
| 10116 | #endif |
| 10117 | char _dyld_func_lookup (); |
| 10118 | /* The GNU C library defines this for functions which it implements |
| 10119 | to always fail with ENOSYS. Some functions are actually named |
| 10120 | something starting with __ and the normal name is an alias. */ |
| 10121 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10122 | choke me |
| 10123 | #endif |
| 10124 | |
| 10125 | int |
| 10126 | main () |
| 10127 | { |
| 10128 | return _dyld_func_lookup (); |
| 10129 | ; |
| 10130 | return 0; |
| 10131 | } |
| 10132 | _ACEOF |
| 10133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10134 | if { (ac_try="$ac_link" |
| 10135 | case "(($ac_try" in |
| 10136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10137 | *) ac_try_echo=$ac_try;; |
| 10138 | esac |
| 10139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10140 | (eval "$ac_link") 2>conftest.er1 |
| 10141 | ac_status=$? |
| 10142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10143 | rm -f conftest.er1 |
| 10144 | cat conftest.err >&5 |
| 10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10146 | (exit $ac_status); } && |
| 10147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10148 | { (case "(($ac_try" in |
| 10149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10150 | *) ac_try_echo=$ac_try;; |
| 10151 | esac |
| 10152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10153 | (eval "$ac_try") 2>&5 |
| 10154 | ac_status=$? |
| 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10156 | (exit $ac_status); }; } && |
| 10157 | { ac_try='test -s conftest$ac_exeext' |
| 10158 | { (case "(($ac_try" in |
| 10159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10160 | *) ac_try_echo=$ac_try;; |
| 10161 | esac |
| 10162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10163 | (eval "$ac_try") 2>&5 |
| 10164 | ac_status=$? |
| 10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10166 | (exit $ac_status); }; }; then |
| 10167 | ac_cv_func__dyld_func_lookup=yes |
| 10168 | else |
| 10169 | echo "$as_me: failed program was:" >&5 |
| 10170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10171 | |
| 10172 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10173 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10174 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10175 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10176 | conftest$ac_exeext conftest.$ac_ext |
| 10177 | fi |
| 10178 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10179 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10180 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10181 | |
| 10182 | cat >>confdefs.h <<\_ACEOF |
| 10183 | #define HAVE_DYLD 1 |
| 10184 | _ACEOF |
| 10185 | |
| 10186 | fi |
| 10187 | |
| 10188 | |
| 10189 | fi |
| 10190 | |
| 10191 | |
| 10192 | fi |
| 10193 | |
| 10194 | |
| 10195 | fi |
| 10196 | |
| 10197 | rm -f core conftest.err conftest.$ac_objext \ |
| 10198 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10199 | |
| 10200 | fi |
| 10201 | |
| 10202 | |
| 10203 | fi |
| 10204 | |
| 10205 | |
| 10206 | fi |
| 10207 | |
| 10208 | |
| 10209 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10210 | then |
| 10211 | lt_save_LIBS="$LIBS" |
| 10212 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10213 | |
| 10214 | for ac_func in dlerror |
| 10215 | do |
| 10216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10217 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10219 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10221 | else |
| 10222 | cat >conftest.$ac_ext <<_ACEOF |
| 10223 | /* confdefs.h. */ |
| 10224 | _ACEOF |
| 10225 | cat confdefs.h >>conftest.$ac_ext |
| 10226 | cat >>conftest.$ac_ext <<_ACEOF |
| 10227 | /* end confdefs.h. */ |
| 10228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10230 | #define $ac_func innocuous_$ac_func |
| 10231 | |
| 10232 | /* System header to define __stub macros and hopefully few prototypes, |
| 10233 | which can conflict with char $ac_func (); below. |
| 10234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10235 | <limits.h> exists even on freestanding compilers. */ |
| 10236 | |
| 10237 | #ifdef __STDC__ |
| 10238 | # include <limits.h> |
| 10239 | #else |
| 10240 | # include <assert.h> |
| 10241 | #endif |
| 10242 | |
| 10243 | #undef $ac_func |
| 10244 | |
| 10245 | /* Override any GCC internal prototype to avoid an error. |
| 10246 | Use char because int might match the return type of a GCC |
| 10247 | builtin and then its argument prototype would still apply. */ |
| 10248 | #ifdef __cplusplus |
| 10249 | extern "C" |
| 10250 | #endif |
| 10251 | char $ac_func (); |
| 10252 | /* The GNU C library defines this for functions which it implements |
| 10253 | to always fail with ENOSYS. Some functions are actually named |
| 10254 | something starting with __ and the normal name is an alias. */ |
| 10255 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10256 | choke me |
| 10257 | #endif |
| 10258 | |
| 10259 | int |
| 10260 | main () |
| 10261 | { |
| 10262 | return $ac_func (); |
| 10263 | ; |
| 10264 | return 0; |
| 10265 | } |
| 10266 | _ACEOF |
| 10267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10268 | if { (ac_try="$ac_link" |
| 10269 | case "(($ac_try" in |
| 10270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10271 | *) ac_try_echo=$ac_try;; |
| 10272 | esac |
| 10273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10274 | (eval "$ac_link") 2>conftest.er1 |
| 10275 | ac_status=$? |
| 10276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10277 | rm -f conftest.er1 |
| 10278 | cat conftest.err >&5 |
| 10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10280 | (exit $ac_status); } && |
| 10281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10282 | { (case "(($ac_try" in |
| 10283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10284 | *) ac_try_echo=$ac_try;; |
| 10285 | esac |
| 10286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10287 | (eval "$ac_try") 2>&5 |
| 10288 | ac_status=$? |
| 10289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10290 | (exit $ac_status); }; } && |
| 10291 | { ac_try='test -s conftest$ac_exeext' |
| 10292 | { (case "(($ac_try" in |
| 10293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10294 | *) ac_try_echo=$ac_try;; |
| 10295 | esac |
| 10296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10297 | (eval "$ac_try") 2>&5 |
| 10298 | ac_status=$? |
| 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10300 | (exit $ac_status); }; }; then |
| 10301 | eval "$as_ac_var=yes" |
| 10302 | else |
| 10303 | echo "$as_me: failed program was:" >&5 |
| 10304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10305 | |
| 10306 | eval "$as_ac_var=no" |
| 10307 | fi |
| 10308 | |
| 10309 | rm -f core conftest.err conftest.$ac_objext \ |
| 10310 | conftest$ac_exeext conftest.$ac_ext |
| 10311 | fi |
| 10312 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10313 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10314 | echo "${ECHO_T}$ac_res" >&6; } |
| 10315 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10316 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10317 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10318 | _ACEOF |
| 10319 | |
| 10320 | fi |
| 10321 | done |
| 10322 | |
| 10323 | LIBS="$lt_save_LIBS" |
| 10324 | fi |
| 10325 | ac_ext=c |
| 10326 | ac_cpp='$CPP $CPPFLAGS' |
| 10327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10330 | |
| 10331 | |
| 10332 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10333 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10334 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10335 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10337 | else |
| 10338 | ac_cv_sys_symbol_underscore=no |
| 10339 | cat > conftest.$ac_ext <<EOF |
| 10340 | void nm_test_func(){} |
| 10341 | int main(){nm_test_func;return 0;} |
| 10342 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10344 | (eval $ac_compile) 2>&5 |
| 10345 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10347 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10348 | # Now try to grab the symbols. |
| 10349 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10350 | 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] | 10351 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10352 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10354 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10355 | # See whether the symbols have a leading underscore. |
| 10356 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10357 | ac_cv_sys_symbol_underscore=yes |
| 10358 | else |
| 10359 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10360 | : |
| 10361 | else |
| 10362 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10363 | fi |
| 10364 | fi |
| 10365 | else |
| 10366 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10367 | fi |
| 10368 | else |
| 10369 | echo "configure: failed program was:" >&5 |
| 10370 | cat conftest.c >&5 |
| 10371 | fi |
| 10372 | rm -rf conftest* |
| 10373 | |
| 10374 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10375 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10376 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10377 | |
| 10378 | |
| 10379 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10380 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10381 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10382 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10383 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10384 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10386 | else |
| 10387 | libltdl_cv_need_uscore=unknown |
| 10388 | save_LIBS="$LIBS" |
| 10389 | LIBS="$LIBS $LIBADD_DL" |
| 10390 | if test "$cross_compiling" = yes; then : |
| 10391 | libltdl_cv_need_uscore=cross |
| 10392 | else |
| 10393 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10394 | lt_status=$lt_dlunknown |
| 10395 | cat > conftest.$ac_ext <<EOF |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 10396 | #line 10396 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10397 | #include "confdefs.h" |
| 10398 | |
| 10399 | #if HAVE_DLFCN_H |
| 10400 | #include <dlfcn.h> |
| 10401 | #endif |
| 10402 | |
| 10403 | #include <stdio.h> |
| 10404 | |
| 10405 | #ifdef RTLD_GLOBAL |
| 10406 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10407 | #else |
| 10408 | # ifdef DL_GLOBAL |
| 10409 | # define LT_DLGLOBAL DL_GLOBAL |
| 10410 | # else |
| 10411 | # define LT_DLGLOBAL 0 |
| 10412 | # endif |
| 10413 | #endif |
| 10414 | |
| 10415 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10416 | find out it does not work in some platform. */ |
| 10417 | #ifndef LT_DLLAZY_OR_NOW |
| 10418 | # ifdef RTLD_LAZY |
| 10419 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10420 | # else |
| 10421 | # ifdef DL_LAZY |
| 10422 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10423 | # else |
| 10424 | # ifdef RTLD_NOW |
| 10425 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10426 | # else |
| 10427 | # ifdef DL_NOW |
| 10428 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10429 | # else |
| 10430 | # define LT_DLLAZY_OR_NOW 0 |
| 10431 | # endif |
| 10432 | # endif |
| 10433 | # endif |
| 10434 | # endif |
| 10435 | #endif |
| 10436 | |
| 10437 | #ifdef __cplusplus |
| 10438 | extern "C" void exit (int); |
| 10439 | #endif |
| 10440 | |
| 10441 | void fnord() { int i=42;} |
| 10442 | int main () |
| 10443 | { |
| 10444 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10445 | int status = $lt_dlunknown; |
| 10446 | |
| 10447 | if (self) |
| 10448 | { |
| 10449 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10450 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10451 | /* dlclose (self); */ |
| 10452 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10453 | else |
| 10454 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10455 | |
| 10456 | exit (status); |
| 10457 | } |
| 10458 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10460 | (eval $ac_link) 2>&5 |
| 10461 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10463 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10464 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10465 | lt_status=$? |
| 10466 | case x$lt_status in |
| 10467 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10468 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10469 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10470 | esac |
| 10471 | else : |
| 10472 | # compilation failed |
| 10473 | |
| 10474 | fi |
| 10475 | fi |
| 10476 | rm -fr conftest* |
| 10477 | |
| 10478 | LIBS="$save_LIBS" |
| 10479 | |
| 10480 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10481 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10482 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10483 | fi |
| 10484 | fi |
| 10485 | |
| 10486 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10487 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10488 | cat >>confdefs.h <<\_ACEOF |
| 10489 | #define NEED_USCORE 1 |
| 10490 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | |
| 10492 | fi |
| 10493 | |
| 10494 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10495 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10496 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10497 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10499 | else |
| 10500 | # PORTME does your system automatically load deplibs for dlopen? |
| 10501 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10502 | # For now, we just catch OSes we know something about -- in the |
| 10503 | # future, we'll try test this programmatically. |
| 10504 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10505 | case "$host_os" in |
| 10506 | aix3*|aix4.1.*|aix4.2.*) |
| 10507 | # Unknown whether this is true for these versions of AIX, but |
| 10508 | # we want this `case' here to explicitly catch those versions. |
| 10509 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10510 | ;; |
| 10511 | aix[45]*) |
| 10512 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10513 | ;; |
| 10514 | darwin*) |
| 10515 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10516 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10517 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10518 | ;; |
| 10519 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10520 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10521 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10522 | ;; |
| 10523 | hpux10*|hpux11*) |
| 10524 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10525 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | interix*) |
| 10527 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10528 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10529 | irix[12345]*|irix6.[01]*) |
| 10530 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10531 | # know how it worked for any of those versions. |
| 10532 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10533 | ;; |
| 10534 | irix*) |
| 10535 | # The case above catches anything before 6.2, and it's known that |
| 10536 | # at 6.2 and later dlopen does load deplibs. |
| 10537 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10538 | ;; |
| 10539 | netbsd*) |
| 10540 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10541 | ;; |
| 10542 | openbsd*) |
| 10543 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10544 | ;; |
| 10545 | osf[1234]*) |
| 10546 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10547 | # 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] | 10548 | # library depends on, so we explicitly say `no'. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10549 | libltdl_cv_sys_dlopen_deplibs=no |
| 10550 | ;; |
| 10551 | osf5.0|osf5.0a|osf5.1) |
| 10552 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10553 | # it even uses RPATH in a shared library to search for shared objects |
| 10554 | # that the library depends on, but there's no easy way to know if that |
| 10555 | # patch is installed. Since this is the case, all we can really |
| 10556 | # say is unknown -- it depends on the patch being installed. If |
| 10557 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10558 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10559 | ;; |
| 10560 | osf*) |
| 10561 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10562 | # the comments above for what we know about them. |
| 10563 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10564 | # is used to find them so we can finally say `yes'. |
| 10565 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10566 | ;; |
| 10567 | solaris*) |
| 10568 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10569 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10570 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10571 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10572 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10573 | esac |
| 10574 | |
| 10575 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10576 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10577 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10578 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10580 | cat >>confdefs.h <<\_ACEOF |
| 10581 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10582 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10583 | |
| 10584 | fi |
| 10585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10586 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10587 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10588 | do |
| 10589 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10591 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10595 | fi |
| 10596 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10598 | echo "${ECHO_T}$ac_res" >&6; } |
| 10599 | else |
| 10600 | # Is the header compilable? |
| 10601 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10603 | cat >conftest.$ac_ext <<_ACEOF |
| 10604 | /* confdefs.h. */ |
| 10605 | _ACEOF |
| 10606 | cat confdefs.h >>conftest.$ac_ext |
| 10607 | cat >>conftest.$ac_ext <<_ACEOF |
| 10608 | /* end confdefs.h. */ |
| 10609 | $ac_includes_default |
| 10610 | #include <$ac_header> |
| 10611 | _ACEOF |
| 10612 | rm -f conftest.$ac_objext |
| 10613 | if { (ac_try="$ac_compile" |
| 10614 | case "(($ac_try" in |
| 10615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10616 | *) ac_try_echo=$ac_try;; |
| 10617 | esac |
| 10618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10619 | (eval "$ac_compile") 2>conftest.er1 |
| 10620 | ac_status=$? |
| 10621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10622 | rm -f conftest.er1 |
| 10623 | cat conftest.err >&5 |
| 10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10625 | (exit $ac_status); } && |
| 10626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10627 | { (case "(($ac_try" in |
| 10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10629 | *) ac_try_echo=$ac_try;; |
| 10630 | esac |
| 10631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10632 | (eval "$ac_try") 2>&5 |
| 10633 | ac_status=$? |
| 10634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10635 | (exit $ac_status); }; } && |
| 10636 | { ac_try='test -s conftest.$ac_objext' |
| 10637 | { (case "(($ac_try" in |
| 10638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10639 | *) ac_try_echo=$ac_try;; |
| 10640 | esac |
| 10641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10642 | (eval "$ac_try") 2>&5 |
| 10643 | ac_status=$? |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10645 | (exit $ac_status); }; }; then |
| 10646 | ac_header_compiler=yes |
| 10647 | else |
| 10648 | echo "$as_me: failed program was:" >&5 |
| 10649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10650 | |
| 10651 | ac_header_compiler=no |
| 10652 | fi |
| 10653 | |
| 10654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10655 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10656 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10657 | |
| 10658 | # Is the header present? |
| 10659 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10660 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10661 | cat >conftest.$ac_ext <<_ACEOF |
| 10662 | /* confdefs.h. */ |
| 10663 | _ACEOF |
| 10664 | cat confdefs.h >>conftest.$ac_ext |
| 10665 | cat >>conftest.$ac_ext <<_ACEOF |
| 10666 | /* end confdefs.h. */ |
| 10667 | #include <$ac_header> |
| 10668 | _ACEOF |
| 10669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10670 | case "(($ac_try" in |
| 10671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10672 | *) ac_try_echo=$ac_try;; |
| 10673 | esac |
| 10674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10675 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10676 | ac_status=$? |
| 10677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10678 | rm -f conftest.er1 |
| 10679 | cat conftest.err >&5 |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); } >/dev/null; then |
| 10682 | if test -s conftest.err; then |
| 10683 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10685 | else |
| 10686 | ac_cpp_err= |
| 10687 | fi |
| 10688 | else |
| 10689 | ac_cpp_err=yes |
| 10690 | fi |
| 10691 | if test -z "$ac_cpp_err"; then |
| 10692 | ac_header_preproc=yes |
| 10693 | else |
| 10694 | echo "$as_me: failed program was:" >&5 |
| 10695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10696 | |
| 10697 | ac_header_preproc=no |
| 10698 | fi |
| 10699 | |
| 10700 | rm -f conftest.err conftest.$ac_ext |
| 10701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10702 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10703 | |
| 10704 | # So? What about this header? |
| 10705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10706 | yes:no: ) |
| 10707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10710 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10711 | ac_header_preproc=yes |
| 10712 | ;; |
| 10713 | no:yes:* ) |
| 10714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10725 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10726 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 10727 | ## ------------------------------------ ## |
| 10728 | ## Report this to http://llvm.org/bugs/ ## |
| 10729 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10730 | _ASBOX |
| 10731 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10732 | ;; |
| 10733 | esac |
| 10734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10738 | else |
| 10739 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10740 | fi |
| 10741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10743 | echo "${ECHO_T}$ac_res" >&6; } |
| 10744 | |
| 10745 | fi |
| 10746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10747 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10749 | _ACEOF |
| 10750 | |
| 10751 | fi |
| 10752 | |
| 10753 | done |
| 10754 | |
| 10755 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10756 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10757 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10758 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10760 | else |
| 10761 | cat >conftest.$ac_ext <<_ACEOF |
| 10762 | /* confdefs.h. */ |
| 10763 | _ACEOF |
| 10764 | cat confdefs.h >>conftest.$ac_ext |
| 10765 | cat >>conftest.$ac_ext <<_ACEOF |
| 10766 | /* end confdefs.h. */ |
| 10767 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | # include <argz.h> |
| 10769 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10770 | |
| 10771 | typedef error_t ac__type_new_; |
| 10772 | int |
| 10773 | main () |
| 10774 | { |
| 10775 | if ((ac__type_new_ *) 0) |
| 10776 | return 0; |
| 10777 | if (sizeof (ac__type_new_)) |
| 10778 | return 0; |
| 10779 | ; |
| 10780 | return 0; |
| 10781 | } |
| 10782 | _ACEOF |
| 10783 | rm -f conftest.$ac_objext |
| 10784 | if { (ac_try="$ac_compile" |
| 10785 | case "(($ac_try" in |
| 10786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10787 | *) ac_try_echo=$ac_try;; |
| 10788 | esac |
| 10789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10790 | (eval "$ac_compile") 2>conftest.er1 |
| 10791 | ac_status=$? |
| 10792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10793 | rm -f conftest.er1 |
| 10794 | cat conftest.err >&5 |
| 10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10796 | (exit $ac_status); } && |
| 10797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10798 | { (case "(($ac_try" in |
| 10799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10800 | *) ac_try_echo=$ac_try;; |
| 10801 | esac |
| 10802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10803 | (eval "$ac_try") 2>&5 |
| 10804 | ac_status=$? |
| 10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10806 | (exit $ac_status); }; } && |
| 10807 | { ac_try='test -s conftest.$ac_objext' |
| 10808 | { (case "(($ac_try" in |
| 10809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10810 | *) ac_try_echo=$ac_try;; |
| 10811 | esac |
| 10812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10813 | (eval "$ac_try") 2>&5 |
| 10814 | ac_status=$? |
| 10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10816 | (exit $ac_status); }; }; then |
| 10817 | ac_cv_type_error_t=yes |
| 10818 | else |
| 10819 | echo "$as_me: failed program was:" >&5 |
| 10820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10821 | |
| 10822 | ac_cv_type_error_t=no |
| 10823 | fi |
| 10824 | |
| 10825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10826 | fi |
| 10827 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10828 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10829 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | |
| 10831 | cat >>confdefs.h <<_ACEOF |
| 10832 | #define HAVE_ERROR_T 1 |
| 10833 | _ACEOF |
| 10834 | |
| 10835 | |
| 10836 | else |
| 10837 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10838 | cat >>confdefs.h <<\_ACEOF |
| 10839 | #define error_t int |
| 10840 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10841 | |
| 10842 | fi |
| 10843 | |
| 10844 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10850 | 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] | 10851 | do |
| 10852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10853 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10855 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10857 | else |
| 10858 | cat >conftest.$ac_ext <<_ACEOF |
| 10859 | /* confdefs.h. */ |
| 10860 | _ACEOF |
| 10861 | cat confdefs.h >>conftest.$ac_ext |
| 10862 | cat >>conftest.$ac_ext <<_ACEOF |
| 10863 | /* end confdefs.h. */ |
| 10864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10866 | #define $ac_func innocuous_$ac_func |
| 10867 | |
| 10868 | /* System header to define __stub macros and hopefully few prototypes, |
| 10869 | which can conflict with char $ac_func (); below. |
| 10870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10871 | <limits.h> exists even on freestanding compilers. */ |
| 10872 | |
| 10873 | #ifdef __STDC__ |
| 10874 | # include <limits.h> |
| 10875 | #else |
| 10876 | # include <assert.h> |
| 10877 | #endif |
| 10878 | |
| 10879 | #undef $ac_func |
| 10880 | |
| 10881 | /* Override any GCC internal prototype to avoid an error. |
| 10882 | Use char because int might match the return type of a GCC |
| 10883 | builtin and then its argument prototype would still apply. */ |
| 10884 | #ifdef __cplusplus |
| 10885 | extern "C" |
| 10886 | #endif |
| 10887 | char $ac_func (); |
| 10888 | /* The GNU C library defines this for functions which it implements |
| 10889 | to always fail with ENOSYS. Some functions are actually named |
| 10890 | something starting with __ and the normal name is an alias. */ |
| 10891 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10892 | choke me |
| 10893 | #endif |
| 10894 | |
| 10895 | int |
| 10896 | main () |
| 10897 | { |
| 10898 | return $ac_func (); |
| 10899 | ; |
| 10900 | return 0; |
| 10901 | } |
| 10902 | _ACEOF |
| 10903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10904 | if { (ac_try="$ac_link" |
| 10905 | case "(($ac_try" in |
| 10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10907 | *) ac_try_echo=$ac_try;; |
| 10908 | esac |
| 10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10910 | (eval "$ac_link") 2>conftest.er1 |
| 10911 | ac_status=$? |
| 10912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10913 | rm -f conftest.er1 |
| 10914 | cat conftest.err >&5 |
| 10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10916 | (exit $ac_status); } && |
| 10917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10918 | { (case "(($ac_try" in |
| 10919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10920 | *) ac_try_echo=$ac_try;; |
| 10921 | esac |
| 10922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10923 | (eval "$ac_try") 2>&5 |
| 10924 | ac_status=$? |
| 10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10926 | (exit $ac_status); }; } && |
| 10927 | { ac_try='test -s conftest$ac_exeext' |
| 10928 | { (case "(($ac_try" in |
| 10929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10930 | *) ac_try_echo=$ac_try;; |
| 10931 | esac |
| 10932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10933 | (eval "$ac_try") 2>&5 |
| 10934 | ac_status=$? |
| 10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10936 | (exit $ac_status); }; }; then |
| 10937 | eval "$as_ac_var=yes" |
| 10938 | else |
| 10939 | echo "$as_me: failed program was:" >&5 |
| 10940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10941 | |
| 10942 | eval "$as_ac_var=no" |
| 10943 | fi |
| 10944 | |
| 10945 | rm -f core conftest.err conftest.$ac_objext \ |
| 10946 | conftest$ac_exeext conftest.$ac_ext |
| 10947 | fi |
| 10948 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10949 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10950 | echo "${ECHO_T}$ac_res" >&6; } |
| 10951 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10952 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10954 | _ACEOF |
| 10955 | |
| 10956 | fi |
| 10957 | done |
| 10958 | |
| 10959 | |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | |
| 10965 | |
| 10966 | |
| 10967 | |
| 10968 | |
| 10969 | |
| 10970 | |
| 10971 | |
| 10972 | |
| 10973 | |
| 10974 | |
| 10975 | |
| 10976 | |
| 10977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10978 | |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10986 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10987 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10988 | do |
| 10989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10990 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10991 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10995 | fi |
| 10996 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10997 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10998 | echo "${ECHO_T}$ac_res" >&6; } |
| 10999 | else |
| 11000 | # Is the header compilable? |
| 11001 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11002 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11003 | cat >conftest.$ac_ext <<_ACEOF |
| 11004 | /* confdefs.h. */ |
| 11005 | _ACEOF |
| 11006 | cat confdefs.h >>conftest.$ac_ext |
| 11007 | cat >>conftest.$ac_ext <<_ACEOF |
| 11008 | /* end confdefs.h. */ |
| 11009 | $ac_includes_default |
| 11010 | #include <$ac_header> |
| 11011 | _ACEOF |
| 11012 | rm -f conftest.$ac_objext |
| 11013 | if { (ac_try="$ac_compile" |
| 11014 | case "(($ac_try" in |
| 11015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11016 | *) ac_try_echo=$ac_try;; |
| 11017 | esac |
| 11018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11019 | (eval "$ac_compile") 2>conftest.er1 |
| 11020 | ac_status=$? |
| 11021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11022 | rm -f conftest.er1 |
| 11023 | cat conftest.err >&5 |
| 11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11025 | (exit $ac_status); } && |
| 11026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11027 | { (case "(($ac_try" in |
| 11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11029 | *) ac_try_echo=$ac_try;; |
| 11030 | esac |
| 11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11032 | (eval "$ac_try") 2>&5 |
| 11033 | ac_status=$? |
| 11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11035 | (exit $ac_status); }; } && |
| 11036 | { ac_try='test -s conftest.$ac_objext' |
| 11037 | { (case "(($ac_try" in |
| 11038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11039 | *) ac_try_echo=$ac_try;; |
| 11040 | esac |
| 11041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11042 | (eval "$ac_try") 2>&5 |
| 11043 | ac_status=$? |
| 11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11045 | (exit $ac_status); }; }; then |
| 11046 | ac_header_compiler=yes |
| 11047 | else |
| 11048 | echo "$as_me: failed program was:" >&5 |
| 11049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11050 | |
| 11051 | ac_header_compiler=no |
| 11052 | fi |
| 11053 | |
| 11054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11055 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11056 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11057 | |
| 11058 | # Is the header present? |
| 11059 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11061 | cat >conftest.$ac_ext <<_ACEOF |
| 11062 | /* confdefs.h. */ |
| 11063 | _ACEOF |
| 11064 | cat confdefs.h >>conftest.$ac_ext |
| 11065 | cat >>conftest.$ac_ext <<_ACEOF |
| 11066 | /* end confdefs.h. */ |
| 11067 | #include <$ac_header> |
| 11068 | _ACEOF |
| 11069 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11070 | case "(($ac_try" in |
| 11071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11072 | *) ac_try_echo=$ac_try;; |
| 11073 | esac |
| 11074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11075 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11076 | ac_status=$? |
| 11077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11078 | rm -f conftest.er1 |
| 11079 | cat conftest.err >&5 |
| 11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11081 | (exit $ac_status); } >/dev/null; then |
| 11082 | if test -s conftest.err; then |
| 11083 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11085 | else |
| 11086 | ac_cpp_err= |
| 11087 | fi |
| 11088 | else |
| 11089 | ac_cpp_err=yes |
| 11090 | fi |
| 11091 | if test -z "$ac_cpp_err"; then |
| 11092 | ac_header_preproc=yes |
| 11093 | else |
| 11094 | echo "$as_me: failed program was:" >&5 |
| 11095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11096 | |
| 11097 | ac_header_preproc=no |
| 11098 | fi |
| 11099 | |
| 11100 | rm -f conftest.err conftest.$ac_ext |
| 11101 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11102 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11103 | |
| 11104 | # So? What about this header? |
| 11105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11106 | yes:no: ) |
| 11107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11111 | ac_header_preproc=yes |
| 11112 | ;; |
| 11113 | no:yes:* ) |
| 11114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11126 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11127 | ## ------------------------------------ ## |
| 11128 | ## Report this to http://llvm.org/bugs/ ## |
| 11129 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11130 | _ASBOX |
| 11131 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11132 | ;; |
| 11133 | esac |
| 11134 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11138 | else |
| 11139 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11140 | fi |
| 11141 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11143 | echo "${ECHO_T}$ac_res" >&6; } |
| 11144 | |
| 11145 | fi |
| 11146 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11147 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11148 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11149 | _ACEOF |
| 11150 | |
| 11151 | fi |
| 11152 | |
| 11153 | done |
| 11154 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11155 | |
| 11156 | |
| 11157 | |
| 11158 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11159 | 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] | 11160 | do |
| 11161 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11163 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11164 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11167 | fi |
| 11168 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11169 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11170 | echo "${ECHO_T}$ac_res" >&6; } |
| 11171 | else |
| 11172 | # Is the header compilable? |
| 11173 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11175 | cat >conftest.$ac_ext <<_ACEOF |
| 11176 | /* confdefs.h. */ |
| 11177 | _ACEOF |
| 11178 | cat confdefs.h >>conftest.$ac_ext |
| 11179 | cat >>conftest.$ac_ext <<_ACEOF |
| 11180 | /* end confdefs.h. */ |
| 11181 | $ac_includes_default |
| 11182 | #include <$ac_header> |
| 11183 | _ACEOF |
| 11184 | rm -f conftest.$ac_objext |
| 11185 | if { (ac_try="$ac_compile" |
| 11186 | case "(($ac_try" in |
| 11187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11188 | *) ac_try_echo=$ac_try;; |
| 11189 | esac |
| 11190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11191 | (eval "$ac_compile") 2>conftest.er1 |
| 11192 | ac_status=$? |
| 11193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11194 | rm -f conftest.er1 |
| 11195 | cat conftest.err >&5 |
| 11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11197 | (exit $ac_status); } && |
| 11198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11199 | { (case "(($ac_try" in |
| 11200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11201 | *) ac_try_echo=$ac_try;; |
| 11202 | esac |
| 11203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11204 | (eval "$ac_try") 2>&5 |
| 11205 | ac_status=$? |
| 11206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11207 | (exit $ac_status); }; } && |
| 11208 | { ac_try='test -s conftest.$ac_objext' |
| 11209 | { (case "(($ac_try" in |
| 11210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11211 | *) ac_try_echo=$ac_try;; |
| 11212 | esac |
| 11213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11214 | (eval "$ac_try") 2>&5 |
| 11215 | ac_status=$? |
| 11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11217 | (exit $ac_status); }; }; then |
| 11218 | ac_header_compiler=yes |
| 11219 | else |
| 11220 | echo "$as_me: failed program was:" >&5 |
| 11221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11222 | |
| 11223 | ac_header_compiler=no |
| 11224 | fi |
| 11225 | |
| 11226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11227 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11228 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11229 | |
| 11230 | # Is the header present? |
| 11231 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11232 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11233 | cat >conftest.$ac_ext <<_ACEOF |
| 11234 | /* confdefs.h. */ |
| 11235 | _ACEOF |
| 11236 | cat confdefs.h >>conftest.$ac_ext |
| 11237 | cat >>conftest.$ac_ext <<_ACEOF |
| 11238 | /* end confdefs.h. */ |
| 11239 | #include <$ac_header> |
| 11240 | _ACEOF |
| 11241 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11242 | case "(($ac_try" in |
| 11243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11244 | *) ac_try_echo=$ac_try;; |
| 11245 | esac |
| 11246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11247 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11248 | ac_status=$? |
| 11249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11250 | rm -f conftest.er1 |
| 11251 | cat conftest.err >&5 |
| 11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11253 | (exit $ac_status); } >/dev/null; then |
| 11254 | if test -s conftest.err; then |
| 11255 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11256 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11257 | else |
| 11258 | ac_cpp_err= |
| 11259 | fi |
| 11260 | else |
| 11261 | ac_cpp_err=yes |
| 11262 | fi |
| 11263 | if test -z "$ac_cpp_err"; then |
| 11264 | ac_header_preproc=yes |
| 11265 | else |
| 11266 | echo "$as_me: failed program was:" >&5 |
| 11267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11268 | |
| 11269 | ac_header_preproc=no |
| 11270 | fi |
| 11271 | |
| 11272 | rm -f conftest.err conftest.$ac_ext |
| 11273 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11274 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11275 | |
| 11276 | # So? What about this header? |
| 11277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11278 | yes:no: ) |
| 11279 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11280 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11282 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11283 | ac_header_preproc=yes |
| 11284 | ;; |
| 11285 | no:yes:* ) |
| 11286 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11287 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11288 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11289 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11290 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11291 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11292 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11293 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11296 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11297 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11298 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11299 | ## ------------------------------------ ## |
| 11300 | ## Report this to http://llvm.org/bugs/ ## |
| 11301 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11302 | _ASBOX |
| 11303 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11304 | ;; |
| 11305 | esac |
| 11306 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11310 | else |
| 11311 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11312 | fi |
| 11313 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11314 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11315 | echo "${ECHO_T}$ac_res" >&6; } |
| 11316 | |
| 11317 | fi |
| 11318 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11319 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11320 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 | _ACEOF |
| 11322 | |
| 11323 | fi |
| 11324 | |
| 11325 | done |
| 11326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11327 | |
| 11328 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11329 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11330 | do |
| 11331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11337 | fi |
| 11338 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11340 | echo "${ECHO_T}$ac_res" >&6; } |
| 11341 | else |
| 11342 | # Is the header compilable? |
| 11343 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11345 | cat >conftest.$ac_ext <<_ACEOF |
| 11346 | /* confdefs.h. */ |
| 11347 | _ACEOF |
| 11348 | cat confdefs.h >>conftest.$ac_ext |
| 11349 | cat >>conftest.$ac_ext <<_ACEOF |
| 11350 | /* end confdefs.h. */ |
| 11351 | $ac_includes_default |
| 11352 | #include <$ac_header> |
| 11353 | _ACEOF |
| 11354 | rm -f conftest.$ac_objext |
| 11355 | if { (ac_try="$ac_compile" |
| 11356 | case "(($ac_try" in |
| 11357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11358 | *) ac_try_echo=$ac_try;; |
| 11359 | esac |
| 11360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11361 | (eval "$ac_compile") 2>conftest.er1 |
| 11362 | ac_status=$? |
| 11363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11364 | rm -f conftest.er1 |
| 11365 | cat conftest.err >&5 |
| 11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11367 | (exit $ac_status); } && |
| 11368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11369 | { (case "(($ac_try" in |
| 11370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11371 | *) ac_try_echo=$ac_try;; |
| 11372 | esac |
| 11373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11374 | (eval "$ac_try") 2>&5 |
| 11375 | ac_status=$? |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); }; } && |
| 11378 | { ac_try='test -s conftest.$ac_objext' |
| 11379 | { (case "(($ac_try" in |
| 11380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11381 | *) ac_try_echo=$ac_try;; |
| 11382 | esac |
| 11383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11384 | (eval "$ac_try") 2>&5 |
| 11385 | ac_status=$? |
| 11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11387 | (exit $ac_status); }; }; then |
| 11388 | ac_header_compiler=yes |
| 11389 | else |
| 11390 | echo "$as_me: failed program was:" >&5 |
| 11391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11392 | |
| 11393 | ac_header_compiler=no |
| 11394 | fi |
| 11395 | |
| 11396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11397 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11398 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11399 | |
| 11400 | # Is the header present? |
| 11401 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11403 | cat >conftest.$ac_ext <<_ACEOF |
| 11404 | /* confdefs.h. */ |
| 11405 | _ACEOF |
| 11406 | cat confdefs.h >>conftest.$ac_ext |
| 11407 | cat >>conftest.$ac_ext <<_ACEOF |
| 11408 | /* end confdefs.h. */ |
| 11409 | #include <$ac_header> |
| 11410 | _ACEOF |
| 11411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11412 | case "(($ac_try" in |
| 11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11414 | *) ac_try_echo=$ac_try;; |
| 11415 | esac |
| 11416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11418 | ac_status=$? |
| 11419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11420 | rm -f conftest.er1 |
| 11421 | cat conftest.err >&5 |
| 11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11423 | (exit $ac_status); } >/dev/null; then |
| 11424 | if test -s conftest.err; then |
| 11425 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11427 | else |
| 11428 | ac_cpp_err= |
| 11429 | fi |
| 11430 | else |
| 11431 | ac_cpp_err=yes |
| 11432 | fi |
| 11433 | if test -z "$ac_cpp_err"; then |
| 11434 | ac_header_preproc=yes |
| 11435 | else |
| 11436 | echo "$as_me: failed program was:" >&5 |
| 11437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11438 | |
| 11439 | ac_header_preproc=no |
| 11440 | fi |
| 11441 | |
| 11442 | rm -f conftest.err conftest.$ac_ext |
| 11443 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11444 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11445 | |
| 11446 | # So? What about this header? |
| 11447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11448 | yes:no: ) |
| 11449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11453 | ac_header_preproc=yes |
| 11454 | ;; |
| 11455 | no:yes:* ) |
| 11456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11468 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 11469 | ## ------------------------------------ ## |
| 11470 | ## Report this to http://llvm.org/bugs/ ## |
| 11471 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11472 | _ASBOX |
| 11473 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11474 | ;; |
| 11475 | esac |
| 11476 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11478 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11480 | else |
| 11481 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11482 | fi |
| 11483 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11484 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11485 | echo "${ECHO_T}$ac_res" >&6; } |
| 11486 | |
| 11487 | fi |
| 11488 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11489 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11490 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11491 | _ACEOF |
| 11492 | break |
| 11493 | fi |
| 11494 | |
| 11495 | done |
| 11496 | |
| 11497 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11498 | |
| 11499 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11500 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11501 | do |
| 11502 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11503 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11504 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11505 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11507 | else |
| 11508 | cat >conftest.$ac_ext <<_ACEOF |
| 11509 | /* confdefs.h. */ |
| 11510 | _ACEOF |
| 11511 | cat confdefs.h >>conftest.$ac_ext |
| 11512 | cat >>conftest.$ac_ext <<_ACEOF |
| 11513 | /* end confdefs.h. */ |
| 11514 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11515 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11516 | #define $ac_func innocuous_$ac_func |
| 11517 | |
| 11518 | /* System header to define __stub macros and hopefully few prototypes, |
| 11519 | which can conflict with char $ac_func (); below. |
| 11520 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11521 | <limits.h> exists even on freestanding compilers. */ |
| 11522 | |
| 11523 | #ifdef __STDC__ |
| 11524 | # include <limits.h> |
| 11525 | #else |
| 11526 | # include <assert.h> |
| 11527 | #endif |
| 11528 | |
| 11529 | #undef $ac_func |
| 11530 | |
| 11531 | /* Override any GCC internal prototype to avoid an error. |
| 11532 | Use char because int might match the return type of a GCC |
| 11533 | builtin and then its argument prototype would still apply. */ |
| 11534 | #ifdef __cplusplus |
| 11535 | extern "C" |
| 11536 | #endif |
| 11537 | char $ac_func (); |
| 11538 | /* The GNU C library defines this for functions which it implements |
| 11539 | to always fail with ENOSYS. Some functions are actually named |
| 11540 | something starting with __ and the normal name is an alias. */ |
| 11541 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11542 | choke me |
| 11543 | #endif |
| 11544 | |
| 11545 | int |
| 11546 | main () |
| 11547 | { |
| 11548 | return $ac_func (); |
| 11549 | ; |
| 11550 | return 0; |
| 11551 | } |
| 11552 | _ACEOF |
| 11553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11554 | if { (ac_try="$ac_link" |
| 11555 | case "(($ac_try" in |
| 11556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11557 | *) ac_try_echo=$ac_try;; |
| 11558 | esac |
| 11559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11560 | (eval "$ac_link") 2>conftest.er1 |
| 11561 | ac_status=$? |
| 11562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11563 | rm -f conftest.er1 |
| 11564 | cat conftest.err >&5 |
| 11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11566 | (exit $ac_status); } && |
| 11567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11568 | { (case "(($ac_try" in |
| 11569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11570 | *) ac_try_echo=$ac_try;; |
| 11571 | esac |
| 11572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11573 | (eval "$ac_try") 2>&5 |
| 11574 | ac_status=$? |
| 11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11576 | (exit $ac_status); }; } && |
| 11577 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 11587 | eval "$as_ac_var=yes" |
| 11588 | else |
| 11589 | echo "$as_me: failed program was:" >&5 |
| 11590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11591 | |
| 11592 | eval "$as_ac_var=no" |
| 11593 | fi |
| 11594 | |
| 11595 | rm -f core conftest.err conftest.$ac_objext \ |
| 11596 | conftest$ac_exeext conftest.$ac_ext |
| 11597 | fi |
| 11598 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11600 | echo "${ECHO_T}$ac_res" >&6; } |
| 11601 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11602 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11604 | _ACEOF |
| 11605 | break |
| 11606 | fi |
| 11607 | done |
| 11608 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11609 | |
| 11610 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11611 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11612 | do |
| 11613 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11614 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11615 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11616 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11618 | else |
| 11619 | cat >conftest.$ac_ext <<_ACEOF |
| 11620 | /* confdefs.h. */ |
| 11621 | _ACEOF |
| 11622 | cat confdefs.h >>conftest.$ac_ext |
| 11623 | cat >>conftest.$ac_ext <<_ACEOF |
| 11624 | /* end confdefs.h. */ |
| 11625 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11627 | #define $ac_func innocuous_$ac_func |
| 11628 | |
| 11629 | /* System header to define __stub macros and hopefully few prototypes, |
| 11630 | which can conflict with char $ac_func (); below. |
| 11631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11632 | <limits.h> exists even on freestanding compilers. */ |
| 11633 | |
| 11634 | #ifdef __STDC__ |
| 11635 | # include <limits.h> |
| 11636 | #else |
| 11637 | # include <assert.h> |
| 11638 | #endif |
| 11639 | |
| 11640 | #undef $ac_func |
| 11641 | |
| 11642 | /* Override any GCC internal prototype to avoid an error. |
| 11643 | Use char because int might match the return type of a GCC |
| 11644 | builtin and then its argument prototype would still apply. */ |
| 11645 | #ifdef __cplusplus |
| 11646 | extern "C" |
| 11647 | #endif |
| 11648 | char $ac_func (); |
| 11649 | /* The GNU C library defines this for functions which it implements |
| 11650 | to always fail with ENOSYS. Some functions are actually named |
| 11651 | something starting with __ and the normal name is an alias. */ |
| 11652 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11653 | choke me |
| 11654 | #endif |
| 11655 | |
| 11656 | int |
| 11657 | main () |
| 11658 | { |
| 11659 | return $ac_func (); |
| 11660 | ; |
| 11661 | return 0; |
| 11662 | } |
| 11663 | _ACEOF |
| 11664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11665 | if { (ac_try="$ac_link" |
| 11666 | case "(($ac_try" in |
| 11667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11668 | *) ac_try_echo=$ac_try;; |
| 11669 | esac |
| 11670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11671 | (eval "$ac_link") 2>conftest.er1 |
| 11672 | ac_status=$? |
| 11673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11674 | rm -f conftest.er1 |
| 11675 | cat conftest.err >&5 |
| 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11677 | (exit $ac_status); } && |
| 11678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11679 | { (case "(($ac_try" in |
| 11680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11681 | *) ac_try_echo=$ac_try;; |
| 11682 | esac |
| 11683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11684 | (eval "$ac_try") 2>&5 |
| 11685 | ac_status=$? |
| 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11687 | (exit $ac_status); }; } && |
| 11688 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 11698 | eval "$as_ac_var=yes" |
| 11699 | else |
| 11700 | echo "$as_me: failed program was:" >&5 |
| 11701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11702 | |
| 11703 | eval "$as_ac_var=no" |
| 11704 | fi |
| 11705 | |
| 11706 | rm -f core conftest.err conftest.$ac_objext \ |
| 11707 | conftest$ac_exeext conftest.$ac_ext |
| 11708 | fi |
| 11709 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11710 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11711 | echo "${ECHO_T}$ac_res" >&6; } |
| 11712 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11713 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11715 | _ACEOF |
| 11716 | break |
| 11717 | fi |
| 11718 | done |
| 11719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11720 | |
| 11721 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11722 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11723 | do |
| 11724 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11725 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11726 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11727 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11729 | else |
| 11730 | cat >conftest.$ac_ext <<_ACEOF |
| 11731 | /* confdefs.h. */ |
| 11732 | _ACEOF |
| 11733 | cat confdefs.h >>conftest.$ac_ext |
| 11734 | cat >>conftest.$ac_ext <<_ACEOF |
| 11735 | /* end confdefs.h. */ |
| 11736 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11738 | #define $ac_func innocuous_$ac_func |
| 11739 | |
| 11740 | /* System header to define __stub macros and hopefully few prototypes, |
| 11741 | which can conflict with char $ac_func (); below. |
| 11742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11743 | <limits.h> exists even on freestanding compilers. */ |
| 11744 | |
| 11745 | #ifdef __STDC__ |
| 11746 | # include <limits.h> |
| 11747 | #else |
| 11748 | # include <assert.h> |
| 11749 | #endif |
| 11750 | |
| 11751 | #undef $ac_func |
| 11752 | |
| 11753 | /* Override any GCC internal prototype to avoid an error. |
| 11754 | Use char because int might match the return type of a GCC |
| 11755 | builtin and then its argument prototype would still apply. */ |
| 11756 | #ifdef __cplusplus |
| 11757 | extern "C" |
| 11758 | #endif |
| 11759 | char $ac_func (); |
| 11760 | /* The GNU C library defines this for functions which it implements |
| 11761 | to always fail with ENOSYS. Some functions are actually named |
| 11762 | something starting with __ and the normal name is an alias. */ |
| 11763 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11764 | choke me |
| 11765 | #endif |
| 11766 | |
| 11767 | int |
| 11768 | main () |
| 11769 | { |
| 11770 | return $ac_func (); |
| 11771 | ; |
| 11772 | return 0; |
| 11773 | } |
| 11774 | _ACEOF |
| 11775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11776 | if { (ac_try="$ac_link" |
| 11777 | case "(($ac_try" in |
| 11778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11779 | *) ac_try_echo=$ac_try;; |
| 11780 | esac |
| 11781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11782 | (eval "$ac_link") 2>conftest.er1 |
| 11783 | ac_status=$? |
| 11784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11785 | rm -f conftest.er1 |
| 11786 | cat conftest.err >&5 |
| 11787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11788 | (exit $ac_status); } && |
| 11789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11790 | { (case "(($ac_try" in |
| 11791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11792 | *) ac_try_echo=$ac_try;; |
| 11793 | esac |
| 11794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11795 | (eval "$ac_try") 2>&5 |
| 11796 | ac_status=$? |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); }; } && |
| 11799 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 11809 | eval "$as_ac_var=yes" |
| 11810 | else |
| 11811 | echo "$as_me: failed program was:" >&5 |
| 11812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11813 | |
| 11814 | eval "$as_ac_var=no" |
| 11815 | fi |
| 11816 | |
| 11817 | rm -f core conftest.err conftest.$ac_objext \ |
| 11818 | conftest$ac_exeext conftest.$ac_ext |
| 11819 | fi |
| 11820 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11821 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11822 | echo "${ECHO_T}$ac_res" >&6; } |
| 11823 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11824 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11826 | _ACEOF |
| 11827 | break |
| 11828 | fi |
| 11829 | done |
| 11830 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11831 | |
| 11832 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11833 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11834 | do |
| 11835 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11836 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11837 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11838 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11840 | else |
| 11841 | cat >conftest.$ac_ext <<_ACEOF |
| 11842 | /* confdefs.h. */ |
| 11843 | _ACEOF |
| 11844 | cat confdefs.h >>conftest.$ac_ext |
| 11845 | cat >>conftest.$ac_ext <<_ACEOF |
| 11846 | /* end confdefs.h. */ |
| 11847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11849 | #define $ac_func innocuous_$ac_func |
| 11850 | |
| 11851 | /* System header to define __stub macros and hopefully few prototypes, |
| 11852 | which can conflict with char $ac_func (); below. |
| 11853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11854 | <limits.h> exists even on freestanding compilers. */ |
| 11855 | |
| 11856 | #ifdef __STDC__ |
| 11857 | # include <limits.h> |
| 11858 | #else |
| 11859 | # include <assert.h> |
| 11860 | #endif |
| 11861 | |
| 11862 | #undef $ac_func |
| 11863 | |
| 11864 | /* Override any GCC internal prototype to avoid an error. |
| 11865 | Use char because int might match the return type of a GCC |
| 11866 | builtin and then its argument prototype would still apply. */ |
| 11867 | #ifdef __cplusplus |
| 11868 | extern "C" |
| 11869 | #endif |
| 11870 | char $ac_func (); |
| 11871 | /* The GNU C library defines this for functions which it implements |
| 11872 | to always fail with ENOSYS. Some functions are actually named |
| 11873 | something starting with __ and the normal name is an alias. */ |
| 11874 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11875 | choke me |
| 11876 | #endif |
| 11877 | |
| 11878 | int |
| 11879 | main () |
| 11880 | { |
| 11881 | return $ac_func (); |
| 11882 | ; |
| 11883 | return 0; |
| 11884 | } |
| 11885 | _ACEOF |
| 11886 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11887 | if { (ac_try="$ac_link" |
| 11888 | case "(($ac_try" in |
| 11889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11890 | *) ac_try_echo=$ac_try;; |
| 11891 | esac |
| 11892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11893 | (eval "$ac_link") 2>conftest.er1 |
| 11894 | ac_status=$? |
| 11895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11896 | rm -f conftest.er1 |
| 11897 | cat conftest.err >&5 |
| 11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11899 | (exit $ac_status); } && |
| 11900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11901 | { (case "(($ac_try" in |
| 11902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11903 | *) ac_try_echo=$ac_try;; |
| 11904 | esac |
| 11905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11906 | (eval "$ac_try") 2>&5 |
| 11907 | ac_status=$? |
| 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11909 | (exit $ac_status); }; } && |
| 11910 | { ac_try='test -s conftest$ac_exeext' |
| 11911 | { (case "(($ac_try" in |
| 11912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11913 | *) ac_try_echo=$ac_try;; |
| 11914 | esac |
| 11915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11916 | (eval "$ac_try") 2>&5 |
| 11917 | ac_status=$? |
| 11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11919 | (exit $ac_status); }; }; then |
| 11920 | eval "$as_ac_var=yes" |
| 11921 | else |
| 11922 | echo "$as_me: failed program was:" >&5 |
| 11923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11924 | |
| 11925 | eval "$as_ac_var=no" |
| 11926 | fi |
| 11927 | |
| 11928 | rm -f core conftest.err conftest.$ac_objext \ |
| 11929 | conftest$ac_exeext conftest.$ac_ext |
| 11930 | fi |
| 11931 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11932 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11933 | echo "${ECHO_T}$ac_res" >&6; } |
| 11934 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11935 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11936 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11937 | _ACEOF |
| 11938 | |
| 11939 | fi |
| 11940 | done |
| 11941 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11942 | |
| 11943 | |
| 11944 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11946 | do |
| 11947 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11948 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11949 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11950 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11952 | else |
| 11953 | cat >conftest.$ac_ext <<_ACEOF |
| 11954 | /* confdefs.h. */ |
| 11955 | _ACEOF |
| 11956 | cat confdefs.h >>conftest.$ac_ext |
| 11957 | cat >>conftest.$ac_ext <<_ACEOF |
| 11958 | /* end confdefs.h. */ |
| 11959 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11961 | #define $ac_func innocuous_$ac_func |
| 11962 | |
| 11963 | /* System header to define __stub macros and hopefully few prototypes, |
| 11964 | which can conflict with char $ac_func (); below. |
| 11965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11966 | <limits.h> exists even on freestanding compilers. */ |
| 11967 | |
| 11968 | #ifdef __STDC__ |
| 11969 | # include <limits.h> |
| 11970 | #else |
| 11971 | # include <assert.h> |
| 11972 | #endif |
| 11973 | |
| 11974 | #undef $ac_func |
| 11975 | |
| 11976 | /* Override any GCC internal prototype to avoid an error. |
| 11977 | Use char because int might match the return type of a GCC |
| 11978 | builtin and then its argument prototype would still apply. */ |
| 11979 | #ifdef __cplusplus |
| 11980 | extern "C" |
| 11981 | #endif |
| 11982 | char $ac_func (); |
| 11983 | /* The GNU C library defines this for functions which it implements |
| 11984 | to always fail with ENOSYS. Some functions are actually named |
| 11985 | something starting with __ and the normal name is an alias. */ |
| 11986 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11987 | choke me |
| 11988 | #endif |
| 11989 | |
| 11990 | int |
| 11991 | main () |
| 11992 | { |
| 11993 | return $ac_func (); |
| 11994 | ; |
| 11995 | return 0; |
| 11996 | } |
| 11997 | _ACEOF |
| 11998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11999 | if { (ac_try="$ac_link" |
| 12000 | case "(($ac_try" in |
| 12001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12002 | *) ac_try_echo=$ac_try;; |
| 12003 | esac |
| 12004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12005 | (eval "$ac_link") 2>conftest.er1 |
| 12006 | ac_status=$? |
| 12007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12008 | rm -f conftest.er1 |
| 12009 | cat conftest.err >&5 |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); } && |
| 12012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12013 | { (case "(($ac_try" in |
| 12014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12015 | *) ac_try_echo=$ac_try;; |
| 12016 | esac |
| 12017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12018 | (eval "$ac_try") 2>&5 |
| 12019 | ac_status=$? |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); }; } && |
| 12022 | { ac_try='test -s conftest$ac_exeext' |
| 12023 | { (case "(($ac_try" in |
| 12024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12025 | *) ac_try_echo=$ac_try;; |
| 12026 | esac |
| 12027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12028 | (eval "$ac_try") 2>&5 |
| 12029 | ac_status=$? |
| 12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12031 | (exit $ac_status); }; }; then |
| 12032 | eval "$as_ac_var=yes" |
| 12033 | else |
| 12034 | echo "$as_me: failed program was:" >&5 |
| 12035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12036 | |
| 12037 | eval "$as_ac_var=no" |
| 12038 | fi |
| 12039 | |
| 12040 | rm -f core conftest.err conftest.$ac_objext \ |
| 12041 | conftest$ac_exeext conftest.$ac_ext |
| 12042 | fi |
| 12043 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12045 | echo "${ECHO_T}$ac_res" >&6; } |
| 12046 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12047 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12048 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12049 | _ACEOF |
| 12050 | |
| 12051 | fi |
| 12052 | done |
| 12053 | |
| 12054 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 12055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12056 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12057 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12058 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12059 | ICC=no |
| 12060 | IXX=no |
| 12061 | case $CC in |
| 12062 | icc*|icpc*) |
| 12063 | ICC=yes |
| 12064 | IXX=yes |
| 12065 | ;; |
| 12066 | *) |
| 12067 | ;; |
| 12068 | esac |
| 12069 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12070 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12071 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12072 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12073 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12074 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12075 | fi |
| 12076 | |
| 12077 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12078 | then |
Eric Christopher | 73e36da | 2010-12-08 02:02:14 +0000 | [diff] [blame] | 12079 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12080 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12081 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 12082 | fi |
| 12083 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 12084 | if test "$GCC" = "yes" |
| 12085 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12086 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12087 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12088 | #error Unsupported GCC version |
| 12089 | #endif |
| 12090 | |
| 12091 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12092 | rm -f conftest.$ac_objext |
| 12093 | if { (ac_try="$ac_compile" |
| 12094 | case "(($ac_try" in |
| 12095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12096 | *) ac_try_echo=$ac_try;; |
| 12097 | esac |
| 12098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12099 | (eval "$ac_compile") 2>conftest.er1 |
| 12100 | ac_status=$? |
| 12101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12102 | rm -f conftest.er1 |
| 12103 | cat conftest.err >&5 |
| 12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12105 | (exit $ac_status); } && |
| 12106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12107 | { (case "(($ac_try" in |
| 12108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12109 | *) ac_try_echo=$ac_try;; |
| 12110 | esac |
| 12111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12112 | (eval "$ac_try") 2>&5 |
| 12113 | ac_status=$? |
| 12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12115 | (exit $ac_status); }; } && |
| 12116 | { ac_try='test -s conftest.$ac_objext' |
| 12117 | { (case "(($ac_try" in |
| 12118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12119 | *) ac_try_echo=$ac_try;; |
| 12120 | esac |
| 12121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12122 | (eval "$ac_try") 2>&5 |
| 12123 | ac_status=$? |
| 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12125 | (exit $ac_status); }; }; then |
| 12126 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12127 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12128 | echo "$as_me: failed program was:" >&5 |
| 12129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12130 | |
| 12131 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12132 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12133 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12134 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12135 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 12136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12137 | fi |
| 12138 | |
| 12139 | if test -z "$llvm_cv_gnu_make_command" |
| 12140 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12141 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12142 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12143 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12144 | fi |
| 12145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12146 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12147 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 12148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12149 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12150 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12151 | 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] | 12152 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12153 | 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] | 12154 | |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 12155 | COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` |
| 12156 | |
| 12157 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 |
| 12158 | 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] | 12159 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 12160 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12161 | |
| 12162 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12163 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12164 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12166 | else |
| 12167 | ac_check_lib_save_LIBS=$LIBS |
| 12168 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12169 | cat >conftest.$ac_ext <<_ACEOF |
| 12170 | /* confdefs.h. */ |
| 12171 | _ACEOF |
| 12172 | cat confdefs.h >>conftest.$ac_ext |
| 12173 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12174 | /* end confdefs.h. */ |
| 12175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12176 | /* Override any GCC internal prototype to avoid an error. |
| 12177 | Use char because int might match the return type of a GCC |
| 12178 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12179 | #ifdef __cplusplus |
| 12180 | extern "C" |
| 12181 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12182 | char sin (); |
| 12183 | int |
| 12184 | main () |
| 12185 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12186 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12187 | ; |
| 12188 | return 0; |
| 12189 | } |
| 12190 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12191 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12192 | if { (ac_try="$ac_link" |
| 12193 | case "(($ac_try" in |
| 12194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12195 | *) ac_try_echo=$ac_try;; |
| 12196 | esac |
| 12197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12198 | (eval "$ac_link") 2>conftest.er1 |
| 12199 | ac_status=$? |
| 12200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12201 | rm -f conftest.er1 |
| 12202 | cat conftest.err >&5 |
| 12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12204 | (exit $ac_status); } && |
| 12205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12206 | { (case "(($ac_try" in |
| 12207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12208 | *) ac_try_echo=$ac_try;; |
| 12209 | esac |
| 12210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12211 | (eval "$ac_try") 2>&5 |
| 12212 | ac_status=$? |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); }; } && |
| 12215 | { ac_try='test -s conftest$ac_exeext' |
| 12216 | { (case "(($ac_try" in |
| 12217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12218 | *) ac_try_echo=$ac_try;; |
| 12219 | esac |
| 12220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12221 | (eval "$ac_try") 2>&5 |
| 12222 | ac_status=$? |
| 12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12224 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12225 | ac_cv_lib_m_sin=yes |
| 12226 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12227 | echo "$as_me: failed program was:" >&5 |
| 12228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12229 | |
| 12230 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12231 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12232 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12233 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12234 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12235 | LIBS=$ac_check_lib_save_LIBS |
| 12236 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12237 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12238 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12239 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 12240 | cat >>confdefs.h <<_ACEOF |
| 12241 | #define HAVE_LIBM 1 |
| 12242 | _ACEOF |
| 12243 | |
| 12244 | LIBS="-lm $LIBS" |
| 12245 | |
| 12246 | fi |
| 12247 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 12248 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12249 | |
| 12250 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12251 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12252 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12254 | else |
| 12255 | ac_check_lib_save_LIBS=$LIBS |
| 12256 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12257 | cat >conftest.$ac_ext <<_ACEOF |
| 12258 | /* confdefs.h. */ |
| 12259 | _ACEOF |
| 12260 | cat confdefs.h >>conftest.$ac_ext |
| 12261 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12262 | /* end confdefs.h. */ |
| 12263 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12264 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12265 | int |
| 12266 | main () |
| 12267 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12268 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12269 | ; |
| 12270 | return 0; |
| 12271 | } |
| 12272 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12273 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12274 | if { (ac_try="$ac_link" |
| 12275 | case "(($ac_try" in |
| 12276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12277 | *) ac_try_echo=$ac_try;; |
| 12278 | esac |
| 12279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12280 | (eval "$ac_link") 2>conftest.er1 |
| 12281 | ac_status=$? |
| 12282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12283 | rm -f conftest.er1 |
| 12284 | cat conftest.err >&5 |
| 12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12286 | (exit $ac_status); } && |
| 12287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12288 | { (case "(($ac_try" in |
| 12289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12290 | *) ac_try_echo=$ac_try;; |
| 12291 | esac |
| 12292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12293 | (eval "$ac_try") 2>&5 |
| 12294 | ac_status=$? |
| 12295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12296 | (exit $ac_status); }; } && |
| 12297 | { ac_try='test -s conftest$ac_exeext' |
| 12298 | { (case "(($ac_try" in |
| 12299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12300 | *) ac_try_echo=$ac_try;; |
| 12301 | esac |
| 12302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12303 | (eval "$ac_try") 2>&5 |
| 12304 | ac_status=$? |
| 12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12306 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12307 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12308 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12309 | echo "$as_me: failed program was:" >&5 |
| 12310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12311 | |
| 12312 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12313 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12314 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12315 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12316 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12317 | LIBS=$ac_check_lib_save_LIBS |
| 12318 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12319 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12320 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12321 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12322 | cat >>confdefs.h <<_ACEOF |
| 12323 | #define HAVE_LIBIMAGEHLP 1 |
| 12324 | _ACEOF |
| 12325 | |
| 12326 | LIBS="-limagehlp $LIBS" |
| 12327 | |
| 12328 | fi |
| 12329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12330 | |
| 12331 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12332 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12333 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12335 | else |
| 12336 | ac_check_lib_save_LIBS=$LIBS |
| 12337 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12338 | cat >conftest.$ac_ext <<_ACEOF |
| 12339 | /* confdefs.h. */ |
| 12340 | _ACEOF |
| 12341 | cat confdefs.h >>conftest.$ac_ext |
| 12342 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12343 | /* end confdefs.h. */ |
| 12344 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12345 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12346 | int |
| 12347 | main () |
| 12348 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12349 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12350 | ; |
| 12351 | return 0; |
| 12352 | } |
| 12353 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12355 | if { (ac_try="$ac_link" |
| 12356 | case "(($ac_try" in |
| 12357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12358 | *) ac_try_echo=$ac_try;; |
| 12359 | esac |
| 12360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12361 | (eval "$ac_link") 2>conftest.er1 |
| 12362 | ac_status=$? |
| 12363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12364 | rm -f conftest.er1 |
| 12365 | cat conftest.err >&5 |
| 12366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12367 | (exit $ac_status); } && |
| 12368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12369 | { (case "(($ac_try" in |
| 12370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12371 | *) ac_try_echo=$ac_try;; |
| 12372 | esac |
| 12373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12374 | (eval "$ac_try") 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); }; } && |
| 12378 | { ac_try='test -s conftest$ac_exeext' |
| 12379 | { (case "(($ac_try" in |
| 12380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12381 | *) ac_try_echo=$ac_try;; |
| 12382 | esac |
| 12383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12384 | (eval "$ac_try") 2>&5 |
| 12385 | ac_status=$? |
| 12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12387 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 12388 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12390 | echo "$as_me: failed program was:" >&5 |
| 12391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12392 | |
| 12393 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12394 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12395 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12396 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12397 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12398 | LIBS=$ac_check_lib_save_LIBS |
| 12399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12400 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12401 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12402 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 12403 | cat >>confdefs.h <<_ACEOF |
| 12404 | #define HAVE_LIBPSAPI 1 |
| 12405 | _ACEOF |
| 12406 | |
| 12407 | LIBS="-lpsapi $LIBS" |
| 12408 | |
| 12409 | fi |
| 12410 | |
| 12411 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12413 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12414 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12415 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12417 | else |
| 12418 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12419 | cat >conftest.$ac_ext <<_ACEOF |
| 12420 | /* confdefs.h. */ |
| 12421 | _ACEOF |
| 12422 | cat confdefs.h >>conftest.$ac_ext |
| 12423 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12424 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12426 | /* Override any GCC internal prototype to avoid an error. |
| 12427 | Use char because int might match the return type of a GCC |
| 12428 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12429 | #ifdef __cplusplus |
| 12430 | extern "C" |
| 12431 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12432 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12433 | int |
| 12434 | main () |
| 12435 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12436 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12437 | ; |
| 12438 | return 0; |
| 12439 | } |
| 12440 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12441 | for ac_lib in '' dl; do |
| 12442 | if test -z "$ac_lib"; then |
| 12443 | ac_res="none required" |
| 12444 | else |
| 12445 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12446 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12447 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12449 | if { (ac_try="$ac_link" |
| 12450 | case "(($ac_try" in |
| 12451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12452 | *) ac_try_echo=$ac_try;; |
| 12453 | esac |
| 12454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12455 | (eval "$ac_link") 2>conftest.er1 |
| 12456 | ac_status=$? |
| 12457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12458 | rm -f conftest.er1 |
| 12459 | cat conftest.err >&5 |
| 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12461 | (exit $ac_status); } && |
| 12462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12463 | { (case "(($ac_try" in |
| 12464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12465 | *) ac_try_echo=$ac_try;; |
| 12466 | esac |
| 12467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12468 | (eval "$ac_try") 2>&5 |
| 12469 | ac_status=$? |
| 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12471 | (exit $ac_status); }; } && |
| 12472 | { ac_try='test -s conftest$ac_exeext' |
| 12473 | { (case "(($ac_try" in |
| 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12475 | *) ac_try_echo=$ac_try;; |
| 12476 | esac |
| 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12478 | (eval "$ac_try") 2>&5 |
| 12479 | ac_status=$? |
| 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12481 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12482 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12483 | else |
| 12484 | echo "$as_me: failed program was:" >&5 |
| 12485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12486 | |
| 12487 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12488 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12489 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12490 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12491 | conftest$ac_exeext |
| 12492 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12493 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12494 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12495 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12496 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12497 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12498 | else |
| 12499 | ac_cv_search_dlopen=no |
| 12500 | fi |
| 12501 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12502 | LIBS=$ac_func_search_save_LIBS |
| 12503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12504 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12505 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12506 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12507 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12508 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12510 | cat >>confdefs.h <<\_ACEOF |
| 12511 | #define HAVE_DLOPEN 1 |
| 12512 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12513 | |
| 12514 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12515 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12516 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12517 | fi |
| 12518 | |
| 12519 | |
Chandler Carruth | 73c35d8 | 2013-01-04 23:19:55 +0000 | [diff] [blame] | 12520 | { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 |
| 12521 | echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } |
| 12522 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 12523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12524 | else |
| 12525 | ac_func_search_save_LIBS=$LIBS |
| 12526 | cat >conftest.$ac_ext <<_ACEOF |
| 12527 | /* confdefs.h. */ |
| 12528 | _ACEOF |
| 12529 | cat confdefs.h >>conftest.$ac_ext |
| 12530 | cat >>conftest.$ac_ext <<_ACEOF |
| 12531 | /* end confdefs.h. */ |
| 12532 | |
| 12533 | /* Override any GCC internal prototype to avoid an error. |
| 12534 | Use char because int might match the return type of a GCC |
| 12535 | builtin and then its argument prototype would still apply. */ |
| 12536 | #ifdef __cplusplus |
| 12537 | extern "C" |
| 12538 | #endif |
| 12539 | char clock_gettime (); |
| 12540 | int |
| 12541 | main () |
| 12542 | { |
| 12543 | return clock_gettime (); |
| 12544 | ; |
| 12545 | return 0; |
| 12546 | } |
| 12547 | _ACEOF |
| 12548 | for ac_lib in '' rt; do |
| 12549 | if test -z "$ac_lib"; then |
| 12550 | ac_res="none required" |
| 12551 | else |
| 12552 | ac_res=-l$ac_lib |
| 12553 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12554 | fi |
| 12555 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12556 | if { (ac_try="$ac_link" |
| 12557 | case "(($ac_try" in |
| 12558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12559 | *) ac_try_echo=$ac_try;; |
| 12560 | esac |
| 12561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12562 | (eval "$ac_link") 2>conftest.er1 |
| 12563 | ac_status=$? |
| 12564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12565 | rm -f conftest.er1 |
| 12566 | cat conftest.err >&5 |
| 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12568 | (exit $ac_status); } && |
| 12569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12570 | { (case "(($ac_try" in |
| 12571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12572 | *) ac_try_echo=$ac_try;; |
| 12573 | esac |
| 12574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12575 | (eval "$ac_try") 2>&5 |
| 12576 | ac_status=$? |
| 12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12578 | (exit $ac_status); }; } && |
| 12579 | { ac_try='test -s conftest$ac_exeext' |
| 12580 | { (case "(($ac_try" in |
| 12581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12582 | *) ac_try_echo=$ac_try;; |
| 12583 | esac |
| 12584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12585 | (eval "$ac_try") 2>&5 |
| 12586 | ac_status=$? |
| 12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12588 | (exit $ac_status); }; }; then |
| 12589 | ac_cv_search_clock_gettime=$ac_res |
| 12590 | else |
| 12591 | echo "$as_me: failed program was:" >&5 |
| 12592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12593 | |
| 12594 | |
| 12595 | fi |
| 12596 | |
| 12597 | rm -f core conftest.err conftest.$ac_objext \ |
| 12598 | conftest$ac_exeext |
| 12599 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 12600 | break |
| 12601 | fi |
| 12602 | done |
| 12603 | if test "${ac_cv_search_clock_gettime+set}" = set; then |
| 12604 | : |
| 12605 | else |
| 12606 | ac_cv_search_clock_gettime=no |
| 12607 | fi |
| 12608 | rm conftest.$ac_ext |
| 12609 | LIBS=$ac_func_search_save_LIBS |
| 12610 | fi |
| 12611 | { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 |
| 12612 | echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } |
| 12613 | ac_res=$ac_cv_search_clock_gettime |
| 12614 | if test "$ac_res" != no; then |
| 12615 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12616 | |
Chandler Carruth | 73c35d8 | 2013-01-04 23:19:55 +0000 | [diff] [blame] | 12617 | fi |
| 12618 | |
| 12619 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12620 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12621 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12622 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12623 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12625 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12626 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12627 | cat >conftest.$ac_ext <<_ACEOF |
| 12628 | /* confdefs.h. */ |
| 12629 | _ACEOF |
| 12630 | cat confdefs.h >>conftest.$ac_ext |
| 12631 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12632 | /* end confdefs.h. */ |
| 12633 | |
| 12634 | /* Override any GCC internal prototype to avoid an error. |
| 12635 | Use char because int might match the return type of a GCC |
| 12636 | builtin and then its argument prototype would still apply. */ |
| 12637 | #ifdef __cplusplus |
| 12638 | extern "C" |
| 12639 | #endif |
| 12640 | char ffi_call (); |
| 12641 | int |
| 12642 | main () |
| 12643 | { |
| 12644 | return ffi_call (); |
| 12645 | ; |
| 12646 | return 0; |
| 12647 | } |
| 12648 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12649 | for ac_lib in '' ffi; do |
| 12650 | if test -z "$ac_lib"; then |
| 12651 | ac_res="none required" |
| 12652 | else |
| 12653 | ac_res=-l$ac_lib |
| 12654 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12655 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12657 | if { (ac_try="$ac_link" |
| 12658 | case "(($ac_try" in |
| 12659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12660 | *) ac_try_echo=$ac_try;; |
| 12661 | esac |
| 12662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12663 | (eval "$ac_link") 2>conftest.er1 |
| 12664 | ac_status=$? |
| 12665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12666 | rm -f conftest.er1 |
| 12667 | cat conftest.err >&5 |
| 12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12669 | (exit $ac_status); } && |
| 12670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12671 | { (case "(($ac_try" in |
| 12672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12673 | *) ac_try_echo=$ac_try;; |
| 12674 | esac |
| 12675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12676 | (eval "$ac_try") 2>&5 |
| 12677 | ac_status=$? |
| 12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12679 | (exit $ac_status); }; } && |
| 12680 | { ac_try='test -s conftest$ac_exeext' |
| 12681 | { (case "(($ac_try" in |
| 12682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12683 | *) ac_try_echo=$ac_try;; |
| 12684 | esac |
| 12685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12686 | (eval "$ac_try") 2>&5 |
| 12687 | ac_status=$? |
| 12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12689 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12690 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12691 | else |
| 12692 | echo "$as_me: failed program was:" >&5 |
| 12693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12694 | |
| 12695 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12696 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12697 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12698 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12699 | conftest$ac_exeext |
| 12700 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12701 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12702 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12703 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12704 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12705 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12706 | else |
| 12707 | ac_cv_search_ffi_call=no |
| 12708 | fi |
| 12709 | rm conftest.$ac_ext |
| 12710 | LIBS=$ac_func_search_save_LIBS |
| 12711 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12712 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12713 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12714 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12715 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12716 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12717 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12718 | cat >>confdefs.h <<\_ACEOF |
| 12719 | #define HAVE_FFI_CALL 1 |
| 12720 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 12721 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12722 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 12723 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12724 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12725 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12726 | fi |
| 12727 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 12728 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 12729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12730 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12731 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12732 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12734 | else |
| 12735 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12736 | cat >conftest.$ac_ext <<_ACEOF |
| 12737 | /* confdefs.h. */ |
| 12738 | _ACEOF |
| 12739 | cat confdefs.h >>conftest.$ac_ext |
| 12740 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12741 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12742 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12743 | /* Override any GCC internal prototype to avoid an error. |
| 12744 | Use char because int might match the return type of a GCC |
| 12745 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12746 | #ifdef __cplusplus |
| 12747 | extern "C" |
| 12748 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12749 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12750 | int |
| 12751 | main () |
| 12752 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12753 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12754 | ; |
| 12755 | return 0; |
| 12756 | } |
| 12757 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12758 | for ac_lib in '' malloc; do |
| 12759 | if test -z "$ac_lib"; then |
| 12760 | ac_res="none required" |
| 12761 | else |
| 12762 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12763 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12764 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12766 | if { (ac_try="$ac_link" |
| 12767 | case "(($ac_try" in |
| 12768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12769 | *) ac_try_echo=$ac_try;; |
| 12770 | esac |
| 12771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12772 | (eval "$ac_link") 2>conftest.er1 |
| 12773 | ac_status=$? |
| 12774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12775 | rm -f conftest.er1 |
| 12776 | cat conftest.err >&5 |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); } && |
| 12779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12780 | { (case "(($ac_try" in |
| 12781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12782 | *) ac_try_echo=$ac_try;; |
| 12783 | esac |
| 12784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12785 | (eval "$ac_try") 2>&5 |
| 12786 | ac_status=$? |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); }; } && |
| 12789 | { ac_try='test -s conftest$ac_exeext' |
| 12790 | { (case "(($ac_try" in |
| 12791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12792 | *) ac_try_echo=$ac_try;; |
| 12793 | esac |
| 12794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12795 | (eval "$ac_try") 2>&5 |
| 12796 | ac_status=$? |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12799 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12800 | else |
| 12801 | echo "$as_me: failed program was:" >&5 |
| 12802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12803 | |
| 12804 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12806 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12807 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12808 | conftest$ac_exeext |
| 12809 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12810 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12811 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12812 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12813 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12814 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12815 | else |
| 12816 | ac_cv_search_mallinfo=no |
| 12817 | fi |
| 12818 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12819 | LIBS=$ac_func_search_save_LIBS |
| 12820 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12821 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12822 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12823 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12824 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12825 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 12826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12827 | cat >>confdefs.h <<\_ACEOF |
| 12828 | #define HAVE_MALLINFO 1 |
| 12829 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12830 | |
| 12831 | fi |
| 12832 | |
| 12833 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 12834 | 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] | 12835 | |
| 12836 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12837 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12838 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12840 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12841 | ac_check_lib_save_LIBS=$LIBS |
| 12842 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12843 | cat >conftest.$ac_ext <<_ACEOF |
| 12844 | /* confdefs.h. */ |
| 12845 | _ACEOF |
| 12846 | cat confdefs.h >>conftest.$ac_ext |
| 12847 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12848 | /* end confdefs.h. */ |
| 12849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12850 | /* Override any GCC internal prototype to avoid an error. |
| 12851 | Use char because int might match the return type of a GCC |
| 12852 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12853 | #ifdef __cplusplus |
| 12854 | extern "C" |
| 12855 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12856 | char pthread_mutex_init (); |
| 12857 | int |
| 12858 | main () |
| 12859 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12860 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12861 | ; |
| 12862 | return 0; |
| 12863 | } |
| 12864 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12866 | if { (ac_try="$ac_link" |
| 12867 | case "(($ac_try" in |
| 12868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12869 | *) ac_try_echo=$ac_try;; |
| 12870 | esac |
| 12871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12872 | (eval "$ac_link") 2>conftest.er1 |
| 12873 | ac_status=$? |
| 12874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12875 | rm -f conftest.er1 |
| 12876 | cat conftest.err >&5 |
| 12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12878 | (exit $ac_status); } && |
| 12879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12880 | { (case "(($ac_try" in |
| 12881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12882 | *) ac_try_echo=$ac_try;; |
| 12883 | esac |
| 12884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12885 | (eval "$ac_try") 2>&5 |
| 12886 | ac_status=$? |
| 12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12888 | (exit $ac_status); }; } && |
| 12889 | { ac_try='test -s conftest$ac_exeext' |
| 12890 | { (case "(($ac_try" in |
| 12891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12892 | *) ac_try_echo=$ac_try;; |
| 12893 | esac |
| 12894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12895 | (eval "$ac_try") 2>&5 |
| 12896 | ac_status=$? |
| 12897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12898 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12899 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12900 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12901 | echo "$as_me: failed program was:" >&5 |
| 12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12903 | |
| 12904 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12905 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12906 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12907 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12908 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12909 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12910 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12911 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12912 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12913 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12914 | cat >>confdefs.h <<_ACEOF |
| 12915 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 12916 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12917 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 12918 | LIBS="-lpthread $LIBS" |
| 12919 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 12920 | fi |
| 12921 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12922 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12923 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12924 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12926 | else |
| 12927 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12928 | cat >conftest.$ac_ext <<_ACEOF |
| 12929 | /* confdefs.h. */ |
| 12930 | _ACEOF |
| 12931 | cat confdefs.h >>conftest.$ac_ext |
| 12932 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12933 | /* end confdefs.h. */ |
| 12934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12935 | /* Override any GCC internal prototype to avoid an error. |
| 12936 | Use char because int might match the return type of a GCC |
| 12937 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12938 | #ifdef __cplusplus |
| 12939 | extern "C" |
| 12940 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12941 | char pthread_mutex_lock (); |
| 12942 | int |
| 12943 | main () |
| 12944 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12945 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12946 | ; |
| 12947 | return 0; |
| 12948 | } |
| 12949 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12950 | for ac_lib in '' pthread; do |
| 12951 | if test -z "$ac_lib"; then |
| 12952 | ac_res="none required" |
| 12953 | else |
| 12954 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12955 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12956 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12958 | if { (ac_try="$ac_link" |
| 12959 | case "(($ac_try" in |
| 12960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12961 | *) ac_try_echo=$ac_try;; |
| 12962 | esac |
| 12963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12964 | (eval "$ac_link") 2>conftest.er1 |
| 12965 | ac_status=$? |
| 12966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12967 | rm -f conftest.er1 |
| 12968 | cat conftest.err >&5 |
| 12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12970 | (exit $ac_status); } && |
| 12971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12972 | { (case "(($ac_try" in |
| 12973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12974 | *) ac_try_echo=$ac_try;; |
| 12975 | esac |
| 12976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12977 | (eval "$ac_try") 2>&5 |
| 12978 | ac_status=$? |
| 12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12980 | (exit $ac_status); }; } && |
| 12981 | { ac_try='test -s conftest$ac_exeext' |
| 12982 | { (case "(($ac_try" in |
| 12983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12984 | *) ac_try_echo=$ac_try;; |
| 12985 | esac |
| 12986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12987 | (eval "$ac_try") 2>&5 |
| 12988 | ac_status=$? |
| 12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12990 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12991 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12992 | else |
| 12993 | echo "$as_me: failed program was:" >&5 |
| 12994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12995 | |
| 12996 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 12997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12998 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12999 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13000 | conftest$ac_exeext |
| 13001 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13002 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13004 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13005 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13006 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13007 | else |
| 13008 | ac_cv_search_pthread_mutex_lock=no |
| 13009 | fi |
| 13010 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13011 | LIBS=$ac_func_search_save_LIBS |
| 13012 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 13014 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13015 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13016 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13017 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13018 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13019 | cat >>confdefs.h <<\_ACEOF |
| 13020 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 13021 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 13022 | |
| 13023 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13024 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13025 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 13026 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 13027 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13029 | else |
| 13030 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13031 | cat >conftest.$ac_ext <<_ACEOF |
| 13032 | /* confdefs.h. */ |
| 13033 | _ACEOF |
| 13034 | cat confdefs.h >>conftest.$ac_ext |
| 13035 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13036 | /* end confdefs.h. */ |
| 13037 | |
| 13038 | /* Override any GCC internal prototype to avoid an error. |
| 13039 | Use char because int might match the return type of a GCC |
| 13040 | builtin and then its argument prototype would still apply. */ |
| 13041 | #ifdef __cplusplus |
| 13042 | extern "C" |
| 13043 | #endif |
| 13044 | char pthread_rwlock_init (); |
| 13045 | int |
| 13046 | main () |
| 13047 | { |
| 13048 | return pthread_rwlock_init (); |
| 13049 | ; |
| 13050 | return 0; |
| 13051 | } |
| 13052 | _ACEOF |
| 13053 | for ac_lib in '' pthread; do |
| 13054 | if test -z "$ac_lib"; then |
| 13055 | ac_res="none required" |
| 13056 | else |
| 13057 | ac_res=-l$ac_lib |
| 13058 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13059 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13061 | if { (ac_try="$ac_link" |
| 13062 | case "(($ac_try" in |
| 13063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13064 | *) ac_try_echo=$ac_try;; |
| 13065 | esac |
| 13066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13067 | (eval "$ac_link") 2>conftest.er1 |
| 13068 | ac_status=$? |
| 13069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13070 | rm -f conftest.er1 |
| 13071 | cat conftest.err >&5 |
| 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13073 | (exit $ac_status); } && |
| 13074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13075 | { (case "(($ac_try" in |
| 13076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13077 | *) ac_try_echo=$ac_try;; |
| 13078 | esac |
| 13079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13080 | (eval "$ac_try") 2>&5 |
| 13081 | ac_status=$? |
| 13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13083 | (exit $ac_status); }; } && |
| 13084 | { ac_try='test -s conftest$ac_exeext' |
| 13085 | { (case "(($ac_try" in |
| 13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13087 | *) ac_try_echo=$ac_try;; |
| 13088 | esac |
| 13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13090 | (eval "$ac_try") 2>&5 |
| 13091 | ac_status=$? |
| 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13093 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13094 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13095 | else |
| 13096 | echo "$as_me: failed program was:" >&5 |
| 13097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13098 | |
| 13099 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13100 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13101 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13102 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13103 | conftest$ac_exeext |
| 13104 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13105 | break |
| 13106 | fi |
| 13107 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13108 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13109 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13110 | else |
| 13111 | ac_cv_search_pthread_rwlock_init=no |
| 13112 | fi |
| 13113 | rm conftest.$ac_ext |
| 13114 | LIBS=$ac_func_search_save_LIBS |
| 13115 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13116 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13117 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13118 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13119 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13120 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13121 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13122 | cat >>confdefs.h <<\_ACEOF |
| 13123 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13124 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 13125 | |
| 13126 | fi |
| 13127 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13128 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13129 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13130 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13132 | else |
| 13133 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13134 | cat >conftest.$ac_ext <<_ACEOF |
| 13135 | /* confdefs.h. */ |
| 13136 | _ACEOF |
| 13137 | cat confdefs.h >>conftest.$ac_ext |
| 13138 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13139 | /* end confdefs.h. */ |
| 13140 | |
| 13141 | /* Override any GCC internal prototype to avoid an error. |
| 13142 | Use char because int might match the return type of a GCC |
| 13143 | builtin and then its argument prototype would still apply. */ |
| 13144 | #ifdef __cplusplus |
| 13145 | extern "C" |
| 13146 | #endif |
| 13147 | char pthread_getspecific (); |
| 13148 | int |
| 13149 | main () |
| 13150 | { |
| 13151 | return pthread_getspecific (); |
| 13152 | ; |
| 13153 | return 0; |
| 13154 | } |
| 13155 | _ACEOF |
| 13156 | for ac_lib in '' pthread; do |
| 13157 | if test -z "$ac_lib"; then |
| 13158 | ac_res="none required" |
| 13159 | else |
| 13160 | ac_res=-l$ac_lib |
| 13161 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13162 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13164 | if { (ac_try="$ac_link" |
| 13165 | case "(($ac_try" in |
| 13166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13167 | *) ac_try_echo=$ac_try;; |
| 13168 | esac |
| 13169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13170 | (eval "$ac_link") 2>conftest.er1 |
| 13171 | ac_status=$? |
| 13172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13173 | rm -f conftest.er1 |
| 13174 | cat conftest.err >&5 |
| 13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13176 | (exit $ac_status); } && |
| 13177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13178 | { (case "(($ac_try" in |
| 13179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13180 | *) ac_try_echo=$ac_try;; |
| 13181 | esac |
| 13182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13183 | (eval "$ac_try") 2>&5 |
| 13184 | ac_status=$? |
| 13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13186 | (exit $ac_status); }; } && |
| 13187 | { ac_try='test -s conftest$ac_exeext' |
| 13188 | { (case "(($ac_try" in |
| 13189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13190 | *) ac_try_echo=$ac_try;; |
| 13191 | esac |
| 13192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13193 | (eval "$ac_try") 2>&5 |
| 13194 | ac_status=$? |
| 13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13196 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13197 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13198 | else |
| 13199 | echo "$as_me: failed program was:" >&5 |
| 13200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13201 | |
| 13202 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13203 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13204 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13205 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13206 | conftest$ac_exeext |
| 13207 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13208 | break |
| 13209 | fi |
| 13210 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13211 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13212 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13213 | else |
| 13214 | ac_cv_search_pthread_getspecific=no |
| 13215 | fi |
| 13216 | rm conftest.$ac_ext |
| 13217 | LIBS=$ac_func_search_save_LIBS |
| 13218 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13219 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13220 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13221 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13223 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13224 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13225 | cat >>confdefs.h <<\_ACEOF |
| 13226 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13227 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 13228 | |
| 13229 | fi |
| 13230 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13231 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 13232 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13233 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13234 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13235 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13236 | withval=$with_udis86; |
| 13237 | USE_UDIS86=1 |
| 13238 | |
| 13239 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 13240 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13241 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13242 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13243 | |
| 13244 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13245 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13246 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13248 | else |
| 13249 | ac_check_lib_save_LIBS=$LIBS |
| 13250 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13251 | cat >conftest.$ac_ext <<_ACEOF |
| 13252 | /* confdefs.h. */ |
| 13253 | _ACEOF |
| 13254 | cat confdefs.h >>conftest.$ac_ext |
| 13255 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13256 | /* end confdefs.h. */ |
| 13257 | |
| 13258 | /* Override any GCC internal prototype to avoid an error. |
| 13259 | Use char because int might match the return type of a GCC |
| 13260 | builtin and then its argument prototype would still apply. */ |
| 13261 | #ifdef __cplusplus |
| 13262 | extern "C" |
| 13263 | #endif |
| 13264 | char ud_init (); |
| 13265 | int |
| 13266 | main () |
| 13267 | { |
| 13268 | return ud_init (); |
| 13269 | ; |
| 13270 | return 0; |
| 13271 | } |
| 13272 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13273 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13274 | if { (ac_try="$ac_link" |
| 13275 | case "(($ac_try" in |
| 13276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13277 | *) ac_try_echo=$ac_try;; |
| 13278 | esac |
| 13279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13280 | (eval "$ac_link") 2>conftest.er1 |
| 13281 | ac_status=$? |
| 13282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13283 | rm -f conftest.er1 |
| 13284 | cat conftest.err >&5 |
| 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13286 | (exit $ac_status); } && |
| 13287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13288 | { (case "(($ac_try" in |
| 13289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13290 | *) ac_try_echo=$ac_try;; |
| 13291 | esac |
| 13292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13293 | (eval "$ac_try") 2>&5 |
| 13294 | ac_status=$? |
| 13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13296 | (exit $ac_status); }; } && |
| 13297 | { ac_try='test -s conftest$ac_exeext' |
| 13298 | { (case "(($ac_try" in |
| 13299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13300 | *) ac_try_echo=$ac_try;; |
| 13301 | esac |
| 13302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13303 | (eval "$ac_try") 2>&5 |
| 13304 | ac_status=$? |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13306 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13307 | ac_cv_lib_udis86_ud_init=yes |
| 13308 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13309 | echo "$as_me: failed program was:" >&5 |
| 13310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13311 | |
| 13312 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13313 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13314 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13315 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13316 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13317 | LIBS=$ac_check_lib_save_LIBS |
| 13318 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13319 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13320 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13321 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 13322 | cat >>confdefs.h <<_ACEOF |
| 13323 | #define HAVE_LIBUDIS86 1 |
| 13324 | _ACEOF |
| 13325 | |
| 13326 | LIBS="-ludis86 $LIBS" |
| 13327 | |
| 13328 | else |
| 13329 | |
| 13330 | echo "Error! You need to have libudis86 around." |
| 13331 | exit -1 |
| 13332 | |
| 13333 | fi |
| 13334 | |
| 13335 | |
| 13336 | else |
| 13337 | USE_UDIS86=0 |
| 13338 | |
| 13339 | fi |
| 13340 | |
| 13341 | |
| 13342 | cat >>confdefs.h <<_ACEOF |
| 13343 | #define USE_UDIS86 $USE_UDIS86 |
| 13344 | _ACEOF |
| 13345 | |
| 13346 | |
| 13347 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13348 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13349 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13350 | withval=$with_oprofile; |
| 13351 | USE_OPROFILE=1 |
| 13352 | |
| 13353 | case "$withval" in |
| 13354 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13355 | no) llvm_cv_oppath= |
| 13356 | USE_OPROFILE=0 |
| 13357 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13358 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
Eric Christopher | 42dffa5 | 2012-08-03 17:45:31 +0000 | [diff] [blame] | 13359 | CPPFLAGS="-I${withval}/include";; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13360 | esac |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13361 | case $llvm_cv_os_type in |
| 13362 | Linux) |
| 13363 | if test -n "$llvm_cv_oppath" ; then |
| 13364 | LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 13365 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13366 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13367 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13369 | else |
| 13370 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13371 | cat >conftest.$ac_ext <<_ACEOF |
| 13372 | /* confdefs.h. */ |
| 13373 | _ACEOF |
| 13374 | cat confdefs.h >>conftest.$ac_ext |
| 13375 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13376 | /* end confdefs.h. */ |
| 13377 | |
| 13378 | /* Override any GCC internal prototype to avoid an error. |
| 13379 | Use char because int might match the return type of a GCC |
| 13380 | builtin and then its argument prototype would still apply. */ |
| 13381 | #ifdef __cplusplus |
| 13382 | extern "C" |
| 13383 | #endif |
| 13384 | char bfd_init (); |
| 13385 | int |
| 13386 | main () |
| 13387 | { |
| 13388 | return bfd_init (); |
| 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
| 13393 | for ac_lib in '' bfd; do |
| 13394 | if test -z "$ac_lib"; then |
| 13395 | ac_res="none required" |
| 13396 | else |
| 13397 | ac_res=-l$ac_lib |
| 13398 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13401 | if { (ac_try="$ac_link" |
| 13402 | case "(($ac_try" in |
| 13403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13404 | *) ac_try_echo=$ac_try;; |
| 13405 | esac |
| 13406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13407 | (eval "$ac_link") 2>conftest.er1 |
| 13408 | ac_status=$? |
| 13409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13410 | rm -f conftest.er1 |
| 13411 | cat conftest.err >&5 |
| 13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13413 | (exit $ac_status); } && |
| 13414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13415 | { (case "(($ac_try" in |
| 13416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13417 | *) ac_try_echo=$ac_try;; |
| 13418 | esac |
| 13419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13420 | (eval "$ac_try") 2>&5 |
| 13421 | ac_status=$? |
| 13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13423 | (exit $ac_status); }; } && |
| 13424 | { ac_try='test -s conftest$ac_exeext' |
| 13425 | { (case "(($ac_try" in |
| 13426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13427 | *) ac_try_echo=$ac_try;; |
| 13428 | esac |
| 13429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13430 | (eval "$ac_try") 2>&5 |
| 13431 | ac_status=$? |
| 13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13433 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13434 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13435 | else |
| 13436 | echo "$as_me: failed program was:" >&5 |
| 13437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13438 | |
| 13439 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13441 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13442 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13443 | conftest$ac_exeext |
| 13444 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13445 | break |
| 13446 | fi |
| 13447 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13449 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13450 | else |
| 13451 | ac_cv_search_bfd_init=no |
| 13452 | fi |
| 13453 | rm conftest.$ac_ext |
| 13454 | LIBS=$ac_func_search_save_LIBS |
| 13455 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13456 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13457 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13458 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13459 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13460 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13461 | |
| 13462 | fi |
| 13463 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13464 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13465 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13466 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13468 | else |
| 13469 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13470 | cat >conftest.$ac_ext <<_ACEOF |
| 13471 | /* confdefs.h. */ |
| 13472 | _ACEOF |
| 13473 | cat confdefs.h >>conftest.$ac_ext |
| 13474 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13475 | /* end confdefs.h. */ |
| 13476 | |
| 13477 | /* Override any GCC internal prototype to avoid an error. |
| 13478 | Use char because int might match the return type of a GCC |
| 13479 | builtin and then its argument prototype would still apply. */ |
| 13480 | #ifdef __cplusplus |
| 13481 | extern "C" |
| 13482 | #endif |
| 13483 | char op_open_agent (); |
| 13484 | int |
| 13485 | main () |
| 13486 | { |
| 13487 | return op_open_agent (); |
| 13488 | ; |
| 13489 | return 0; |
| 13490 | } |
| 13491 | _ACEOF |
| 13492 | for ac_lib in '' opagent; do |
| 13493 | if test -z "$ac_lib"; then |
| 13494 | ac_res="none required" |
| 13495 | else |
| 13496 | ac_res=-l$ac_lib |
| 13497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13498 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13500 | if { (ac_try="$ac_link" |
| 13501 | case "(($ac_try" in |
| 13502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13503 | *) ac_try_echo=$ac_try;; |
| 13504 | esac |
| 13505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13506 | (eval "$ac_link") 2>conftest.er1 |
| 13507 | ac_status=$? |
| 13508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13509 | rm -f conftest.er1 |
| 13510 | cat conftest.err >&5 |
| 13511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13512 | (exit $ac_status); } && |
| 13513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13514 | { (case "(($ac_try" in |
| 13515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13516 | *) ac_try_echo=$ac_try;; |
| 13517 | esac |
| 13518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13519 | (eval "$ac_try") 2>&5 |
| 13520 | ac_status=$? |
| 13521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13522 | (exit $ac_status); }; } && |
| 13523 | { ac_try='test -s conftest$ac_exeext' |
| 13524 | { (case "(($ac_try" in |
| 13525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13526 | *) ac_try_echo=$ac_try;; |
| 13527 | esac |
| 13528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13529 | (eval "$ac_try") 2>&5 |
| 13530 | ac_status=$? |
| 13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13532 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13533 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13534 | else |
| 13535 | echo "$as_me: failed program was:" >&5 |
| 13536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13537 | |
| 13538 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13539 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13540 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13541 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13542 | conftest$ac_exeext |
| 13543 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13544 | break |
| 13545 | fi |
| 13546 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13547 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13548 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13549 | else |
| 13550 | ac_cv_search_op_open_agent=no |
| 13551 | fi |
| 13552 | rm conftest.$ac_ext |
| 13553 | LIBS=$ac_func_search_save_LIBS |
| 13554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13555 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13556 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13557 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13558 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13560 | |
| 13561 | else |
| 13562 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13563 | echo "Error! You need to have libopagent around." |
| 13564 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13565 | |
| 13566 | fi |
| 13567 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13568 | if test "${ac_cv_header_opagent_h+set}" = set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13569 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13570 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13571 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13573 | fi |
| 13574 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13575 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13576 | else |
| 13577 | # Is the header compilable? |
| 13578 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13579 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13580 | cat >conftest.$ac_ext <<_ACEOF |
| 13581 | /* confdefs.h. */ |
| 13582 | _ACEOF |
| 13583 | cat confdefs.h >>conftest.$ac_ext |
| 13584 | cat >>conftest.$ac_ext <<_ACEOF |
| 13585 | /* end confdefs.h. */ |
| 13586 | $ac_includes_default |
| 13587 | #include <opagent.h> |
| 13588 | _ACEOF |
| 13589 | rm -f conftest.$ac_objext |
| 13590 | if { (ac_try="$ac_compile" |
| 13591 | case "(($ac_try" in |
| 13592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13593 | *) ac_try_echo=$ac_try;; |
| 13594 | esac |
| 13595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13596 | (eval "$ac_compile") 2>conftest.er1 |
| 13597 | ac_status=$? |
| 13598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13599 | rm -f conftest.er1 |
| 13600 | cat conftest.err >&5 |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); } && |
| 13603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13604 | { (case "(($ac_try" in |
| 13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13606 | *) ac_try_echo=$ac_try;; |
| 13607 | esac |
| 13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13609 | (eval "$ac_try") 2>&5 |
| 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; } && |
| 13613 | { ac_try='test -s conftest.$ac_objext' |
| 13614 | { (case "(($ac_try" in |
| 13615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13616 | *) ac_try_echo=$ac_try;; |
| 13617 | esac |
| 13618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13619 | (eval "$ac_try") 2>&5 |
| 13620 | ac_status=$? |
| 13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13622 | (exit $ac_status); }; }; then |
| 13623 | ac_header_compiler=yes |
| 13624 | else |
| 13625 | echo "$as_me: failed program was:" >&5 |
| 13626 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13627 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13628 | ac_header_compiler=no |
| 13629 | fi |
| 13630 | |
| 13631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13632 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13633 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13634 | |
| 13635 | # Is the header present? |
| 13636 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13637 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13638 | cat >conftest.$ac_ext <<_ACEOF |
| 13639 | /* confdefs.h. */ |
| 13640 | _ACEOF |
| 13641 | cat confdefs.h >>conftest.$ac_ext |
| 13642 | cat >>conftest.$ac_ext <<_ACEOF |
| 13643 | /* end confdefs.h. */ |
| 13644 | #include <opagent.h> |
| 13645 | _ACEOF |
| 13646 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13653 | ac_status=$? |
| 13654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13655 | rm -f conftest.er1 |
| 13656 | cat conftest.err >&5 |
| 13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13658 | (exit $ac_status); } >/dev/null; then |
| 13659 | if test -s conftest.err; then |
| 13660 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13661 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13662 | else |
| 13663 | ac_cpp_err= |
| 13664 | fi |
| 13665 | else |
| 13666 | ac_cpp_err=yes |
| 13667 | fi |
| 13668 | if test -z "$ac_cpp_err"; then |
| 13669 | ac_header_preproc=yes |
| 13670 | else |
| 13671 | echo "$as_me: failed program was:" >&5 |
| 13672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13673 | |
| 13674 | ac_header_preproc=no |
| 13675 | fi |
| 13676 | |
| 13677 | rm -f conftest.err conftest.$ac_ext |
| 13678 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13679 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13680 | |
| 13681 | # So? What about this header? |
| 13682 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13683 | yes:no: ) |
| 13684 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13685 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13686 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13687 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13688 | ac_header_preproc=yes |
| 13689 | ;; |
| 13690 | no:yes:* ) |
| 13691 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13692 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13693 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13694 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13695 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13696 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13697 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13698 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13699 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13700 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13701 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13702 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13703 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 13704 | ## ------------------------------------ ## |
| 13705 | ## Report this to http://llvm.org/bugs/ ## |
| 13706 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13707 | _ASBOX |
| 13708 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13709 | ;; |
| 13710 | esac |
| 13711 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13712 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13713 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13715 | else |
| 13716 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13717 | fi |
| 13718 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13719 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13720 | |
| 13721 | fi |
| 13722 | if test $ac_cv_header_opagent_h = yes; then |
| 13723 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13724 | else |
| 13725 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13726 | echo "Error! You need to have opagent.h around." |
| 13727 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13728 | |
| 13729 | fi |
| 13730 | |
| 13731 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13732 | fi ;; |
| 13733 | *) |
| 13734 | { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 |
| 13735 | echo "$as_me: error: OProfile support is available on Linux only." >&2;} |
| 13736 | { (exit 1); exit 1; }; } ;; |
| 13737 | esac |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13738 | |
| 13739 | else |
| 13740 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 13741 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13742 | |
| 13743 | |
| 13744 | fi |
| 13745 | |
| 13746 | |
| 13747 | cat >>confdefs.h <<_ACEOF |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13748 | #define LLVM_USE_OPROFILE $USE_OPROFILE |
| 13749 | _ACEOF |
| 13750 | |
| 13751 | |
| 13752 | |
| 13753 | # Check whether --with-intel-jitevents was given. |
| 13754 | if test "${with_intel_jitevents+set}" = set; then |
| 13755 | withval=$with_intel_jitevents; |
Andrew Kaylor | 770b97b | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 13756 | case "$withval" in |
| 13757 | yes) USE_INTEL_JITEVENTS=1 |
| 13758 | ;; |
| 13759 | no) USE_INTEL_JITEVENTS=0 |
| 13760 | ;; |
| 13761 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 |
| 13762 | echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} |
| 13763 | { (exit 1); exit 1; }; };; |
| 13764 | esac |
| 13765 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13766 | case $llvm_cv_os_type in |
| 13767 | Linux|Win32|Cygwin|MingW) ;; |
Andrew Kaylor | 770b97b | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 13768 | *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 |
| 13769 | echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} |
| 13770 | { (exit 1); exit 1; }; };; |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13771 | esac |
| 13772 | |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13773 | case "$llvm_cv_target_arch" in |
Andrew Kaylor | 770b97b | 2012-09-28 17:35:20 +0000 | [diff] [blame] | 13774 | x86|x86_64) ;; |
| 13775 | *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 |
| 13776 | echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} |
| 13777 | { (exit 1); exit 1; }; };; |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13778 | esac |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 13779 | |
| 13780 | else |
| 13781 | |
| 13782 | USE_INTEL_JITEVENTS=0 |
| 13783 | |
| 13784 | |
| 13785 | fi |
| 13786 | |
| 13787 | |
| 13788 | cat >>confdefs.h <<_ACEOF |
| 13789 | #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13790 | _ACEOF |
| 13791 | |
| 13792 | |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 13793 | for ac_prog in xml2-config |
| 13794 | do |
| 13795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13796 | set dummy $ac_prog; ac_word=$2 |
| 13797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13799 | if test "${ac_cv_prog_XML2CONFIG+set}" = set; then |
| 13800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13801 | else |
| 13802 | if test -n "$XML2CONFIG"; then |
| 13803 | ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. |
| 13804 | else |
| 13805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13806 | for as_dir in $PATH |
| 13807 | do |
| 13808 | IFS=$as_save_IFS |
| 13809 | test -z "$as_dir" && as_dir=. |
| 13810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13812 | ac_cv_prog_XML2CONFIG="$ac_prog" |
| 13813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13814 | break 2 |
| 13815 | fi |
| 13816 | done |
| 13817 | done |
| 13818 | IFS=$as_save_IFS |
| 13819 | |
| 13820 | fi |
| 13821 | fi |
| 13822 | XML2CONFIG=$ac_cv_prog_XML2CONFIG |
| 13823 | if test -n "$XML2CONFIG"; then |
| 13824 | { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 |
| 13825 | echo "${ECHO_T}$XML2CONFIG" >&6; } |
| 13826 | else |
| 13827 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13828 | echo "${ECHO_T}no" >&6; } |
| 13829 | fi |
| 13830 | |
| 13831 | |
| 13832 | test -n "$XML2CONFIG" && break |
| 13833 | done |
| 13834 | |
| 13835 | |
| 13836 | { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 |
| 13837 | echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } |
| 13838 | if test "x$XML2CONFIG" = "x"; then |
| 13839 | { echo "$as_me:$LINENO: result: xml2-config not found" >&5 |
| 13840 | echo "${ECHO_T}xml2-config not found" >&6; } |
| 13841 | else |
| 13842 | LIBXML2_INC=`$XML2CONFIG --cflags` |
| 13843 | { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 |
| 13844 | echo "${ECHO_T}$LIBXML2_INC" >&6; } |
| 13845 | { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 |
| 13846 | echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } |
| 13847 | if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then |
| 13848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13849 | else |
| 13850 | ac_check_lib_save_LIBS=$LIBS |
| 13851 | LIBS="-lxml2 $LIBS" |
| 13852 | cat >conftest.$ac_ext <<_ACEOF |
| 13853 | /* confdefs.h. */ |
| 13854 | _ACEOF |
| 13855 | cat confdefs.h >>conftest.$ac_ext |
| 13856 | cat >>conftest.$ac_ext <<_ACEOF |
| 13857 | /* end confdefs.h. */ |
| 13858 | |
| 13859 | /* Override any GCC internal prototype to avoid an error. |
| 13860 | Use char because int might match the return type of a GCC |
| 13861 | builtin and then its argument prototype would still apply. */ |
| 13862 | #ifdef __cplusplus |
| 13863 | extern "C" |
| 13864 | #endif |
| 13865 | char xmlReadFile (); |
| 13866 | int |
| 13867 | main () |
| 13868 | { |
| 13869 | return xmlReadFile (); |
| 13870 | ; |
| 13871 | return 0; |
| 13872 | } |
| 13873 | _ACEOF |
| 13874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13875 | if { (ac_try="$ac_link" |
| 13876 | case "(($ac_try" in |
| 13877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13878 | *) ac_try_echo=$ac_try;; |
| 13879 | esac |
| 13880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13881 | (eval "$ac_link") 2>conftest.er1 |
| 13882 | ac_status=$? |
| 13883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13884 | rm -f conftest.er1 |
| 13885 | cat conftest.err >&5 |
| 13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13887 | (exit $ac_status); } && |
| 13888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13889 | { (case "(($ac_try" in |
| 13890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13891 | *) ac_try_echo=$ac_try;; |
| 13892 | esac |
| 13893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13894 | (eval "$ac_try") 2>&5 |
| 13895 | ac_status=$? |
| 13896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13897 | (exit $ac_status); }; } && |
| 13898 | { ac_try='test -s conftest$ac_exeext' |
| 13899 | { (case "(($ac_try" in |
| 13900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13901 | *) ac_try_echo=$ac_try;; |
| 13902 | esac |
| 13903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13904 | (eval "$ac_try") 2>&5 |
| 13905 | ac_status=$? |
| 13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13907 | (exit $ac_status); }; }; then |
| 13908 | ac_cv_lib_xml2_xmlReadFile=yes |
| 13909 | else |
| 13910 | echo "$as_me: failed program was:" >&5 |
| 13911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13912 | |
| 13913 | ac_cv_lib_xml2_xmlReadFile=no |
| 13914 | fi |
| 13915 | |
| 13916 | rm -f core conftest.err conftest.$ac_objext \ |
| 13917 | conftest$ac_exeext conftest.$ac_ext |
| 13918 | LIBS=$ac_check_lib_save_LIBS |
| 13919 | fi |
| 13920 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 |
| 13921 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } |
| 13922 | if test $ac_cv_lib_xml2_xmlReadFile = yes; then |
| 13923 | |
| 13924 | cat >>confdefs.h <<\_ACEOF |
| 13925 | #define CLANG_HAVE_LIBXML 1 |
| 13926 | _ACEOF |
| 13927 | |
| 13928 | LIBXML2_LIBS="-lxml2" |
| 13929 | fi |
| 13930 | |
| 13931 | fi |
| 13932 | |
| 13933 | |
| 13934 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 13935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13936 | |
| 13937 | |
| 13938 | |
| 13939 | |
| 13940 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13941 | ac_header_dirent=no |
| 13942 | 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] | 13943 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13944 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13945 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13946 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13948 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13949 | cat >conftest.$ac_ext <<_ACEOF |
| 13950 | /* confdefs.h. */ |
| 13951 | _ACEOF |
| 13952 | cat confdefs.h >>conftest.$ac_ext |
| 13953 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13954 | /* end confdefs.h. */ |
| 13955 | #include <sys/types.h> |
| 13956 | #include <$ac_hdr> |
| 13957 | |
| 13958 | int |
| 13959 | main () |
| 13960 | { |
| 13961 | if ((DIR *) 0) |
| 13962 | return 0; |
| 13963 | ; |
| 13964 | return 0; |
| 13965 | } |
| 13966 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13967 | rm -f conftest.$ac_objext |
| 13968 | if { (ac_try="$ac_compile" |
| 13969 | case "(($ac_try" in |
| 13970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13971 | *) ac_try_echo=$ac_try;; |
| 13972 | esac |
| 13973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13974 | (eval "$ac_compile") 2>conftest.er1 |
| 13975 | ac_status=$? |
| 13976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13977 | rm -f conftest.er1 |
| 13978 | cat conftest.err >&5 |
| 13979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13980 | (exit $ac_status); } && |
| 13981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13982 | { (case "(($ac_try" in |
| 13983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13984 | *) ac_try_echo=$ac_try;; |
| 13985 | esac |
| 13986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13987 | (eval "$ac_try") 2>&5 |
| 13988 | ac_status=$? |
| 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13990 | (exit $ac_status); }; } && |
| 13991 | { ac_try='test -s conftest.$ac_objext' |
| 13992 | { (case "(($ac_try" in |
| 13993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13994 | *) ac_try_echo=$ac_try;; |
| 13995 | esac |
| 13996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13997 | (eval "$ac_try") 2>&5 |
| 13998 | ac_status=$? |
| 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14000 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14001 | eval "$as_ac_Header=yes" |
| 14002 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14003 | echo "$as_me: failed program was:" >&5 |
| 14004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14005 | |
| 14006 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14007 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14010 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14011 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14013 | echo "${ECHO_T}$ac_res" >&6; } |
| 14014 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14015 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14016 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14017 | _ACEOF |
| 14018 | |
| 14019 | ac_header_dirent=$ac_hdr; break |
| 14020 | fi |
| 14021 | |
| 14022 | done |
| 14023 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14024 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14025 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14026 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14027 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14029 | else |
| 14030 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14031 | cat >conftest.$ac_ext <<_ACEOF |
| 14032 | /* confdefs.h. */ |
| 14033 | _ACEOF |
| 14034 | cat confdefs.h >>conftest.$ac_ext |
| 14035 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14036 | /* end confdefs.h. */ |
| 14037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14038 | /* Override any GCC internal prototype to avoid an error. |
| 14039 | Use char because int might match the return type of a GCC |
| 14040 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14041 | #ifdef __cplusplus |
| 14042 | extern "C" |
| 14043 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14044 | char opendir (); |
| 14045 | int |
| 14046 | main () |
| 14047 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14048 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14049 | ; |
| 14050 | return 0; |
| 14051 | } |
| 14052 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14053 | for ac_lib in '' dir; do |
| 14054 | if test -z "$ac_lib"; then |
| 14055 | ac_res="none required" |
| 14056 | else |
| 14057 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14058 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14059 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14061 | if { (ac_try="$ac_link" |
| 14062 | case "(($ac_try" in |
| 14063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14064 | *) ac_try_echo=$ac_try;; |
| 14065 | esac |
| 14066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14067 | (eval "$ac_link") 2>conftest.er1 |
| 14068 | ac_status=$? |
| 14069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14070 | rm -f conftest.er1 |
| 14071 | cat conftest.err >&5 |
| 14072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14073 | (exit $ac_status); } && |
| 14074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14075 | { (case "(($ac_try" in |
| 14076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14077 | *) ac_try_echo=$ac_try;; |
| 14078 | esac |
| 14079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14080 | (eval "$ac_try") 2>&5 |
| 14081 | ac_status=$? |
| 14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14083 | (exit $ac_status); }; } && |
| 14084 | { ac_try='test -s conftest$ac_exeext' |
| 14085 | { (case "(($ac_try" in |
| 14086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14087 | *) ac_try_echo=$ac_try;; |
| 14088 | esac |
| 14089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14090 | (eval "$ac_try") 2>&5 |
| 14091 | ac_status=$? |
| 14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14093 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14094 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14095 | else |
| 14096 | echo "$as_me: failed program was:" >&5 |
| 14097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14098 | |
| 14099 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14100 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14101 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14102 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14103 | conftest$ac_exeext |
| 14104 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14105 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14106 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14107 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14108 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14109 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14110 | else |
| 14111 | ac_cv_search_opendir=no |
| 14112 | fi |
| 14113 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14114 | LIBS=$ac_func_search_save_LIBS |
| 14115 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14116 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14117 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14118 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14119 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14120 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14121 | |
| 14122 | fi |
| 14123 | |
| 14124 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14125 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14126 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14127 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14129 | else |
| 14130 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14131 | cat >conftest.$ac_ext <<_ACEOF |
| 14132 | /* confdefs.h. */ |
| 14133 | _ACEOF |
| 14134 | cat confdefs.h >>conftest.$ac_ext |
| 14135 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14136 | /* end confdefs.h. */ |
| 14137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14138 | /* Override any GCC internal prototype to avoid an error. |
| 14139 | Use char because int might match the return type of a GCC |
| 14140 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14141 | #ifdef __cplusplus |
| 14142 | extern "C" |
| 14143 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14144 | char opendir (); |
| 14145 | int |
| 14146 | main () |
| 14147 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14148 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14149 | ; |
| 14150 | return 0; |
| 14151 | } |
| 14152 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14153 | for ac_lib in '' x; do |
| 14154 | if test -z "$ac_lib"; then |
| 14155 | ac_res="none required" |
| 14156 | else |
| 14157 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14158 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14159 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14160 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14161 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 14168 | ac_status=$? |
| 14169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14170 | rm -f conftest.er1 |
| 14171 | cat conftest.err >&5 |
| 14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14173 | (exit $ac_status); } && |
| 14174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14175 | { (case "(($ac_try" in |
| 14176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14177 | *) ac_try_echo=$ac_try;; |
| 14178 | esac |
| 14179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14180 | (eval "$ac_try") 2>&5 |
| 14181 | ac_status=$? |
| 14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14183 | (exit $ac_status); }; } && |
| 14184 | { ac_try='test -s conftest$ac_exeext' |
| 14185 | { (case "(($ac_try" in |
| 14186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14187 | *) ac_try_echo=$ac_try;; |
| 14188 | esac |
| 14189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14190 | (eval "$ac_try") 2>&5 |
| 14191 | ac_status=$? |
| 14192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14193 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14194 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14195 | else |
| 14196 | echo "$as_me: failed program was:" >&5 |
| 14197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14198 | |
| 14199 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14200 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14201 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14202 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14203 | conftest$ac_exeext |
| 14204 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14205 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14207 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14208 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14209 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14210 | else |
| 14211 | ac_cv_search_opendir=no |
| 14212 | fi |
| 14213 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14214 | LIBS=$ac_func_search_save_LIBS |
| 14215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14216 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14217 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14218 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14219 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14221 | |
| 14222 | fi |
| 14223 | |
| 14224 | fi |
| 14225 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14226 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 14227 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 14228 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 14229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14230 | else |
| 14231 | ac_ext=c |
| 14232 | ac_cpp='$CPP $CPPFLAGS' |
| 14233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14236 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14237 | cat >conftest.$ac_ext <<_ACEOF |
| 14238 | /* confdefs.h. */ |
| 14239 | _ACEOF |
| 14240 | cat confdefs.h >>conftest.$ac_ext |
| 14241 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14242 | /* end confdefs.h. */ |
| 14243 | #include <sys/mman.h> |
| 14244 | #include <unistd.h> |
| 14245 | #include <fcntl.h> |
| 14246 | int |
| 14247 | main () |
| 14248 | { |
| 14249 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 14250 | ; |
| 14251 | return 0; |
| 14252 | } |
| 14253 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14254 | rm -f conftest.$ac_objext |
| 14255 | if { (ac_try="$ac_compile" |
| 14256 | case "(($ac_try" in |
| 14257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14258 | *) ac_try_echo=$ac_try;; |
| 14259 | esac |
| 14260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14261 | (eval "$ac_compile") 2>conftest.er1 |
| 14262 | ac_status=$? |
| 14263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14264 | rm -f conftest.er1 |
| 14265 | cat conftest.err >&5 |
| 14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14267 | (exit $ac_status); } && |
| 14268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14269 | { (case "(($ac_try" in |
| 14270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14271 | *) ac_try_echo=$ac_try;; |
| 14272 | esac |
| 14273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14274 | (eval "$ac_try") 2>&5 |
| 14275 | ac_status=$? |
| 14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14277 | (exit $ac_status); }; } && |
| 14278 | { ac_try='test -s conftest.$ac_objext' |
| 14279 | { (case "(($ac_try" in |
| 14280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14281 | *) ac_try_echo=$ac_try;; |
| 14282 | esac |
| 14283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14284 | (eval "$ac_try") 2>&5 |
| 14285 | ac_status=$? |
| 14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14287 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14288 | ac_cv_header_mmap_anon=yes |
| 14289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14290 | echo "$as_me: failed program was:" >&5 |
| 14291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14292 | |
| 14293 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14297 | ac_ext=c |
| 14298 | ac_cpp='$CPP $CPPFLAGS' |
| 14299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14302 | |
| 14303 | |
| 14304 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14305 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14306 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14307 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14308 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14309 | cat >>confdefs.h <<\_ACEOF |
| 14310 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14311 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14312 | |
| 14313 | fi |
| 14314 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14315 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14316 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14317 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14319 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14320 | cat >conftest.$ac_ext <<_ACEOF |
| 14321 | /* confdefs.h. */ |
| 14322 | _ACEOF |
| 14323 | cat confdefs.h >>conftest.$ac_ext |
| 14324 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14325 | /* end confdefs.h. */ |
| 14326 | #include <sys/types.h> |
| 14327 | #include <sys/stat.h> |
| 14328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14329 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14330 | # if S_ISBLK (S_IFDIR) |
| 14331 | You lose. |
| 14332 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14333 | #endif |
| 14334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14335 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14336 | # if S_ISBLK (S_IFCHR) |
| 14337 | You lose. |
| 14338 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14339 | #endif |
| 14340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14341 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14342 | # if S_ISLNK (S_IFREG) |
| 14343 | You lose. |
| 14344 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14345 | #endif |
| 14346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14347 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14348 | # if S_ISSOCK (S_IFREG) |
| 14349 | You lose. |
| 14350 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14351 | #endif |
| 14352 | |
| 14353 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14354 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14355 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 14356 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14357 | else |
| 14358 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 14359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14360 | rm -f conftest* |
| 14361 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14362 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14363 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14364 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14365 | if test $ac_cv_header_stat_broken = yes; then |
| 14366 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14367 | cat >>confdefs.h <<\_ACEOF |
| 14368 | #define STAT_MACROS_BROKEN 1 |
| 14369 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14370 | |
| 14371 | fi |
| 14372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14373 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14374 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14375 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14377 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14378 | cat >conftest.$ac_ext <<_ACEOF |
| 14379 | /* confdefs.h. */ |
| 14380 | _ACEOF |
| 14381 | cat confdefs.h >>conftest.$ac_ext |
| 14382 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14383 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14384 | #include <sys/types.h> |
| 14385 | #include <sys/wait.h> |
| 14386 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14387 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14388 | #endif |
| 14389 | #ifndef WIFEXITED |
| 14390 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14391 | #endif |
| 14392 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14393 | int |
| 14394 | main () |
| 14395 | { |
| 14396 | int s; |
| 14397 | wait (&s); |
| 14398 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14399 | ; |
| 14400 | return 0; |
| 14401 | } |
| 14402 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14403 | rm -f conftest.$ac_objext |
| 14404 | if { (ac_try="$ac_compile" |
| 14405 | case "(($ac_try" in |
| 14406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14407 | *) ac_try_echo=$ac_try;; |
| 14408 | esac |
| 14409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14410 | (eval "$ac_compile") 2>conftest.er1 |
| 14411 | ac_status=$? |
| 14412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14413 | rm -f conftest.er1 |
| 14414 | cat conftest.err >&5 |
| 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14416 | (exit $ac_status); } && |
| 14417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14418 | { (case "(($ac_try" in |
| 14419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14420 | *) ac_try_echo=$ac_try;; |
| 14421 | esac |
| 14422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14423 | (eval "$ac_try") 2>&5 |
| 14424 | ac_status=$? |
| 14425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14426 | (exit $ac_status); }; } && |
| 14427 | { ac_try='test -s conftest.$ac_objext' |
| 14428 | { (case "(($ac_try" in |
| 14429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14430 | *) ac_try_echo=$ac_try;; |
| 14431 | esac |
| 14432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14433 | (eval "$ac_try") 2>&5 |
| 14434 | ac_status=$? |
| 14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14436 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14437 | ac_cv_header_sys_wait_h=yes |
| 14438 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14439 | echo "$as_me: failed program was:" >&5 |
| 14440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14441 | |
| 14442 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14443 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14446 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14447 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14448 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14449 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14450 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14451 | cat >>confdefs.h <<\_ACEOF |
| 14452 | #define HAVE_SYS_WAIT_H 1 |
| 14453 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14454 | |
| 14455 | fi |
| 14456 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14457 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14458 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14459 | if test "${ac_cv_header_time+set}" = set; then |
| 14460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14461 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14462 | cat >conftest.$ac_ext <<_ACEOF |
| 14463 | /* confdefs.h. */ |
| 14464 | _ACEOF |
| 14465 | cat confdefs.h >>conftest.$ac_ext |
| 14466 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14467 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14468 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14469 | #include <sys/time.h> |
| 14470 | #include <time.h> |
| 14471 | |
| 14472 | int |
| 14473 | main () |
| 14474 | { |
| 14475 | if ((struct tm *) 0) |
| 14476 | return 0; |
| 14477 | ; |
| 14478 | return 0; |
| 14479 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14480 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14481 | rm -f conftest.$ac_objext |
| 14482 | if { (ac_try="$ac_compile" |
| 14483 | case "(($ac_try" in |
| 14484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14485 | *) ac_try_echo=$ac_try;; |
| 14486 | esac |
| 14487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14488 | (eval "$ac_compile") 2>conftest.er1 |
| 14489 | ac_status=$? |
| 14490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14491 | rm -f conftest.er1 |
| 14492 | cat conftest.err >&5 |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14494 | (exit $ac_status); } && |
| 14495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14496 | { (case "(($ac_try" in |
| 14497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14498 | *) ac_try_echo=$ac_try;; |
| 14499 | esac |
| 14500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14501 | (eval "$ac_try") 2>&5 |
| 14502 | ac_status=$? |
| 14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14504 | (exit $ac_status); }; } && |
| 14505 | { ac_try='test -s conftest.$ac_objext' |
| 14506 | { (case "(($ac_try" in |
| 14507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14508 | *) ac_try_echo=$ac_try;; |
| 14509 | esac |
| 14510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14511 | (eval "$ac_try") 2>&5 |
| 14512 | ac_status=$? |
| 14513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14514 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14515 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14516 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14517 | echo "$as_me: failed program was:" >&5 |
| 14518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14519 | |
| 14520 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14524 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14525 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14526 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14527 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14528 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14529 | cat >>confdefs.h <<\_ACEOF |
| 14530 | #define TIME_WITH_SYS_TIME 1 |
| 14531 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14532 | |
| 14533 | fi |
| 14534 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14535 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14536 | |
| 14537 | |
| 14538 | |
| 14539 | |
| 14540 | |
| 14541 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14542 | 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] | 14543 | do |
| 14544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14545 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14546 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14550 | fi |
| 14551 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14552 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14553 | echo "${ECHO_T}$ac_res" >&6; } |
| 14554 | else |
| 14555 | # Is the header compilable? |
| 14556 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14557 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14558 | cat >conftest.$ac_ext <<_ACEOF |
| 14559 | /* confdefs.h. */ |
| 14560 | _ACEOF |
| 14561 | cat confdefs.h >>conftest.$ac_ext |
| 14562 | cat >>conftest.$ac_ext <<_ACEOF |
| 14563 | /* end confdefs.h. */ |
| 14564 | $ac_includes_default |
| 14565 | #include <$ac_header> |
| 14566 | _ACEOF |
| 14567 | rm -f conftest.$ac_objext |
| 14568 | if { (ac_try="$ac_compile" |
| 14569 | case "(($ac_try" in |
| 14570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14571 | *) ac_try_echo=$ac_try;; |
| 14572 | esac |
| 14573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14574 | (eval "$ac_compile") 2>conftest.er1 |
| 14575 | ac_status=$? |
| 14576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14577 | rm -f conftest.er1 |
| 14578 | cat conftest.err >&5 |
| 14579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14580 | (exit $ac_status); } && |
| 14581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14582 | { (case "(($ac_try" in |
| 14583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14584 | *) ac_try_echo=$ac_try;; |
| 14585 | esac |
| 14586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14587 | (eval "$ac_try") 2>&5 |
| 14588 | ac_status=$? |
| 14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14590 | (exit $ac_status); }; } && |
| 14591 | { ac_try='test -s conftest.$ac_objext' |
| 14592 | { (case "(($ac_try" in |
| 14593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14594 | *) ac_try_echo=$ac_try;; |
| 14595 | esac |
| 14596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14597 | (eval "$ac_try") 2>&5 |
| 14598 | ac_status=$? |
| 14599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14600 | (exit $ac_status); }; }; then |
| 14601 | ac_header_compiler=yes |
| 14602 | else |
| 14603 | echo "$as_me: failed program was:" >&5 |
| 14604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14605 | |
| 14606 | ac_header_compiler=no |
| 14607 | fi |
| 14608 | |
| 14609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14610 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14611 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14612 | |
| 14613 | # Is the header present? |
| 14614 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14615 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14616 | cat >conftest.$ac_ext <<_ACEOF |
| 14617 | /* confdefs.h. */ |
| 14618 | _ACEOF |
| 14619 | cat confdefs.h >>conftest.$ac_ext |
| 14620 | cat >>conftest.$ac_ext <<_ACEOF |
| 14621 | /* end confdefs.h. */ |
| 14622 | #include <$ac_header> |
| 14623 | _ACEOF |
| 14624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14625 | case "(($ac_try" in |
| 14626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14627 | *) ac_try_echo=$ac_try;; |
| 14628 | esac |
| 14629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14631 | ac_status=$? |
| 14632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14633 | rm -f conftest.er1 |
| 14634 | cat conftest.err >&5 |
| 14635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14636 | (exit $ac_status); } >/dev/null; then |
| 14637 | if test -s conftest.err; then |
| 14638 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14640 | else |
| 14641 | ac_cpp_err= |
| 14642 | fi |
| 14643 | else |
| 14644 | ac_cpp_err=yes |
| 14645 | fi |
| 14646 | if test -z "$ac_cpp_err"; then |
| 14647 | ac_header_preproc=yes |
| 14648 | else |
| 14649 | echo "$as_me: failed program was:" >&5 |
| 14650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14651 | |
| 14652 | ac_header_preproc=no |
| 14653 | fi |
| 14654 | |
| 14655 | rm -f conftest.err conftest.$ac_ext |
| 14656 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14657 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14658 | |
| 14659 | # So? What about this header? |
| 14660 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14661 | yes:no: ) |
| 14662 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14663 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14664 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14665 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14666 | ac_header_preproc=yes |
| 14667 | ;; |
| 14668 | no:yes:* ) |
| 14669 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14670 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14671 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14672 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14673 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14674 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14675 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14676 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14677 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14678 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14679 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14680 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14681 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14682 | ## ------------------------------------ ## |
| 14683 | ## Report this to http://llvm.org/bugs/ ## |
| 14684 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14685 | _ASBOX |
| 14686 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14687 | ;; |
| 14688 | esac |
| 14689 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14693 | else |
| 14694 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14695 | fi |
| 14696 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14697 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14698 | echo "${ECHO_T}$ac_res" >&6; } |
| 14699 | |
| 14700 | fi |
| 14701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14702 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14704 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14705 | |
| 14706 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14707 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14708 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 14709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14710 | |
| 14711 | |
| 14712 | |
| 14713 | |
| 14714 | |
| 14715 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14716 | 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] | 14717 | do |
| 14718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14719 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14720 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14724 | fi |
| 14725 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14726 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14727 | echo "${ECHO_T}$ac_res" >&6; } |
| 14728 | else |
| 14729 | # Is the header compilable? |
| 14730 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14731 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14732 | cat >conftest.$ac_ext <<_ACEOF |
| 14733 | /* confdefs.h. */ |
| 14734 | _ACEOF |
| 14735 | cat confdefs.h >>conftest.$ac_ext |
| 14736 | cat >>conftest.$ac_ext <<_ACEOF |
| 14737 | /* end confdefs.h. */ |
| 14738 | $ac_includes_default |
| 14739 | #include <$ac_header> |
| 14740 | _ACEOF |
| 14741 | rm -f conftest.$ac_objext |
| 14742 | if { (ac_try="$ac_compile" |
| 14743 | case "(($ac_try" in |
| 14744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14745 | *) ac_try_echo=$ac_try;; |
| 14746 | esac |
| 14747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14748 | (eval "$ac_compile") 2>conftest.er1 |
| 14749 | ac_status=$? |
| 14750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14751 | rm -f conftest.er1 |
| 14752 | cat conftest.err >&5 |
| 14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14754 | (exit $ac_status); } && |
| 14755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14756 | { (case "(($ac_try" in |
| 14757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14758 | *) ac_try_echo=$ac_try;; |
| 14759 | esac |
| 14760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14761 | (eval "$ac_try") 2>&5 |
| 14762 | ac_status=$? |
| 14763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14764 | (exit $ac_status); }; } && |
| 14765 | { ac_try='test -s conftest.$ac_objext' |
| 14766 | { (case "(($ac_try" in |
| 14767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14768 | *) ac_try_echo=$ac_try;; |
| 14769 | esac |
| 14770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14771 | (eval "$ac_try") 2>&5 |
| 14772 | ac_status=$? |
| 14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14774 | (exit $ac_status); }; }; then |
| 14775 | ac_header_compiler=yes |
| 14776 | else |
| 14777 | echo "$as_me: failed program was:" >&5 |
| 14778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14779 | |
| 14780 | ac_header_compiler=no |
| 14781 | fi |
| 14782 | |
| 14783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14784 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14785 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14786 | |
| 14787 | # Is the header present? |
| 14788 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14790 | cat >conftest.$ac_ext <<_ACEOF |
| 14791 | /* confdefs.h. */ |
| 14792 | _ACEOF |
| 14793 | cat confdefs.h >>conftest.$ac_ext |
| 14794 | cat >>conftest.$ac_ext <<_ACEOF |
| 14795 | /* end confdefs.h. */ |
| 14796 | #include <$ac_header> |
| 14797 | _ACEOF |
| 14798 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14799 | case "(($ac_try" in |
| 14800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14801 | *) ac_try_echo=$ac_try;; |
| 14802 | esac |
| 14803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14804 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14805 | ac_status=$? |
| 14806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14807 | rm -f conftest.er1 |
| 14808 | cat conftest.err >&5 |
| 14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14810 | (exit $ac_status); } >/dev/null; then |
| 14811 | if test -s conftest.err; then |
| 14812 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14813 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14814 | else |
| 14815 | ac_cpp_err= |
| 14816 | fi |
| 14817 | else |
| 14818 | ac_cpp_err=yes |
| 14819 | fi |
| 14820 | if test -z "$ac_cpp_err"; then |
| 14821 | ac_header_preproc=yes |
| 14822 | else |
| 14823 | echo "$as_me: failed program was:" >&5 |
| 14824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14825 | |
| 14826 | ac_header_preproc=no |
| 14827 | fi |
| 14828 | |
| 14829 | rm -f conftest.err conftest.$ac_ext |
| 14830 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14831 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14832 | |
| 14833 | # So? What about this header? |
| 14834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14835 | yes:no: ) |
| 14836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14839 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14840 | ac_header_preproc=yes |
| 14841 | ;; |
| 14842 | no:yes:* ) |
| 14843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14847 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14848 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14849 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14850 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14852 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14853 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14854 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14855 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 14856 | ## ------------------------------------ ## |
| 14857 | ## Report this to http://llvm.org/bugs/ ## |
| 14858 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14859 | _ASBOX |
| 14860 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14861 | ;; |
| 14862 | esac |
| 14863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14867 | else |
| 14868 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14869 | fi |
| 14870 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14871 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14872 | echo "${ECHO_T}$ac_res" >&6; } |
| 14873 | |
| 14874 | fi |
| 14875 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14876 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14877 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14878 | _ACEOF |
| 14879 | |
| 14880 | fi |
| 14881 | |
| 14882 | done |
| 14883 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14884 | |
| 14885 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 14886 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14887 | do |
| 14888 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14890 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14891 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14894 | fi |
| 14895 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14897 | echo "${ECHO_T}$ac_res" >&6; } |
| 14898 | else |
| 14899 | # Is the header compilable? |
| 14900 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14901 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14902 | cat >conftest.$ac_ext <<_ACEOF |
| 14903 | /* confdefs.h. */ |
| 14904 | _ACEOF |
| 14905 | cat confdefs.h >>conftest.$ac_ext |
| 14906 | cat >>conftest.$ac_ext <<_ACEOF |
| 14907 | /* end confdefs.h. */ |
| 14908 | $ac_includes_default |
| 14909 | #include <$ac_header> |
| 14910 | _ACEOF |
| 14911 | rm -f conftest.$ac_objext |
| 14912 | if { (ac_try="$ac_compile" |
| 14913 | case "(($ac_try" in |
| 14914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14915 | *) ac_try_echo=$ac_try;; |
| 14916 | esac |
| 14917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14918 | (eval "$ac_compile") 2>conftest.er1 |
| 14919 | ac_status=$? |
| 14920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14921 | rm -f conftest.er1 |
| 14922 | cat conftest.err >&5 |
| 14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14924 | (exit $ac_status); } && |
| 14925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14926 | { (case "(($ac_try" in |
| 14927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14928 | *) ac_try_echo=$ac_try;; |
| 14929 | esac |
| 14930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14931 | (eval "$ac_try") 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); }; } && |
| 14935 | { ac_try='test -s conftest.$ac_objext' |
| 14936 | { (case "(($ac_try" in |
| 14937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14938 | *) ac_try_echo=$ac_try;; |
| 14939 | esac |
| 14940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14941 | (eval "$ac_try") 2>&5 |
| 14942 | ac_status=$? |
| 14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14944 | (exit $ac_status); }; }; then |
| 14945 | ac_header_compiler=yes |
| 14946 | else |
| 14947 | echo "$as_me: failed program was:" >&5 |
| 14948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14949 | |
| 14950 | ac_header_compiler=no |
| 14951 | fi |
| 14952 | |
| 14953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14954 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14955 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14956 | |
| 14957 | # Is the header present? |
| 14958 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14960 | cat >conftest.$ac_ext <<_ACEOF |
| 14961 | /* confdefs.h. */ |
| 14962 | _ACEOF |
| 14963 | cat confdefs.h >>conftest.$ac_ext |
| 14964 | cat >>conftest.$ac_ext <<_ACEOF |
| 14965 | /* end confdefs.h. */ |
| 14966 | #include <$ac_header> |
| 14967 | _ACEOF |
| 14968 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14969 | case "(($ac_try" in |
| 14970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14971 | *) ac_try_echo=$ac_try;; |
| 14972 | esac |
| 14973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14974 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14975 | ac_status=$? |
| 14976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14977 | rm -f conftest.er1 |
| 14978 | cat conftest.err >&5 |
| 14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14980 | (exit $ac_status); } >/dev/null; then |
| 14981 | if test -s conftest.err; then |
| 14982 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14983 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14984 | else |
| 14985 | ac_cpp_err= |
| 14986 | fi |
| 14987 | else |
| 14988 | ac_cpp_err=yes |
| 14989 | fi |
| 14990 | if test -z "$ac_cpp_err"; then |
| 14991 | ac_header_preproc=yes |
| 14992 | else |
| 14993 | echo "$as_me: failed program was:" >&5 |
| 14994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14995 | |
| 14996 | ac_header_preproc=no |
| 14997 | fi |
| 14998 | |
| 14999 | rm -f conftest.err conftest.$ac_ext |
| 15000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15002 | |
| 15003 | # So? What about this header? |
| 15004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15005 | yes:no: ) |
| 15006 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15010 | ac_header_preproc=yes |
| 15011 | ;; |
| 15012 | no:yes:* ) |
| 15013 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15015 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15016 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15017 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15019 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15020 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15023 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15024 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15025 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15026 | ## ------------------------------------ ## |
| 15027 | ## Report this to http://llvm.org/bugs/ ## |
| 15028 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15029 | _ASBOX |
| 15030 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15031 | ;; |
| 15032 | esac |
| 15033 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15037 | else |
| 15038 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15039 | fi |
| 15040 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15041 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15042 | echo "${ECHO_T}$ac_res" >&6; } |
| 15043 | |
| 15044 | fi |
| 15045 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15046 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15047 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15048 | _ACEOF |
| 15049 | |
| 15050 | fi |
| 15051 | |
| 15052 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15053 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15054 | |
| 15055 | |
| 15056 | |
| 15057 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 15058 | |
| 15059 | 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] | 15060 | do |
| 15061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15063 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15065 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15067 | fi |
| 15068 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15069 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15070 | echo "${ECHO_T}$ac_res" >&6; } |
| 15071 | else |
| 15072 | # Is the header compilable? |
| 15073 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15075 | cat >conftest.$ac_ext <<_ACEOF |
| 15076 | /* confdefs.h. */ |
| 15077 | _ACEOF |
| 15078 | cat confdefs.h >>conftest.$ac_ext |
| 15079 | cat >>conftest.$ac_ext <<_ACEOF |
| 15080 | /* end confdefs.h. */ |
| 15081 | $ac_includes_default |
| 15082 | #include <$ac_header> |
| 15083 | _ACEOF |
| 15084 | rm -f conftest.$ac_objext |
| 15085 | if { (ac_try="$ac_compile" |
| 15086 | case "(($ac_try" in |
| 15087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15088 | *) ac_try_echo=$ac_try;; |
| 15089 | esac |
| 15090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15091 | (eval "$ac_compile") 2>conftest.er1 |
| 15092 | ac_status=$? |
| 15093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15094 | rm -f conftest.er1 |
| 15095 | cat conftest.err >&5 |
| 15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15097 | (exit $ac_status); } && |
| 15098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15099 | { (case "(($ac_try" in |
| 15100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15101 | *) ac_try_echo=$ac_try;; |
| 15102 | esac |
| 15103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15104 | (eval "$ac_try") 2>&5 |
| 15105 | ac_status=$? |
| 15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15107 | (exit $ac_status); }; } && |
| 15108 | { ac_try='test -s conftest.$ac_objext' |
| 15109 | { (case "(($ac_try" in |
| 15110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15111 | *) ac_try_echo=$ac_try;; |
| 15112 | esac |
| 15113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15114 | (eval "$ac_try") 2>&5 |
| 15115 | ac_status=$? |
| 15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15117 | (exit $ac_status); }; }; then |
| 15118 | ac_header_compiler=yes |
| 15119 | else |
| 15120 | echo "$as_me: failed program was:" >&5 |
| 15121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15122 | |
| 15123 | ac_header_compiler=no |
| 15124 | fi |
| 15125 | |
| 15126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15127 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15128 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15129 | |
| 15130 | # Is the header present? |
| 15131 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15133 | cat >conftest.$ac_ext <<_ACEOF |
| 15134 | /* confdefs.h. */ |
| 15135 | _ACEOF |
| 15136 | cat confdefs.h >>conftest.$ac_ext |
| 15137 | cat >>conftest.$ac_ext <<_ACEOF |
| 15138 | /* end confdefs.h. */ |
| 15139 | #include <$ac_header> |
| 15140 | _ACEOF |
| 15141 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15142 | case "(($ac_try" in |
| 15143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15144 | *) ac_try_echo=$ac_try;; |
| 15145 | esac |
| 15146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15147 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15148 | ac_status=$? |
| 15149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15150 | rm -f conftest.er1 |
| 15151 | cat conftest.err >&5 |
| 15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15153 | (exit $ac_status); } >/dev/null; then |
| 15154 | if test -s conftest.err; then |
| 15155 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15157 | else |
| 15158 | ac_cpp_err= |
| 15159 | fi |
| 15160 | else |
| 15161 | ac_cpp_err=yes |
| 15162 | fi |
| 15163 | if test -z "$ac_cpp_err"; then |
| 15164 | ac_header_preproc=yes |
| 15165 | else |
| 15166 | echo "$as_me: failed program was:" >&5 |
| 15167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15168 | |
| 15169 | ac_header_preproc=no |
| 15170 | fi |
| 15171 | |
| 15172 | rm -f conftest.err conftest.$ac_ext |
| 15173 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15174 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15175 | |
| 15176 | # So? What about this header? |
| 15177 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15178 | yes:no: ) |
| 15179 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15180 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15182 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15183 | ac_header_preproc=yes |
| 15184 | ;; |
| 15185 | no:yes:* ) |
| 15186 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15187 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15188 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15189 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15190 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15191 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15192 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15193 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15195 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15196 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15197 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15198 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15199 | ## ------------------------------------ ## |
| 15200 | ## Report this to http://llvm.org/bugs/ ## |
| 15201 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15202 | _ASBOX |
| 15203 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15204 | ;; |
| 15205 | esac |
| 15206 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15210 | else |
| 15211 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15212 | fi |
| 15213 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15214 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15215 | echo "${ECHO_T}$ac_res" >&6; } |
| 15216 | |
| 15217 | fi |
| 15218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15219 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15221 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15222 | |
| 15223 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 15224 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15225 | done |
| 15226 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15227 | |
| 15228 | |
| 15229 | |
| 15230 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 15231 | 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] | 15232 | do |
| 15233 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15235 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15237 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15239 | fi |
| 15240 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15241 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15242 | echo "${ECHO_T}$ac_res" >&6; } |
| 15243 | else |
| 15244 | # Is the header compilable? |
| 15245 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15246 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15247 | cat >conftest.$ac_ext <<_ACEOF |
| 15248 | /* confdefs.h. */ |
| 15249 | _ACEOF |
| 15250 | cat confdefs.h >>conftest.$ac_ext |
| 15251 | cat >>conftest.$ac_ext <<_ACEOF |
| 15252 | /* end confdefs.h. */ |
| 15253 | $ac_includes_default |
| 15254 | #include <$ac_header> |
| 15255 | _ACEOF |
| 15256 | rm -f conftest.$ac_objext |
| 15257 | if { (ac_try="$ac_compile" |
| 15258 | case "(($ac_try" in |
| 15259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15260 | *) ac_try_echo=$ac_try;; |
| 15261 | esac |
| 15262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15263 | (eval "$ac_compile") 2>conftest.er1 |
| 15264 | ac_status=$? |
| 15265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15266 | rm -f conftest.er1 |
| 15267 | cat conftest.err >&5 |
| 15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15269 | (exit $ac_status); } && |
| 15270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15271 | { (case "(($ac_try" in |
| 15272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15273 | *) ac_try_echo=$ac_try;; |
| 15274 | esac |
| 15275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15276 | (eval "$ac_try") 2>&5 |
| 15277 | ac_status=$? |
| 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15279 | (exit $ac_status); }; } && |
| 15280 | { ac_try='test -s conftest.$ac_objext' |
| 15281 | { (case "(($ac_try" in |
| 15282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15283 | *) ac_try_echo=$ac_try;; |
| 15284 | esac |
| 15285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15286 | (eval "$ac_try") 2>&5 |
| 15287 | ac_status=$? |
| 15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15289 | (exit $ac_status); }; }; then |
| 15290 | ac_header_compiler=yes |
| 15291 | else |
| 15292 | echo "$as_me: failed program was:" >&5 |
| 15293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15294 | |
| 15295 | ac_header_compiler=no |
| 15296 | fi |
| 15297 | |
| 15298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15299 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15300 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15301 | |
| 15302 | # Is the header present? |
| 15303 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15304 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15305 | cat >conftest.$ac_ext <<_ACEOF |
| 15306 | /* confdefs.h. */ |
| 15307 | _ACEOF |
| 15308 | cat confdefs.h >>conftest.$ac_ext |
| 15309 | cat >>conftest.$ac_ext <<_ACEOF |
| 15310 | /* end confdefs.h. */ |
| 15311 | #include <$ac_header> |
| 15312 | _ACEOF |
| 15313 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15314 | case "(($ac_try" in |
| 15315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15316 | *) ac_try_echo=$ac_try;; |
| 15317 | esac |
| 15318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15319 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15320 | ac_status=$? |
| 15321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15322 | rm -f conftest.er1 |
| 15323 | cat conftest.err >&5 |
| 15324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15325 | (exit $ac_status); } >/dev/null; then |
| 15326 | if test -s conftest.err; then |
| 15327 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15329 | else |
| 15330 | ac_cpp_err= |
| 15331 | fi |
| 15332 | else |
| 15333 | ac_cpp_err=yes |
| 15334 | fi |
| 15335 | if test -z "$ac_cpp_err"; then |
| 15336 | ac_header_preproc=yes |
| 15337 | else |
| 15338 | echo "$as_me: failed program was:" >&5 |
| 15339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15340 | |
| 15341 | ac_header_preproc=no |
| 15342 | fi |
| 15343 | |
| 15344 | rm -f conftest.err conftest.$ac_ext |
| 15345 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15346 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15347 | |
| 15348 | # So? What about this header? |
| 15349 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15350 | yes:no: ) |
| 15351 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15352 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15354 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15355 | ac_header_preproc=yes |
| 15356 | ;; |
| 15357 | no:yes:* ) |
| 15358 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15359 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15360 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15361 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15362 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15363 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15364 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15365 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15366 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15367 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15368 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15369 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15370 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15371 | ## ------------------------------------ ## |
| 15372 | ## Report this to http://llvm.org/bugs/ ## |
| 15373 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15374 | _ASBOX |
| 15375 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15376 | ;; |
| 15377 | esac |
| 15378 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15380 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15382 | else |
| 15383 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15384 | fi |
| 15385 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15386 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15387 | echo "${ECHO_T}$ac_res" >&6; } |
| 15388 | |
| 15389 | fi |
| 15390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15391 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 15393 | _ACEOF |
| 15394 | |
| 15395 | fi |
| 15396 | |
| 15397 | done |
| 15398 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15399 | |
| 15400 | for ac_header in valgrind/valgrind.h |
| 15401 | do |
| 15402 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15403 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15404 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15405 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15406 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15408 | fi |
| 15409 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15410 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15411 | echo "${ECHO_T}$ac_res" >&6; } |
| 15412 | else |
| 15413 | # Is the header compilable? |
| 15414 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15416 | cat >conftest.$ac_ext <<_ACEOF |
| 15417 | /* confdefs.h. */ |
| 15418 | _ACEOF |
| 15419 | cat confdefs.h >>conftest.$ac_ext |
| 15420 | cat >>conftest.$ac_ext <<_ACEOF |
| 15421 | /* end confdefs.h. */ |
| 15422 | $ac_includes_default |
| 15423 | #include <$ac_header> |
| 15424 | _ACEOF |
| 15425 | rm -f conftest.$ac_objext |
| 15426 | if { (ac_try="$ac_compile" |
| 15427 | case "(($ac_try" in |
| 15428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15429 | *) ac_try_echo=$ac_try;; |
| 15430 | esac |
| 15431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15432 | (eval "$ac_compile") 2>conftest.er1 |
| 15433 | ac_status=$? |
| 15434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15435 | rm -f conftest.er1 |
| 15436 | cat conftest.err >&5 |
| 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15438 | (exit $ac_status); } && |
| 15439 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15440 | { (case "(($ac_try" in |
| 15441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15442 | *) ac_try_echo=$ac_try;; |
| 15443 | esac |
| 15444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15445 | (eval "$ac_try") 2>&5 |
| 15446 | ac_status=$? |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); }; } && |
| 15449 | { ac_try='test -s conftest.$ac_objext' |
| 15450 | { (case "(($ac_try" in |
| 15451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15452 | *) ac_try_echo=$ac_try;; |
| 15453 | esac |
| 15454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15455 | (eval "$ac_try") 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); }; }; then |
| 15459 | ac_header_compiler=yes |
| 15460 | else |
| 15461 | echo "$as_me: failed program was:" >&5 |
| 15462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15463 | |
| 15464 | ac_header_compiler=no |
| 15465 | fi |
| 15466 | |
| 15467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15468 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15469 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15470 | |
| 15471 | # Is the header present? |
| 15472 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15473 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15474 | cat >conftest.$ac_ext <<_ACEOF |
| 15475 | /* confdefs.h. */ |
| 15476 | _ACEOF |
| 15477 | cat confdefs.h >>conftest.$ac_ext |
| 15478 | cat >>conftest.$ac_ext <<_ACEOF |
| 15479 | /* end confdefs.h. */ |
| 15480 | #include <$ac_header> |
| 15481 | _ACEOF |
| 15482 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15483 | case "(($ac_try" in |
| 15484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15485 | *) ac_try_echo=$ac_try;; |
| 15486 | esac |
| 15487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15488 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15489 | ac_status=$? |
| 15490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15491 | rm -f conftest.er1 |
| 15492 | cat conftest.err >&5 |
| 15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15494 | (exit $ac_status); } >/dev/null; then |
| 15495 | if test -s conftest.err; then |
| 15496 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15497 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15498 | else |
| 15499 | ac_cpp_err= |
| 15500 | fi |
| 15501 | else |
| 15502 | ac_cpp_err=yes |
| 15503 | fi |
| 15504 | if test -z "$ac_cpp_err"; then |
| 15505 | ac_header_preproc=yes |
| 15506 | else |
| 15507 | echo "$as_me: failed program was:" >&5 |
| 15508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15509 | |
| 15510 | ac_header_preproc=no |
| 15511 | fi |
| 15512 | |
| 15513 | rm -f conftest.err conftest.$ac_ext |
| 15514 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15515 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15516 | |
| 15517 | # So? What about this header? |
| 15518 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15519 | yes:no: ) |
| 15520 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15521 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15522 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15523 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15524 | ac_header_preproc=yes |
| 15525 | ;; |
| 15526 | no:yes:* ) |
| 15527 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15528 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15529 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15530 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15531 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15532 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15533 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15534 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15536 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15537 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15538 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15539 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15540 | ## ------------------------------------ ## |
| 15541 | ## Report this to http://llvm.org/bugs/ ## |
| 15542 | ## ------------------------------------ ## |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 15543 | _ASBOX |
| 15544 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15545 | ;; |
| 15546 | esac |
| 15547 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15549 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15551 | else |
| 15552 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15553 | fi |
| 15554 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15556 | echo "${ECHO_T}$ac_res" >&6; } |
| 15557 | |
| 15558 | fi |
| 15559 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15560 | cat >>confdefs.h <<_ACEOF |
| 15561 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15562 | _ACEOF |
| 15563 | |
| 15564 | fi |
| 15565 | |
| 15566 | done |
| 15567 | |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15568 | |
| 15569 | for ac_header in fenv.h |
| 15570 | do |
| 15571 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15572 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15573 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15577 | fi |
| 15578 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15579 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15580 | echo "${ECHO_T}$ac_res" >&6; } |
| 15581 | else |
| 15582 | # Is the header compilable? |
| 15583 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15584 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15585 | cat >conftest.$ac_ext <<_ACEOF |
| 15586 | /* confdefs.h. */ |
| 15587 | _ACEOF |
| 15588 | cat confdefs.h >>conftest.$ac_ext |
| 15589 | cat >>conftest.$ac_ext <<_ACEOF |
| 15590 | /* end confdefs.h. */ |
| 15591 | $ac_includes_default |
| 15592 | #include <$ac_header> |
| 15593 | _ACEOF |
| 15594 | rm -f conftest.$ac_objext |
| 15595 | if { (ac_try="$ac_compile" |
| 15596 | case "(($ac_try" in |
| 15597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15598 | *) ac_try_echo=$ac_try;; |
| 15599 | esac |
| 15600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15601 | (eval "$ac_compile") 2>conftest.er1 |
| 15602 | ac_status=$? |
| 15603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15604 | rm -f conftest.er1 |
| 15605 | cat conftest.err >&5 |
| 15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15607 | (exit $ac_status); } && |
| 15608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15609 | { (case "(($ac_try" in |
| 15610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15611 | *) ac_try_echo=$ac_try;; |
| 15612 | esac |
| 15613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15614 | (eval "$ac_try") 2>&5 |
| 15615 | ac_status=$? |
| 15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15617 | (exit $ac_status); }; } && |
| 15618 | { ac_try='test -s conftest.$ac_objext' |
| 15619 | { (case "(($ac_try" in |
| 15620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15621 | *) ac_try_echo=$ac_try;; |
| 15622 | esac |
| 15623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15624 | (eval "$ac_try") 2>&5 |
| 15625 | ac_status=$? |
| 15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15627 | (exit $ac_status); }; }; then |
| 15628 | ac_header_compiler=yes |
| 15629 | else |
| 15630 | echo "$as_me: failed program was:" >&5 |
| 15631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15632 | |
| 15633 | ac_header_compiler=no |
| 15634 | fi |
| 15635 | |
| 15636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15637 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15638 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15639 | |
| 15640 | # Is the header present? |
| 15641 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15643 | cat >conftest.$ac_ext <<_ACEOF |
| 15644 | /* confdefs.h. */ |
| 15645 | _ACEOF |
| 15646 | cat confdefs.h >>conftest.$ac_ext |
| 15647 | cat >>conftest.$ac_ext <<_ACEOF |
| 15648 | /* end confdefs.h. */ |
| 15649 | #include <$ac_header> |
| 15650 | _ACEOF |
| 15651 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15652 | case "(($ac_try" in |
| 15653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15654 | *) ac_try_echo=$ac_try;; |
| 15655 | esac |
| 15656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15657 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15658 | ac_status=$? |
| 15659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15660 | rm -f conftest.er1 |
| 15661 | cat conftest.err >&5 |
| 15662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15663 | (exit $ac_status); } >/dev/null; then |
| 15664 | if test -s conftest.err; then |
| 15665 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15666 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15667 | else |
| 15668 | ac_cpp_err= |
| 15669 | fi |
| 15670 | else |
| 15671 | ac_cpp_err=yes |
| 15672 | fi |
| 15673 | if test -z "$ac_cpp_err"; then |
| 15674 | ac_header_preproc=yes |
| 15675 | else |
| 15676 | echo "$as_me: failed program was:" >&5 |
| 15677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15678 | |
| 15679 | ac_header_preproc=no |
| 15680 | fi |
| 15681 | |
| 15682 | rm -f conftest.err conftest.$ac_ext |
| 15683 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15684 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15685 | |
| 15686 | # So? What about this header? |
| 15687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15688 | yes:no: ) |
| 15689 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15690 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15692 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15693 | ac_header_preproc=yes |
| 15694 | ;; |
| 15695 | no:yes:* ) |
| 15696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15700 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15701 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15702 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15703 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15705 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15707 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15708 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15709 | ## ------------------------------------ ## |
| 15710 | ## Report this to http://llvm.org/bugs/ ## |
| 15711 | ## ------------------------------------ ## |
Dan Gohman | c6ce9d6 | 2010-09-17 20:08:35 +0000 | [diff] [blame] | 15712 | _ASBOX |
| 15713 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15714 | ;; |
| 15715 | esac |
| 15716 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15720 | else |
| 15721 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15722 | fi |
| 15723 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15724 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15725 | echo "${ECHO_T}$ac_res" >&6; } |
| 15726 | |
| 15727 | fi |
| 15728 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15729 | cat >>confdefs.h <<_ACEOF |
| 15730 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15731 | _ACEOF |
| 15732 | |
| 15733 | fi |
| 15734 | |
| 15735 | done |
| 15736 | |
NAKAMURA Takumi | c73f3d1 | 2011-11-28 01:07:19 +0000 | [diff] [blame] | 15737 | 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] | 15738 | |
| 15739 | for ac_header in pthread.h |
| 15740 | do |
| 15741 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15742 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15743 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15745 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15747 | fi |
| 15748 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15750 | echo "${ECHO_T}$ac_res" >&6; } |
| 15751 | else |
| 15752 | # Is the header compilable? |
| 15753 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15754 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15755 | cat >conftest.$ac_ext <<_ACEOF |
| 15756 | /* confdefs.h. */ |
| 15757 | _ACEOF |
| 15758 | cat confdefs.h >>conftest.$ac_ext |
| 15759 | cat >>conftest.$ac_ext <<_ACEOF |
| 15760 | /* end confdefs.h. */ |
| 15761 | $ac_includes_default |
| 15762 | #include <$ac_header> |
| 15763 | _ACEOF |
| 15764 | rm -f conftest.$ac_objext |
| 15765 | if { (ac_try="$ac_compile" |
| 15766 | case "(($ac_try" in |
| 15767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15768 | *) ac_try_echo=$ac_try;; |
| 15769 | esac |
| 15770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15771 | (eval "$ac_compile") 2>conftest.er1 |
| 15772 | ac_status=$? |
| 15773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15774 | rm -f conftest.er1 |
| 15775 | cat conftest.err >&5 |
| 15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15777 | (exit $ac_status); } && |
| 15778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15779 | { (case "(($ac_try" in |
| 15780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15781 | *) ac_try_echo=$ac_try;; |
| 15782 | esac |
| 15783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15784 | (eval "$ac_try") 2>&5 |
| 15785 | ac_status=$? |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); }; } && |
| 15788 | { ac_try='test -s conftest.$ac_objext' |
| 15789 | { (case "(($ac_try" in |
| 15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15791 | *) ac_try_echo=$ac_try;; |
| 15792 | esac |
| 15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15794 | (eval "$ac_try") 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; }; then |
| 15798 | ac_header_compiler=yes |
| 15799 | else |
| 15800 | echo "$as_me: failed program was:" >&5 |
| 15801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15802 | |
| 15803 | ac_header_compiler=no |
| 15804 | fi |
| 15805 | |
| 15806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15807 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15808 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15809 | |
| 15810 | # Is the header present? |
| 15811 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15812 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15813 | cat >conftest.$ac_ext <<_ACEOF |
| 15814 | /* confdefs.h. */ |
| 15815 | _ACEOF |
| 15816 | cat confdefs.h >>conftest.$ac_ext |
| 15817 | cat >>conftest.$ac_ext <<_ACEOF |
| 15818 | /* end confdefs.h. */ |
| 15819 | #include <$ac_header> |
| 15820 | _ACEOF |
| 15821 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15822 | case "(($ac_try" in |
| 15823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15824 | *) ac_try_echo=$ac_try;; |
| 15825 | esac |
| 15826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15827 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15828 | ac_status=$? |
| 15829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15830 | rm -f conftest.er1 |
| 15831 | cat conftest.err >&5 |
| 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); } >/dev/null; then |
| 15834 | if test -s conftest.err; then |
| 15835 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15837 | else |
| 15838 | ac_cpp_err= |
| 15839 | fi |
| 15840 | else |
| 15841 | ac_cpp_err=yes |
| 15842 | fi |
| 15843 | if test -z "$ac_cpp_err"; then |
| 15844 | ac_header_preproc=yes |
| 15845 | else |
| 15846 | echo "$as_me: failed program was:" >&5 |
| 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
| 15849 | ac_header_preproc=no |
| 15850 | fi |
| 15851 | |
| 15852 | rm -f conftest.err conftest.$ac_ext |
| 15853 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15854 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15855 | |
| 15856 | # So? What about this header? |
| 15857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15858 | yes:no: ) |
| 15859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15863 | ac_header_preproc=yes |
| 15864 | ;; |
| 15865 | no:yes:* ) |
| 15866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15878 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 15879 | ## ------------------------------------ ## |
| 15880 | ## Report this to http://llvm.org/bugs/ ## |
| 15881 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15882 | _ASBOX |
| 15883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15884 | ;; |
| 15885 | esac |
| 15886 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15888 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15890 | else |
| 15891 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15892 | fi |
| 15893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15895 | echo "${ECHO_T}$ac_res" >&6; } |
| 15896 | |
| 15897 | fi |
| 15898 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15899 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15900 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15901 | _ACEOF |
| 15902 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15903 | |
| 15904 | else |
| 15905 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15906 | |
| 15907 | fi |
| 15908 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 15909 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 15910 | |
| 15911 | else |
| 15912 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 15913 | |
| 15914 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 15915 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 15916 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15917 | |
| 15918 | |
| 15919 | for ac_header in ffi.h ffi/ffi.h |
| 15920 | do |
| 15921 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15923 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15927 | fi |
| 15928 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15930 | echo "${ECHO_T}$ac_res" >&6; } |
| 15931 | else |
| 15932 | # Is the header compilable? |
| 15933 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15935 | cat >conftest.$ac_ext <<_ACEOF |
| 15936 | /* confdefs.h. */ |
| 15937 | _ACEOF |
| 15938 | cat confdefs.h >>conftest.$ac_ext |
| 15939 | cat >>conftest.$ac_ext <<_ACEOF |
| 15940 | /* end confdefs.h. */ |
| 15941 | $ac_includes_default |
| 15942 | #include <$ac_header> |
| 15943 | _ACEOF |
| 15944 | rm -f conftest.$ac_objext |
| 15945 | if { (ac_try="$ac_compile" |
| 15946 | case "(($ac_try" in |
| 15947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15948 | *) ac_try_echo=$ac_try;; |
| 15949 | esac |
| 15950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15951 | (eval "$ac_compile") 2>conftest.er1 |
| 15952 | ac_status=$? |
| 15953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15954 | rm -f conftest.er1 |
| 15955 | cat conftest.err >&5 |
| 15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15957 | (exit $ac_status); } && |
| 15958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15959 | { (case "(($ac_try" in |
| 15960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15961 | *) ac_try_echo=$ac_try;; |
| 15962 | esac |
| 15963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15964 | (eval "$ac_try") 2>&5 |
| 15965 | ac_status=$? |
| 15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15967 | (exit $ac_status); }; } && |
| 15968 | { ac_try='test -s conftest.$ac_objext' |
| 15969 | { (case "(($ac_try" in |
| 15970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15971 | *) ac_try_echo=$ac_try;; |
| 15972 | esac |
| 15973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15974 | (eval "$ac_try") 2>&5 |
| 15975 | ac_status=$? |
| 15976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15977 | (exit $ac_status); }; }; then |
| 15978 | ac_header_compiler=yes |
| 15979 | else |
| 15980 | echo "$as_me: failed program was:" >&5 |
| 15981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15982 | |
| 15983 | ac_header_compiler=no |
| 15984 | fi |
| 15985 | |
| 15986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15987 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15988 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15989 | |
| 15990 | # Is the header present? |
| 15991 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15992 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15993 | cat >conftest.$ac_ext <<_ACEOF |
| 15994 | /* confdefs.h. */ |
| 15995 | _ACEOF |
| 15996 | cat confdefs.h >>conftest.$ac_ext |
| 15997 | cat >>conftest.$ac_ext <<_ACEOF |
| 15998 | /* end confdefs.h. */ |
| 15999 | #include <$ac_header> |
| 16000 | _ACEOF |
| 16001 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16002 | case "(($ac_try" in |
| 16003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16004 | *) ac_try_echo=$ac_try;; |
| 16005 | esac |
| 16006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16007 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16008 | ac_status=$? |
| 16009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16010 | rm -f conftest.er1 |
| 16011 | cat conftest.err >&5 |
| 16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16013 | (exit $ac_status); } >/dev/null; then |
| 16014 | if test -s conftest.err; then |
| 16015 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16017 | else |
| 16018 | ac_cpp_err= |
| 16019 | fi |
| 16020 | else |
| 16021 | ac_cpp_err=yes |
| 16022 | fi |
| 16023 | if test -z "$ac_cpp_err"; then |
| 16024 | ac_header_preproc=yes |
| 16025 | else |
| 16026 | echo "$as_me: failed program was:" >&5 |
| 16027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16028 | |
| 16029 | ac_header_preproc=no |
| 16030 | fi |
| 16031 | |
| 16032 | rm -f conftest.err conftest.$ac_ext |
| 16033 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16034 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16035 | |
| 16036 | # So? What about this header? |
| 16037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16038 | yes:no: ) |
| 16039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16043 | ac_header_preproc=yes |
| 16044 | ;; |
| 16045 | no:yes:* ) |
| 16046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16058 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16059 | ## ------------------------------------ ## |
| 16060 | ## Report this to http://llvm.org/bugs/ ## |
| 16061 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16062 | _ASBOX |
| 16063 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16064 | ;; |
| 16065 | esac |
| 16066 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16070 | else |
| 16071 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16072 | fi |
| 16073 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16075 | echo "${ECHO_T}$ac_res" >&6; } |
| 16076 | |
| 16077 | fi |
| 16078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16079 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16081 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16082 | |
| 16083 | fi |
| 16084 | |
| 16085 | done |
| 16086 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16087 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16088 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16089 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16090 | for ac_header in CrashReporterClient.h |
| 16091 | do |
| 16092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16093 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16094 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16098 | fi |
| 16099 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16101 | echo "${ECHO_T}$ac_res" >&6; } |
| 16102 | else |
| 16103 | # Is the header compilable? |
| 16104 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16105 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16106 | cat >conftest.$ac_ext <<_ACEOF |
| 16107 | /* confdefs.h. */ |
| 16108 | _ACEOF |
| 16109 | cat confdefs.h >>conftest.$ac_ext |
| 16110 | cat >>conftest.$ac_ext <<_ACEOF |
| 16111 | /* end confdefs.h. */ |
| 16112 | $ac_includes_default |
| 16113 | #include <$ac_header> |
| 16114 | _ACEOF |
| 16115 | rm -f conftest.$ac_objext |
| 16116 | if { (ac_try="$ac_compile" |
| 16117 | case "(($ac_try" in |
| 16118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16119 | *) ac_try_echo=$ac_try;; |
| 16120 | esac |
| 16121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16122 | (eval "$ac_compile") 2>conftest.er1 |
| 16123 | ac_status=$? |
| 16124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16125 | rm -f conftest.er1 |
| 16126 | cat conftest.err >&5 |
| 16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16128 | (exit $ac_status); } && |
| 16129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16130 | { (case "(($ac_try" in |
| 16131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16132 | *) ac_try_echo=$ac_try;; |
| 16133 | esac |
| 16134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16135 | (eval "$ac_try") 2>&5 |
| 16136 | ac_status=$? |
| 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16138 | (exit $ac_status); }; } && |
| 16139 | { ac_try='test -s conftest.$ac_objext' |
| 16140 | { (case "(($ac_try" in |
| 16141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16142 | *) ac_try_echo=$ac_try;; |
| 16143 | esac |
| 16144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16145 | (eval "$ac_try") 2>&5 |
| 16146 | ac_status=$? |
| 16147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16148 | (exit $ac_status); }; }; then |
| 16149 | ac_header_compiler=yes |
| 16150 | else |
| 16151 | echo "$as_me: failed program was:" >&5 |
| 16152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16153 | |
| 16154 | ac_header_compiler=no |
| 16155 | fi |
| 16156 | |
| 16157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16158 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16159 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16160 | |
| 16161 | # Is the header present? |
| 16162 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16163 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16164 | cat >conftest.$ac_ext <<_ACEOF |
| 16165 | /* confdefs.h. */ |
| 16166 | _ACEOF |
| 16167 | cat confdefs.h >>conftest.$ac_ext |
| 16168 | cat >>conftest.$ac_ext <<_ACEOF |
| 16169 | /* end confdefs.h. */ |
| 16170 | #include <$ac_header> |
| 16171 | _ACEOF |
| 16172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16173 | case "(($ac_try" in |
| 16174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16175 | *) ac_try_echo=$ac_try;; |
| 16176 | esac |
| 16177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16179 | ac_status=$? |
| 16180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16181 | rm -f conftest.er1 |
| 16182 | cat conftest.err >&5 |
| 16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16184 | (exit $ac_status); } >/dev/null; then |
| 16185 | if test -s conftest.err; then |
| 16186 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16188 | else |
| 16189 | ac_cpp_err= |
| 16190 | fi |
| 16191 | else |
| 16192 | ac_cpp_err=yes |
| 16193 | fi |
| 16194 | if test -z "$ac_cpp_err"; then |
| 16195 | ac_header_preproc=yes |
| 16196 | else |
| 16197 | echo "$as_me: failed program was:" >&5 |
| 16198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16199 | |
| 16200 | ac_header_preproc=no |
| 16201 | fi |
| 16202 | |
| 16203 | rm -f conftest.err conftest.$ac_ext |
| 16204 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16205 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16206 | |
| 16207 | # So? What about this header? |
| 16208 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16209 | yes:no: ) |
| 16210 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16211 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16212 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16213 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16214 | ac_header_preproc=yes |
| 16215 | ;; |
| 16216 | no:yes:* ) |
| 16217 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16218 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16219 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16220 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16221 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16222 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16223 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16224 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16225 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16226 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16227 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16228 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16229 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 16230 | ## ------------------------------------ ## |
| 16231 | ## Report this to http://llvm.org/bugs/ ## |
| 16232 | ## ------------------------------------ ## |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16233 | _ASBOX |
| 16234 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16235 | ;; |
| 16236 | esac |
| 16237 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16241 | else |
| 16242 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16243 | fi |
| 16244 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16245 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16246 | echo "${ECHO_T}$ac_res" >&6; } |
| 16247 | |
| 16248 | fi |
| 16249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16250 | cat >>confdefs.h <<_ACEOF |
| 16251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16252 | _ACEOF |
| 16253 | |
| 16254 | fi |
| 16255 | |
| 16256 | done |
| 16257 | |
| 16258 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 16260 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16261 | cat >conftest.$ac_ext <<_ACEOF |
| 16262 | /* confdefs.h. */ |
| 16263 | _ACEOF |
| 16264 | cat confdefs.h >>conftest.$ac_ext |
| 16265 | cat >>conftest.$ac_ext <<_ACEOF |
| 16266 | /* end confdefs.h. */ |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16267 | extern const char *__crashreporter_info__; |
| 16268 | int main() { |
| 16269 | __crashreporter_info__ = "test"; |
| 16270 | return 0; |
| 16271 | } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16272 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16273 | _ACEOF |
| 16274 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16275 | if { (ac_try="$ac_link" |
| 16276 | case "(($ac_try" in |
| 16277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16278 | *) ac_try_echo=$ac_try;; |
| 16279 | esac |
| 16280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16281 | (eval "$ac_link") 2>conftest.er1 |
| 16282 | ac_status=$? |
| 16283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16284 | rm -f conftest.er1 |
| 16285 | cat conftest.err >&5 |
| 16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16287 | (exit $ac_status); } && |
| 16288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16289 | { (case "(($ac_try" in |
| 16290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16291 | *) ac_try_echo=$ac_try;; |
| 16292 | esac |
| 16293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16294 | (eval "$ac_try") 2>&5 |
| 16295 | ac_status=$? |
| 16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16297 | (exit $ac_status); }; } && |
| 16298 | { ac_try='test -s conftest$ac_exeext' |
| 16299 | { (case "(($ac_try" in |
| 16300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16301 | *) ac_try_echo=$ac_try;; |
| 16302 | esac |
| 16303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16304 | (eval "$ac_try") 2>&5 |
| 16305 | ac_status=$? |
| 16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16307 | (exit $ac_status); }; }; then |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16308 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16309 | echo "${ECHO_T}yes" >&6; } |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16310 | |
| 16311 | cat >>confdefs.h <<\_ACEOF |
| 16312 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16313 | _ACEOF |
| 16314 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16315 | else |
| 16316 | echo "$as_me: failed program was:" >&5 |
| 16317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16318 | |
| 16319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16320 | echo "${ECHO_T}no" >&6; } |
| 16321 | |
| 16322 | cat >>confdefs.h <<\_ACEOF |
| 16323 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16324 | _ACEOF |
| 16325 | |
Eric Christopher | 481d402 | 2010-12-03 07:45:22 +0000 | [diff] [blame] | 16326 | fi |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16327 | |
Eric Christopher | 51e5713 | 2010-12-07 02:05:42 +0000 | [diff] [blame] | 16328 | rm -f core conftest.err conftest.$ac_objext \ |
| 16329 | conftest$ac_exeext conftest.$ac_ext |
| 16330 | |
| 16331 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16332 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16333 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16334 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16335 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16336 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16338 | else |
| 16339 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16340 | ac_ext=cpp |
| 16341 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16342 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16343 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16344 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16345 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16346 | ac_save_CXXFLAGS=$CXXFLAGS |
Eric Christopher | 79e22d8 | 2012-04-02 06:54:01 +0000 | [diff] [blame] | 16347 | CXXFLAGS="$CXXFLAGS -pedantic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16348 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16349 | ac_cv_huge_val_sanity=yes |
| 16350 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16351 | cat >conftest.$ac_ext <<_ACEOF |
| 16352 | /* confdefs.h. */ |
| 16353 | _ACEOF |
| 16354 | cat confdefs.h >>conftest.$ac_ext |
| 16355 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16356 | /* end confdefs.h. */ |
| 16357 | #include <math.h> |
| 16358 | int |
| 16359 | main () |
| 16360 | { |
| 16361 | double x = HUGE_VAL; return x != x; |
| 16362 | ; |
| 16363 | return 0; |
| 16364 | } |
| 16365 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16366 | rm -f conftest$ac_exeext |
| 16367 | if { (ac_try="$ac_link" |
| 16368 | case "(($ac_try" in |
| 16369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16370 | *) ac_try_echo=$ac_try;; |
| 16371 | esac |
| 16372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16373 | (eval "$ac_link") 2>&5 |
| 16374 | ac_status=$? |
| 16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16377 | { (case "(($ac_try" in |
| 16378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16379 | *) ac_try_echo=$ac_try;; |
| 16380 | esac |
| 16381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16382 | (eval "$ac_try") 2>&5 |
| 16383 | ac_status=$? |
| 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16386 | ac_cv_huge_val_sanity=yes |
| 16387 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16388 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16389 | echo "$as_me: failed program was:" >&5 |
| 16390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16391 | |
| 16392 | ( exit $ac_status ) |
| 16393 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16394 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16395 | 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] | 16396 | fi |
| 16397 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16398 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16399 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16400 | ac_ext=c |
| 16401 | ac_cpp='$CPP $CPPFLAGS' |
| 16402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16405 | |
| 16406 | |
| 16407 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16408 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16409 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16410 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16411 | |
| 16412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16413 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16414 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16415 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16417 | else |
| 16418 | cat >conftest.$ac_ext <<_ACEOF |
| 16419 | /* confdefs.h. */ |
| 16420 | _ACEOF |
| 16421 | cat confdefs.h >>conftest.$ac_ext |
| 16422 | cat >>conftest.$ac_ext <<_ACEOF |
| 16423 | /* end confdefs.h. */ |
| 16424 | $ac_includes_default |
| 16425 | typedef pid_t ac__type_new_; |
| 16426 | int |
| 16427 | main () |
| 16428 | { |
| 16429 | if ((ac__type_new_ *) 0) |
| 16430 | return 0; |
| 16431 | if (sizeof (ac__type_new_)) |
| 16432 | return 0; |
| 16433 | ; |
| 16434 | return 0; |
| 16435 | } |
| 16436 | _ACEOF |
| 16437 | rm -f conftest.$ac_objext |
| 16438 | if { (ac_try="$ac_compile" |
| 16439 | case "(($ac_try" in |
| 16440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16441 | *) ac_try_echo=$ac_try;; |
| 16442 | esac |
| 16443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16444 | (eval "$ac_compile") 2>conftest.er1 |
| 16445 | ac_status=$? |
| 16446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16447 | rm -f conftest.er1 |
| 16448 | cat conftest.err >&5 |
| 16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16450 | (exit $ac_status); } && |
| 16451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16452 | { (case "(($ac_try" in |
| 16453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16454 | *) ac_try_echo=$ac_try;; |
| 16455 | esac |
| 16456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16457 | (eval "$ac_try") 2>&5 |
| 16458 | ac_status=$? |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); }; } && |
| 16461 | { ac_try='test -s conftest.$ac_objext' |
| 16462 | { (case "(($ac_try" in |
| 16463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16464 | *) ac_try_echo=$ac_try;; |
| 16465 | esac |
| 16466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16467 | (eval "$ac_try") 2>&5 |
| 16468 | ac_status=$? |
| 16469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16470 | (exit $ac_status); }; }; then |
| 16471 | ac_cv_type_pid_t=yes |
| 16472 | else |
| 16473 | echo "$as_me: failed program was:" >&5 |
| 16474 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16475 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16476 | ac_cv_type_pid_t=no |
| 16477 | fi |
| 16478 | |
| 16479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16480 | fi |
| 16481 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16482 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16483 | if test $ac_cv_type_pid_t = yes; then |
| 16484 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16485 | else |
| 16486 | |
| 16487 | cat >>confdefs.h <<_ACEOF |
| 16488 | #define pid_t int |
| 16489 | _ACEOF |
| 16490 | |
| 16491 | fi |
| 16492 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16493 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16494 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16495 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16497 | else |
| 16498 | cat >conftest.$ac_ext <<_ACEOF |
| 16499 | /* confdefs.h. */ |
| 16500 | _ACEOF |
| 16501 | cat confdefs.h >>conftest.$ac_ext |
| 16502 | cat >>conftest.$ac_ext <<_ACEOF |
| 16503 | /* end confdefs.h. */ |
| 16504 | $ac_includes_default |
| 16505 | typedef size_t ac__type_new_; |
| 16506 | int |
| 16507 | main () |
| 16508 | { |
| 16509 | if ((ac__type_new_ *) 0) |
| 16510 | return 0; |
| 16511 | if (sizeof (ac__type_new_)) |
| 16512 | return 0; |
| 16513 | ; |
| 16514 | return 0; |
| 16515 | } |
| 16516 | _ACEOF |
| 16517 | rm -f conftest.$ac_objext |
| 16518 | if { (ac_try="$ac_compile" |
| 16519 | case "(($ac_try" in |
| 16520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16521 | *) ac_try_echo=$ac_try;; |
| 16522 | esac |
| 16523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16524 | (eval "$ac_compile") 2>conftest.er1 |
| 16525 | ac_status=$? |
| 16526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16527 | rm -f conftest.er1 |
| 16528 | cat conftest.err >&5 |
| 16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16530 | (exit $ac_status); } && |
| 16531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16532 | { (case "(($ac_try" in |
| 16533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16534 | *) ac_try_echo=$ac_try;; |
| 16535 | esac |
| 16536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16537 | (eval "$ac_try") 2>&5 |
| 16538 | ac_status=$? |
| 16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16540 | (exit $ac_status); }; } && |
| 16541 | { ac_try='test -s conftest.$ac_objext' |
| 16542 | { (case "(($ac_try" in |
| 16543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16544 | *) ac_try_echo=$ac_try;; |
| 16545 | esac |
| 16546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16547 | (eval "$ac_try") 2>&5 |
| 16548 | ac_status=$? |
| 16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16550 | (exit $ac_status); }; }; then |
| 16551 | ac_cv_type_size_t=yes |
| 16552 | else |
| 16553 | echo "$as_me: failed program was:" >&5 |
| 16554 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16555 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16556 | ac_cv_type_size_t=no |
| 16557 | fi |
| 16558 | |
| 16559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16560 | fi |
| 16561 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16562 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16563 | if test $ac_cv_type_size_t = yes; then |
| 16564 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16565 | else |
| 16566 | |
| 16567 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16568 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16569 | _ACEOF |
| 16570 | |
| 16571 | fi |
| 16572 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16573 | |
| 16574 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16575 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16576 | _ACEOF |
| 16577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16578 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16579 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16580 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16583 | cat >conftest.$ac_ext <<_ACEOF |
| 16584 | /* confdefs.h. */ |
| 16585 | _ACEOF |
| 16586 | cat confdefs.h >>conftest.$ac_ext |
| 16587 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16588 | /* end confdefs.h. */ |
| 16589 | #include <sys/types.h> |
| 16590 | #include <time.h> |
| 16591 | |
| 16592 | int |
| 16593 | main () |
| 16594 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16595 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16596 | ; |
| 16597 | return 0; |
| 16598 | } |
| 16599 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16600 | rm -f conftest.$ac_objext |
| 16601 | if { (ac_try="$ac_compile" |
| 16602 | case "(($ac_try" in |
| 16603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16604 | *) ac_try_echo=$ac_try;; |
| 16605 | esac |
| 16606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16607 | (eval "$ac_compile") 2>conftest.er1 |
| 16608 | ac_status=$? |
| 16609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16610 | rm -f conftest.er1 |
| 16611 | cat conftest.err >&5 |
| 16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16613 | (exit $ac_status); } && |
| 16614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16615 | { (case "(($ac_try" in |
| 16616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16617 | *) ac_try_echo=$ac_try;; |
| 16618 | esac |
| 16619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16620 | (eval "$ac_try") 2>&5 |
| 16621 | ac_status=$? |
| 16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16623 | (exit $ac_status); }; } && |
| 16624 | { ac_try='test -s conftest.$ac_objext' |
| 16625 | { (case "(($ac_try" in |
| 16626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16627 | *) ac_try_echo=$ac_try;; |
| 16628 | esac |
| 16629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16630 | (eval "$ac_try") 2>&5 |
| 16631 | ac_status=$? |
| 16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16633 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16634 | ac_cv_struct_tm=time.h |
| 16635 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16636 | echo "$as_me: failed program was:" >&5 |
| 16637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16638 | |
| 16639 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16640 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16643 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16644 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16645 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16646 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16647 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16648 | cat >>confdefs.h <<\_ACEOF |
| 16649 | #define TM_IN_SYS_TIME 1 |
| 16650 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16651 | |
| 16652 | fi |
| 16653 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16654 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16655 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16656 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16658 | else |
| 16659 | cat >conftest.$ac_ext <<_ACEOF |
| 16660 | /* confdefs.h. */ |
| 16661 | _ACEOF |
| 16662 | cat confdefs.h >>conftest.$ac_ext |
| 16663 | cat >>conftest.$ac_ext <<_ACEOF |
| 16664 | /* end confdefs.h. */ |
| 16665 | $ac_includes_default |
| 16666 | typedef int64_t ac__type_new_; |
| 16667 | int |
| 16668 | main () |
| 16669 | { |
| 16670 | if ((ac__type_new_ *) 0) |
| 16671 | return 0; |
| 16672 | if (sizeof (ac__type_new_)) |
| 16673 | return 0; |
| 16674 | ; |
| 16675 | return 0; |
| 16676 | } |
| 16677 | _ACEOF |
| 16678 | rm -f conftest.$ac_objext |
| 16679 | if { (ac_try="$ac_compile" |
| 16680 | case "(($ac_try" in |
| 16681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16682 | *) ac_try_echo=$ac_try;; |
| 16683 | esac |
| 16684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16685 | (eval "$ac_compile") 2>conftest.er1 |
| 16686 | ac_status=$? |
| 16687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16688 | rm -f conftest.er1 |
| 16689 | cat conftest.err >&5 |
| 16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16691 | (exit $ac_status); } && |
| 16692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16693 | { (case "(($ac_try" in |
| 16694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16695 | *) ac_try_echo=$ac_try;; |
| 16696 | esac |
| 16697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16698 | (eval "$ac_try") 2>&5 |
| 16699 | ac_status=$? |
| 16700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16701 | (exit $ac_status); }; } && |
| 16702 | { ac_try='test -s conftest.$ac_objext' |
| 16703 | { (case "(($ac_try" in |
| 16704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16705 | *) ac_try_echo=$ac_try;; |
| 16706 | esac |
| 16707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16708 | (eval "$ac_try") 2>&5 |
| 16709 | ac_status=$? |
| 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); }; }; then |
| 16712 | ac_cv_type_int64_t=yes |
| 16713 | else |
| 16714 | echo "$as_me: failed program was:" >&5 |
| 16715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16716 | |
| 16717 | ac_cv_type_int64_t=no |
| 16718 | fi |
| 16719 | |
| 16720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16721 | fi |
| 16722 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16723 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16724 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16725 | |
| 16726 | cat >>confdefs.h <<_ACEOF |
| 16727 | #define HAVE_INT64_T 1 |
| 16728 | _ACEOF |
| 16729 | |
| 16730 | |
| 16731 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16732 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16733 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16734 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16735 | fi |
| 16736 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16737 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16738 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16739 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16741 | else |
| 16742 | cat >conftest.$ac_ext <<_ACEOF |
| 16743 | /* confdefs.h. */ |
| 16744 | _ACEOF |
| 16745 | cat confdefs.h >>conftest.$ac_ext |
| 16746 | cat >>conftest.$ac_ext <<_ACEOF |
| 16747 | /* end confdefs.h. */ |
| 16748 | $ac_includes_default |
| 16749 | typedef uint64_t ac__type_new_; |
| 16750 | int |
| 16751 | main () |
| 16752 | { |
| 16753 | if ((ac__type_new_ *) 0) |
| 16754 | return 0; |
| 16755 | if (sizeof (ac__type_new_)) |
| 16756 | return 0; |
| 16757 | ; |
| 16758 | return 0; |
| 16759 | } |
| 16760 | _ACEOF |
| 16761 | rm -f conftest.$ac_objext |
| 16762 | if { (ac_try="$ac_compile" |
| 16763 | case "(($ac_try" in |
| 16764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16765 | *) ac_try_echo=$ac_try;; |
| 16766 | esac |
| 16767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16768 | (eval "$ac_compile") 2>conftest.er1 |
| 16769 | ac_status=$? |
| 16770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16771 | rm -f conftest.er1 |
| 16772 | cat conftest.err >&5 |
| 16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16774 | (exit $ac_status); } && |
| 16775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16776 | { (case "(($ac_try" in |
| 16777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16778 | *) ac_try_echo=$ac_try;; |
| 16779 | esac |
| 16780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16781 | (eval "$ac_try") 2>&5 |
| 16782 | ac_status=$? |
| 16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16784 | (exit $ac_status); }; } && |
| 16785 | { ac_try='test -s conftest.$ac_objext' |
| 16786 | { (case "(($ac_try" in |
| 16787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16788 | *) ac_try_echo=$ac_try;; |
| 16789 | esac |
| 16790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16791 | (eval "$ac_try") 2>&5 |
| 16792 | ac_status=$? |
| 16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16794 | (exit $ac_status); }; }; then |
| 16795 | ac_cv_type_uint64_t=yes |
| 16796 | else |
| 16797 | echo "$as_me: failed program was:" >&5 |
| 16798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16799 | |
| 16800 | ac_cv_type_uint64_t=no |
| 16801 | fi |
| 16802 | |
| 16803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16804 | fi |
| 16805 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16806 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16807 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16808 | |
| 16809 | cat >>confdefs.h <<_ACEOF |
| 16810 | #define HAVE_UINT64_T 1 |
| 16811 | _ACEOF |
| 16812 | |
| 16813 | |
| 16814 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16815 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16816 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16817 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16819 | else |
| 16820 | cat >conftest.$ac_ext <<_ACEOF |
| 16821 | /* confdefs.h. */ |
| 16822 | _ACEOF |
| 16823 | cat confdefs.h >>conftest.$ac_ext |
| 16824 | cat >>conftest.$ac_ext <<_ACEOF |
| 16825 | /* end confdefs.h. */ |
| 16826 | $ac_includes_default |
| 16827 | typedef u_int64_t ac__type_new_; |
| 16828 | int |
| 16829 | main () |
| 16830 | { |
| 16831 | if ((ac__type_new_ *) 0) |
| 16832 | return 0; |
| 16833 | if (sizeof (ac__type_new_)) |
| 16834 | return 0; |
| 16835 | ; |
| 16836 | return 0; |
| 16837 | } |
| 16838 | _ACEOF |
| 16839 | rm -f conftest.$ac_objext |
| 16840 | if { (ac_try="$ac_compile" |
| 16841 | case "(($ac_try" in |
| 16842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16843 | *) ac_try_echo=$ac_try;; |
| 16844 | esac |
| 16845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16846 | (eval "$ac_compile") 2>conftest.er1 |
| 16847 | ac_status=$? |
| 16848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16849 | rm -f conftest.er1 |
| 16850 | cat conftest.err >&5 |
| 16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16852 | (exit $ac_status); } && |
| 16853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16854 | { (case "(($ac_try" in |
| 16855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16856 | *) ac_try_echo=$ac_try;; |
| 16857 | esac |
| 16858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16859 | (eval "$ac_try") 2>&5 |
| 16860 | ac_status=$? |
| 16861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16862 | (exit $ac_status); }; } && |
| 16863 | { ac_try='test -s conftest.$ac_objext' |
| 16864 | { (case "(($ac_try" in |
| 16865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16866 | *) ac_try_echo=$ac_try;; |
| 16867 | esac |
| 16868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16869 | (eval "$ac_try") 2>&5 |
| 16870 | ac_status=$? |
| 16871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16872 | (exit $ac_status); }; }; then |
| 16873 | ac_cv_type_u_int64_t=yes |
| 16874 | else |
| 16875 | echo "$as_me: failed program was:" >&5 |
| 16876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16877 | |
| 16878 | ac_cv_type_u_int64_t=no |
| 16879 | fi |
| 16880 | |
| 16881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16882 | fi |
| 16883 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16884 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16885 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16886 | |
| 16887 | cat >>confdefs.h <<_ACEOF |
| 16888 | #define HAVE_U_INT64_T 1 |
| 16889 | _ACEOF |
| 16890 | |
| 16891 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16892 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16893 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16894 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16895 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 16896 | fi |
| 16897 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 16898 | fi |
| 16899 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16900 | |
| 16901 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16902 | |
| 16903 | |
| 16904 | |
| 16905 | |
| 16906 | |
| 16907 | |
| 16908 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 16909 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16910 | do |
| 16911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16916 | else |
| 16917 | cat >conftest.$ac_ext <<_ACEOF |
| 16918 | /* confdefs.h. */ |
| 16919 | _ACEOF |
| 16920 | cat confdefs.h >>conftest.$ac_ext |
| 16921 | cat >>conftest.$ac_ext <<_ACEOF |
| 16922 | /* end confdefs.h. */ |
| 16923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16925 | #define $ac_func innocuous_$ac_func |
| 16926 | |
| 16927 | /* System header to define __stub macros and hopefully few prototypes, |
| 16928 | which can conflict with char $ac_func (); below. |
| 16929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16930 | <limits.h> exists even on freestanding compilers. */ |
| 16931 | |
| 16932 | #ifdef __STDC__ |
| 16933 | # include <limits.h> |
| 16934 | #else |
| 16935 | # include <assert.h> |
| 16936 | #endif |
| 16937 | |
| 16938 | #undef $ac_func |
| 16939 | |
| 16940 | /* Override any GCC internal prototype to avoid an error. |
| 16941 | Use char because int might match the return type of a GCC |
| 16942 | builtin and then its argument prototype would still apply. */ |
| 16943 | #ifdef __cplusplus |
| 16944 | extern "C" |
| 16945 | #endif |
| 16946 | char $ac_func (); |
| 16947 | /* The GNU C library defines this for functions which it implements |
| 16948 | to always fail with ENOSYS. Some functions are actually named |
| 16949 | something starting with __ and the normal name is an alias. */ |
| 16950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16951 | choke me |
| 16952 | #endif |
| 16953 | |
| 16954 | int |
| 16955 | main () |
| 16956 | { |
| 16957 | return $ac_func (); |
| 16958 | ; |
| 16959 | return 0; |
| 16960 | } |
| 16961 | _ACEOF |
| 16962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16963 | if { (ac_try="$ac_link" |
| 16964 | case "(($ac_try" in |
| 16965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16966 | *) ac_try_echo=$ac_try;; |
| 16967 | esac |
| 16968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16969 | (eval "$ac_link") 2>conftest.er1 |
| 16970 | ac_status=$? |
| 16971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16972 | rm -f conftest.er1 |
| 16973 | cat conftest.err >&5 |
| 16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16975 | (exit $ac_status); } && |
| 16976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16977 | { (case "(($ac_try" in |
| 16978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16979 | *) ac_try_echo=$ac_try;; |
| 16980 | esac |
| 16981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16982 | (eval "$ac_try") 2>&5 |
| 16983 | ac_status=$? |
| 16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16985 | (exit $ac_status); }; } && |
| 16986 | { ac_try='test -s conftest$ac_exeext' |
| 16987 | { (case "(($ac_try" in |
| 16988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16989 | *) ac_try_echo=$ac_try;; |
| 16990 | esac |
| 16991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16992 | (eval "$ac_try") 2>&5 |
| 16993 | ac_status=$? |
| 16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16995 | (exit $ac_status); }; }; then |
| 16996 | eval "$as_ac_var=yes" |
| 16997 | else |
| 16998 | echo "$as_me: failed program was:" >&5 |
| 16999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17000 | |
| 17001 | eval "$as_ac_var=no" |
| 17002 | fi |
| 17003 | |
| 17004 | rm -f core conftest.err conftest.$ac_objext \ |
| 17005 | conftest$ac_exeext conftest.$ac_ext |
| 17006 | fi |
| 17007 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17008 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17009 | echo "${ECHO_T}$ac_res" >&6; } |
| 17010 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17011 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17013 | _ACEOF |
| 17014 | |
| 17015 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17016 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17017 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17018 | |
| 17019 | |
| 17020 | |
| 17021 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17022 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17023 | do |
| 17024 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17025 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17026 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17027 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17029 | else |
| 17030 | cat >conftest.$ac_ext <<_ACEOF |
| 17031 | /* confdefs.h. */ |
| 17032 | _ACEOF |
| 17033 | cat confdefs.h >>conftest.$ac_ext |
| 17034 | cat >>conftest.$ac_ext <<_ACEOF |
| 17035 | /* end confdefs.h. */ |
| 17036 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17037 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17038 | #define $ac_func innocuous_$ac_func |
| 17039 | |
| 17040 | /* System header to define __stub macros and hopefully few prototypes, |
| 17041 | which can conflict with char $ac_func (); below. |
| 17042 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17043 | <limits.h> exists even on freestanding compilers. */ |
| 17044 | |
| 17045 | #ifdef __STDC__ |
| 17046 | # include <limits.h> |
| 17047 | #else |
| 17048 | # include <assert.h> |
| 17049 | #endif |
| 17050 | |
| 17051 | #undef $ac_func |
| 17052 | |
| 17053 | /* Override any GCC internal prototype to avoid an error. |
| 17054 | Use char because int might match the return type of a GCC |
| 17055 | builtin and then its argument prototype would still apply. */ |
| 17056 | #ifdef __cplusplus |
| 17057 | extern "C" |
| 17058 | #endif |
| 17059 | char $ac_func (); |
| 17060 | /* The GNU C library defines this for functions which it implements |
| 17061 | to always fail with ENOSYS. Some functions are actually named |
| 17062 | something starting with __ and the normal name is an alias. */ |
| 17063 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17064 | choke me |
| 17065 | #endif |
| 17066 | |
| 17067 | int |
| 17068 | main () |
| 17069 | { |
| 17070 | return $ac_func (); |
| 17071 | ; |
| 17072 | return 0; |
| 17073 | } |
| 17074 | _ACEOF |
| 17075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17076 | if { (ac_try="$ac_link" |
| 17077 | case "(($ac_try" in |
| 17078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17079 | *) ac_try_echo=$ac_try;; |
| 17080 | esac |
| 17081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17082 | (eval "$ac_link") 2>conftest.er1 |
| 17083 | ac_status=$? |
| 17084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17085 | rm -f conftest.er1 |
| 17086 | cat conftest.err >&5 |
| 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17088 | (exit $ac_status); } && |
| 17089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17090 | { (case "(($ac_try" in |
| 17091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17092 | *) ac_try_echo=$ac_try;; |
| 17093 | esac |
| 17094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17095 | (eval "$ac_try") 2>&5 |
| 17096 | ac_status=$? |
| 17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17098 | (exit $ac_status); }; } && |
| 17099 | { ac_try='test -s conftest$ac_exeext' |
| 17100 | { (case "(($ac_try" in |
| 17101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17102 | *) ac_try_echo=$ac_try;; |
| 17103 | esac |
| 17104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17105 | (eval "$ac_try") 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; }; then |
| 17109 | eval "$as_ac_var=yes" |
| 17110 | else |
| 17111 | echo "$as_me: failed program was:" >&5 |
| 17112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17113 | |
| 17114 | eval "$as_ac_var=no" |
| 17115 | fi |
| 17116 | |
| 17117 | rm -f core conftest.err conftest.$ac_objext \ |
| 17118 | conftest$ac_exeext conftest.$ac_ext |
| 17119 | fi |
| 17120 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17122 | echo "${ECHO_T}$ac_res" >&6; } |
| 17123 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17124 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17126 | _ACEOF |
| 17127 | |
| 17128 | fi |
| 17129 | done |
| 17130 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17131 | |
| 17132 | |
| 17133 | |
| 17134 | |
| 17135 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17136 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17137 | do |
| 17138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17139 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17141 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17143 | else |
| 17144 | cat >conftest.$ac_ext <<_ACEOF |
| 17145 | /* confdefs.h. */ |
| 17146 | _ACEOF |
| 17147 | cat confdefs.h >>conftest.$ac_ext |
| 17148 | cat >>conftest.$ac_ext <<_ACEOF |
| 17149 | /* end confdefs.h. */ |
| 17150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17152 | #define $ac_func innocuous_$ac_func |
| 17153 | |
| 17154 | /* System header to define __stub macros and hopefully few prototypes, |
| 17155 | which can conflict with char $ac_func (); below. |
| 17156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17157 | <limits.h> exists even on freestanding compilers. */ |
| 17158 | |
| 17159 | #ifdef __STDC__ |
| 17160 | # include <limits.h> |
| 17161 | #else |
| 17162 | # include <assert.h> |
| 17163 | #endif |
| 17164 | |
| 17165 | #undef $ac_func |
| 17166 | |
| 17167 | /* Override any GCC internal prototype to avoid an error. |
| 17168 | Use char because int might match the return type of a GCC |
| 17169 | builtin and then its argument prototype would still apply. */ |
| 17170 | #ifdef __cplusplus |
| 17171 | extern "C" |
| 17172 | #endif |
| 17173 | char $ac_func (); |
| 17174 | /* The GNU C library defines this for functions which it implements |
| 17175 | to always fail with ENOSYS. Some functions are actually named |
| 17176 | something starting with __ and the normal name is an alias. */ |
| 17177 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17178 | choke me |
| 17179 | #endif |
| 17180 | |
| 17181 | int |
| 17182 | main () |
| 17183 | { |
| 17184 | return $ac_func (); |
| 17185 | ; |
| 17186 | return 0; |
| 17187 | } |
| 17188 | _ACEOF |
| 17189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17190 | if { (ac_try="$ac_link" |
| 17191 | case "(($ac_try" in |
| 17192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17193 | *) ac_try_echo=$ac_try;; |
| 17194 | esac |
| 17195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17196 | (eval "$ac_link") 2>conftest.er1 |
| 17197 | ac_status=$? |
| 17198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17199 | rm -f conftest.er1 |
| 17200 | cat conftest.err >&5 |
| 17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17202 | (exit $ac_status); } && |
| 17203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17204 | { (case "(($ac_try" in |
| 17205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17206 | *) ac_try_echo=$ac_try;; |
| 17207 | esac |
| 17208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17209 | (eval "$ac_try") 2>&5 |
| 17210 | ac_status=$? |
| 17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17212 | (exit $ac_status); }; } && |
| 17213 | { ac_try='test -s conftest$ac_exeext' |
| 17214 | { (case "(($ac_try" in |
| 17215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17216 | *) ac_try_echo=$ac_try;; |
| 17217 | esac |
| 17218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17219 | (eval "$ac_try") 2>&5 |
| 17220 | ac_status=$? |
| 17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17222 | (exit $ac_status); }; }; then |
| 17223 | eval "$as_ac_var=yes" |
| 17224 | else |
| 17225 | echo "$as_me: failed program was:" >&5 |
| 17226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17227 | |
| 17228 | eval "$as_ac_var=no" |
| 17229 | fi |
| 17230 | |
| 17231 | rm -f core conftest.err conftest.$ac_objext \ |
| 17232 | conftest$ac_exeext conftest.$ac_ext |
| 17233 | fi |
| 17234 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17235 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17236 | echo "${ECHO_T}$ac_res" >&6; } |
| 17237 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17238 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17240 | _ACEOF |
| 17241 | |
| 17242 | fi |
| 17243 | done |
| 17244 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17245 | |
| 17246 | |
| 17247 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17248 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17249 | do |
| 17250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17251 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17255 | else |
| 17256 | cat >conftest.$ac_ext <<_ACEOF |
| 17257 | /* confdefs.h. */ |
| 17258 | _ACEOF |
| 17259 | cat confdefs.h >>conftest.$ac_ext |
| 17260 | cat >>conftest.$ac_ext <<_ACEOF |
| 17261 | /* end confdefs.h. */ |
| 17262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17264 | #define $ac_func innocuous_$ac_func |
| 17265 | |
| 17266 | /* System header to define __stub macros and hopefully few prototypes, |
| 17267 | which can conflict with char $ac_func (); below. |
| 17268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17269 | <limits.h> exists even on freestanding compilers. */ |
| 17270 | |
| 17271 | #ifdef __STDC__ |
| 17272 | # include <limits.h> |
| 17273 | #else |
| 17274 | # include <assert.h> |
| 17275 | #endif |
| 17276 | |
| 17277 | #undef $ac_func |
| 17278 | |
| 17279 | /* Override any GCC internal prototype to avoid an error. |
| 17280 | Use char because int might match the return type of a GCC |
| 17281 | builtin and then its argument prototype would still apply. */ |
| 17282 | #ifdef __cplusplus |
| 17283 | extern "C" |
| 17284 | #endif |
| 17285 | char $ac_func (); |
| 17286 | /* The GNU C library defines this for functions which it implements |
| 17287 | to always fail with ENOSYS. Some functions are actually named |
| 17288 | something starting with __ and the normal name is an alias. */ |
| 17289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17290 | choke me |
| 17291 | #endif |
| 17292 | |
| 17293 | int |
| 17294 | main () |
| 17295 | { |
| 17296 | return $ac_func (); |
| 17297 | ; |
| 17298 | return 0; |
| 17299 | } |
| 17300 | _ACEOF |
| 17301 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17302 | if { (ac_try="$ac_link" |
| 17303 | case "(($ac_try" in |
| 17304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17305 | *) ac_try_echo=$ac_try;; |
| 17306 | esac |
| 17307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17308 | (eval "$ac_link") 2>conftest.er1 |
| 17309 | ac_status=$? |
| 17310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17311 | rm -f conftest.er1 |
| 17312 | cat conftest.err >&5 |
| 17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17314 | (exit $ac_status); } && |
| 17315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17316 | { (case "(($ac_try" in |
| 17317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17318 | *) ac_try_echo=$ac_try;; |
| 17319 | esac |
| 17320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17321 | (eval "$ac_try") 2>&5 |
| 17322 | ac_status=$? |
| 17323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17324 | (exit $ac_status); }; } && |
| 17325 | { ac_try='test -s conftest$ac_exeext' |
| 17326 | { (case "(($ac_try" in |
| 17327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17328 | *) ac_try_echo=$ac_try;; |
| 17329 | esac |
| 17330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17331 | (eval "$ac_try") 2>&5 |
| 17332 | ac_status=$? |
| 17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17334 | (exit $ac_status); }; }; then |
| 17335 | eval "$as_ac_var=yes" |
| 17336 | else |
| 17337 | echo "$as_me: failed program was:" >&5 |
| 17338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17339 | |
| 17340 | eval "$as_ac_var=no" |
| 17341 | fi |
| 17342 | |
| 17343 | rm -f core conftest.err conftest.$ac_objext \ |
| 17344 | conftest$ac_exeext conftest.$ac_ext |
| 17345 | fi |
| 17346 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17347 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17348 | echo "${ECHO_T}$ac_res" >&6; } |
| 17349 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17350 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17352 | _ACEOF |
| 17353 | |
| 17354 | fi |
| 17355 | done |
| 17356 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17357 | |
| 17358 | |
| 17359 | |
| 17360 | |
| 17361 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17362 | |
Benjamin Kramer | 5745fbc | 2011-11-22 12:31:53 +0000 | [diff] [blame] | 17363 | |
| 17364 | for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17365 | do |
| 17366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17367 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17369 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17371 | else |
| 17372 | cat >conftest.$ac_ext <<_ACEOF |
| 17373 | /* confdefs.h. */ |
| 17374 | _ACEOF |
| 17375 | cat confdefs.h >>conftest.$ac_ext |
| 17376 | cat >>conftest.$ac_ext <<_ACEOF |
| 17377 | /* end confdefs.h. */ |
| 17378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17380 | #define $ac_func innocuous_$ac_func |
| 17381 | |
| 17382 | /* System header to define __stub macros and hopefully few prototypes, |
| 17383 | which can conflict with char $ac_func (); below. |
| 17384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17385 | <limits.h> exists even on freestanding compilers. */ |
| 17386 | |
| 17387 | #ifdef __STDC__ |
| 17388 | # include <limits.h> |
| 17389 | #else |
| 17390 | # include <assert.h> |
| 17391 | #endif |
| 17392 | |
| 17393 | #undef $ac_func |
| 17394 | |
| 17395 | /* Override any GCC internal prototype to avoid an error. |
| 17396 | Use char because int might match the return type of a GCC |
| 17397 | builtin and then its argument prototype would still apply. */ |
| 17398 | #ifdef __cplusplus |
| 17399 | extern "C" |
| 17400 | #endif |
| 17401 | char $ac_func (); |
| 17402 | /* The GNU C library defines this for functions which it implements |
| 17403 | to always fail with ENOSYS. Some functions are actually named |
| 17404 | something starting with __ and the normal name is an alias. */ |
| 17405 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17406 | choke me |
| 17407 | #endif |
| 17408 | |
| 17409 | int |
| 17410 | main () |
| 17411 | { |
| 17412 | return $ac_func (); |
| 17413 | ; |
| 17414 | return 0; |
| 17415 | } |
| 17416 | _ACEOF |
| 17417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17418 | if { (ac_try="$ac_link" |
| 17419 | case "(($ac_try" in |
| 17420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17421 | *) ac_try_echo=$ac_try;; |
| 17422 | esac |
| 17423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17424 | (eval "$ac_link") 2>conftest.er1 |
| 17425 | ac_status=$? |
| 17426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17427 | rm -f conftest.er1 |
| 17428 | cat conftest.err >&5 |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); } && |
| 17431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17432 | { (case "(($ac_try" in |
| 17433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17434 | *) ac_try_echo=$ac_try;; |
| 17435 | esac |
| 17436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17437 | (eval "$ac_try") 2>&5 |
| 17438 | ac_status=$? |
| 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17440 | (exit $ac_status); }; } && |
| 17441 | { ac_try='test -s conftest$ac_exeext' |
| 17442 | { (case "(($ac_try" in |
| 17443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17444 | *) ac_try_echo=$ac_try;; |
| 17445 | esac |
| 17446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17447 | (eval "$ac_try") 2>&5 |
| 17448 | ac_status=$? |
| 17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17450 | (exit $ac_status); }; }; then |
| 17451 | eval "$as_ac_var=yes" |
| 17452 | else |
| 17453 | echo "$as_me: failed program was:" >&5 |
| 17454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17455 | |
| 17456 | eval "$as_ac_var=no" |
| 17457 | fi |
| 17458 | |
| 17459 | rm -f core conftest.err conftest.$ac_objext \ |
| 17460 | conftest$ac_exeext conftest.$ac_ext |
| 17461 | fi |
| 17462 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17463 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17464 | echo "${ECHO_T}$ac_res" >&6; } |
| 17465 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17466 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17467 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 17468 | _ACEOF |
| 17469 | |
| 17470 | fi |
| 17471 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17472 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17473 | |
| 17474 | |
| 17475 | |
Daniel Dunbar | e0b0e7b | 2012-05-05 16:36:16 +0000 | [diff] [blame] | 17476 | |
| 17477 | for ac_func in strerror strerror_r setenv arc4random |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17478 | do |
| 17479 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17480 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17481 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17482 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17484 | else |
| 17485 | cat >conftest.$ac_ext <<_ACEOF |
| 17486 | /* confdefs.h. */ |
| 17487 | _ACEOF |
| 17488 | cat confdefs.h >>conftest.$ac_ext |
| 17489 | cat >>conftest.$ac_ext <<_ACEOF |
| 17490 | /* end confdefs.h. */ |
| 17491 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17493 | #define $ac_func innocuous_$ac_func |
| 17494 | |
| 17495 | /* System header to define __stub macros and hopefully few prototypes, |
| 17496 | which can conflict with char $ac_func (); below. |
| 17497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17498 | <limits.h> exists even on freestanding compilers. */ |
| 17499 | |
| 17500 | #ifdef __STDC__ |
| 17501 | # include <limits.h> |
| 17502 | #else |
| 17503 | # include <assert.h> |
| 17504 | #endif |
| 17505 | |
| 17506 | #undef $ac_func |
| 17507 | |
| 17508 | /* Override any GCC internal prototype to avoid an error. |
| 17509 | Use char because int might match the return type of a GCC |
| 17510 | builtin and then its argument prototype would still apply. */ |
| 17511 | #ifdef __cplusplus |
| 17512 | extern "C" |
| 17513 | #endif |
| 17514 | char $ac_func (); |
| 17515 | /* The GNU C library defines this for functions which it implements |
| 17516 | to always fail with ENOSYS. Some functions are actually named |
| 17517 | something starting with __ and the normal name is an alias. */ |
| 17518 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17519 | choke me |
| 17520 | #endif |
| 17521 | |
| 17522 | int |
| 17523 | main () |
| 17524 | { |
| 17525 | return $ac_func (); |
| 17526 | ; |
| 17527 | return 0; |
| 17528 | } |
| 17529 | _ACEOF |
| 17530 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17531 | if { (ac_try="$ac_link" |
| 17532 | case "(($ac_try" in |
| 17533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17534 | *) ac_try_echo=$ac_try;; |
| 17535 | esac |
| 17536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17537 | (eval "$ac_link") 2>conftest.er1 |
| 17538 | ac_status=$? |
| 17539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17540 | rm -f conftest.er1 |
| 17541 | cat conftest.err >&5 |
| 17542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17543 | (exit $ac_status); } && |
| 17544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17545 | { (case "(($ac_try" in |
| 17546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17547 | *) ac_try_echo=$ac_try;; |
| 17548 | esac |
| 17549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17550 | (eval "$ac_try") 2>&5 |
| 17551 | ac_status=$? |
| 17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17553 | (exit $ac_status); }; } && |
| 17554 | { ac_try='test -s conftest$ac_exeext' |
| 17555 | { (case "(($ac_try" in |
| 17556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17557 | *) ac_try_echo=$ac_try;; |
| 17558 | esac |
| 17559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17560 | (eval "$ac_try") 2>&5 |
| 17561 | ac_status=$? |
| 17562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17563 | (exit $ac_status); }; }; then |
| 17564 | eval "$as_ac_var=yes" |
| 17565 | else |
| 17566 | echo "$as_me: failed program was:" >&5 |
| 17567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17568 | |
| 17569 | eval "$as_ac_var=no" |
| 17570 | fi |
| 17571 | |
| 17572 | rm -f core conftest.err conftest.$ac_objext \ |
| 17573 | conftest$ac_exeext conftest.$ac_ext |
| 17574 | fi |
| 17575 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17576 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17577 | echo "${ECHO_T}$ac_res" >&6; } |
| 17578 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17579 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 17581 | _ACEOF |
| 17582 | |
| 17583 | fi |
| 17584 | done |
| 17585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17586 | |
| 17587 | |
| 17588 | |
| 17589 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 17590 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17591 | do |
| 17592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17593 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17595 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17597 | else |
| 17598 | cat >conftest.$ac_ext <<_ACEOF |
| 17599 | /* confdefs.h. */ |
| 17600 | _ACEOF |
| 17601 | cat confdefs.h >>conftest.$ac_ext |
| 17602 | cat >>conftest.$ac_ext <<_ACEOF |
| 17603 | /* end confdefs.h. */ |
| 17604 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17606 | #define $ac_func innocuous_$ac_func |
| 17607 | |
| 17608 | /* System header to define __stub macros and hopefully few prototypes, |
| 17609 | which can conflict with char $ac_func (); below. |
| 17610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17611 | <limits.h> exists even on freestanding compilers. */ |
| 17612 | |
| 17613 | #ifdef __STDC__ |
| 17614 | # include <limits.h> |
| 17615 | #else |
| 17616 | # include <assert.h> |
| 17617 | #endif |
| 17618 | |
| 17619 | #undef $ac_func |
| 17620 | |
| 17621 | /* Override any GCC internal prototype to avoid an error. |
| 17622 | Use char because int might match the return type of a GCC |
| 17623 | builtin and then its argument prototype would still apply. */ |
| 17624 | #ifdef __cplusplus |
| 17625 | extern "C" |
| 17626 | #endif |
| 17627 | char $ac_func (); |
| 17628 | /* The GNU C library defines this for functions which it implements |
| 17629 | to always fail with ENOSYS. Some functions are actually named |
| 17630 | something starting with __ and the normal name is an alias. */ |
| 17631 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17632 | choke me |
| 17633 | #endif |
| 17634 | |
| 17635 | int |
| 17636 | main () |
| 17637 | { |
| 17638 | return $ac_func (); |
| 17639 | ; |
| 17640 | return 0; |
| 17641 | } |
| 17642 | _ACEOF |
| 17643 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17644 | if { (ac_try="$ac_link" |
| 17645 | case "(($ac_try" in |
| 17646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17647 | *) ac_try_echo=$ac_try;; |
| 17648 | esac |
| 17649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17650 | (eval "$ac_link") 2>conftest.er1 |
| 17651 | ac_status=$? |
| 17652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17653 | rm -f conftest.er1 |
| 17654 | cat conftest.err >&5 |
| 17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17656 | (exit $ac_status); } && |
| 17657 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17658 | { (case "(($ac_try" in |
| 17659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17660 | *) ac_try_echo=$ac_try;; |
| 17661 | esac |
| 17662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17663 | (eval "$ac_try") 2>&5 |
| 17664 | ac_status=$? |
| 17665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17666 | (exit $ac_status); }; } && |
| 17667 | { ac_try='test -s conftest$ac_exeext' |
| 17668 | { (case "(($ac_try" in |
| 17669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17670 | *) ac_try_echo=$ac_try;; |
| 17671 | esac |
| 17672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17673 | (eval "$ac_try") 2>&5 |
| 17674 | ac_status=$? |
| 17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17676 | (exit $ac_status); }; }; then |
| 17677 | eval "$as_ac_var=yes" |
| 17678 | else |
| 17679 | echo "$as_me: failed program was:" >&5 |
| 17680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17681 | |
| 17682 | eval "$as_ac_var=no" |
| 17683 | fi |
| 17684 | |
| 17685 | rm -f core conftest.err conftest.$ac_objext \ |
| 17686 | conftest$ac_exeext conftest.$ac_ext |
| 17687 | fi |
| 17688 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17689 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17690 | echo "${ECHO_T}$ac_res" >&6; } |
| 17691 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17692 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17693 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17694 | _ACEOF |
| 17695 | |
| 17696 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17697 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17698 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17699 | |
| 17700 | |
| 17701 | |
| 17702 | |
Daniel Dunbar | 3e46293 | 2011-02-03 02:40:02 +0000 | [diff] [blame] | 17703 | |
| 17704 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17705 | do |
| 17706 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17707 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17708 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17709 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17711 | else |
| 17712 | cat >conftest.$ac_ext <<_ACEOF |
| 17713 | /* confdefs.h. */ |
| 17714 | _ACEOF |
| 17715 | cat confdefs.h >>conftest.$ac_ext |
| 17716 | cat >>conftest.$ac_ext <<_ACEOF |
| 17717 | /* end confdefs.h. */ |
| 17718 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17720 | #define $ac_func innocuous_$ac_func |
| 17721 | |
| 17722 | /* System header to define __stub macros and hopefully few prototypes, |
| 17723 | which can conflict with char $ac_func (); below. |
| 17724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17725 | <limits.h> exists even on freestanding compilers. */ |
| 17726 | |
| 17727 | #ifdef __STDC__ |
| 17728 | # include <limits.h> |
| 17729 | #else |
| 17730 | # include <assert.h> |
| 17731 | #endif |
| 17732 | |
| 17733 | #undef $ac_func |
| 17734 | |
| 17735 | /* Override any GCC internal prototype to avoid an error. |
| 17736 | Use char because int might match the return type of a GCC |
| 17737 | builtin and then its argument prototype would still apply. */ |
| 17738 | #ifdef __cplusplus |
| 17739 | extern "C" |
| 17740 | #endif |
| 17741 | char $ac_func (); |
| 17742 | /* The GNU C library defines this for functions which it implements |
| 17743 | to always fail with ENOSYS. Some functions are actually named |
| 17744 | something starting with __ and the normal name is an alias. */ |
| 17745 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17746 | choke me |
| 17747 | #endif |
| 17748 | |
| 17749 | int |
| 17750 | main () |
| 17751 | { |
| 17752 | return $ac_func (); |
| 17753 | ; |
| 17754 | return 0; |
| 17755 | } |
| 17756 | _ACEOF |
| 17757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17758 | if { (ac_try="$ac_link" |
| 17759 | case "(($ac_try" in |
| 17760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17761 | *) ac_try_echo=$ac_try;; |
| 17762 | esac |
| 17763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17764 | (eval "$ac_link") 2>conftest.er1 |
| 17765 | ac_status=$? |
| 17766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17767 | rm -f conftest.er1 |
| 17768 | cat conftest.err >&5 |
| 17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17770 | (exit $ac_status); } && |
| 17771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17772 | { (case "(($ac_try" in |
| 17773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17774 | *) ac_try_echo=$ac_try;; |
| 17775 | esac |
| 17776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17777 | (eval "$ac_try") 2>&5 |
| 17778 | ac_status=$? |
| 17779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17780 | (exit $ac_status); }; } && |
| 17781 | { ac_try='test -s conftest$ac_exeext' |
| 17782 | { (case "(($ac_try" in |
| 17783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17784 | *) ac_try_echo=$ac_try;; |
| 17785 | esac |
| 17786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17787 | (eval "$ac_try") 2>&5 |
| 17788 | ac_status=$? |
| 17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17790 | (exit $ac_status); }; }; then |
| 17791 | eval "$as_ac_var=yes" |
| 17792 | else |
| 17793 | echo "$as_me: failed program was:" >&5 |
| 17794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17795 | |
| 17796 | eval "$as_ac_var=no" |
| 17797 | fi |
| 17798 | |
| 17799 | rm -f core conftest.err conftest.$ac_objext \ |
| 17800 | conftest$ac_exeext conftest.$ac_ext |
| 17801 | fi |
| 17802 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17803 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17804 | echo "${ECHO_T}$ac_res" >&6; } |
| 17805 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17806 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17807 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 17808 | _ACEOF |
| 17809 | |
| 17810 | fi |
| 17811 | done |
| 17812 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17813 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17814 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17815 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17817 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17818 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17819 | ac_cpp='$CPP $CPPFLAGS' |
| 17820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17823 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17824 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17825 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17826 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17827 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17829 | /* confdefs.h. */ |
| 17830 | _ACEOF |
| 17831 | cat confdefs.h >>conftest.$ac_ext |
| 17832 | cat >>conftest.$ac_ext <<_ACEOF |
| 17833 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17834 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17835 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17836 | #include <stdlib.h> |
| 17837 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17838 | int |
| 17839 | main () |
| 17840 | { |
| 17841 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17842 | volatile double A, B; |
| 17843 | char Buffer[100]; |
| 17844 | A = 1; |
| 17845 | A /= 10.0; |
| 17846 | sprintf(Buffer, "%a", A); |
| 17847 | B = atof(Buffer); |
| 17848 | if (A != B) |
| 17849 | return (1); |
| 17850 | if (A != 0x1.999999999999ap-4) |
| 17851 | return (1); |
| 17852 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17853 | ; |
| 17854 | return 0; |
| 17855 | } |
| 17856 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17857 | rm -f conftest$ac_exeext |
| 17858 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17868 | { (case "(($ac_try" in |
| 17869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17870 | *) ac_try_echo=$ac_try;; |
| 17871 | esac |
| 17872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17873 | (eval "$ac_try") 2>&5 |
| 17874 | ac_status=$? |
| 17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17876 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17877 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17878 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17879 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17880 | echo "$as_me: failed program was:" >&5 |
| 17881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17882 | |
| 17883 | ( exit $ac_status ) |
| 17884 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17885 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17886 | 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] | 17887 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17888 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17889 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17890 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17891 | ac_cpp='$CPP $CPPFLAGS' |
| 17892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17895 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17897 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17898 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 17899 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17901 | cat >>confdefs.h <<\_ACEOF |
| 17902 | #define HAVE_PRINTF_A 1 |
| 17903 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17904 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17905 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 17906 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17908 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17909 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17910 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17912 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17913 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17914 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17915 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17916 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17917 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17918 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17919 | cat >conftest.$ac_ext <<_ACEOF |
| 17920 | /* confdefs.h. */ |
| 17921 | _ACEOF |
| 17922 | cat confdefs.h >>conftest.$ac_ext |
| 17923 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17924 | /* end confdefs.h. */ |
| 17925 | #include <stdlib.h> |
| 17926 | int |
| 17927 | main () |
| 17928 | { |
| 17929 | srand48(0);lrand48();drand48(); |
| 17930 | ; |
| 17931 | return 0; |
| 17932 | } |
| 17933 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17934 | rm -f conftest.$ac_objext |
| 17935 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
| 17942 | ac_status=$? |
| 17943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17944 | rm -f conftest.er1 |
| 17945 | cat conftest.err >&5 |
| 17946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17947 | (exit $ac_status); } && |
| 17948 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17949 | { (case "(($ac_try" in |
| 17950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17951 | *) ac_try_echo=$ac_try;; |
| 17952 | esac |
| 17953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17954 | (eval "$ac_try") 2>&5 |
| 17955 | ac_status=$? |
| 17956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17957 | (exit $ac_status); }; } && |
| 17958 | { ac_try='test -s conftest.$ac_objext' |
| 17959 | { (case "(($ac_try" in |
| 17960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17961 | *) ac_try_echo=$ac_try;; |
| 17962 | esac |
| 17963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17964 | (eval "$ac_try") 2>&5 |
| 17965 | ac_status=$? |
| 17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17967 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17968 | ac_cv_func_rand48=yes |
| 17969 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17970 | echo "$as_me: failed program was:" >&5 |
| 17971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17972 | |
| 17973 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17974 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17977 | ac_ext=c |
| 17978 | ac_cpp='$CPP $CPPFLAGS' |
| 17979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17982 | |
| 17983 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17984 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17985 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17986 | |
| 17987 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17988 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17989 | cat >>confdefs.h <<\_ACEOF |
| 17990 | #define HAVE_RAND48 1 |
| 17991 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17992 | |
| 17993 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 17994 | |
| 17995 | |
NAKAMURA Takumi | e29b0ac | 2011-02-09 04:18:48 +0000 | [diff] [blame] | 17996 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17997 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17998 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18000 | else |
| 18001 | cat >conftest.$ac_ext <<_ACEOF |
| 18002 | /* confdefs.h. */ |
| 18003 | _ACEOF |
| 18004 | cat confdefs.h >>conftest.$ac_ext |
| 18005 | cat >>conftest.$ac_ext <<_ACEOF |
| 18006 | /* end confdefs.h. */ |
| 18007 | $ac_includes_default |
| 18008 | int |
| 18009 | main () |
| 18010 | { |
| 18011 | #ifndef strerror_s |
| 18012 | char *p = (char *) strerror_s; |
| 18013 | return !p; |
| 18014 | #endif |
| 18015 | |
| 18016 | ; |
| 18017 | return 0; |
| 18018 | } |
| 18019 | _ACEOF |
| 18020 | rm -f conftest.$ac_objext |
| 18021 | if { (ac_try="$ac_compile" |
| 18022 | case "(($ac_try" in |
| 18023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18024 | *) ac_try_echo=$ac_try;; |
| 18025 | esac |
| 18026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18027 | (eval "$ac_compile") 2>conftest.er1 |
| 18028 | ac_status=$? |
| 18029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18030 | rm -f conftest.er1 |
| 18031 | cat conftest.err >&5 |
| 18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18033 | (exit $ac_status); } && |
| 18034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18035 | { (case "(($ac_try" in |
| 18036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18037 | *) ac_try_echo=$ac_try;; |
| 18038 | esac |
| 18039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18040 | (eval "$ac_try") 2>&5 |
| 18041 | ac_status=$? |
| 18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18043 | (exit $ac_status); }; } && |
| 18044 | { ac_try='test -s conftest.$ac_objext' |
| 18045 | { (case "(($ac_try" in |
| 18046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18047 | *) ac_try_echo=$ac_try;; |
| 18048 | esac |
| 18049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18050 | (eval "$ac_try") 2>&5 |
| 18051 | ac_status=$? |
| 18052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18053 | (exit $ac_status); }; }; then |
| 18054 | ac_cv_have_decl_strerror_s=yes |
| 18055 | else |
| 18056 | echo "$as_me: failed program was:" >&5 |
| 18057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18058 | |
| 18059 | ac_cv_have_decl_strerror_s=no |
| 18060 | fi |
| 18061 | |
| 18062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18063 | fi |
| 18064 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 18065 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 18066 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 18067 | |
| 18068 | cat >>confdefs.h <<_ACEOF |
| 18069 | #define HAVE_DECL_STRERROR_S 1 |
| 18070 | _ACEOF |
| 18071 | |
| 18072 | |
| 18073 | else |
| 18074 | cat >>confdefs.h <<_ACEOF |
| 18075 | #define HAVE_DECL_STRERROR_S 0 |
| 18076 | _ACEOF |
| 18077 | |
| 18078 | |
| 18079 | fi |
| 18080 | |
| 18081 | |
| 18082 | |
NAKAMURA Takumi | 1f6832a | 2011-02-05 15:11:53 +0000 | [diff] [blame] | 18083 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 18084 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 18085 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 18086 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 18087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18088 | else |
| 18089 | ac_check_lib_save_LIBS=$LIBS |
| 18090 | LIBS="-lgcc $LIBS" |
| 18091 | cat >conftest.$ac_ext <<_ACEOF |
| 18092 | /* confdefs.h. */ |
| 18093 | _ACEOF |
| 18094 | cat confdefs.h >>conftest.$ac_ext |
| 18095 | cat >>conftest.$ac_ext <<_ACEOF |
| 18096 | /* end confdefs.h. */ |
| 18097 | |
| 18098 | /* Override any GCC internal prototype to avoid an error. |
| 18099 | Use char because int might match the return type of a GCC |
| 18100 | builtin and then its argument prototype would still apply. */ |
| 18101 | #ifdef __cplusplus |
| 18102 | extern "C" |
| 18103 | #endif |
| 18104 | char _alloca (); |
| 18105 | int |
| 18106 | main () |
| 18107 | { |
| 18108 | return _alloca (); |
| 18109 | ; |
| 18110 | return 0; |
| 18111 | } |
| 18112 | _ACEOF |
| 18113 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18114 | if { (ac_try="$ac_link" |
| 18115 | case "(($ac_try" in |
| 18116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18117 | *) ac_try_echo=$ac_try;; |
| 18118 | esac |
| 18119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18120 | (eval "$ac_link") 2>conftest.er1 |
| 18121 | ac_status=$? |
| 18122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18123 | rm -f conftest.er1 |
| 18124 | cat conftest.err >&5 |
| 18125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18126 | (exit $ac_status); } && |
| 18127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18128 | { (case "(($ac_try" in |
| 18129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18130 | *) ac_try_echo=$ac_try;; |
| 18131 | esac |
| 18132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18133 | (eval "$ac_try") 2>&5 |
| 18134 | ac_status=$? |
| 18135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18136 | (exit $ac_status); }; } && |
| 18137 | { ac_try='test -s conftest$ac_exeext' |
| 18138 | { (case "(($ac_try" in |
| 18139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18140 | *) ac_try_echo=$ac_try;; |
| 18141 | esac |
| 18142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18143 | (eval "$ac_try") 2>&5 |
| 18144 | ac_status=$? |
| 18145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18146 | (exit $ac_status); }; }; then |
| 18147 | ac_cv_lib_gcc__alloca=yes |
| 18148 | else |
| 18149 | echo "$as_me: failed program was:" >&5 |
| 18150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18151 | |
| 18152 | ac_cv_lib_gcc__alloca=no |
| 18153 | fi |
| 18154 | |
| 18155 | rm -f core conftest.err conftest.$ac_objext \ |
| 18156 | conftest$ac_exeext conftest.$ac_ext |
| 18157 | LIBS=$ac_check_lib_save_LIBS |
| 18158 | fi |
| 18159 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 18160 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 18161 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 18162 | |
| 18163 | cat >>confdefs.h <<\_ACEOF |
| 18164 | #define HAVE__ALLOCA 1 |
| 18165 | _ACEOF |
| 18166 | |
| 18167 | fi |
| 18168 | |
| 18169 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 18170 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 18171 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 18172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18173 | else |
| 18174 | ac_check_lib_save_LIBS=$LIBS |
| 18175 | LIBS="-lgcc $LIBS" |
| 18176 | cat >conftest.$ac_ext <<_ACEOF |
| 18177 | /* confdefs.h. */ |
| 18178 | _ACEOF |
| 18179 | cat confdefs.h >>conftest.$ac_ext |
| 18180 | cat >>conftest.$ac_ext <<_ACEOF |
| 18181 | /* end confdefs.h. */ |
| 18182 | |
| 18183 | /* Override any GCC internal prototype to avoid an error. |
| 18184 | Use char because int might match the return type of a GCC |
| 18185 | builtin and then its argument prototype would still apply. */ |
| 18186 | #ifdef __cplusplus |
| 18187 | extern "C" |
| 18188 | #endif |
| 18189 | char __alloca (); |
| 18190 | int |
| 18191 | main () |
| 18192 | { |
| 18193 | return __alloca (); |
| 18194 | ; |
| 18195 | return 0; |
| 18196 | } |
| 18197 | _ACEOF |
| 18198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18199 | if { (ac_try="$ac_link" |
| 18200 | case "(($ac_try" in |
| 18201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18202 | *) ac_try_echo=$ac_try;; |
| 18203 | esac |
| 18204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18205 | (eval "$ac_link") 2>conftest.er1 |
| 18206 | ac_status=$? |
| 18207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18208 | rm -f conftest.er1 |
| 18209 | cat conftest.err >&5 |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); } && |
| 18212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18213 | { (case "(($ac_try" in |
| 18214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18215 | *) ac_try_echo=$ac_try;; |
| 18216 | esac |
| 18217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18218 | (eval "$ac_try") 2>&5 |
| 18219 | ac_status=$? |
| 18220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18221 | (exit $ac_status); }; } && |
| 18222 | { ac_try='test -s conftest$ac_exeext' |
| 18223 | { (case "(($ac_try" in |
| 18224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18225 | *) ac_try_echo=$ac_try;; |
| 18226 | esac |
| 18227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18228 | (eval "$ac_try") 2>&5 |
| 18229 | ac_status=$? |
| 18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18231 | (exit $ac_status); }; }; then |
| 18232 | ac_cv_lib_gcc___alloca=yes |
| 18233 | else |
| 18234 | echo "$as_me: failed program was:" >&5 |
| 18235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18236 | |
| 18237 | ac_cv_lib_gcc___alloca=no |
| 18238 | fi |
| 18239 | |
| 18240 | rm -f core conftest.err conftest.$ac_objext \ |
| 18241 | conftest$ac_exeext conftest.$ac_ext |
| 18242 | LIBS=$ac_check_lib_save_LIBS |
| 18243 | fi |
| 18244 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 18245 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 18246 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 18247 | |
| 18248 | cat >>confdefs.h <<\_ACEOF |
| 18249 | #define HAVE___ALLOCA 1 |
| 18250 | _ACEOF |
| 18251 | |
| 18252 | fi |
| 18253 | |
| 18254 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 18255 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 18256 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 18257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18258 | else |
| 18259 | ac_check_lib_save_LIBS=$LIBS |
| 18260 | LIBS="-lgcc $LIBS" |
| 18261 | cat >conftest.$ac_ext <<_ACEOF |
| 18262 | /* confdefs.h. */ |
| 18263 | _ACEOF |
| 18264 | cat confdefs.h >>conftest.$ac_ext |
| 18265 | cat >>conftest.$ac_ext <<_ACEOF |
| 18266 | /* end confdefs.h. */ |
| 18267 | |
| 18268 | /* Override any GCC internal prototype to avoid an error. |
| 18269 | Use char because int might match the return type of a GCC |
| 18270 | builtin and then its argument prototype would still apply. */ |
| 18271 | #ifdef __cplusplus |
| 18272 | extern "C" |
| 18273 | #endif |
| 18274 | char __chkstk (); |
| 18275 | int |
| 18276 | main () |
| 18277 | { |
| 18278 | return __chkstk (); |
| 18279 | ; |
| 18280 | return 0; |
| 18281 | } |
| 18282 | _ACEOF |
| 18283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18284 | if { (ac_try="$ac_link" |
| 18285 | case "(($ac_try" in |
| 18286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18287 | *) ac_try_echo=$ac_try;; |
| 18288 | esac |
| 18289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18290 | (eval "$ac_link") 2>conftest.er1 |
| 18291 | ac_status=$? |
| 18292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18293 | rm -f conftest.er1 |
| 18294 | cat conftest.err >&5 |
| 18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18296 | (exit $ac_status); } && |
| 18297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18298 | { (case "(($ac_try" in |
| 18299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18300 | *) ac_try_echo=$ac_try;; |
| 18301 | esac |
| 18302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18303 | (eval "$ac_try") 2>&5 |
| 18304 | ac_status=$? |
| 18305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18306 | (exit $ac_status); }; } && |
| 18307 | { ac_try='test -s conftest$ac_exeext' |
| 18308 | { (case "(($ac_try" in |
| 18309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18310 | *) ac_try_echo=$ac_try;; |
| 18311 | esac |
| 18312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18313 | (eval "$ac_try") 2>&5 |
| 18314 | ac_status=$? |
| 18315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18316 | (exit $ac_status); }; }; then |
| 18317 | ac_cv_lib_gcc___chkstk=yes |
| 18318 | else |
| 18319 | echo "$as_me: failed program was:" >&5 |
| 18320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18321 | |
| 18322 | ac_cv_lib_gcc___chkstk=no |
| 18323 | fi |
| 18324 | |
| 18325 | rm -f core conftest.err conftest.$ac_objext \ |
| 18326 | conftest$ac_exeext conftest.$ac_ext |
| 18327 | LIBS=$ac_check_lib_save_LIBS |
| 18328 | fi |
| 18329 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18330 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18331 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18332 | |
| 18333 | cat >>confdefs.h <<\_ACEOF |
| 18334 | #define HAVE___CHKSTK 1 |
| 18335 | _ACEOF |
| 18336 | |
| 18337 | fi |
| 18338 | |
| 18339 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18340 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18341 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18343 | else |
| 18344 | ac_check_lib_save_LIBS=$LIBS |
| 18345 | LIBS="-lgcc $LIBS" |
| 18346 | cat >conftest.$ac_ext <<_ACEOF |
| 18347 | /* confdefs.h. */ |
| 18348 | _ACEOF |
| 18349 | cat confdefs.h >>conftest.$ac_ext |
| 18350 | cat >>conftest.$ac_ext <<_ACEOF |
| 18351 | /* end confdefs.h. */ |
| 18352 | |
| 18353 | /* Override any GCC internal prototype to avoid an error. |
| 18354 | Use char because int might match the return type of a GCC |
| 18355 | builtin and then its argument prototype would still apply. */ |
| 18356 | #ifdef __cplusplus |
| 18357 | extern "C" |
| 18358 | #endif |
| 18359 | char ___chkstk (); |
| 18360 | int |
| 18361 | main () |
| 18362 | { |
| 18363 | return ___chkstk (); |
| 18364 | ; |
| 18365 | return 0; |
| 18366 | } |
| 18367 | _ACEOF |
| 18368 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18369 | if { (ac_try="$ac_link" |
| 18370 | case "(($ac_try" in |
| 18371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18372 | *) ac_try_echo=$ac_try;; |
| 18373 | esac |
| 18374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18375 | (eval "$ac_link") 2>conftest.er1 |
| 18376 | ac_status=$? |
| 18377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18378 | rm -f conftest.er1 |
| 18379 | cat conftest.err >&5 |
| 18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18381 | (exit $ac_status); } && |
| 18382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18383 | { (case "(($ac_try" in |
| 18384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18385 | *) ac_try_echo=$ac_try;; |
| 18386 | esac |
| 18387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18388 | (eval "$ac_try") 2>&5 |
| 18389 | ac_status=$? |
| 18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18391 | (exit $ac_status); }; } && |
| 18392 | { ac_try='test -s conftest$ac_exeext' |
| 18393 | { (case "(($ac_try" in |
| 18394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18395 | *) ac_try_echo=$ac_try;; |
| 18396 | esac |
| 18397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18398 | (eval "$ac_try") 2>&5 |
| 18399 | ac_status=$? |
| 18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18401 | (exit $ac_status); }; }; then |
| 18402 | ac_cv_lib_gcc____chkstk=yes |
| 18403 | else |
| 18404 | echo "$as_me: failed program was:" >&5 |
| 18405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18406 | |
| 18407 | ac_cv_lib_gcc____chkstk=no |
| 18408 | fi |
| 18409 | |
| 18410 | rm -f core conftest.err conftest.$ac_objext \ |
| 18411 | conftest$ac_exeext conftest.$ac_ext |
| 18412 | LIBS=$ac_check_lib_save_LIBS |
| 18413 | fi |
| 18414 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18415 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18416 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18417 | |
| 18418 | cat >>confdefs.h <<\_ACEOF |
| 18419 | #define HAVE____CHKSTK 1 |
| 18420 | _ACEOF |
| 18421 | |
| 18422 | fi |
| 18423 | |
| 18424 | |
| 18425 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18426 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18427 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18429 | else |
| 18430 | ac_check_lib_save_LIBS=$LIBS |
| 18431 | LIBS="-lgcc $LIBS" |
| 18432 | cat >conftest.$ac_ext <<_ACEOF |
| 18433 | /* confdefs.h. */ |
| 18434 | _ACEOF |
| 18435 | cat confdefs.h >>conftest.$ac_ext |
| 18436 | cat >>conftest.$ac_ext <<_ACEOF |
| 18437 | /* end confdefs.h. */ |
| 18438 | |
| 18439 | /* Override any GCC internal prototype to avoid an error. |
| 18440 | Use char because int might match the return type of a GCC |
| 18441 | builtin and then its argument prototype would still apply. */ |
| 18442 | #ifdef __cplusplus |
| 18443 | extern "C" |
| 18444 | #endif |
| 18445 | char __ashldi3 (); |
| 18446 | int |
| 18447 | main () |
| 18448 | { |
| 18449 | return __ashldi3 (); |
| 18450 | ; |
| 18451 | return 0; |
| 18452 | } |
| 18453 | _ACEOF |
| 18454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18455 | if { (ac_try="$ac_link" |
| 18456 | case "(($ac_try" in |
| 18457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18458 | *) ac_try_echo=$ac_try;; |
| 18459 | esac |
| 18460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18461 | (eval "$ac_link") 2>conftest.er1 |
| 18462 | ac_status=$? |
| 18463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18464 | rm -f conftest.er1 |
| 18465 | cat conftest.err >&5 |
| 18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18467 | (exit $ac_status); } && |
| 18468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18469 | { (case "(($ac_try" in |
| 18470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18471 | *) ac_try_echo=$ac_try;; |
| 18472 | esac |
| 18473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18474 | (eval "$ac_try") 2>&5 |
| 18475 | ac_status=$? |
| 18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18477 | (exit $ac_status); }; } && |
| 18478 | { ac_try='test -s conftest$ac_exeext' |
| 18479 | { (case "(($ac_try" in |
| 18480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18481 | *) ac_try_echo=$ac_try;; |
| 18482 | esac |
| 18483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18484 | (eval "$ac_try") 2>&5 |
| 18485 | ac_status=$? |
| 18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18487 | (exit $ac_status); }; }; then |
| 18488 | ac_cv_lib_gcc___ashldi3=yes |
| 18489 | else |
| 18490 | echo "$as_me: failed program was:" >&5 |
| 18491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18492 | |
| 18493 | ac_cv_lib_gcc___ashldi3=no |
| 18494 | fi |
| 18495 | |
| 18496 | rm -f core conftest.err conftest.$ac_objext \ |
| 18497 | conftest$ac_exeext conftest.$ac_ext |
| 18498 | LIBS=$ac_check_lib_save_LIBS |
| 18499 | fi |
| 18500 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18501 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18502 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18503 | |
| 18504 | cat >>confdefs.h <<\_ACEOF |
| 18505 | #define HAVE___ASHLDI3 1 |
| 18506 | _ACEOF |
| 18507 | |
| 18508 | fi |
| 18509 | |
| 18510 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18511 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18512 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18514 | else |
| 18515 | ac_check_lib_save_LIBS=$LIBS |
| 18516 | LIBS="-lgcc $LIBS" |
| 18517 | cat >conftest.$ac_ext <<_ACEOF |
| 18518 | /* confdefs.h. */ |
| 18519 | _ACEOF |
| 18520 | cat confdefs.h >>conftest.$ac_ext |
| 18521 | cat >>conftest.$ac_ext <<_ACEOF |
| 18522 | /* end confdefs.h. */ |
| 18523 | |
| 18524 | /* Override any GCC internal prototype to avoid an error. |
| 18525 | Use char because int might match the return type of a GCC |
| 18526 | builtin and then its argument prototype would still apply. */ |
| 18527 | #ifdef __cplusplus |
| 18528 | extern "C" |
| 18529 | #endif |
| 18530 | char __ashrdi3 (); |
| 18531 | int |
| 18532 | main () |
| 18533 | { |
| 18534 | return __ashrdi3 (); |
| 18535 | ; |
| 18536 | return 0; |
| 18537 | } |
| 18538 | _ACEOF |
| 18539 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18540 | if { (ac_try="$ac_link" |
| 18541 | case "(($ac_try" in |
| 18542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18543 | *) ac_try_echo=$ac_try;; |
| 18544 | esac |
| 18545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18546 | (eval "$ac_link") 2>conftest.er1 |
| 18547 | ac_status=$? |
| 18548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18549 | rm -f conftest.er1 |
| 18550 | cat conftest.err >&5 |
| 18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18552 | (exit $ac_status); } && |
| 18553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18554 | { (case "(($ac_try" in |
| 18555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18556 | *) ac_try_echo=$ac_try;; |
| 18557 | esac |
| 18558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18559 | (eval "$ac_try") 2>&5 |
| 18560 | ac_status=$? |
| 18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18562 | (exit $ac_status); }; } && |
| 18563 | { ac_try='test -s conftest$ac_exeext' |
| 18564 | { (case "(($ac_try" in |
| 18565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18566 | *) ac_try_echo=$ac_try;; |
| 18567 | esac |
| 18568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18569 | (eval "$ac_try") 2>&5 |
| 18570 | ac_status=$? |
| 18571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18572 | (exit $ac_status); }; }; then |
| 18573 | ac_cv_lib_gcc___ashrdi3=yes |
| 18574 | else |
| 18575 | echo "$as_me: failed program was:" >&5 |
| 18576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18577 | |
| 18578 | ac_cv_lib_gcc___ashrdi3=no |
| 18579 | fi |
| 18580 | |
| 18581 | rm -f core conftest.err conftest.$ac_objext \ |
| 18582 | conftest$ac_exeext conftest.$ac_ext |
| 18583 | LIBS=$ac_check_lib_save_LIBS |
| 18584 | fi |
| 18585 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18586 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18587 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18588 | |
| 18589 | cat >>confdefs.h <<\_ACEOF |
| 18590 | #define HAVE___ASHRDI3 1 |
| 18591 | _ACEOF |
| 18592 | |
| 18593 | fi |
| 18594 | |
| 18595 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18596 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18597 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18599 | else |
| 18600 | ac_check_lib_save_LIBS=$LIBS |
| 18601 | LIBS="-lgcc $LIBS" |
| 18602 | cat >conftest.$ac_ext <<_ACEOF |
| 18603 | /* confdefs.h. */ |
| 18604 | _ACEOF |
| 18605 | cat confdefs.h >>conftest.$ac_ext |
| 18606 | cat >>conftest.$ac_ext <<_ACEOF |
| 18607 | /* end confdefs.h. */ |
| 18608 | |
| 18609 | /* Override any GCC internal prototype to avoid an error. |
| 18610 | Use char because int might match the return type of a GCC |
| 18611 | builtin and then its argument prototype would still apply. */ |
| 18612 | #ifdef __cplusplus |
| 18613 | extern "C" |
| 18614 | #endif |
| 18615 | char __divdi3 (); |
| 18616 | int |
| 18617 | main () |
| 18618 | { |
| 18619 | return __divdi3 (); |
| 18620 | ; |
| 18621 | return 0; |
| 18622 | } |
| 18623 | _ACEOF |
| 18624 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18625 | if { (ac_try="$ac_link" |
| 18626 | case "(($ac_try" in |
| 18627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18628 | *) ac_try_echo=$ac_try;; |
| 18629 | esac |
| 18630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18631 | (eval "$ac_link") 2>conftest.er1 |
| 18632 | ac_status=$? |
| 18633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18634 | rm -f conftest.er1 |
| 18635 | cat conftest.err >&5 |
| 18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18637 | (exit $ac_status); } && |
| 18638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18639 | { (case "(($ac_try" in |
| 18640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18641 | *) ac_try_echo=$ac_try;; |
| 18642 | esac |
| 18643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18644 | (eval "$ac_try") 2>&5 |
| 18645 | ac_status=$? |
| 18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18647 | (exit $ac_status); }; } && |
| 18648 | { ac_try='test -s conftest$ac_exeext' |
| 18649 | { (case "(($ac_try" in |
| 18650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18651 | *) ac_try_echo=$ac_try;; |
| 18652 | esac |
| 18653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18654 | (eval "$ac_try") 2>&5 |
| 18655 | ac_status=$? |
| 18656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18657 | (exit $ac_status); }; }; then |
| 18658 | ac_cv_lib_gcc___divdi3=yes |
| 18659 | else |
| 18660 | echo "$as_me: failed program was:" >&5 |
| 18661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18662 | |
| 18663 | ac_cv_lib_gcc___divdi3=no |
| 18664 | fi |
| 18665 | |
| 18666 | rm -f core conftest.err conftest.$ac_objext \ |
| 18667 | conftest$ac_exeext conftest.$ac_ext |
| 18668 | LIBS=$ac_check_lib_save_LIBS |
| 18669 | fi |
| 18670 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18671 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18672 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18673 | |
| 18674 | cat >>confdefs.h <<\_ACEOF |
| 18675 | #define HAVE___DIVDI3 1 |
| 18676 | _ACEOF |
| 18677 | |
| 18678 | fi |
| 18679 | |
| 18680 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18681 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18682 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18684 | else |
| 18685 | ac_check_lib_save_LIBS=$LIBS |
| 18686 | LIBS="-lgcc $LIBS" |
| 18687 | cat >conftest.$ac_ext <<_ACEOF |
| 18688 | /* confdefs.h. */ |
| 18689 | _ACEOF |
| 18690 | cat confdefs.h >>conftest.$ac_ext |
| 18691 | cat >>conftest.$ac_ext <<_ACEOF |
| 18692 | /* end confdefs.h. */ |
| 18693 | |
| 18694 | /* Override any GCC internal prototype to avoid an error. |
| 18695 | Use char because int might match the return type of a GCC |
| 18696 | builtin and then its argument prototype would still apply. */ |
| 18697 | #ifdef __cplusplus |
| 18698 | extern "C" |
| 18699 | #endif |
| 18700 | char __fixdfdi (); |
| 18701 | int |
| 18702 | main () |
| 18703 | { |
| 18704 | return __fixdfdi (); |
| 18705 | ; |
| 18706 | return 0; |
| 18707 | } |
| 18708 | _ACEOF |
| 18709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18710 | if { (ac_try="$ac_link" |
| 18711 | case "(($ac_try" in |
| 18712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18713 | *) ac_try_echo=$ac_try;; |
| 18714 | esac |
| 18715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18716 | (eval "$ac_link") 2>conftest.er1 |
| 18717 | ac_status=$? |
| 18718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18719 | rm -f conftest.er1 |
| 18720 | cat conftest.err >&5 |
| 18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18722 | (exit $ac_status); } && |
| 18723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18724 | { (case "(($ac_try" in |
| 18725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18726 | *) ac_try_echo=$ac_try;; |
| 18727 | esac |
| 18728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18729 | (eval "$ac_try") 2>&5 |
| 18730 | ac_status=$? |
| 18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18732 | (exit $ac_status); }; } && |
| 18733 | { ac_try='test -s conftest$ac_exeext' |
| 18734 | { (case "(($ac_try" in |
| 18735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18736 | *) ac_try_echo=$ac_try;; |
| 18737 | esac |
| 18738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18739 | (eval "$ac_try") 2>&5 |
| 18740 | ac_status=$? |
| 18741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18742 | (exit $ac_status); }; }; then |
| 18743 | ac_cv_lib_gcc___fixdfdi=yes |
| 18744 | else |
| 18745 | echo "$as_me: failed program was:" >&5 |
| 18746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18747 | |
| 18748 | ac_cv_lib_gcc___fixdfdi=no |
| 18749 | fi |
| 18750 | |
| 18751 | rm -f core conftest.err conftest.$ac_objext \ |
| 18752 | conftest$ac_exeext conftest.$ac_ext |
| 18753 | LIBS=$ac_check_lib_save_LIBS |
| 18754 | fi |
| 18755 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18756 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18757 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18758 | |
| 18759 | cat >>confdefs.h <<\_ACEOF |
| 18760 | #define HAVE___FIXDFDI 1 |
| 18761 | _ACEOF |
| 18762 | |
| 18763 | fi |
| 18764 | |
| 18765 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18766 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18767 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18769 | else |
| 18770 | ac_check_lib_save_LIBS=$LIBS |
| 18771 | LIBS="-lgcc $LIBS" |
| 18772 | cat >conftest.$ac_ext <<_ACEOF |
| 18773 | /* confdefs.h. */ |
| 18774 | _ACEOF |
| 18775 | cat confdefs.h >>conftest.$ac_ext |
| 18776 | cat >>conftest.$ac_ext <<_ACEOF |
| 18777 | /* end confdefs.h. */ |
| 18778 | |
| 18779 | /* Override any GCC internal prototype to avoid an error. |
| 18780 | Use char because int might match the return type of a GCC |
| 18781 | builtin and then its argument prototype would still apply. */ |
| 18782 | #ifdef __cplusplus |
| 18783 | extern "C" |
| 18784 | #endif |
| 18785 | char __fixsfdi (); |
| 18786 | int |
| 18787 | main () |
| 18788 | { |
| 18789 | return __fixsfdi (); |
| 18790 | ; |
| 18791 | return 0; |
| 18792 | } |
| 18793 | _ACEOF |
| 18794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18795 | if { (ac_try="$ac_link" |
| 18796 | case "(($ac_try" in |
| 18797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18798 | *) ac_try_echo=$ac_try;; |
| 18799 | esac |
| 18800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18801 | (eval "$ac_link") 2>conftest.er1 |
| 18802 | ac_status=$? |
| 18803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18804 | rm -f conftest.er1 |
| 18805 | cat conftest.err >&5 |
| 18806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18807 | (exit $ac_status); } && |
| 18808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18809 | { (case "(($ac_try" in |
| 18810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18811 | *) ac_try_echo=$ac_try;; |
| 18812 | esac |
| 18813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18814 | (eval "$ac_try") 2>&5 |
| 18815 | ac_status=$? |
| 18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18817 | (exit $ac_status); }; } && |
| 18818 | { ac_try='test -s conftest$ac_exeext' |
| 18819 | { (case "(($ac_try" in |
| 18820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18821 | *) ac_try_echo=$ac_try;; |
| 18822 | esac |
| 18823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18824 | (eval "$ac_try") 2>&5 |
| 18825 | ac_status=$? |
| 18826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18827 | (exit $ac_status); }; }; then |
| 18828 | ac_cv_lib_gcc___fixsfdi=yes |
| 18829 | else |
| 18830 | echo "$as_me: failed program was:" >&5 |
| 18831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18832 | |
| 18833 | ac_cv_lib_gcc___fixsfdi=no |
| 18834 | fi |
| 18835 | |
| 18836 | rm -f core conftest.err conftest.$ac_objext \ |
| 18837 | conftest$ac_exeext conftest.$ac_ext |
| 18838 | LIBS=$ac_check_lib_save_LIBS |
| 18839 | fi |
| 18840 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18841 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18842 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18843 | |
| 18844 | cat >>confdefs.h <<\_ACEOF |
| 18845 | #define HAVE___FIXSFDI 1 |
| 18846 | _ACEOF |
| 18847 | |
| 18848 | fi |
| 18849 | |
| 18850 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18851 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18852 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18854 | else |
| 18855 | ac_check_lib_save_LIBS=$LIBS |
| 18856 | LIBS="-lgcc $LIBS" |
| 18857 | cat >conftest.$ac_ext <<_ACEOF |
| 18858 | /* confdefs.h. */ |
| 18859 | _ACEOF |
| 18860 | cat confdefs.h >>conftest.$ac_ext |
| 18861 | cat >>conftest.$ac_ext <<_ACEOF |
| 18862 | /* end confdefs.h. */ |
| 18863 | |
| 18864 | /* Override any GCC internal prototype to avoid an error. |
| 18865 | Use char because int might match the return type of a GCC |
| 18866 | builtin and then its argument prototype would still apply. */ |
| 18867 | #ifdef __cplusplus |
| 18868 | extern "C" |
| 18869 | #endif |
| 18870 | char __floatdidf (); |
| 18871 | int |
| 18872 | main () |
| 18873 | { |
| 18874 | return __floatdidf (); |
| 18875 | ; |
| 18876 | return 0; |
| 18877 | } |
| 18878 | _ACEOF |
| 18879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18880 | if { (ac_try="$ac_link" |
| 18881 | case "(($ac_try" in |
| 18882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18883 | *) ac_try_echo=$ac_try;; |
| 18884 | esac |
| 18885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18886 | (eval "$ac_link") 2>conftest.er1 |
| 18887 | ac_status=$? |
| 18888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18889 | rm -f conftest.er1 |
| 18890 | cat conftest.err >&5 |
| 18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18892 | (exit $ac_status); } && |
| 18893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18894 | { (case "(($ac_try" in |
| 18895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18896 | *) ac_try_echo=$ac_try;; |
| 18897 | esac |
| 18898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18899 | (eval "$ac_try") 2>&5 |
| 18900 | ac_status=$? |
| 18901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18902 | (exit $ac_status); }; } && |
| 18903 | { ac_try='test -s conftest$ac_exeext' |
| 18904 | { (case "(($ac_try" in |
| 18905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18906 | *) ac_try_echo=$ac_try;; |
| 18907 | esac |
| 18908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18909 | (eval "$ac_try") 2>&5 |
| 18910 | ac_status=$? |
| 18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18912 | (exit $ac_status); }; }; then |
| 18913 | ac_cv_lib_gcc___floatdidf=yes |
| 18914 | else |
| 18915 | echo "$as_me: failed program was:" >&5 |
| 18916 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18917 | |
| 18918 | ac_cv_lib_gcc___floatdidf=no |
| 18919 | fi |
| 18920 | |
| 18921 | rm -f core conftest.err conftest.$ac_objext \ |
| 18922 | conftest$ac_exeext conftest.$ac_ext |
| 18923 | LIBS=$ac_check_lib_save_LIBS |
| 18924 | fi |
| 18925 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18926 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18927 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18928 | |
| 18929 | cat >>confdefs.h <<\_ACEOF |
| 18930 | #define HAVE___FLOATDIDF 1 |
| 18931 | _ACEOF |
| 18932 | |
| 18933 | fi |
| 18934 | |
| 18935 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18936 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18937 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18939 | else |
| 18940 | ac_check_lib_save_LIBS=$LIBS |
| 18941 | LIBS="-lgcc $LIBS" |
| 18942 | cat >conftest.$ac_ext <<_ACEOF |
| 18943 | /* confdefs.h. */ |
| 18944 | _ACEOF |
| 18945 | cat confdefs.h >>conftest.$ac_ext |
| 18946 | cat >>conftest.$ac_ext <<_ACEOF |
| 18947 | /* end confdefs.h. */ |
| 18948 | |
| 18949 | /* Override any GCC internal prototype to avoid an error. |
| 18950 | Use char because int might match the return type of a GCC |
| 18951 | builtin and then its argument prototype would still apply. */ |
| 18952 | #ifdef __cplusplus |
| 18953 | extern "C" |
| 18954 | #endif |
| 18955 | char __lshrdi3 (); |
| 18956 | int |
| 18957 | main () |
| 18958 | { |
| 18959 | return __lshrdi3 (); |
| 18960 | ; |
| 18961 | return 0; |
| 18962 | } |
| 18963 | _ACEOF |
| 18964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18965 | if { (ac_try="$ac_link" |
| 18966 | case "(($ac_try" in |
| 18967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18968 | *) ac_try_echo=$ac_try;; |
| 18969 | esac |
| 18970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18971 | (eval "$ac_link") 2>conftest.er1 |
| 18972 | ac_status=$? |
| 18973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18974 | rm -f conftest.er1 |
| 18975 | cat conftest.err >&5 |
| 18976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18977 | (exit $ac_status); } && |
| 18978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18979 | { (case "(($ac_try" in |
| 18980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18981 | *) ac_try_echo=$ac_try;; |
| 18982 | esac |
| 18983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18984 | (eval "$ac_try") 2>&5 |
| 18985 | ac_status=$? |
| 18986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18987 | (exit $ac_status); }; } && |
| 18988 | { ac_try='test -s conftest$ac_exeext' |
| 18989 | { (case "(($ac_try" in |
| 18990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18991 | *) ac_try_echo=$ac_try;; |
| 18992 | esac |
| 18993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18994 | (eval "$ac_try") 2>&5 |
| 18995 | ac_status=$? |
| 18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18997 | (exit $ac_status); }; }; then |
| 18998 | ac_cv_lib_gcc___lshrdi3=yes |
| 18999 | else |
| 19000 | echo "$as_me: failed program was:" >&5 |
| 19001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19002 | |
| 19003 | ac_cv_lib_gcc___lshrdi3=no |
| 19004 | fi |
| 19005 | |
| 19006 | rm -f core conftest.err conftest.$ac_objext \ |
| 19007 | conftest$ac_exeext conftest.$ac_ext |
| 19008 | LIBS=$ac_check_lib_save_LIBS |
| 19009 | fi |
| 19010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 19011 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 19012 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 19013 | |
| 19014 | cat >>confdefs.h <<\_ACEOF |
| 19015 | #define HAVE___LSHRDI3 1 |
| 19016 | _ACEOF |
| 19017 | |
| 19018 | fi |
| 19019 | |
| 19020 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 19021 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 19022 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 19023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19024 | else |
| 19025 | ac_check_lib_save_LIBS=$LIBS |
| 19026 | LIBS="-lgcc $LIBS" |
| 19027 | cat >conftest.$ac_ext <<_ACEOF |
| 19028 | /* confdefs.h. */ |
| 19029 | _ACEOF |
| 19030 | cat confdefs.h >>conftest.$ac_ext |
| 19031 | cat >>conftest.$ac_ext <<_ACEOF |
| 19032 | /* end confdefs.h. */ |
| 19033 | |
| 19034 | /* Override any GCC internal prototype to avoid an error. |
| 19035 | Use char because int might match the return type of a GCC |
| 19036 | builtin and then its argument prototype would still apply. */ |
| 19037 | #ifdef __cplusplus |
| 19038 | extern "C" |
| 19039 | #endif |
| 19040 | char __moddi3 (); |
| 19041 | int |
| 19042 | main () |
| 19043 | { |
| 19044 | return __moddi3 (); |
| 19045 | ; |
| 19046 | return 0; |
| 19047 | } |
| 19048 | _ACEOF |
| 19049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19050 | if { (ac_try="$ac_link" |
| 19051 | case "(($ac_try" in |
| 19052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19053 | *) ac_try_echo=$ac_try;; |
| 19054 | esac |
| 19055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19056 | (eval "$ac_link") 2>conftest.er1 |
| 19057 | ac_status=$? |
| 19058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19059 | rm -f conftest.er1 |
| 19060 | cat conftest.err >&5 |
| 19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19062 | (exit $ac_status); } && |
| 19063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19064 | { (case "(($ac_try" in |
| 19065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19066 | *) ac_try_echo=$ac_try;; |
| 19067 | esac |
| 19068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19069 | (eval "$ac_try") 2>&5 |
| 19070 | ac_status=$? |
| 19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19072 | (exit $ac_status); }; } && |
| 19073 | { ac_try='test -s conftest$ac_exeext' |
| 19074 | { (case "(($ac_try" in |
| 19075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19076 | *) ac_try_echo=$ac_try;; |
| 19077 | esac |
| 19078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19079 | (eval "$ac_try") 2>&5 |
| 19080 | ac_status=$? |
| 19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19082 | (exit $ac_status); }; }; then |
| 19083 | ac_cv_lib_gcc___moddi3=yes |
| 19084 | else |
| 19085 | echo "$as_me: failed program was:" >&5 |
| 19086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19087 | |
| 19088 | ac_cv_lib_gcc___moddi3=no |
| 19089 | fi |
| 19090 | |
| 19091 | rm -f core conftest.err conftest.$ac_objext \ |
| 19092 | conftest$ac_exeext conftest.$ac_ext |
| 19093 | LIBS=$ac_check_lib_save_LIBS |
| 19094 | fi |
| 19095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 19096 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 19097 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 19098 | |
| 19099 | cat >>confdefs.h <<\_ACEOF |
| 19100 | #define HAVE___MODDI3 1 |
| 19101 | _ACEOF |
| 19102 | |
| 19103 | fi |
| 19104 | |
| 19105 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 19106 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 19107 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 19108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19109 | else |
| 19110 | ac_check_lib_save_LIBS=$LIBS |
| 19111 | LIBS="-lgcc $LIBS" |
| 19112 | cat >conftest.$ac_ext <<_ACEOF |
| 19113 | /* confdefs.h. */ |
| 19114 | _ACEOF |
| 19115 | cat confdefs.h >>conftest.$ac_ext |
| 19116 | cat >>conftest.$ac_ext <<_ACEOF |
| 19117 | /* end confdefs.h. */ |
| 19118 | |
| 19119 | /* Override any GCC internal prototype to avoid an error. |
| 19120 | Use char because int might match the return type of a GCC |
| 19121 | builtin and then its argument prototype would still apply. */ |
| 19122 | #ifdef __cplusplus |
| 19123 | extern "C" |
| 19124 | #endif |
| 19125 | char __udivdi3 (); |
| 19126 | int |
| 19127 | main () |
| 19128 | { |
| 19129 | return __udivdi3 (); |
| 19130 | ; |
| 19131 | return 0; |
| 19132 | } |
| 19133 | _ACEOF |
| 19134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19135 | if { (ac_try="$ac_link" |
| 19136 | case "(($ac_try" in |
| 19137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19138 | *) ac_try_echo=$ac_try;; |
| 19139 | esac |
| 19140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19141 | (eval "$ac_link") 2>conftest.er1 |
| 19142 | ac_status=$? |
| 19143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19144 | rm -f conftest.er1 |
| 19145 | cat conftest.err >&5 |
| 19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19147 | (exit $ac_status); } && |
| 19148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19149 | { (case "(($ac_try" in |
| 19150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19151 | *) ac_try_echo=$ac_try;; |
| 19152 | esac |
| 19153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19154 | (eval "$ac_try") 2>&5 |
| 19155 | ac_status=$? |
| 19156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19157 | (exit $ac_status); }; } && |
| 19158 | { ac_try='test -s conftest$ac_exeext' |
| 19159 | { (case "(($ac_try" in |
| 19160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19161 | *) ac_try_echo=$ac_try;; |
| 19162 | esac |
| 19163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19164 | (eval "$ac_try") 2>&5 |
| 19165 | ac_status=$? |
| 19166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19167 | (exit $ac_status); }; }; then |
| 19168 | ac_cv_lib_gcc___udivdi3=yes |
| 19169 | else |
| 19170 | echo "$as_me: failed program was:" >&5 |
| 19171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19172 | |
| 19173 | ac_cv_lib_gcc___udivdi3=no |
| 19174 | fi |
| 19175 | |
| 19176 | rm -f core conftest.err conftest.$ac_objext \ |
| 19177 | conftest$ac_exeext conftest.$ac_ext |
| 19178 | LIBS=$ac_check_lib_save_LIBS |
| 19179 | fi |
| 19180 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 19181 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 19182 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 19183 | |
| 19184 | cat >>confdefs.h <<\_ACEOF |
| 19185 | #define HAVE___UDIVDI3 1 |
| 19186 | _ACEOF |
| 19187 | |
| 19188 | fi |
| 19189 | |
| 19190 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 19191 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 19192 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 19193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19194 | else |
| 19195 | ac_check_lib_save_LIBS=$LIBS |
| 19196 | LIBS="-lgcc $LIBS" |
| 19197 | cat >conftest.$ac_ext <<_ACEOF |
| 19198 | /* confdefs.h. */ |
| 19199 | _ACEOF |
| 19200 | cat confdefs.h >>conftest.$ac_ext |
| 19201 | cat >>conftest.$ac_ext <<_ACEOF |
| 19202 | /* end confdefs.h. */ |
| 19203 | |
| 19204 | /* Override any GCC internal prototype to avoid an error. |
| 19205 | Use char because int might match the return type of a GCC |
| 19206 | builtin and then its argument prototype would still apply. */ |
| 19207 | #ifdef __cplusplus |
| 19208 | extern "C" |
| 19209 | #endif |
| 19210 | char __umoddi3 (); |
| 19211 | int |
| 19212 | main () |
| 19213 | { |
| 19214 | return __umoddi3 (); |
| 19215 | ; |
| 19216 | return 0; |
| 19217 | } |
| 19218 | _ACEOF |
| 19219 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19220 | if { (ac_try="$ac_link" |
| 19221 | case "(($ac_try" in |
| 19222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19223 | *) ac_try_echo=$ac_try;; |
| 19224 | esac |
| 19225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19226 | (eval "$ac_link") 2>conftest.er1 |
| 19227 | ac_status=$? |
| 19228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19229 | rm -f conftest.er1 |
| 19230 | cat conftest.err >&5 |
| 19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19232 | (exit $ac_status); } && |
| 19233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19234 | { (case "(($ac_try" in |
| 19235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19236 | *) ac_try_echo=$ac_try;; |
| 19237 | esac |
| 19238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19239 | (eval "$ac_try") 2>&5 |
| 19240 | ac_status=$? |
| 19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19242 | (exit $ac_status); }; } && |
| 19243 | { ac_try='test -s conftest$ac_exeext' |
| 19244 | { (case "(($ac_try" in |
| 19245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19246 | *) ac_try_echo=$ac_try;; |
| 19247 | esac |
| 19248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19249 | (eval "$ac_try") 2>&5 |
| 19250 | ac_status=$? |
| 19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19252 | (exit $ac_status); }; }; then |
| 19253 | ac_cv_lib_gcc___umoddi3=yes |
| 19254 | else |
| 19255 | echo "$as_me: failed program was:" >&5 |
| 19256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19257 | |
| 19258 | ac_cv_lib_gcc___umoddi3=no |
| 19259 | fi |
| 19260 | |
| 19261 | rm -f core conftest.err conftest.$ac_objext \ |
| 19262 | conftest$ac_exeext conftest.$ac_ext |
| 19263 | LIBS=$ac_check_lib_save_LIBS |
| 19264 | fi |
| 19265 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 19266 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 19267 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 19268 | |
| 19269 | cat >>confdefs.h <<\_ACEOF |
| 19270 | #define HAVE___UMODDI3 1 |
| 19271 | _ACEOF |
| 19272 | |
| 19273 | fi |
| 19274 | |
| 19275 | |
| 19276 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 19277 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 19278 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 19279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19280 | else |
| 19281 | ac_check_lib_save_LIBS=$LIBS |
| 19282 | LIBS="-lgcc $LIBS" |
| 19283 | cat >conftest.$ac_ext <<_ACEOF |
| 19284 | /* confdefs.h. */ |
| 19285 | _ACEOF |
| 19286 | cat confdefs.h >>conftest.$ac_ext |
| 19287 | cat >>conftest.$ac_ext <<_ACEOF |
| 19288 | /* end confdefs.h. */ |
| 19289 | |
| 19290 | /* Override any GCC internal prototype to avoid an error. |
| 19291 | Use char because int might match the return type of a GCC |
| 19292 | builtin and then its argument prototype would still apply. */ |
| 19293 | #ifdef __cplusplus |
| 19294 | extern "C" |
| 19295 | #endif |
| 19296 | char __main (); |
| 19297 | int |
| 19298 | main () |
| 19299 | { |
| 19300 | return __main (); |
| 19301 | ; |
| 19302 | return 0; |
| 19303 | } |
| 19304 | _ACEOF |
| 19305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19306 | if { (ac_try="$ac_link" |
| 19307 | case "(($ac_try" in |
| 19308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19309 | *) ac_try_echo=$ac_try;; |
| 19310 | esac |
| 19311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19312 | (eval "$ac_link") 2>conftest.er1 |
| 19313 | ac_status=$? |
| 19314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19315 | rm -f conftest.er1 |
| 19316 | cat conftest.err >&5 |
| 19317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19318 | (exit $ac_status); } && |
| 19319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19320 | { (case "(($ac_try" in |
| 19321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19322 | *) ac_try_echo=$ac_try;; |
| 19323 | esac |
| 19324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19325 | (eval "$ac_try") 2>&5 |
| 19326 | ac_status=$? |
| 19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19328 | (exit $ac_status); }; } && |
| 19329 | { ac_try='test -s conftest$ac_exeext' |
| 19330 | { (case "(($ac_try" in |
| 19331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19332 | *) ac_try_echo=$ac_try;; |
| 19333 | esac |
| 19334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19335 | (eval "$ac_try") 2>&5 |
| 19336 | ac_status=$? |
| 19337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19338 | (exit $ac_status); }; }; then |
| 19339 | ac_cv_lib_gcc___main=yes |
| 19340 | else |
| 19341 | echo "$as_me: failed program was:" >&5 |
| 19342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19343 | |
| 19344 | ac_cv_lib_gcc___main=no |
| 19345 | fi |
| 19346 | |
| 19347 | rm -f core conftest.err conftest.$ac_objext \ |
| 19348 | conftest$ac_exeext conftest.$ac_ext |
| 19349 | LIBS=$ac_check_lib_save_LIBS |
| 19350 | fi |
| 19351 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19352 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19353 | if test $ac_cv_lib_gcc___main = yes; then |
| 19354 | |
| 19355 | cat >>confdefs.h <<\_ACEOF |
| 19356 | #define HAVE___MAIN 1 |
| 19357 | _ACEOF |
| 19358 | |
| 19359 | fi |
| 19360 | |
| 19361 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19362 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19363 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19365 | else |
| 19366 | ac_check_lib_save_LIBS=$LIBS |
| 19367 | LIBS="-lgcc $LIBS" |
| 19368 | cat >conftest.$ac_ext <<_ACEOF |
| 19369 | /* confdefs.h. */ |
| 19370 | _ACEOF |
| 19371 | cat confdefs.h >>conftest.$ac_ext |
| 19372 | cat >>conftest.$ac_ext <<_ACEOF |
| 19373 | /* end confdefs.h. */ |
| 19374 | |
| 19375 | /* Override any GCC internal prototype to avoid an error. |
| 19376 | Use char because int might match the return type of a GCC |
| 19377 | builtin and then its argument prototype would still apply. */ |
| 19378 | #ifdef __cplusplus |
| 19379 | extern "C" |
| 19380 | #endif |
| 19381 | char __cmpdi2 (); |
| 19382 | int |
| 19383 | main () |
| 19384 | { |
| 19385 | return __cmpdi2 (); |
| 19386 | ; |
| 19387 | return 0; |
| 19388 | } |
| 19389 | _ACEOF |
| 19390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19391 | if { (ac_try="$ac_link" |
| 19392 | case "(($ac_try" in |
| 19393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19394 | *) ac_try_echo=$ac_try;; |
| 19395 | esac |
| 19396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19397 | (eval "$ac_link") 2>conftest.er1 |
| 19398 | ac_status=$? |
| 19399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19400 | rm -f conftest.er1 |
| 19401 | cat conftest.err >&5 |
| 19402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19403 | (exit $ac_status); } && |
| 19404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19405 | { (case "(($ac_try" in |
| 19406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19407 | *) ac_try_echo=$ac_try;; |
| 19408 | esac |
| 19409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19410 | (eval "$ac_try") 2>&5 |
| 19411 | ac_status=$? |
| 19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19413 | (exit $ac_status); }; } && |
| 19414 | { ac_try='test -s conftest$ac_exeext' |
| 19415 | { (case "(($ac_try" in |
| 19416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19417 | *) ac_try_echo=$ac_try;; |
| 19418 | esac |
| 19419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19420 | (eval "$ac_try") 2>&5 |
| 19421 | ac_status=$? |
| 19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19423 | (exit $ac_status); }; }; then |
| 19424 | ac_cv_lib_gcc___cmpdi2=yes |
| 19425 | else |
| 19426 | echo "$as_me: failed program was:" >&5 |
| 19427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19428 | |
| 19429 | ac_cv_lib_gcc___cmpdi2=no |
| 19430 | fi |
| 19431 | |
| 19432 | rm -f core conftest.err conftest.$ac_objext \ |
| 19433 | conftest$ac_exeext conftest.$ac_ext |
| 19434 | LIBS=$ac_check_lib_save_LIBS |
| 19435 | fi |
| 19436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19437 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19438 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19439 | |
| 19440 | cat >>confdefs.h <<\_ACEOF |
| 19441 | #define HAVE___CMPDI2 1 |
| 19442 | _ACEOF |
| 19443 | |
| 19444 | fi |
| 19445 | |
| 19446 | fi |
| 19447 | |
NAKAMURA Takumi | 6073a05 | 2011-05-01 13:29:49 +0000 | [diff] [blame] | 19448 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19449 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19450 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19451 | cat >conftest.$ac_ext <<_ACEOF |
| 19452 | #include <windows.h> |
| 19453 | #include <imagehlp.h> |
| 19454 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19455 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19456 | _ACEOF |
| 19457 | rm -f conftest.$ac_objext |
| 19458 | if { (ac_try="$ac_compile" |
| 19459 | case "(($ac_try" in |
| 19460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19461 | *) ac_try_echo=$ac_try;; |
| 19462 | esac |
| 19463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19464 | (eval "$ac_compile") 2>conftest.er1 |
| 19465 | ac_status=$? |
| 19466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19467 | rm -f conftest.er1 |
| 19468 | cat conftest.err >&5 |
| 19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19470 | (exit $ac_status); } && |
| 19471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19472 | { (case "(($ac_try" in |
| 19473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19474 | *) ac_try_echo=$ac_try;; |
| 19475 | esac |
| 19476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19477 | (eval "$ac_try") 2>&5 |
| 19478 | ac_status=$? |
| 19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19480 | (exit $ac_status); }; } && |
| 19481 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 19491 | |
| 19492 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19493 | echo "${ECHO_T}yes" >&6; } |
| 19494 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19495 | |
| 19496 | else |
| 19497 | echo "$as_me: failed program was:" >&5 |
| 19498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19499 | |
| 19500 | |
| 19501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19502 | echo "${ECHO_T}no" >&6; } |
| 19503 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19504 | |
| 19505 | fi |
| 19506 | |
| 19507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19508 | |
| 19509 | cat >>confdefs.h <<_ACEOF |
| 19510 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19511 | _ACEOF |
| 19512 | |
| 19513 | fi |
| 19514 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19515 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19516 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19517 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19518 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19520 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19521 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19522 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19523 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19524 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19525 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19526 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19527 | cat >conftest.$ac_ext <<_ACEOF |
| 19528 | /* confdefs.h. */ |
| 19529 | _ACEOF |
| 19530 | cat confdefs.h >>conftest.$ac_ext |
| 19531 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19532 | /* end confdefs.h. */ |
| 19533 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19534 | int |
| 19535 | main () |
| 19536 | { |
| 19537 | float f; isnan(f); |
| 19538 | ; |
| 19539 | return 0; |
| 19540 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19541 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19542 | rm -f conftest.$ac_objext |
| 19543 | if { (ac_try="$ac_compile" |
| 19544 | case "(($ac_try" in |
| 19545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19546 | *) ac_try_echo=$ac_try;; |
| 19547 | esac |
| 19548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19549 | (eval "$ac_compile") 2>conftest.er1 |
| 19550 | ac_status=$? |
| 19551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19552 | rm -f conftest.er1 |
| 19553 | cat conftest.err >&5 |
| 19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19555 | (exit $ac_status); } && |
| 19556 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19557 | { (case "(($ac_try" in |
| 19558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19559 | *) ac_try_echo=$ac_try;; |
| 19560 | esac |
| 19561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19562 | (eval "$ac_try") 2>&5 |
| 19563 | ac_status=$? |
| 19564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19565 | (exit $ac_status); }; } && |
| 19566 | { ac_try='test -s conftest.$ac_objext' |
| 19567 | { (case "(($ac_try" in |
| 19568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19569 | *) ac_try_echo=$ac_try;; |
| 19570 | esac |
| 19571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19572 | (eval "$ac_try") 2>&5 |
| 19573 | ac_status=$? |
| 19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19575 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19576 | ac_cv_func_isnan_in_math_h=yes |
| 19577 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19578 | echo "$as_me: failed program was:" >&5 |
| 19579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19580 | |
| 19581 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19582 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19585 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19586 | ac_cpp='$CPP $CPPFLAGS' |
| 19587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19590 | |
| 19591 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19592 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19593 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19594 | |
| 19595 | |
| 19596 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19598 | cat >>confdefs.h <<\_ACEOF |
| 19599 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19600 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19601 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19602 | fi |
| 19603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19604 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19605 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19606 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19608 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19609 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19610 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19611 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19612 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19613 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19614 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19615 | cat >conftest.$ac_ext <<_ACEOF |
| 19616 | /* confdefs.h. */ |
| 19617 | _ACEOF |
| 19618 | cat confdefs.h >>conftest.$ac_ext |
| 19619 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19620 | /* end confdefs.h. */ |
| 19621 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19622 | int |
| 19623 | main () |
| 19624 | { |
| 19625 | float f; isnan(f); |
| 19626 | ; |
| 19627 | return 0; |
| 19628 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19629 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19630 | rm -f conftest.$ac_objext |
| 19631 | if { (ac_try="$ac_compile" |
| 19632 | case "(($ac_try" in |
| 19633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19634 | *) ac_try_echo=$ac_try;; |
| 19635 | esac |
| 19636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19637 | (eval "$ac_compile") 2>conftest.er1 |
| 19638 | ac_status=$? |
| 19639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19640 | rm -f conftest.er1 |
| 19641 | cat conftest.err >&5 |
| 19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19643 | (exit $ac_status); } && |
| 19644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19645 | { (case "(($ac_try" in |
| 19646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19647 | *) ac_try_echo=$ac_try;; |
| 19648 | esac |
| 19649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19650 | (eval "$ac_try") 2>&5 |
| 19651 | ac_status=$? |
| 19652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19653 | (exit $ac_status); }; } && |
| 19654 | { ac_try='test -s conftest.$ac_objext' |
| 19655 | { (case "(($ac_try" in |
| 19656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19657 | *) ac_try_echo=$ac_try;; |
| 19658 | esac |
| 19659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19660 | (eval "$ac_try") 2>&5 |
| 19661 | ac_status=$? |
| 19662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19663 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19664 | ac_cv_func_isnan_in_cmath=yes |
| 19665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19666 | echo "$as_me: failed program was:" >&5 |
| 19667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19668 | |
| 19669 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19670 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19673 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19674 | ac_cpp='$CPP $CPPFLAGS' |
| 19675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19678 | |
| 19679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19680 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19681 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19682 | |
| 19683 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19685 | cat >>confdefs.h <<\_ACEOF |
| 19686 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19687 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19688 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19689 | fi |
| 19690 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19691 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19692 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19693 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19695 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19696 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19697 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19702 | cat >conftest.$ac_ext <<_ACEOF |
| 19703 | /* confdefs.h. */ |
| 19704 | _ACEOF |
| 19705 | cat confdefs.h >>conftest.$ac_ext |
| 19706 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19707 | /* end confdefs.h. */ |
| 19708 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19709 | int |
| 19710 | main () |
| 19711 | { |
| 19712 | float f; std::isnan(f); |
| 19713 | ; |
| 19714 | return 0; |
| 19715 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19716 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19717 | rm -f conftest.$ac_objext |
| 19718 | if { (ac_try="$ac_compile" |
| 19719 | case "(($ac_try" in |
| 19720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19721 | *) ac_try_echo=$ac_try;; |
| 19722 | esac |
| 19723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19724 | (eval "$ac_compile") 2>conftest.er1 |
| 19725 | ac_status=$? |
| 19726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19727 | rm -f conftest.er1 |
| 19728 | cat conftest.err >&5 |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); } && |
| 19731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 19741 | { ac_try='test -s conftest.$ac_objext' |
| 19742 | { (case "(($ac_try" in |
| 19743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19744 | *) ac_try_echo=$ac_try;; |
| 19745 | esac |
| 19746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19747 | (eval "$ac_try") 2>&5 |
| 19748 | ac_status=$? |
| 19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19750 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19751 | ac_cv_func_std_isnan_in_cmath=yes |
| 19752 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19753 | echo "$as_me: failed program was:" >&5 |
| 19754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19755 | |
| 19756 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19757 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19760 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19761 | ac_cpp='$CPP $CPPFLAGS' |
| 19762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19765 | |
| 19766 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19768 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19769 | |
| 19770 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19772 | cat >>confdefs.h <<\_ACEOF |
| 19773 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19774 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19775 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19776 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19777 | |
| 19778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19779 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19780 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19781 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19783 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19784 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19785 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19786 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19787 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19788 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19790 | cat >conftest.$ac_ext <<_ACEOF |
| 19791 | /* confdefs.h. */ |
| 19792 | _ACEOF |
| 19793 | cat confdefs.h >>conftest.$ac_ext |
| 19794 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19795 | /* end confdefs.h. */ |
| 19796 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19797 | int |
| 19798 | main () |
| 19799 | { |
| 19800 | float f; isinf(f); |
| 19801 | ; |
| 19802 | return 0; |
| 19803 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19804 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19805 | rm -f conftest.$ac_objext |
| 19806 | if { (ac_try="$ac_compile" |
| 19807 | case "(($ac_try" in |
| 19808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19809 | *) ac_try_echo=$ac_try;; |
| 19810 | esac |
| 19811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19812 | (eval "$ac_compile") 2>conftest.er1 |
| 19813 | ac_status=$? |
| 19814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19815 | rm -f conftest.er1 |
| 19816 | cat conftest.err >&5 |
| 19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19818 | (exit $ac_status); } && |
| 19819 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19820 | { (case "(($ac_try" in |
| 19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19822 | *) ac_try_echo=$ac_try;; |
| 19823 | esac |
| 19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19825 | (eval "$ac_try") 2>&5 |
| 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; } && |
| 19829 | { ac_try='test -s conftest.$ac_objext' |
| 19830 | { (case "(($ac_try" in |
| 19831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19832 | *) ac_try_echo=$ac_try;; |
| 19833 | esac |
| 19834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19835 | (eval "$ac_try") 2>&5 |
| 19836 | ac_status=$? |
| 19837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19838 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19839 | ac_cv_func_isinf_in_math_h=yes |
| 19840 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19841 | echo "$as_me: failed program was:" >&5 |
| 19842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19843 | |
| 19844 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19845 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19848 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19849 | ac_cpp='$CPP $CPPFLAGS' |
| 19850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19853 | |
| 19854 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19855 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19856 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19857 | |
| 19858 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19859 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19860 | cat >>confdefs.h <<\_ACEOF |
| 19861 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19862 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19863 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19864 | fi |
| 19865 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19866 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19867 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19868 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19870 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19871 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19872 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19877 | cat >conftest.$ac_ext <<_ACEOF |
| 19878 | /* confdefs.h. */ |
| 19879 | _ACEOF |
| 19880 | cat confdefs.h >>conftest.$ac_ext |
| 19881 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19882 | /* end confdefs.h. */ |
| 19883 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19884 | int |
| 19885 | main () |
| 19886 | { |
| 19887 | float f; isinf(f); |
| 19888 | ; |
| 19889 | return 0; |
| 19890 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19891 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19892 | rm -f conftest.$ac_objext |
| 19893 | if { (ac_try="$ac_compile" |
| 19894 | case "(($ac_try" in |
| 19895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19896 | *) ac_try_echo=$ac_try;; |
| 19897 | esac |
| 19898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19899 | (eval "$ac_compile") 2>conftest.er1 |
| 19900 | ac_status=$? |
| 19901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19902 | rm -f conftest.er1 |
| 19903 | cat conftest.err >&5 |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); } && |
| 19906 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 19916 | { ac_try='test -s conftest.$ac_objext' |
| 19917 | { (case "(($ac_try" in |
| 19918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19919 | *) ac_try_echo=$ac_try;; |
| 19920 | esac |
| 19921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19922 | (eval "$ac_try") 2>&5 |
| 19923 | ac_status=$? |
| 19924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19925 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19926 | ac_cv_func_isinf_in_cmath=yes |
| 19927 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19928 | echo "$as_me: failed program was:" >&5 |
| 19929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19930 | |
| 19931 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19932 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19935 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19936 | ac_cpp='$CPP $CPPFLAGS' |
| 19937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19940 | |
| 19941 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19942 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19943 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19944 | |
| 19945 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19947 | cat >>confdefs.h <<\_ACEOF |
| 19948 | #define HAVE_ISINF_IN_CMATH 1 |
| 19949 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19950 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19951 | fi |
| 19952 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19953 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19954 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19955 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19957 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19958 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19959 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19960 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19961 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19962 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19963 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19964 | cat >conftest.$ac_ext <<_ACEOF |
| 19965 | /* confdefs.h. */ |
| 19966 | _ACEOF |
| 19967 | cat confdefs.h >>conftest.$ac_ext |
| 19968 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19969 | /* end confdefs.h. */ |
| 19970 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19971 | int |
| 19972 | main () |
| 19973 | { |
Eric Christopher | b2bc6e4 | 2012-03-26 02:09:01 +0000 | [diff] [blame] | 19974 | float f; std::isinf(f); |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19975 | ; |
| 19976 | return 0; |
| 19977 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19978 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19979 | rm -f conftest.$ac_objext |
| 19980 | if { (ac_try="$ac_compile" |
| 19981 | case "(($ac_try" in |
| 19982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19983 | *) ac_try_echo=$ac_try;; |
| 19984 | esac |
| 19985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19986 | (eval "$ac_compile") 2>conftest.er1 |
| 19987 | ac_status=$? |
| 19988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19989 | rm -f conftest.er1 |
| 19990 | cat conftest.err >&5 |
| 19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19992 | (exit $ac_status); } && |
| 19993 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 20003 | { ac_try='test -s conftest.$ac_objext' |
| 20004 | { (case "(($ac_try" in |
| 20005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20006 | *) ac_try_echo=$ac_try;; |
| 20007 | esac |
| 20008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20009 | (eval "$ac_try") 2>&5 |
| 20010 | ac_status=$? |
| 20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20012 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20013 | ac_cv_func_std_isinf_in_cmath=yes |
| 20014 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20015 | echo "$as_me: failed program was:" >&5 |
| 20016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20017 | |
| 20018 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20019 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20022 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20023 | ac_cpp='$CPP $CPPFLAGS' |
| 20024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20027 | |
| 20028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20029 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 20030 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20031 | |
| 20032 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20033 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20034 | cat >>confdefs.h <<\_ACEOF |
| 20035 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 20036 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 20037 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20038 | fi |
| 20039 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20040 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 20041 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 20042 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 20043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20044 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20045 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20046 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20051 | cat >conftest.$ac_ext <<_ACEOF |
| 20052 | /* confdefs.h. */ |
| 20053 | _ACEOF |
| 20054 | cat confdefs.h >>conftest.$ac_ext |
| 20055 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20056 | /* end confdefs.h. */ |
| 20057 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20058 | int |
| 20059 | main () |
| 20060 | { |
| 20061 | float f; finite(f); |
| 20062 | ; |
| 20063 | return 0; |
| 20064 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20065 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20066 | rm -f conftest.$ac_objext |
| 20067 | if { (ac_try="$ac_compile" |
| 20068 | case "(($ac_try" in |
| 20069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20070 | *) ac_try_echo=$ac_try;; |
| 20071 | esac |
| 20072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20073 | (eval "$ac_compile") 2>conftest.er1 |
| 20074 | ac_status=$? |
| 20075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20076 | rm -f conftest.er1 |
| 20077 | cat conftest.err >&5 |
| 20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20079 | (exit $ac_status); } && |
| 20080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 20090 | { ac_try='test -s conftest.$ac_objext' |
| 20091 | { (case "(($ac_try" in |
| 20092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20093 | *) ac_try_echo=$ac_try;; |
| 20094 | esac |
| 20095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20096 | (eval "$ac_try") 2>&5 |
| 20097 | ac_status=$? |
| 20098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20099 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20100 | ac_cv_func_finite_in_ieeefp_h=yes |
| 20101 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | echo "$as_me: failed program was:" >&5 |
| 20103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20104 | |
| 20105 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20106 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20109 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20110 | ac_cpp='$CPP $CPPFLAGS' |
| 20111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20114 | |
| 20115 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20116 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 20117 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20118 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 20119 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20121 | cat >>confdefs.h <<\_ACEOF |
| 20122 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 20123 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 20124 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 20125 | fi |
| 20126 | |
| 20127 | |
| 20128 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20129 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20130 | |
| 20131 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20132 | for ac_header in stdlib.h unistd.h |
| 20133 | do |
| 20134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20136 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20140 | fi |
| 20141 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20143 | echo "${ECHO_T}$ac_res" >&6; } |
| 20144 | else |
| 20145 | # Is the header compilable? |
| 20146 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 20148 | cat >conftest.$ac_ext <<_ACEOF |
| 20149 | /* confdefs.h. */ |
| 20150 | _ACEOF |
| 20151 | cat confdefs.h >>conftest.$ac_ext |
| 20152 | cat >>conftest.$ac_ext <<_ACEOF |
| 20153 | /* end confdefs.h. */ |
| 20154 | $ac_includes_default |
| 20155 | #include <$ac_header> |
| 20156 | _ACEOF |
| 20157 | rm -f conftest.$ac_objext |
| 20158 | if { (ac_try="$ac_compile" |
| 20159 | case "(($ac_try" in |
| 20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20161 | *) ac_try_echo=$ac_try;; |
| 20162 | esac |
| 20163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20164 | (eval "$ac_compile") 2>conftest.er1 |
| 20165 | ac_status=$? |
| 20166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20167 | rm -f conftest.er1 |
| 20168 | cat conftest.err >&5 |
| 20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20170 | (exit $ac_status); } && |
| 20171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20172 | { (case "(($ac_try" in |
| 20173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20174 | *) ac_try_echo=$ac_try;; |
| 20175 | esac |
| 20176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20177 | (eval "$ac_try") 2>&5 |
| 20178 | ac_status=$? |
| 20179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20180 | (exit $ac_status); }; } && |
| 20181 | { ac_try='test -s conftest.$ac_objext' |
| 20182 | { (case "(($ac_try" in |
| 20183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20184 | *) ac_try_echo=$ac_try;; |
| 20185 | esac |
| 20186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20187 | (eval "$ac_try") 2>&5 |
| 20188 | ac_status=$? |
| 20189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20190 | (exit $ac_status); }; }; then |
| 20191 | ac_header_compiler=yes |
| 20192 | else |
| 20193 | echo "$as_me: failed program was:" >&5 |
| 20194 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20195 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20196 | ac_header_compiler=no |
| 20197 | fi |
| 20198 | |
| 20199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20200 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20201 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20202 | |
| 20203 | # Is the header present? |
| 20204 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20206 | cat >conftest.$ac_ext <<_ACEOF |
| 20207 | /* confdefs.h. */ |
| 20208 | _ACEOF |
| 20209 | cat confdefs.h >>conftest.$ac_ext |
| 20210 | cat >>conftest.$ac_ext <<_ACEOF |
| 20211 | /* end confdefs.h. */ |
| 20212 | #include <$ac_header> |
| 20213 | _ACEOF |
| 20214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20215 | case "(($ac_try" in |
| 20216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20217 | *) ac_try_echo=$ac_try;; |
| 20218 | esac |
| 20219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20221 | ac_status=$? |
| 20222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20223 | rm -f conftest.er1 |
| 20224 | cat conftest.err >&5 |
| 20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20226 | (exit $ac_status); } >/dev/null; then |
| 20227 | if test -s conftest.err; then |
| 20228 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20230 | else |
| 20231 | ac_cpp_err= |
| 20232 | fi |
| 20233 | else |
| 20234 | ac_cpp_err=yes |
| 20235 | fi |
| 20236 | if test -z "$ac_cpp_err"; then |
| 20237 | ac_header_preproc=yes |
| 20238 | else |
| 20239 | echo "$as_me: failed program was:" >&5 |
| 20240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20241 | |
| 20242 | ac_header_preproc=no |
| 20243 | fi |
| 20244 | |
| 20245 | rm -f conftest.err conftest.$ac_ext |
| 20246 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20247 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20248 | |
| 20249 | # So? What about this header? |
| 20250 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20251 | yes:no: ) |
| 20252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20254 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20255 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20256 | ac_header_preproc=yes |
| 20257 | ;; |
| 20258 | no:yes:* ) |
| 20259 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20260 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20261 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20262 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20263 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20264 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20265 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20266 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20268 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20269 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20270 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20271 | ( cat <<\_ASBOX |
Eric Christopher | f33ab86 | 2011-12-21 00:52:44 +0000 | [diff] [blame] | 20272 | ## ------------------------------------ ## |
| 20273 | ## Report this to http://llvm.org/bugs/ ## |
| 20274 | ## ------------------------------------ ## |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20275 | _ASBOX |
| 20276 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 20277 | ;; |
| 20278 | esac |
| 20279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20283 | else |
| 20284 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20285 | fi |
| 20286 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20288 | echo "${ECHO_T}$ac_res" >&6; } |
| 20289 | |
| 20290 | fi |
| 20291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20292 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20294 | _ACEOF |
| 20295 | |
| 20296 | fi |
| 20297 | |
| 20298 | done |
| 20299 | |
| 20300 | |
| 20301 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20302 | do |
| 20303 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20304 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20305 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20306 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20308 | else |
| 20309 | cat >conftest.$ac_ext <<_ACEOF |
| 20310 | /* confdefs.h. */ |
| 20311 | _ACEOF |
| 20312 | cat confdefs.h >>conftest.$ac_ext |
| 20313 | cat >>conftest.$ac_ext <<_ACEOF |
| 20314 | /* end confdefs.h. */ |
| 20315 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20316 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20317 | #define $ac_func innocuous_$ac_func |
| 20318 | |
| 20319 | /* System header to define __stub macros and hopefully few prototypes, |
| 20320 | which can conflict with char $ac_func (); below. |
| 20321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20322 | <limits.h> exists even on freestanding compilers. */ |
| 20323 | |
| 20324 | #ifdef __STDC__ |
| 20325 | # include <limits.h> |
| 20326 | #else |
| 20327 | # include <assert.h> |
| 20328 | #endif |
| 20329 | |
| 20330 | #undef $ac_func |
| 20331 | |
| 20332 | /* Override any GCC internal prototype to avoid an error. |
| 20333 | Use char because int might match the return type of a GCC |
| 20334 | builtin and then its argument prototype would still apply. */ |
| 20335 | #ifdef __cplusplus |
| 20336 | extern "C" |
| 20337 | #endif |
| 20338 | char $ac_func (); |
| 20339 | /* The GNU C library defines this for functions which it implements |
| 20340 | to always fail with ENOSYS. Some functions are actually named |
| 20341 | something starting with __ and the normal name is an alias. */ |
| 20342 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20343 | choke me |
| 20344 | #endif |
| 20345 | |
| 20346 | int |
| 20347 | main () |
| 20348 | { |
| 20349 | return $ac_func (); |
| 20350 | ; |
| 20351 | return 0; |
| 20352 | } |
| 20353 | _ACEOF |
| 20354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20355 | if { (ac_try="$ac_link" |
| 20356 | case "(($ac_try" in |
| 20357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20358 | *) ac_try_echo=$ac_try;; |
| 20359 | esac |
| 20360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20361 | (eval "$ac_link") 2>conftest.er1 |
| 20362 | ac_status=$? |
| 20363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20364 | rm -f conftest.er1 |
| 20365 | cat conftest.err >&5 |
| 20366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20367 | (exit $ac_status); } && |
| 20368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20369 | { (case "(($ac_try" in |
| 20370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20371 | *) ac_try_echo=$ac_try;; |
| 20372 | esac |
| 20373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20374 | (eval "$ac_try") 2>&5 |
| 20375 | ac_status=$? |
| 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20377 | (exit $ac_status); }; } && |
| 20378 | { ac_try='test -s conftest$ac_exeext' |
| 20379 | { (case "(($ac_try" in |
| 20380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20381 | *) ac_try_echo=$ac_try;; |
| 20382 | esac |
| 20383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20384 | (eval "$ac_try") 2>&5 |
| 20385 | ac_status=$? |
| 20386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20387 | (exit $ac_status); }; }; then |
| 20388 | eval "$as_ac_var=yes" |
| 20389 | else |
| 20390 | echo "$as_me: failed program was:" >&5 |
| 20391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20392 | |
| 20393 | eval "$as_ac_var=no" |
| 20394 | fi |
| 20395 | |
| 20396 | rm -f core conftest.err conftest.$ac_objext \ |
| 20397 | conftest$ac_exeext conftest.$ac_ext |
| 20398 | fi |
| 20399 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20400 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20401 | echo "${ECHO_T}$ac_res" >&6; } |
| 20402 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20403 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20405 | _ACEOF |
| 20406 | |
| 20407 | fi |
| 20408 | done |
| 20409 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20410 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20411 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20412 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20415 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20416 | ac_cv_func_mmap_fixed_mapped=no |
| 20417 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20418 | cat >conftest.$ac_ext <<_ACEOF |
| 20419 | /* confdefs.h. */ |
| 20420 | _ACEOF |
| 20421 | cat confdefs.h >>conftest.$ac_ext |
| 20422 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20423 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20424 | $ac_includes_default |
| 20425 | /* malloc might have been renamed as rpl_malloc. */ |
| 20426 | #undef malloc |
| 20427 | |
| 20428 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20429 | Here is a matrix of mmap possibilities: |
| 20430 | mmap private not fixed |
| 20431 | mmap private fixed at somewhere currently unmapped |
| 20432 | mmap private fixed at somewhere already mapped |
| 20433 | mmap shared not fixed |
| 20434 | mmap shared fixed at somewhere currently unmapped |
| 20435 | mmap shared fixed at somewhere already mapped |
| 20436 | For private mappings, we should verify that changes cannot be read() |
| 20437 | back from the file, nor mmap's back from the file at a different |
| 20438 | address. (There have been systems where private was not correctly |
| 20439 | implemented like the infamous i386 svr4.0, and systems where the |
| 20440 | VM page cache was not coherent with the file system buffer cache |
| 20441 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20442 | For shared mappings, we should conversely verify that changes get |
| 20443 | propagated back to all the places they're supposed to be. |
| 20444 | |
| 20445 | Grep wants private fixed already mapped. |
| 20446 | The main things grep needs to know about mmap are: |
| 20447 | * does it exist and is it safe to write into the mmap'd area |
| 20448 | * how to use it (BSD variants) */ |
| 20449 | |
| 20450 | #include <fcntl.h> |
| 20451 | #include <sys/mman.h> |
| 20452 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20453 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20454 | char *malloc (); |
| 20455 | #endif |
| 20456 | |
| 20457 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20458 | #if !HAVE_GETPAGESIZE |
| 20459 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20460 | # if !HAVE_SYS_PARAM_H |
| 20461 | # define HAVE_SYS_PARAM_H 1 |
| 20462 | # endif |
| 20463 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20464 | # ifdef _SC_PAGESIZE |
| 20465 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20466 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20467 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20468 | # include <sys/param.h> |
| 20469 | # ifdef EXEC_PAGESIZE |
| 20470 | # define getpagesize() EXEC_PAGESIZE |
| 20471 | # else /* no EXEC_PAGESIZE */ |
| 20472 | # ifdef NBPG |
| 20473 | # define getpagesize() NBPG * CLSIZE |
| 20474 | # ifndef CLSIZE |
| 20475 | # define CLSIZE 1 |
| 20476 | # endif /* no CLSIZE */ |
| 20477 | # else /* no NBPG */ |
| 20478 | # ifdef NBPC |
| 20479 | # define getpagesize() NBPC |
| 20480 | # else /* no NBPC */ |
| 20481 | # ifdef PAGESIZE |
| 20482 | # define getpagesize() PAGESIZE |
| 20483 | # endif /* PAGESIZE */ |
| 20484 | # endif /* no NBPC */ |
| 20485 | # endif /* no NBPG */ |
| 20486 | # endif /* no EXEC_PAGESIZE */ |
| 20487 | # else /* no HAVE_SYS_PARAM_H */ |
| 20488 | # define getpagesize() 8192 /* punt totally */ |
| 20489 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20490 | # endif /* no _SC_PAGESIZE */ |
| 20491 | |
| 20492 | #endif /* no HAVE_GETPAGESIZE */ |
| 20493 | |
| 20494 | int |
| 20495 | main () |
| 20496 | { |
| 20497 | char *data, *data2, *data3; |
| 20498 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20499 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20500 | |
| 20501 | pagesize = getpagesize (); |
| 20502 | |
| 20503 | /* First, make a file with some known garbage in it. */ |
| 20504 | data = (char *) malloc (pagesize); |
| 20505 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20506 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20507 | for (i = 0; i < pagesize; ++i) |
| 20508 | *(data + i) = rand (); |
| 20509 | umask (0); |
| 20510 | fd = creat ("conftest.mmap", 0600); |
| 20511 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20512 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20513 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20514 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20515 | close (fd); |
| 20516 | |
| 20517 | /* Next, try to mmap the file at a fixed address which already has |
| 20518 | something else allocated at it. If we can, also make sure that |
| 20519 | we see the same garbage. */ |
| 20520 | fd = open ("conftest.mmap", O_RDWR); |
| 20521 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20522 | return 1; |
| 20523 | data2 = (char *) malloc (2 * pagesize); |
| 20524 | if (!data2) |
| 20525 | return 1; |
| 20526 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20527 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20528 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20529 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20530 | for (i = 0; i < pagesize; ++i) |
| 20531 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20532 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20533 | |
| 20534 | /* Finally, make sure that changes to the mapped area do not |
| 20535 | percolate back to the file as seen by read(). (This is a bug on |
| 20536 | some variants of i386 svr4.0.) */ |
| 20537 | for (i = 0; i < pagesize; ++i) |
| 20538 | *(data2 + i) = *(data2 + i) + 1; |
| 20539 | data3 = (char *) malloc (pagesize); |
| 20540 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20541 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20542 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20543 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20544 | for (i = 0; i < pagesize; ++i) |
| 20545 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20546 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20547 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20548 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20549 | } |
| 20550 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20551 | rm -f conftest$ac_exeext |
| 20552 | if { (ac_try="$ac_link" |
| 20553 | case "(($ac_try" in |
| 20554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20555 | *) ac_try_echo=$ac_try;; |
| 20556 | esac |
| 20557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20558 | (eval "$ac_link") 2>&5 |
| 20559 | ac_status=$? |
| 20560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20562 | { (case "(($ac_try" in |
| 20563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20564 | *) ac_try_echo=$ac_try;; |
| 20565 | esac |
| 20566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20567 | (eval "$ac_try") 2>&5 |
| 20568 | ac_status=$? |
| 20569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20570 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20571 | ac_cv_func_mmap_fixed_mapped=yes |
| 20572 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20573 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20574 | echo "$as_me: failed program was:" >&5 |
| 20575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20576 | |
| 20577 | ( exit $ac_status ) |
| 20578 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20579 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20580 | 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] | 20581 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20582 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20583 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20584 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20585 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20586 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20587 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20589 | cat >>confdefs.h <<\_ACEOF |
| 20590 | #define HAVE_MMAP 1 |
| 20591 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20592 | |
| 20593 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20594 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20595 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20596 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20597 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20598 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20600 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20601 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20602 | ac_cpp='$CPP $CPPFLAGS' |
| 20603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20607 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20608 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20610 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20612 | /* confdefs.h. */ |
| 20613 | _ACEOF |
| 20614 | cat confdefs.h >>conftest.$ac_ext |
| 20615 | cat >>conftest.$ac_ext <<_ACEOF |
| 20616 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20617 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20618 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20619 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20620 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20621 | |
| 20622 | int |
| 20623 | main () |
| 20624 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20625 | |
| 20626 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20627 | fd = creat ("foo",0777); |
| 20628 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20629 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20630 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20631 | ; |
| 20632 | return 0; |
| 20633 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20634 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20635 | rm -f conftest$ac_exeext |
| 20636 | if { (ac_try="$ac_link" |
| 20637 | case "(($ac_try" in |
| 20638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20639 | *) ac_try_echo=$ac_try;; |
| 20640 | esac |
| 20641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20642 | (eval "$ac_link") 2>&5 |
| 20643 | ac_status=$? |
| 20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20646 | { (case "(($ac_try" in |
| 20647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20648 | *) ac_try_echo=$ac_try;; |
| 20649 | esac |
| 20650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20651 | (eval "$ac_try") 2>&5 |
| 20652 | ac_status=$? |
| 20653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20654 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20655 | ac_cv_func_mmap_file=yes |
| 20656 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20657 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20658 | echo "$as_me: failed program was:" >&5 |
| 20659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20660 | |
| 20661 | ( exit $ac_status ) |
| 20662 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20663 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20664 | 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] | 20665 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20666 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20667 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20668 | ac_ext=c |
| 20669 | ac_cpp='$CPP $CPPFLAGS' |
| 20670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20673 | |
| 20674 | |
| 20675 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20676 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20677 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20678 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20680 | cat >>confdefs.h <<\_ACEOF |
| 20681 | #define HAVE_MMAP_FILE |
| 20682 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20683 | |
| 20684 | MMAP_FILE=yes |
| 20685 | |
| 20686 | fi |
| 20687 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20688 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20689 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20690 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20692 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20693 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20694 | ac_cv_need_dev_zero_for_mmap=yes |
| 20695 | else |
| 20696 | ac_cv_need_dev_zero_for_mmap=no |
| 20697 | fi |
| 20698 | |
| 20699 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20700 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20701 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20702 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20704 | cat >>confdefs.h <<\_ACEOF |
| 20705 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20706 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20707 | |
| 20708 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20709 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20710 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20711 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20712 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20713 | 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] | 20714 | fi |
| 20715 | if test "$ac_cv_func_mmap_file" = "no" |
| 20716 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20717 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20718 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20719 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20720 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20721 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20722 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20723 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20724 | ac_ext=cpp |
| 20725 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20730 | cat >conftest.$ac_ext <<_ACEOF |
| 20731 | /* confdefs.h. */ |
| 20732 | _ACEOF |
| 20733 | cat confdefs.h >>conftest.$ac_ext |
| 20734 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20735 | /* end confdefs.h. */ |
| 20736 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20737 | volatile unsigned long val = 1; |
| 20738 | __sync_synchronize(); |
| 20739 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20740 | __sync_add_and_fetch(&val, 1); |
| 20741 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20742 | return 0; |
| 20743 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20744 | |
| 20745 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20747 | if { (ac_try="$ac_link" |
| 20748 | case "(($ac_try" in |
| 20749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20750 | *) ac_try_echo=$ac_try;; |
| 20751 | esac |
| 20752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20753 | (eval "$ac_link") 2>conftest.er1 |
| 20754 | ac_status=$? |
| 20755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20756 | rm -f conftest.er1 |
| 20757 | cat conftest.err >&5 |
| 20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20759 | (exit $ac_status); } && |
| 20760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20761 | { (case "(($ac_try" in |
| 20762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20763 | *) ac_try_echo=$ac_try;; |
| 20764 | esac |
| 20765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20766 | (eval "$ac_try") 2>&5 |
| 20767 | ac_status=$? |
| 20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20769 | (exit $ac_status); }; } && |
| 20770 | { ac_try='test -s conftest$ac_exeext' |
| 20771 | { (case "(($ac_try" in |
| 20772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20773 | *) ac_try_echo=$ac_try;; |
| 20774 | esac |
| 20775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20776 | (eval "$ac_try") 2>&5 |
| 20777 | ac_status=$? |
| 20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20779 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20780 | ac_ext=c |
| 20781 | ac_cpp='$CPP $CPPFLAGS' |
| 20782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20785 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20786 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20787 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20790 | #define LLVM_HAS_ATOMICS 1 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20791 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20792 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20793 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20794 | echo "$as_me: failed program was:" >&5 |
| 20795 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20798 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20799 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20800 | cat >>confdefs.h <<\_ACEOF |
Eric Christopher | 627445f | 2011-09-19 20:43:23 +0000 | [diff] [blame] | 20801 | #define LLVM_HAS_ATOMICS 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20802 | _ACEOF |
| 20803 | |
| 20804 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20805 | 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] | 20806 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20807 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20808 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20809 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20810 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20811 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20812 | 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] | 20813 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20814 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20815 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20817 | else |
| 20818 | ac_ext=c |
| 20819 | ac_cpp='$CPP $CPPFLAGS' |
| 20820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20823 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20824 | cat >conftest.$ac_ext <<_ACEOF |
| 20825 | /* confdefs.h. */ |
| 20826 | _ACEOF |
| 20827 | cat confdefs.h >>conftest.$ac_ext |
| 20828 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20829 | /* end confdefs.h. */ |
| 20830 | #ifndef __x86_64__ |
| 20831 | error: Not x86-64 even if uname says so! |
| 20832 | #endif |
| 20833 | |
| 20834 | int |
| 20835 | main () |
| 20836 | { |
| 20837 | |
| 20838 | ; |
| 20839 | return 0; |
| 20840 | } |
| 20841 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20842 | rm -f conftest.$ac_objext |
| 20843 | if { (ac_try="$ac_compile" |
| 20844 | case "(($ac_try" in |
| 20845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20846 | *) ac_try_echo=$ac_try;; |
| 20847 | esac |
| 20848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20849 | (eval "$ac_compile") 2>conftest.er1 |
| 20850 | ac_status=$? |
| 20851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20852 | rm -f conftest.er1 |
| 20853 | cat conftest.err >&5 |
| 20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20855 | (exit $ac_status); } && |
| 20856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20857 | { (case "(($ac_try" in |
| 20858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20859 | *) ac_try_echo=$ac_try;; |
| 20860 | esac |
| 20861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20862 | (eval "$ac_try") 2>&5 |
| 20863 | ac_status=$? |
| 20864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20865 | (exit $ac_status); }; } && |
| 20866 | { ac_try='test -s conftest.$ac_objext' |
| 20867 | { (case "(($ac_try" in |
| 20868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20869 | *) ac_try_echo=$ac_try;; |
| 20870 | esac |
| 20871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20872 | (eval "$ac_try") 2>&5 |
| 20873 | ac_status=$? |
| 20874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20875 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20876 | llvm_cv_linux_mixed=no |
| 20877 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20878 | echo "$as_me: failed program was:" >&5 |
| 20879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20880 | |
| 20881 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20882 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20883 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20885 | ac_ext=c |
| 20886 | ac_cpp='$CPP $CPPFLAGS' |
| 20887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20890 | |
| 20891 | |
| 20892 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20893 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20894 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20895 | |
| 20896 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20897 | llvm_cv_target_arch="x86" |
| 20898 | ARCH="x86" |
| 20899 | fi |
| 20900 | fi |
| 20901 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20902 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20903 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20904 | do |
| 20905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20906 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20908 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20910 | else |
| 20911 | cat >conftest.$ac_ext <<_ACEOF |
| 20912 | /* confdefs.h. */ |
| 20913 | _ACEOF |
| 20914 | cat confdefs.h >>conftest.$ac_ext |
| 20915 | cat >>conftest.$ac_ext <<_ACEOF |
| 20916 | /* end confdefs.h. */ |
| 20917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20919 | #define $ac_func innocuous_$ac_func |
| 20920 | |
| 20921 | /* System header to define __stub macros and hopefully few prototypes, |
| 20922 | which can conflict with char $ac_func (); below. |
| 20923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20924 | <limits.h> exists even on freestanding compilers. */ |
| 20925 | |
| 20926 | #ifdef __STDC__ |
| 20927 | # include <limits.h> |
| 20928 | #else |
| 20929 | # include <assert.h> |
| 20930 | #endif |
| 20931 | |
| 20932 | #undef $ac_func |
| 20933 | |
| 20934 | /* Override any GCC internal prototype to avoid an error. |
| 20935 | Use char because int might match the return type of a GCC |
| 20936 | builtin and then its argument prototype would still apply. */ |
| 20937 | #ifdef __cplusplus |
| 20938 | extern "C" |
| 20939 | #endif |
| 20940 | char $ac_func (); |
| 20941 | /* The GNU C library defines this for functions which it implements |
| 20942 | to always fail with ENOSYS. Some functions are actually named |
| 20943 | something starting with __ and the normal name is an alias. */ |
| 20944 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20945 | choke me |
| 20946 | #endif |
| 20947 | |
| 20948 | int |
| 20949 | main () |
| 20950 | { |
| 20951 | return $ac_func (); |
| 20952 | ; |
| 20953 | return 0; |
| 20954 | } |
| 20955 | _ACEOF |
| 20956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20957 | if { (ac_try="$ac_link" |
| 20958 | case "(($ac_try" in |
| 20959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20960 | *) ac_try_echo=$ac_try;; |
| 20961 | esac |
| 20962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20963 | (eval "$ac_link") 2>conftest.er1 |
| 20964 | ac_status=$? |
| 20965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20966 | rm -f conftest.er1 |
| 20967 | cat conftest.err >&5 |
| 20968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20969 | (exit $ac_status); } && |
| 20970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20971 | { (case "(($ac_try" in |
| 20972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20973 | *) ac_try_echo=$ac_try;; |
| 20974 | esac |
| 20975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20976 | (eval "$ac_try") 2>&5 |
| 20977 | ac_status=$? |
| 20978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20979 | (exit $ac_status); }; } && |
| 20980 | { ac_try='test -s conftest$ac_exeext' |
| 20981 | { (case "(($ac_try" in |
| 20982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20983 | *) ac_try_echo=$ac_try;; |
| 20984 | esac |
| 20985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20986 | (eval "$ac_try") 2>&5 |
| 20987 | ac_status=$? |
| 20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20989 | (exit $ac_status); }; }; then |
| 20990 | eval "$as_ac_var=yes" |
| 20991 | else |
| 20992 | echo "$as_me: failed program was:" >&5 |
| 20993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20994 | |
| 20995 | eval "$as_ac_var=no" |
| 20996 | fi |
| 20997 | |
| 20998 | rm -f core conftest.err conftest.$ac_objext \ |
| 20999 | conftest$ac_exeext conftest.$ac_ext |
| 21000 | fi |
| 21001 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21003 | echo "${ECHO_T}$ac_res" >&6; } |
| 21004 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21005 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 21007 | _ACEOF |
| 21008 | |
| 21009 | fi |
| 21010 | done |
| 21011 | |
| 21012 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21013 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 21014 | |
| 21015 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21016 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 21017 | |
| 21018 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 21019 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 21020 | prefix="/usr/local" |
| 21021 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21022 | eval LLVM_PREFIX="${prefix}"; |
| 21023 | eval LLVM_BINDIR="${prefix}/bin"; |
| 21024 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21025 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 21026 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 21027 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21028 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 21029 | eval LLVM_INFODIR="${prefix}/info"; |
| 21030 | eval LLVM_MANDIR="${prefix}/man"; |
| 21031 | LLVM_CONFIGTIME=`date` |
| 21032 | |
| 21033 | |
| 21034 | |
| 21035 | |
| 21036 | |
| 21037 | |
| 21038 | |
| 21039 | |
| 21040 | |
| 21041 | |
| 21042 | |
Daniel Dunbar | c70b79e | 2012-03-02 16:24:21 +0000 | [diff] [blame] | 21043 | if test "${ENABLE_TIMESTAMPS}" = "0"; then |
| 21044 | LLVM_CONFIGTIME="(timestamp not enabled)" |
| 21045 | fi |
| 21046 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21047 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21048 | cat >>confdefs.h <<_ACEOF |
| 21049 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 21050 | _ACEOF |
| 21051 | |
| 21052 | |
| 21053 | cat >>confdefs.h <<_ACEOF |
| 21054 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 21055 | _ACEOF |
| 21056 | |
| 21057 | |
| 21058 | cat >>confdefs.h <<_ACEOF |
| 21059 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 21060 | _ACEOF |
| 21061 | |
| 21062 | |
| 21063 | cat >>confdefs.h <<_ACEOF |
| 21064 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 21065 | _ACEOF |
| 21066 | |
| 21067 | |
| 21068 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 21069 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21070 | _ACEOF |
| 21071 | |
| 21072 | |
| 21073 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 21074 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 21075 | _ACEOF |
| 21076 | |
| 21077 | |
| 21078 | cat >>confdefs.h <<_ACEOF |
| 21079 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 21080 | _ACEOF |
| 21081 | |
| 21082 | |
| 21083 | cat >>confdefs.h <<_ACEOF |
| 21084 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 21085 | _ACEOF |
| 21086 | |
| 21087 | |
| 21088 | cat >>confdefs.h <<_ACEOF |
| 21089 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 21090 | _ACEOF |
| 21091 | |
| 21092 | |
| 21093 | cat >>confdefs.h <<_ACEOF |
| 21094 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 21095 | _ACEOF |
| 21096 | |
| 21097 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21098 | cat >>confdefs.h <<_ACEOF |
NAKAMURA Takumi | 2864de7 | 2012-07-22 03:04:52 +0000 | [diff] [blame] | 21099 | #define LLVM_HOSTTRIPLE "$host" |
| 21100 | _ACEOF |
| 21101 | |
| 21102 | |
| 21103 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 21104 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 21105 | _ACEOF |
| 21106 | |
| 21107 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21108 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 21109 | BINDINGS_TO_BUILD="" |
| 21110 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 21111 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 21112 | fi |
| 21113 | fi |
| 21114 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 21115 | |
| 21116 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 21117 | ALL_BINDINGS=ocaml |
| 21118 | |
| 21119 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21120 | binding_prereqs_failed=0 |
| 21121 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 21122 | case "$a_binding" in |
| 21123 | ocaml) |
| 21124 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21125 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 21126 | 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] | 21127 | binding_prereqs_failed=1 |
| 21128 | fi |
| 21129 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21130 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 21131 | 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] | 21132 | binding_prereqs_failed=1 |
| 21133 | fi |
| 21134 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21135 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 21136 | 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] | 21137 | fi |
| 21138 | if test "x$with_ocaml_libdir" != xauto ; then |
| 21139 | OCAML_LIBDIR=$with_ocaml_libdir |
| 21140 | |
| 21141 | else |
| 21142 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 21143 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 21144 | then |
| 21145 | # ocaml stdlib is beneath our prefix; use stdlib |
| 21146 | OCAML_LIBDIR=$ocaml_stdlib |
| 21147 | |
| 21148 | else |
| 21149 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 21150 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 21151 | |
| 21152 | fi |
| 21153 | fi |
| 21154 | ;; |
| 21155 | esac |
| 21156 | done |
| 21157 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21158 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 21159 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 21160 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21161 | fi |
| 21162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 21164 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 21165 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 21166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21167 | else |
| 21168 | ac_ext=cpp |
| 21169 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21170 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21171 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21172 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21173 | |
| 21174 | oldcxxflags="$CXXFLAGS" |
NAKAMURA Takumi | 273df0b | 2012-02-19 12:05:12 +0000 | [diff] [blame] | 21175 | CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21176 | cat >conftest.$ac_ext <<_ACEOF |
| 21177 | /* confdefs.h. */ |
| 21178 | _ACEOF |
| 21179 | cat confdefs.h >>conftest.$ac_ext |
| 21180 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21181 | /* end confdefs.h. */ |
Benjamin Kramer | b8c20b8 | 2011-12-22 22:50:44 +0000 | [diff] [blame] | 21182 | template <typename T> struct X { void __attribute__((noinline)) f() {} }; |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21183 | int |
| 21184 | main () |
| 21185 | { |
Benjamin Kramer | cfe96c8 | 2011-12-22 22:25:26 +0000 | [diff] [blame] | 21186 | X<int>().f(); |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21187 | ; |
| 21188 | return 0; |
| 21189 | } |
| 21190 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21191 | rm -f conftest.$ac_objext |
| 21192 | if { (ac_try="$ac_compile" |
| 21193 | case "(($ac_try" in |
| 21194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21195 | *) ac_try_echo=$ac_try;; |
| 21196 | esac |
| 21197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21198 | (eval "$ac_compile") 2>conftest.er1 |
| 21199 | ac_status=$? |
| 21200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21201 | rm -f conftest.er1 |
| 21202 | cat conftest.err >&5 |
| 21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21204 | (exit $ac_status); } && |
| 21205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 21206 | { (case "(($ac_try" in |
| 21207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21208 | *) ac_try_echo=$ac_try;; |
| 21209 | esac |
| 21210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21211 | (eval "$ac_try") 2>&5 |
| 21212 | ac_status=$? |
| 21213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21214 | (exit $ac_status); }; } && |
| 21215 | { ac_try='test -s conftest.$ac_objext' |
| 21216 | { (case "(($ac_try" in |
| 21217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21218 | *) ac_try_echo=$ac_try;; |
| 21219 | esac |
| 21220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21221 | (eval "$ac_try") 2>&5 |
| 21222 | ac_status=$? |
| 21223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21224 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21225 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 21226 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21227 | echo "$as_me: failed program was:" >&5 |
| 21228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21229 | |
| 21230 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21231 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21232 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21234 | CXXFLAGS="$oldcxxflags" |
| 21235 | ac_ext=c |
| 21236 | ac_cpp='$CPP $CPPFLAGS' |
| 21237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21240 | |
| 21241 | |
| 21242 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21243 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 21244 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 21245 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 21246 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 21247 | |
| 21248 | else |
| 21249 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 21250 | |
| 21251 | fi |
| 21252 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 21253 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 21254 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 21255 | RPATH="-Wl,-R" |
| 21256 | else |
| 21257 | RPATH="-Wl,-rpath" |
| 21258 | fi |
| 21259 | |
| 21260 | |
| 21261 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 21262 | RDYNAMIC="-Wl,-export-dynamic" |
| 21263 | else |
| 21264 | RDYNAMIC="" |
| 21265 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 21266 | |
| 21267 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21268 | |
Eric Christopher | a1cba68 | 2010-08-08 02:44:25 +0000 | [diff] [blame] | 21269 | 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] | 21270 | |
Eric Christopher | 21d3eeb | 2010-08-08 09:20:39 +0000 | [diff] [blame] | 21271 | |
| 21272 | |
| 21273 | |
| 21274 | |
| 21275 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 21276 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 21277 | |
| 21278 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 21279 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21280 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 21281 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 21282 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 21283 | |
Michael J. Spencer | 1f6efa3 | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 21284 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21285 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21287 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21288 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21289 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21290 | ac_config_files="$ac_config_files llvm.spec" |
| 21291 | |
| 21292 | |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21293 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
| 21294 | |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21295 | |
Dylan Noblesmith | 3e82b4a | 2012-02-04 02:41:36 +0000 | [diff] [blame] | 21296 | if test "${clang_src_root}" = ""; then |
Eric Christopher | 9b3cd48 | 2012-02-02 01:11:30 +0000 | [diff] [blame] | 21297 | clang_src_root="$srcdir/tools/clang" |
Eric Christopher | ac89865 | 2012-02-02 00:19:05 +0000 | [diff] [blame] | 21298 | fi |
Eric Christopher | 63c0951 | 2012-02-02 00:16:55 +0000 | [diff] [blame] | 21299 | if test -f ${clang_src_root}/README.txt; then |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21300 | configh="include/clang/Config/config.h" |
| 21301 | doxy="docs/doxygen.cfg" |
| 21302 | 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] | 21303 | |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21304 | 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] | 21305 | |
| 21306 | fi |
| 21307 | |
Torok Edwin | 4c4b71c | 2011-10-14 20:38:02 +0000 | [diff] [blame] | 21308 | ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 21309 | |
Eric Christopher | 360fa9a | 2011-10-26 00:42:12 +0000 | [diff] [blame] | 21310 | |
Jordan Rose | 9208052 | 2012-10-01 18:40:32 +0000 | [diff] [blame] | 21311 | test "x$program_prefix" = "xNONE" && program_prefix="" |
| 21312 | |
| 21313 | |
| 21314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21315 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21317 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21318 | |
| 21319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21320 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21321 | |
| 21322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21323 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21324 | |
| 21325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21326 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21327 | |
| 21328 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21329 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 21330 | |
| 21331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21332 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21333 | |
| 21334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21335 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21336 | |
| 21337 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21338 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 21339 | |
| 21340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21341 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21342 | |
| 21343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21344 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21345 | |
| 21346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21347 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21348 | |
| 21349 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21350 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 21351 | |
| 21352 | |
| 21353 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 21354 | |
| 21355 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 21356 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21357 | cat >confcache <<\_ACEOF |
| 21358 | # This file is a shell script that caches the results of configure |
| 21359 | # tests run on this system so they can be shared between configure |
| 21360 | # scripts and configure runs, see configure's option --config-cache. |
| 21361 | # It is not useful on other systems. If it contains results you don't |
| 21362 | # want to keep, you may remove or edit it. |
| 21363 | # |
| 21364 | # config.status only pays attention to the cache file if you give it |
| 21365 | # the --recheck option to rerun configure. |
| 21366 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21367 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21368 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21369 | # following values. |
| 21370 | |
| 21371 | _ACEOF |
| 21372 | |
| 21373 | # The following way of writing the cache mishandles newlines in values, |
| 21374 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21375 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21376 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21377 | # 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] | 21378 | ( |
| 21379 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21380 | eval ac_val=\$$ac_var |
| 21381 | case $ac_val in #( |
| 21382 | *${as_nl}*) |
| 21383 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21384 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21385 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21386 | esac |
| 21387 | case $ac_var in #( |
| 21388 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21389 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21390 | esac ;; |
| 21391 | esac |
| 21392 | done |
| 21393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21394 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21395 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21396 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21397 | # `set' does not quote correctly, so add quotes (double-quote |
| 21398 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21399 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21400 | "s/'/'\\\\''/g; |
| 21401 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21402 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21403 | *) |
| 21404 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21405 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21406 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21407 | esac | |
| 21408 | sort |
| 21409 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21410 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21411 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21412 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21413 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21414 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21415 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21416 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21417 | :end' >>confcache |
| 21418 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21419 | if test -w "$cache_file"; then |
| 21420 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21421 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21422 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21423 | cat confcache >$cache_file |
| 21424 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21425 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21426 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21427 | fi |
| 21428 | fi |
| 21429 | rm -f confcache |
| 21430 | |
| 21431 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21432 | # Let make expand exec_prefix. |
| 21433 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21434 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21435 | DEFS=-DHAVE_CONFIG_H |
| 21436 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21437 | ac_libobjs= |
| 21438 | ac_ltlibobjs= |
| 21439 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21440 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21441 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21442 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21443 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21444 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21445 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21446 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21447 | done |
| 21448 | LIBOBJS=$ac_libobjs |
| 21449 | |
| 21450 | LTLIBOBJS=$ac_ltlibobjs |
| 21451 | |
| 21452 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21453 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21454 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21455 | Usually this means the macro was only invoked conditionally." >&5 |
| 21456 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21457 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21458 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21459 | fi |
| 21460 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21461 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21462 | Usually this means the macro was only invoked conditionally." >&5 |
| 21463 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21464 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21465 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21466 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21467 | |
| 21468 | : ${CONFIG_STATUS=./config.status} |
| 21469 | ac_clean_files_save=$ac_clean_files |
| 21470 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21471 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21472 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21473 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21474 | #! $SHELL |
| 21475 | # Generated by $as_me. |
| 21476 | # Run this file to recreate the current configuration. |
| 21477 | # Compiler output produced by configure, useful for debugging |
| 21478 | # configure, is in config.log if it exists. |
| 21479 | |
| 21480 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21481 | ac_cs_recheck=false |
| 21482 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21483 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21484 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21485 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21486 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21487 | ## --------------------- ## |
| 21488 | ## M4sh Initialization. ## |
| 21489 | ## --------------------- ## |
| 21490 | |
| 21491 | # Be Bourne compatible |
| 21492 | 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] | 21493 | emulate sh |
| 21494 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21495 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21496 | # is contrary to our usage. Disable this feature. |
| 21497 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21498 | setopt NO_GLOB_SUBST |
| 21499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21500 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21502 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21503 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21504 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21505 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21506 | # PATH needs CR |
| 21507 | # Avoid depending upon Character Ranges. |
| 21508 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21509 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21510 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21511 | as_cr_digits='0123456789' |
| 21512 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21513 | |
| 21514 | # The user is always right. |
| 21515 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21516 | echo "#! /bin/sh" >conf$$.sh |
| 21517 | echo "exit 0" >>conf$$.sh |
| 21518 | chmod +x conf$$.sh |
| 21519 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21520 | PATH_SEPARATOR=';' |
| 21521 | else |
| 21522 | PATH_SEPARATOR=: |
| 21523 | fi |
| 21524 | rm -f conf$$.sh |
| 21525 | fi |
| 21526 | |
| 21527 | # Support unset when possible. |
| 21528 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21529 | as_unset=unset |
| 21530 | else |
| 21531 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21532 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21534 | |
| 21535 | # IFS |
| 21536 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21537 | # there to prevent editors from complaining about space-tab. |
| 21538 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21539 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21540 | as_nl=' |
| 21541 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21542 | IFS=" "" $as_nl" |
| 21543 | |
| 21544 | # 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] | 21545 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21546 | *[\\/]* ) as_myself=$0 ;; |
| 21547 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21548 | for as_dir in $PATH |
| 21549 | do |
| 21550 | IFS=$as_save_IFS |
| 21551 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21552 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21553 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21554 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21556 | ;; |
| 21557 | esac |
| 21558 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21559 | # in which case we are not to be found in the path. |
| 21560 | if test "x$as_myself" = x; then |
| 21561 | as_myself=$0 |
| 21562 | fi |
| 21563 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21564 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21565 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21566 | fi |
| 21567 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21568 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21569 | for as_var in ENV MAIL MAILPATH |
| 21570 | 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] | 21571 | done |
| 21572 | PS1='$ ' |
| 21573 | PS2='> ' |
| 21574 | PS4='+ ' |
| 21575 | |
| 21576 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21577 | for as_var in \ |
| 21578 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21579 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21580 | LC_TELEPHONE LC_TIME |
| 21581 | do |
| 21582 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21583 | eval $as_var=C; export $as_var |
| 21584 | else |
| 21585 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21586 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21587 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21589 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21590 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21591 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21592 | as_expr=expr |
| 21593 | else |
| 21594 | as_expr=false |
| 21595 | fi |
| 21596 | |
| 21597 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21598 | as_basename=basename |
| 21599 | else |
| 21600 | as_basename=false |
| 21601 | fi |
| 21602 | |
| 21603 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21604 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21605 | as_me=`$as_basename -- "$0" || |
| 21606 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21607 | X"$0" : 'X\(//\)$' \| \ |
| 21608 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21609 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21610 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21611 | s//\1/ |
| 21612 | q |
| 21613 | } |
| 21614 | /^X\/\(\/\/\)$/{ |
| 21615 | s//\1/ |
| 21616 | q |
| 21617 | } |
| 21618 | /^X\/\(\/\).*/{ |
| 21619 | s//\1/ |
| 21620 | q |
| 21621 | } |
| 21622 | s/.*/./; q'` |
| 21623 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21624 | # CDPATH. |
| 21625 | $as_unset CDPATH |
| 21626 | |
| 21627 | |
| 21628 | |
| 21629 | as_lineno_1=$LINENO |
| 21630 | as_lineno_2=$LINENO |
| 21631 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21632 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21633 | |
| 21634 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21635 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21636 | # line-number line after each line using $LINENO; the second 'sed' |
| 21637 | # does the real work. The second script uses 'N' to pair each |
| 21638 | # line-number line with the line containing $LINENO, and appends |
| 21639 | # trailing '-' during substitution so that $LINENO is not a special |
| 21640 | # case at line end. |
| 21641 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21642 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21643 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21644 | sed -n ' |
| 21645 | p |
| 21646 | /[$]LINENO/= |
| 21647 | ' <$as_myself | |
| 21648 | sed ' |
| 21649 | s/[$]LINENO.*/&-/ |
| 21650 | t lineno |
| 21651 | b |
| 21652 | :lineno |
| 21653 | N |
| 21654 | :loop |
| 21655 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21656 | t loop |
| 21657 | s/-\n.*// |
| 21658 | ' >$as_me.lineno && |
| 21659 | chmod +x "$as_me.lineno" || |
| 21660 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21661 | { (exit 1); exit 1; }; } |
| 21662 | |
| 21663 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21664 | # (the dirname of $[0] is not the place where we might find the |
| 21665 | # original and so on. Autoconf is especially sensitive to this). |
| 21666 | . "./$as_me.lineno" |
| 21667 | # Exit status is that of the last command. |
| 21668 | exit |
| 21669 | } |
| 21670 | |
| 21671 | |
| 21672 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21673 | as_dirname=dirname |
| 21674 | else |
| 21675 | as_dirname=false |
| 21676 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21677 | |
| 21678 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21679 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21680 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21681 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21682 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21683 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21684 | esac;; |
| 21685 | *) |
| 21686 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21687 | esac |
| 21688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21689 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21690 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21691 | as_expr=expr |
| 21692 | else |
| 21693 | as_expr=false |
| 21694 | fi |
| 21695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21696 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21697 | if test -d conf$$.dir; then |
| 21698 | rm -f conf$$.dir/conf$$.file |
| 21699 | else |
| 21700 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21701 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21702 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21703 | echo >conf$$.file |
| 21704 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21705 | as_ln_s='ln -s' |
| 21706 | # ... but there are two gotchas: |
| 21707 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21708 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21709 | # In both cases, we have to default to `cp -p'. |
| 21710 | 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] | 21711 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21712 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21713 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21714 | else |
| 21715 | as_ln_s='cp -p' |
| 21716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21717 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21718 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21719 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21720 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21721 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21722 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21723 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21724 | as_mkdir_p=false |
| 21725 | fi |
| 21726 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21727 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21728 | # systems may use methods other than mode bits to determine executability. |
| 21729 | cat >conf$$.file <<_ASEOF |
| 21730 | #! /bin/sh |
| 21731 | exit 0 |
| 21732 | _ASEOF |
| 21733 | chmod +x conf$$.file |
| 21734 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21735 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21736 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21737 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21738 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21739 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21740 | |
| 21741 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21742 | 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] | 21743 | |
| 21744 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21745 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21746 | |
| 21747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21748 | exec 6>&1 |
| 21749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21750 | # 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] | 21751 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21752 | # values after options handling. |
| 21753 | ac_log=" |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 21754 | This file was extended by LLVM $as_me 3.3svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21755 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21756 | |
| 21757 | CONFIG_FILES = $CONFIG_FILES |
| 21758 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21759 | CONFIG_LINKS = $CONFIG_LINKS |
| 21760 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21761 | $ $0 $@ |
| 21762 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21763 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21764 | " |
| 21765 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21766 | _ACEOF |
| 21767 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21768 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21769 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | config_files="$ac_config_files" |
| 21771 | config_headers="$ac_config_headers" |
| 21772 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21774 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21775 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21776 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21777 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21778 | \`$as_me' instantiates files from templates according to the |
| 21779 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21781 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21782 | |
| 21783 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21784 | -V, --version print version number, then exit |
| 21785 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21786 | -d, --debug don't remove temporary files |
| 21787 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21788 | --file=FILE[:TEMPLATE] |
| 21789 | instantiate the configuration file FILE |
| 21790 | --header=FILE[:TEMPLATE] |
| 21791 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21792 | |
| 21793 | Configuration files: |
| 21794 | $config_files |
| 21795 | |
| 21796 | Configuration headers: |
| 21797 | $config_headers |
| 21798 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21799 | Configuration commands: |
| 21800 | $config_commands |
| 21801 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21802 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21804 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21805 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21806 | ac_cs_version="\\ |
Benjamin Kramer | 537d9a7 | 2012-11-17 22:01:08 +0000 | [diff] [blame] | 21807 | LLVM config.status 3.3svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21808 | configured by $0, generated by GNU Autoconf 2.60, |
| 21809 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21810 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21811 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21812 | This config.status script is free software; the Free Software Foundation |
| 21813 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21814 | |
| 21815 | ac_pwd='$ac_pwd' |
| 21816 | srcdir='$srcdir' |
| 21817 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21818 | _ACEOF |
| 21819 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21820 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21821 | # If no file are specified by the user, then we need to provide default |
| 21822 | # 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] | 21823 | ac_need_defaults=: |
| 21824 | while test $# != 0 |
| 21825 | do |
| 21826 | case $1 in |
| 21827 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21828 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21829 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21830 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21831 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21832 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21833 | ac_option=$1 |
| 21834 | ac_optarg=$2 |
| 21835 | ac_shift=shift |
| 21836 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21837 | esac |
| 21838 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21839 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21840 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21841 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21842 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21843 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21844 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21845 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21846 | debug=: ;; |
| 21847 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21848 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21849 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21850 | ac_need_defaults=false;; |
| 21851 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21852 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21853 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21854 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21855 | --he | --h) |
| 21856 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21857 | { echo "$as_me: error: ambiguous option: $1 |
| 21858 | Try \`$0 --help' for more information." >&2 |
| 21859 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21860 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21861 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21862 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21863 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21864 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21865 | |
| 21866 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21867 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21868 | Try \`$0 --help' for more information." >&2 |
| 21869 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21870 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21871 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21872 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21873 | |
| 21874 | esac |
| 21875 | shift |
| 21876 | done |
| 21877 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21878 | ac_configure_extra_args= |
| 21879 | |
| 21880 | if $ac_cs_silent; then |
| 21881 | exec 6>/dev/null |
| 21882 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21883 | fi |
| 21884 | |
| 21885 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21886 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21887 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21888 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21889 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21890 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21891 | 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] | 21892 | fi |
| 21893 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21894 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21895 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21896 | exec 5>>config.log |
| 21897 | { |
| 21898 | echo |
| 21899 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21900 | ## Running $as_me. ## |
| 21901 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21902 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21903 | } >&5 |
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 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21906 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21907 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21908 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21909 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21910 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21911 | |
| 21912 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21913 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21914 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21915 | |
| 21916 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21917 | for ac_config_target in $ac_config_targets |
| 21918 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21919 | case $ac_config_target in |
| 21920 | "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] | 21921 | "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] | 21922 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21923 | "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] | 21924 | "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] | 21925 | "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] | 21926 | "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] | 21927 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21928 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Peter Collingbourne | 7be3a60 | 2011-05-13 03:27:56 +0000 | [diff] [blame] | 21929 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Dylan Noblesmith | 965a166 | 2012-02-04 03:00:50 +0000 | [diff] [blame] | 21930 | "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; |
| 21931 | "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] | 21932 | "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] | 21933 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21934 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21935 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21936 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21937 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21938 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21939 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21940 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21941 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21942 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21943 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21944 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21945 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21946 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21948 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21949 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21950 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21951 | esac |
| 21952 | done |
| 21953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21954 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21955 | # If the user did not use the arguments to specify the items to instantiate, |
| 21956 | # then the envvar interface is used. Set only those that are not. |
| 21957 | # We use the long form for the default assignment because of an extremely |
| 21958 | # bizarre bug on SunOS 4.1.3. |
| 21959 | if $ac_need_defaults; then |
| 21960 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21961 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21962 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21963 | fi |
| 21964 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21965 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21966 | # 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] | 21967 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21968 | # Hook for its removal unless debugging. |
| 21969 | # Note that there is a small window in which the directory will not be cleaned: |
| 21970 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21971 | $debug || |
| 21972 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21973 | tmp= |
| 21974 | trap 'exit_status=$? |
| 21975 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21976 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21977 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21978 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21979 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21981 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21982 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21983 | test -n "$tmp" && test -d "$tmp" |
| 21984 | } || |
| 21985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21986 | tmp=./conf$$-$RANDOM |
| 21987 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21988 | } || |
| 21989 | { |
| 21990 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21991 | { (exit 1); exit 1; } |
| 21992 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21993 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21994 | # |
| 21995 | # Set up the sed scripts for CONFIG_FILES section. |
| 21996 | # |
| 21997 | |
| 21998 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21999 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22000 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22001 | |
| 22002 | _ACEOF |
| 22003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22004 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22006 | ac_delim='%!_!# ' |
| 22007 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22008 | cat >conf$$subs.sed <<_ACEOF |
| 22009 | SHELL!$SHELL$ac_delim |
| 22010 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 22011 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 22012 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 22013 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 22014 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 22015 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 22016 | exec_prefix!$exec_prefix$ac_delim |
| 22017 | prefix!$prefix$ac_delim |
| 22018 | program_transform_name!$program_transform_name$ac_delim |
| 22019 | bindir!$bindir$ac_delim |
| 22020 | sbindir!$sbindir$ac_delim |
| 22021 | libexecdir!$libexecdir$ac_delim |
| 22022 | datarootdir!$datarootdir$ac_delim |
| 22023 | datadir!$datadir$ac_delim |
| 22024 | sysconfdir!$sysconfdir$ac_delim |
| 22025 | sharedstatedir!$sharedstatedir$ac_delim |
| 22026 | localstatedir!$localstatedir$ac_delim |
| 22027 | includedir!$includedir$ac_delim |
| 22028 | oldincludedir!$oldincludedir$ac_delim |
| 22029 | docdir!$docdir$ac_delim |
| 22030 | infodir!$infodir$ac_delim |
| 22031 | htmldir!$htmldir$ac_delim |
| 22032 | dvidir!$dvidir$ac_delim |
| 22033 | pdfdir!$pdfdir$ac_delim |
| 22034 | psdir!$psdir$ac_delim |
| 22035 | libdir!$libdir$ac_delim |
| 22036 | localedir!$localedir$ac_delim |
| 22037 | mandir!$mandir$ac_delim |
| 22038 | DEFS!$DEFS$ac_delim |
| 22039 | ECHO_C!$ECHO_C$ac_delim |
| 22040 | ECHO_N!$ECHO_N$ac_delim |
| 22041 | ECHO_T!$ECHO_T$ac_delim |
| 22042 | LIBS!$LIBS$ac_delim |
| 22043 | build_alias!$build_alias$ac_delim |
| 22044 | host_alias!$host_alias$ac_delim |
| 22045 | target_alias!$target_alias$ac_delim |
| 22046 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22047 | CC!$CC$ac_delim |
| 22048 | CFLAGS!$CFLAGS$ac_delim |
| 22049 | LDFLAGS!$LDFLAGS$ac_delim |
| 22050 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 22051 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 22052 | EXEEXT!$EXEEXT$ac_delim |
| 22053 | OBJEXT!$OBJEXT$ac_delim |
| 22054 | CXX!$CXX$ac_delim |
| 22055 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 22056 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 22057 | CPP!$CPP$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22058 | subdirs!$subdirs$ac_delim |
Tobias Grosser | baaadb2 | 2010-10-30 00:54:26 +0000 | [diff] [blame] | 22059 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 22060 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22061 | build!$build$ac_delim |
| 22062 | build_cpu!$build_cpu$ac_delim |
| 22063 | build_vendor!$build_vendor$ac_delim |
| 22064 | build_os!$build_os$ac_delim |
| 22065 | host!$host$ac_delim |
| 22066 | host_cpu!$host_cpu$ac_delim |
| 22067 | host_vendor!$host_vendor$ac_delim |
| 22068 | host_os!$host_os$ac_delim |
| 22069 | target!$target$ac_delim |
| 22070 | target_cpu!$target_cpu$ac_delim |
| 22071 | target_vendor!$target_vendor$ac_delim |
| 22072 | target_os!$target_os$ac_delim |
| 22073 | OS!$OS$ac_delim |
| 22074 | HOST_OS!$HOST_OS$ac_delim |
| 22075 | TARGET_OS!$TARGET_OS$ac_delim |
| 22076 | LINKALL!$LINKALL$ac_delim |
| 22077 | NOLINKALL!$NOLINKALL$ac_delim |
| 22078 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 22079 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 22080 | ARCH!$ARCH$ac_delim |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 22081 | HOST_ARCH!$HOST_ARCH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22082 | ENDIAN!$ENDIAN$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22083 | GREP!$GREP$ac_delim |
| 22084 | EGREP!$EGREP$ac_delim |
| 22085 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 22086 | BUILD_CC!$BUILD_CC$ac_delim |
| 22087 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 22088 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 22089 | CVSBUILD!$CVSBUILD$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22090 | ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 22091 | ENABLE_CXX11!$ENABLE_CXX11$ac_delim |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 22092 | ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim |
| 22093 | ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim |
| 22094 | ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22095 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 22096 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 22097 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 22098 | ENABLE_WERROR!$ENABLE_WERROR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22099 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 22100 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 22101 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 22102 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 22103 | KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22104 | JIT!$JIT$ac_delim |
| 22105 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22106 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22107 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22108 | 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] | 22109 | break |
| 22110 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22111 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22112 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22113 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22114 | else |
| 22115 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22117 | done |
| 22118 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22119 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22120 | if test -n "$ac_eof"; then |
| 22121 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22122 | ac_eof=`expr $ac_eof + 1` |
| 22123 | fi |
| 22124 | |
| 22125 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22126 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 22127 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22128 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22129 | sed ' |
| 22130 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22131 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22132 | :n |
| 22133 | t n |
| 22134 | s/'"$ac_delim"'$/,g/; t |
| 22135 | s/$/\\/; p |
| 22136 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22137 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22138 | rm -f conf$$subs.sed |
| 22139 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22140 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22141 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22142 | |
| 22143 | |
| 22144 | ac_delim='%!_!# ' |
| 22145 | for ac_last_try in false false false false false :; do |
| 22146 | cat >conf$$subs.sed <<_ACEOF |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 22147 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
| 22148 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 22149 | LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim |
Daniel Dunbar | 7126ee0 | 2012-08-14 18:14:22 +0000 | [diff] [blame] | 22150 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
Eric Christopher | 09a8873 | 2012-08-03 19:58:20 +0000 | [diff] [blame] | 22151 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Eric Christopher | 8212002 | 2012-08-03 19:47:14 +0000 | [diff] [blame] | 22152 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Danil Malyshev | bb8cef5 | 2012-05-17 21:07:47 +0000 | [diff] [blame] | 22153 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
Eric Christopher | bee515f | 2011-11-11 22:51:42 +0000 | [diff] [blame] | 22154 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Eric Christopher | f0b3b74 | 2012-11-19 19:31:02 +0000 | [diff] [blame] | 22155 | ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim |
Eric Christopher | ffee572 | 2011-09-16 20:36:25 +0000 | [diff] [blame] | 22156 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 22157 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 22158 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
NAKAMURA Takumi | 8eac886 | 2010-12-29 03:59:14 +0000 | [diff] [blame] | 22159 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
NAKAMURA Takumi | 0dc8439 | 2010-12-29 03:59:03 +0000 | [diff] [blame] | 22160 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22161 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22162 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Daniel Dunbar | ed344d2 | 2011-06-16 22:30:41 +0000 | [diff] [blame] | 22163 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
NAKAMURA Takumi | e5ab51d | 2011-10-16 02:54:26 +0000 | [diff] [blame] | 22164 | CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 22165 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Bob Wilson | ae7e2a4 | 2011-11-28 07:59:52 +0000 | [diff] [blame] | 22166 | INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22167 | NM!$NM$ac_delim |
| 22168 | ifGNUmake!$ifGNUmake$ac_delim |
| 22169 | LN_S!$LN_S$ac_delim |
| 22170 | CMP!$CMP$ac_delim |
| 22171 | CP!$CP$ac_delim |
| 22172 | DATE!$DATE$ac_delim |
| 22173 | FIND!$FIND$ac_delim |
| 22174 | MKDIR!$MKDIR$ac_delim |
| 22175 | MV!$MV$ac_delim |
| 22176 | RANLIB!$RANLIB$ac_delim |
| 22177 | AR!$AR$ac_delim |
| 22178 | RM!$RM$ac_delim |
| 22179 | SED!$SED$ac_delim |
| 22180 | TAR!$TAR$ac_delim |
| 22181 | BINPWD!$BINPWD$ac_delim |
| 22182 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 22183 | DOT!$DOT$ac_delim |
| 22184 | FDP!$FDP$ac_delim |
| 22185 | NEATO!$NEATO$ac_delim |
| 22186 | TWOPI!$TWOPI$ac_delim |
| 22187 | CIRCO!$CIRCO$ac_delim |
| 22188 | GV!$GV$ac_delim |
| 22189 | DOTTY!$DOTTY$ac_delim |
Dan Gohman | 48fd5a7 | 2010-09-27 16:28:34 +0000 | [diff] [blame] | 22190 | XDOT_PY!$XDOT_PY$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22191 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 22192 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 22193 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 22194 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 22195 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22196 | DOXYGEN!$DOXYGEN$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22197 | GROFF!$GROFF$ac_delim |
Eric Christopher | 031d307 | 2010-12-10 01:31:51 +0000 | [diff] [blame] | 22198 | GZIPBIN!$GZIPBIN$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22199 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22200 | ZIP!$ZIP$ac_delim |
| 22201 | OCAMLC!$OCAMLC$ac_delim |
| 22202 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 22203 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 22204 | OCAMLDOC!$OCAMLDOC$ac_delim |
Daniel Dunbar | f468fd8 | 2012-05-08 18:26:07 +0000 | [diff] [blame] | 22205 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 22206 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22207 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 22208 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 22209 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 22210 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 22211 | LIBADD_DL!$LIBADD_DL$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22212 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 22213 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
Rafael Espindola | 9993a3a | 2012-02-28 23:32:06 +0000 | [diff] [blame] | 22214 | COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22215 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 22216 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Eli Bendersky | 61b1851 | 2012-03-13 08:33:15 +0000 | [diff] [blame] | 22217 | USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim |
Eric Christopher | 46e6bcf | 2012-08-03 19:47:19 +0000 | [diff] [blame] | 22218 | XML2CONFIG!$XML2CONFIG$ac_delim |
| 22219 | LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim |
| 22220 | LIBXML2_INC!$LIBXML2_INC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22221 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 22222 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 22223 | MMAP_FILE!$MMAP_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22224 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 22225 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22226 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 22227 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 22228 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 22229 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 22230 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 22231 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 22232 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 22233 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 22234 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 22235 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 22236 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 22237 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22238 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 22239 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 22240 | RPATH!$RPATH$ac_delim |
| 22241 | RDYNAMIC!$RDYNAMIC$ac_delim |
Jordan Rose | 9208052 | 2012-10-01 18:40:32 +0000 | [diff] [blame] | 22242 | program_prefix!$program_prefix$ac_delim |
Eric Christopher | eeef9e8 | 2011-09-20 23:58:15 +0000 | [diff] [blame] | 22243 | LIBOBJS!$LIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22244 | _ACEOF |
| 22245 | |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 22246 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22247 | break |
| 22248 | elif $ac_last_try; then |
| 22249 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22250 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22251 | { (exit 1); exit 1; }; } |
| 22252 | else |
| 22253 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22254 | fi |
| 22255 | done |
| 22256 | |
| 22257 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22258 | if test -n "$ac_eof"; then |
| 22259 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22260 | ac_eof=`expr $ac_eof + 1` |
| 22261 | fi |
| 22262 | |
| 22263 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22264 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 22265 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22266 | _ACEOF |
| 22267 | sed ' |
| 22268 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22269 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22270 | :n |
| 22271 | t n |
| 22272 | s/'"$ac_delim"'$/,g/; t |
| 22273 | s/$/\\/; p |
| 22274 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22275 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22276 | rm -f conf$$subs.sed |
| 22277 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22278 | CEOF$ac_eof |
| 22279 | _ACEOF |
| 22280 | |
| 22281 | |
| 22282 | ac_delim='%!_!# ' |
| 22283 | for ac_last_try in false false false false false :; do |
| 22284 | cat >conf$$subs.sed <<_ACEOF |
| 22285 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 22286 | _ACEOF |
| 22287 | |
| 22288 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then |
| 22289 | break |
| 22290 | elif $ac_last_try; then |
| 22291 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 22292 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 22293 | { (exit 1); exit 1; }; } |
| 22294 | else |
| 22295 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 22296 | fi |
| 22297 | done |
| 22298 | |
| 22299 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 22300 | if test -n "$ac_eof"; then |
| 22301 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 22302 | ac_eof=`expr $ac_eof + 1` |
| 22303 | fi |
| 22304 | |
| 22305 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22306 | cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof |
Jordan Rose | 85042e6 | 2012-09-26 00:01:00 +0000 | [diff] [blame] | 22307 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22308 | _ACEOF |
| 22309 | sed ' |
| 22310 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 22311 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 22312 | :n |
| 22313 | t n |
| 22314 | s/'"$ac_delim"'$/,g/; t |
| 22315 | s/$/\\/; p |
| 22316 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 22317 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 22318 | rm -f conf$$subs.sed |
| 22319 | cat >>$CONFIG_STATUS <<_ACEOF |
Jordan Rose | 85042e6 | 2012-09-26 00:01:00 +0000 | [diff] [blame] | 22320 | :end |
| 22321 | s/|#_!!_#|//g |
Tobias Grosser | a84b567 | 2010-11-10 16:31:34 +0000 | [diff] [blame] | 22322 | CEOF$ac_eof |
| 22323 | _ACEOF |
| 22324 | |
| 22325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22326 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22327 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22328 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22329 | # (actually we leave an empty line to preserve line numbers). |
| 22330 | if test "x$srcdir" = x.; then |
| 22331 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 22332 | s/:*\$(srcdir):*/:/ |
| 22333 | s/:*\${srcdir}:*/:/ |
| 22334 | s/:*@srcdir@:*/:/ |
| 22335 | s/^\([^=]*=[ ]*\):*/\1/ |
| 22336 | s/:*$// |
| 22337 | s/^[^=]*=[ ]*$// |
| 22338 | }' |
| 22339 | fi |
| 22340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22341 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22342 | fi # test -n "$CONFIG_FILES" |
| 22343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22344 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22345 | 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] | 22346 | do |
| 22347 | case $ac_tag in |
| 22348 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 22349 | esac |
| 22350 | case $ac_mode$ac_tag in |
| 22351 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22352 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 22353 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 22354 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22355 | :[FH]-) ac_tag=-:-;; |
| 22356 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 22357 | esac |
| 22358 | ac_save_IFS=$IFS |
| 22359 | IFS=: |
| 22360 | set x $ac_tag |
| 22361 | IFS=$ac_save_IFS |
| 22362 | shift |
| 22363 | ac_file=$1 |
| 22364 | shift |
| 22365 | |
| 22366 | case $ac_mode in |
| 22367 | :L) ac_source=$1;; |
| 22368 | :[FH]) |
| 22369 | ac_file_inputs= |
| 22370 | for ac_f |
| 22371 | do |
| 22372 | case $ac_f in |
| 22373 | -) ac_f="$tmp/stdin";; |
| 22374 | *) # Look for the file first in the build tree, then in the source tree |
| 22375 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 22376 | # because $ac_f cannot contain `:'. |
| 22377 | test -f "$ac_f" || |
| 22378 | case $ac_f in |
| 22379 | [\\/$]*) false;; |
| 22380 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 22381 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22382 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 22383 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 22384 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22385 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22386 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22387 | done |
| 22388 | |
| 22389 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22390 | # use $as_me), people would be surprised to read: |
| 22391 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22392 | configure_input="Generated from "`IFS=: |
| 22393 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22394 | if test x"$ac_file" != x-; then |
| 22395 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22396 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22397 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22398 | fi |
| 22399 | |
| 22400 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22401 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22402 | esac |
| 22403 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22404 | esac |
| 22405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22406 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22407 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22408 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22409 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22410 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22411 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22413 | s//\1/ |
| 22414 | q |
| 22415 | } |
| 22416 | /^X\(\/\/\)[^/].*/{ |
| 22417 | s//\1/ |
| 22418 | q |
| 22419 | } |
| 22420 | /^X\(\/\/\)$/{ |
| 22421 | s//\1/ |
| 22422 | q |
| 22423 | } |
| 22424 | /^X\(\/\).*/{ |
| 22425 | s//\1/ |
| 22426 | q |
| 22427 | } |
| 22428 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22429 | { as_dir="$ac_dir" |
| 22430 | case $as_dir in #( |
| 22431 | -*) as_dir=./$as_dir;; |
| 22432 | esac |
| 22433 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22434 | as_dirs= |
| 22435 | while :; do |
| 22436 | case $as_dir in #( |
| 22437 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22438 | *) as_qdir=$as_dir;; |
| 22439 | esac |
| 22440 | as_dirs="'$as_qdir' $as_dirs" |
| 22441 | as_dir=`$as_dirname -- "$as_dir" || |
| 22442 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22443 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22444 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22445 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22446 | echo X"$as_dir" | |
| 22447 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22448 | s//\1/ |
| 22449 | q |
| 22450 | } |
| 22451 | /^X\(\/\/\)[^/].*/{ |
| 22452 | s//\1/ |
| 22453 | q |
| 22454 | } |
| 22455 | /^X\(\/\/\)$/{ |
| 22456 | s//\1/ |
| 22457 | q |
| 22458 | } |
| 22459 | /^X\(\/\).*/{ |
| 22460 | s//\1/ |
| 22461 | q |
| 22462 | } |
| 22463 | s/.*/./; q'` |
| 22464 | test -d "$as_dir" && break |
| 22465 | done |
| 22466 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22467 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22468 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22469 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22470 | ac_builddir=. |
| 22471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22472 | case "$ac_dir" in |
| 22473 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22474 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22475 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22476 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22477 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22478 | case $ac_top_builddir_sub in |
| 22479 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22480 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22481 | esac ;; |
| 22482 | esac |
| 22483 | ac_abs_top_builddir=$ac_pwd |
| 22484 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22485 | # for backward compatibility: |
| 22486 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22487 | |
| 22488 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22489 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22490 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22491 | ac_top_srcdir=$ac_top_builddir_sub |
| 22492 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22493 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22494 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22495 | ac_top_srcdir=$srcdir |
| 22496 | ac_abs_top_srcdir=$srcdir ;; |
| 22497 | *) # Relative name. |
| 22498 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22499 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22500 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22501 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22502 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22503 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22505 | case $ac_mode in |
| 22506 | :F) |
| 22507 | # |
| 22508 | # CONFIG_FILE |
| 22509 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22510 | |
| 22511 | case $INSTALL in |
| 22512 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22513 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22514 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22515 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22516 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22517 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22518 | # If the template does not know about datarootdir, expand it. |
| 22519 | # FIXME: This hack should be removed a few years after 2.60. |
| 22520 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22521 | |
| 22522 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22523 | p |
| 22524 | q |
| 22525 | } |
| 22526 | /@datadir@/p |
| 22527 | /@docdir@/p |
| 22528 | /@infodir@/p |
| 22529 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22530 | /@mandir@/p |
| 22531 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22532 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22533 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22534 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22535 | 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] | 22536 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22537 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22538 | ac_datarootdir_hack=' |
| 22539 | s&@datadir@&$datadir&g |
| 22540 | s&@docdir@&$docdir&g |
| 22541 | s&@infodir@&$infodir&g |
| 22542 | s&@localedir@&$localedir&g |
| 22543 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22544 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22545 | esac |
| 22546 | _ACEOF |
| 22547 | |
| 22548 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22549 | # Shell code in configure.ac might set extrasub. |
| 22550 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22551 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22552 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22553 | $extrasub |
| 22554 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22555 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22556 | :t |
| 22557 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22558 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22559 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22560 | s&@srcdir@&$ac_srcdir&;t t |
| 22561 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22562 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22563 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22564 | s&@builddir@&$ac_builddir&;t t |
| 22565 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22566 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22567 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22568 | $ac_datarootdir_hack |
Roman Divacky | d14baf4 | 2012-12-13 16:07:19 +0000 | [diff] [blame] | 22569 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22571 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22572 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22573 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22574 | { 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] | 22575 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22576 | 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] | 22577 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22579 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22580 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22581 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22582 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22583 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22584 | ;; |
| 22585 | :H) |
| 22586 | # |
| 22587 | # CONFIG_HEADER |
| 22588 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22589 | _ACEOF |
| 22590 | |
| 22591 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22592 | # substitutes the proper values into config.h.in to produce config.h. |
| 22593 | rm -f conftest.defines conftest.tail |
| 22594 | # First, append a space to every undef/define line, to ease matching. |
| 22595 | echo 's/$/ /' >conftest.defines |
| 22596 | # Then, protect against being on the right side of a sed subst, or in |
| 22597 | # an unquoted here document, in config.status. If some macros were |
| 22598 | # called several times there might be several #defines for the same |
| 22599 | # symbol, which is useless. But do not sort them, since the last |
| 22600 | # AC_DEFINE must be honored. |
| 22601 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22602 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22603 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22604 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22605 | # just an empty string. |
| 22606 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22607 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22608 | ac_dC=' ' |
| 22609 | ac_dD=' ,' |
| 22610 | |
| 22611 | uniq confdefs.h | |
| 22612 | sed -n ' |
| 22613 | t rset |
| 22614 | :rset |
| 22615 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22616 | t ok |
| 22617 | d |
| 22618 | :ok |
| 22619 | s/[\\&,]/\\&/g |
| 22620 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22621 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22622 | ' >>conftest.defines |
| 22623 | |
| 22624 | # Remove the space that was appended to ease matching. |
| 22625 | # Then replace #undef with comments. This is necessary, for |
| 22626 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22627 | # on some systems where configure will not decide to define it. |
| 22628 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22629 | echo 's/ $// |
| 22630 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22631 | |
| 22632 | # Break up conftest.defines: |
| 22633 | ac_max_sed_lines=50 |
| 22634 | |
| 22635 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22636 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22637 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22638 | # et cetera. |
| 22639 | ac_in='$ac_file_inputs' |
| 22640 | ac_out='"$tmp/out1"' |
| 22641 | ac_nxt='"$tmp/out2"' |
| 22642 | |
| 22643 | while : |
| 22644 | do |
| 22645 | # Write a here document: |
| 22646 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22647 | # First, check the format of the line: |
| 22648 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22649 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22650 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22651 | b |
| 22652 | :def |
| 22653 | _ACEOF |
| 22654 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22655 | echo 'CEOF |
| 22656 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22657 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22658 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22659 | grep . conftest.tail >/dev/null || break |
| 22660 | rm -f conftest.defines |
| 22661 | mv conftest.tail conftest.defines |
| 22662 | done |
| 22663 | rm -f conftest.defines conftest.tail |
| 22664 | |
| 22665 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22666 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22667 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22668 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22669 | cat "$ac_result" >>"$tmp/config.h" |
| 22670 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22671 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22672 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22673 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22674 | rm -f $ac_file |
| 22675 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22676 | fi |
| 22677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22678 | echo "/* $configure_input */" |
| 22679 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22680 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22681 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22682 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22684 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22685 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22686 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22687 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22689 | |
| 22690 | case $ac_file$ac_mode in |
| 22691 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22692 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22693 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22694 | ${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] | 22695 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22696 | ${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] | 22697 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22698 | ${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] | 22699 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22700 | ${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] | 22701 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22702 | ${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] | 22703 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22704 | ${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] | 22705 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22706 | ${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] | 22707 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22708 | ${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] | 22709 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22710 | ${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] | 22711 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22712 | ${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] | 22713 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22714 | ${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] | 22715 | "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] | 22716 | ${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] | 22717 | |
| 22718 | esac |
| 22719 | done # for ac_tag |
| 22720 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22721 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22722 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22723 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22724 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22725 | ac_clean_files=$ac_clean_files_save |
| 22726 | |
| 22727 | |
| 22728 | # configure is writing to config.log, and then calls config.status. |
| 22729 | # config.status does its own redirection, appending to config.log. |
| 22730 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22731 | # by configure, so config.status won't be able to write to it; its |
| 22732 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22733 | # effectively closing config.log, so it can be properly (re)opened and |
| 22734 | # appended to by config.status. When coming back to configure, we |
| 22735 | # need to make the FD available again. |
| 22736 | if test "$no_create" != yes; then |
| 22737 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22738 | ac_config_status_args= |
| 22739 | test "$silent" = yes && |
| 22740 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22741 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22742 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22743 | exec 5>>config.log |
| 22744 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22745 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22746 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22747 | fi |
| 22748 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22749 | # |
| 22750 | # CONFIG_SUBDIRS section. |
| 22751 | # |
| 22752 | if test "$no_recursion" != yes; then |
| 22753 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22754 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22755 | ac_sub_configure_args= |
| 22756 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22757 | eval "set x $ac_configure_args" |
| 22758 | shift |
| 22759 | for ac_arg |
| 22760 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22761 | if test -n "$ac_prev"; then |
| 22762 | ac_prev= |
| 22763 | continue |
| 22764 | fi |
| 22765 | case $ac_arg in |
| 22766 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22767 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22768 | ac_prev=cache_file ;; |
| 22769 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22770 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22771 | | --c=*) |
| 22772 | ;; |
| 22773 | --config-cache | -C) |
| 22774 | ;; |
| 22775 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22776 | ac_prev=srcdir ;; |
| 22777 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22778 | ;; |
| 22779 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22780 | ac_prev=prefix ;; |
| 22781 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22782 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22783 | *) |
| 22784 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22785 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22786 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22787 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22788 | esac |
| 22789 | done |
| 22790 | |
| 22791 | # Always prepend --prefix to ensure using the same prefix |
| 22792 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22793 | ac_arg="--prefix=$prefix" |
| 22794 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22795 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22796 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22797 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22798 | |
| 22799 | ac_popdir=`pwd` |
| 22800 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22801 | |
| 22802 | # Do not complain, so a configure script can configure whichever |
| 22803 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22804 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22806 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22807 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22808 | echo "$ac_msg" >&6 |
| 22809 | { as_dir="$ac_dir" |
| 22810 | case $as_dir in #( |
| 22811 | -*) as_dir=./$as_dir;; |
| 22812 | esac |
| 22813 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22814 | as_dirs= |
| 22815 | while :; do |
| 22816 | case $as_dir in #( |
| 22817 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22818 | *) as_qdir=$as_dir;; |
| 22819 | esac |
| 22820 | as_dirs="'$as_qdir' $as_dirs" |
| 22821 | as_dir=`$as_dirname -- "$as_dir" || |
| 22822 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22823 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22824 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22825 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22826 | echo X"$as_dir" | |
| 22827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22828 | s//\1/ |
| 22829 | q |
| 22830 | } |
| 22831 | /^X\(\/\/\)[^/].*/{ |
| 22832 | s//\1/ |
| 22833 | q |
| 22834 | } |
| 22835 | /^X\(\/\/\)$/{ |
| 22836 | s//\1/ |
| 22837 | q |
| 22838 | } |
| 22839 | /^X\(\/\).*/{ |
| 22840 | s//\1/ |
| 22841 | q |
| 22842 | } |
| 22843 | s/.*/./; q'` |
| 22844 | test -d "$as_dir" && break |
| 22845 | done |
| 22846 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22847 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22848 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22849 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22850 | ac_builddir=. |
| 22851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22852 | case "$ac_dir" in |
| 22853 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22854 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22855 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22856 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22857 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22858 | case $ac_top_builddir_sub in |
| 22859 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22860 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22861 | esac ;; |
| 22862 | esac |
| 22863 | ac_abs_top_builddir=$ac_pwd |
| 22864 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22865 | # for backward compatibility: |
| 22866 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22867 | |
| 22868 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22869 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22870 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22871 | ac_top_srcdir=$ac_top_builddir_sub |
| 22872 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22873 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22874 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22875 | ac_top_srcdir=$srcdir |
| 22876 | ac_abs_top_srcdir=$srcdir ;; |
| 22877 | *) # Relative name. |
| 22878 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22879 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22880 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22881 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22882 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22883 | |
| 22884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22885 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22886 | |
| 22887 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22888 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22889 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22890 | elif test -f "$ac_srcdir/configure"; then |
| 22891 | ac_sub_configure=$ac_srcdir/configure |
| 22892 | elif test -f "$ac_srcdir/configure.in"; then |
| 22893 | # This should be Cygnus configure. |
| 22894 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22895 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22896 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22897 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22898 | ac_sub_configure= |
| 22899 | fi |
| 22900 | |
| 22901 | # The recursion is here. |
| 22902 | if test -n "$ac_sub_configure"; then |
| 22903 | # Make the cache file name correct relative to the subdirectory. |
| 22904 | case $cache_file in |
| 22905 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22906 | *) # Relative name. |
| 22907 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22908 | esac |
| 22909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22910 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22911 | 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] | 22912 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22913 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22914 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22915 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22916 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22917 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22918 | fi |
| 22919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22920 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22921 | done |
| 22922 | fi |
| 22923 | |