2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for llvm 2.7.
3
# Generated by GNU Autoconf 2.67 for llvm 2.8.
5
5
# Report bugs to <llvmbugs@cs.uiuc.edu>.
8
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
13
# This configure script is free software; the Free Software Foundation
364
# as_fn_error ERROR [LINENO LOG_FD]
365
# ---------------------------------
364
# as_fn_error STATUS ERROR [LINENO LOG_FD]
365
# ----------------------------------------
366
366
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367
367
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368
# script with status $?, using 1 if that was 0.
368
# script with STATUS, using 1 if that was 0.
371
as_status=$?; test $as_status -eq 0 && as_status=1
373
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
as_status=$1; test $as_status -eq 0 && as_status=1
373
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
376
$as_echo "$as_me: error: $1" >&2
376
$as_echo "$as_me: error: $2" >&2
377
377
as_fn_exit $as_status
537
537
# Name of the host.
538
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
539
539
# so uname gets run too.
540
540
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
958
960
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959
961
# Reject names that are not valid shell variable names.
960
962
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961
as_fn_error "invalid feature name: $ac_useropt"
963
as_fn_error $? "invalid feature name: $ac_useropt"
962
964
ac_useropt_orig=$ac_useropt
963
965
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964
966
case $ac_user_opts in
984
986
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985
987
# Reject names that are not valid shell variable names.
986
988
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987
as_fn_error "invalid feature name: $ac_useropt"
989
as_fn_error $? "invalid feature name: $ac_useropt"
988
990
ac_useropt_orig=$ac_useropt
989
991
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990
992
case $ac_user_opts in
1188
1190
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189
1191
# Reject names that are not valid shell variable names.
1190
1192
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191
as_fn_error "invalid package name: $ac_useropt"
1193
as_fn_error $? "invalid package name: $ac_useropt"
1192
1194
ac_useropt_orig=$ac_useropt
1193
1195
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194
1196
case $ac_user_opts in
1204
1206
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205
1207
# Reject names that are not valid shell variable names.
1206
1208
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207
as_fn_error "invalid package name: $ac_useropt"
1209
as_fn_error $? "invalid package name: $ac_useropt"
1208
1210
ac_useropt_orig=$ac_useropt
1209
1211
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210
1212
case $ac_user_opts in
1234
1236
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235
1237
x_libraries=$ac_optarg ;;
1237
-*) as_fn_error "unrecognized option: \`$ac_option'
1238
Try \`$0 --help' for more information."
1239
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1240
Try \`$0 --help' for more information"
1243
1245
# Reject names that are not valid shell variable names.
1244
1246
case $ac_envvar in #(
1245
1247
'' | [0-9]* | *[!_$as_cr_alnum]* )
1246
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248
1250
eval $ac_envvar=\$ac_optarg
1249
1251
export $ac_envvar ;;
1262
1264
if test -n "$ac_prev"; then
1263
1265
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264
as_fn_error "missing argument to $ac_option"
1266
as_fn_error $? "missing argument to $ac_option"
1267
1269
if test -n "$ac_unrecognized_opts"; then
1268
1270
case $enable_option_checking in
1270
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1272
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271
1273
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290
1292
[\\/$]* | ?:[\\/]* ) continue;;
1291
1293
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1295
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296
1298
# There might be people who depend on the old broken behavior: `$host'
1304
1306
if test "x$host_alias" != x; then
1305
1307
if test "x$build_alias" = x; then
1306
1308
cross_compiling=maybe
1307
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308
If a cross compiler is detected then cross compile mode will be used." >&2
1309
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1310
If a cross compiler is detected then cross compile mode will be used" >&2
1309
1311
elif test "x$build_alias" != "x$host_alias"; then
1310
1312
cross_compiling=yes
1320
1322
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321
1323
ac_ls_di=`ls -di .` &&
1322
1324
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323
as_fn_error "working directory cannot be determined"
1325
as_fn_error $? "working directory cannot be determined"
1324
1326
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325
as_fn_error "pwd does not report name of working directory"
1327
as_fn_error $? "pwd does not report name of working directory"
1328
1330
# Find the source files, if location was not specified.
1362
1364
if test ! -r "$srcdir/$ac_unique_file"; then
1363
1365
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1366
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366
1368
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367
1369
ac_abs_confdir=`(
1368
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370
1372
# When building in place, set srcdir=.
1371
1373
if test "$ac_abs_confdir" = "$ac_pwd"; then
1391
1393
# Omit some internal or obsolete options to make the list less imposing.
1392
1394
# This message is too long to be a string in the A/UX 3.1 sh.
1394
\`configure' configures llvm 2.7 to adapt to many kinds of systems.
1396
\`configure' configures llvm 2.8 to adapt to many kinds of systems.
1396
1398
Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1407
--help=short display options specific to this package
1406
1408
--help=recursive display the short help of all the included packages
1407
1409
-V, --version display version information and exit
1408
-q, --quiet, --silent do not print \`checking...' messages
1410
-q, --quiet, --silent do not print \`checking ...' messages
1409
1411
--cache-file=FILE cache test results in FILE [disabled]
1410
1412
-C, --config-cache alias for \`--cache-file=config.cache'
1411
1413
-n, --no-create do not create output files
1465
1467
--disable-option-checking ignore unrecognized --enable/--with options
1466
1468
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467
1469
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468
--enable-optimized Compile with optimizations enabled (default is NO)
1470
--enable-optimized Compile with optimizations enabled (default is YES)
1469
1471
--enable-profiling Compile with profiling enabled (default is NO)
1470
1472
--enable-assertions Compile with assertion checks enabled (default is
1472
1474
--enable-expensive-checks
1473
1475
Compile with expensive debug checks enabled (default
1484
1486
--enable-shared Build a shared library and link tools against it
1485
1487
(default is NO)
1488
--enable-timestamps Enable embedding timestamp information in build
1486
1490
--enable-targets Build specific host targets: all or
1487
1491
target1,target2,... Valid targets are: host, x86,
1488
1492
x86_64, sparc, powerpc, alpha, arm, mips, spu,
1489
pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1490
and cpp (default=all)
1493
pic16, xcore, msp430, systemz, blackfin, cbe, and
1491
1495
--enable-cbe-printf-a Enable C Backend output with hex floating point via
1492
1496
%a (default is YES)
1493
1497
--enable-bindings Build specific language bindings:
1494
1498
all,auto,none,{binding-name} (default=auto)
1495
1499
--enable-libffi Check for the presence of libffi (default is NO)
1496
--enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1498
--enable-llvmc-dynamic-plugins
1499
Enable dynamic LLVMC plugins (default is YES)
1500
1500
--enable-ltdl-install install libltdl
1502
1502
Optional Packages:
1612
1612
test -n "$ac_init_help" && exit $ac_status
1613
1613
if $ac_init_version; then
1616
generated by GNU Autoconf 2.65
1616
generated by GNU Autoconf 2.67
1618
Copyright (C) 2009 Free Software Foundation, Inc.
1618
Copyright (C) 2010 Free Software Foundation, Inc.
1619
1619
This configure script is free software; the Free Software Foundation
1620
1620
gives unlimited permission to copy, distribute and modify it.
1729
1729
mv -f conftest.er1 conftest.err
1731
1731
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732
test $ac_status = 0; } >/dev/null && {
1732
test $ac_status = 0; } > conftest.i && {
1733
1733
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734
1734
test ! -s conftest.err
1754
1754
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755
1755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756
1756
$as_echo_n "checking for $2... " >&6; }
1757
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757
if eval "test \"\${$3+set}\"" = set; then :
1758
1758
$as_echo_n "(cached) " >&6
1760
1760
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868
1868
ac_fn_c_check_header_mongrel ()
1870
1870
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871
if eval "test \"\${$3+set}\"" = set; then :
1872
1872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873
1873
$as_echo_n "checking for $2... " >&6; }
1874
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874
if eval "test \"\${$3+set}\"" = set; then :
1875
1875
$as_echo_n "(cached) " >&6
1877
1877
eval ac_res=\$$3
1930
1930
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1931
1931
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932
1932
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934
## ----------------------------------- ##
1933
( $as_echo "## ----------------------------------- ##
1935
1934
## Report this to llvmbugs@cs.uiuc.edu ##
1936
## ----------------------------------- ##
1935
## ----------------------------------- ##"
1938
1936
) | sed "s/^/$as_me: WARNING: /" >&2
1941
1939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942
1940
$as_echo_n "checking for $2... " >&6; }
1943
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941
if eval "test \"\${$3+set}\"" = set; then :
1944
1942
$as_echo_n "(cached) " >&6
1946
1944
eval "$3=\$ac_header_compiler"
1961
1959
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962
1960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963
1961
$as_echo_n "checking for $2... " >&6; }
1964
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962
if eval "test \"\${$3+set}\"" = set; then :
1965
1963
$as_echo_n "(cached) " >&6
1967
1965
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029
2027
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031
2029
$as_echo_n "checking for $2... " >&6; }
2032
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030
if eval "test \"\${$3+set}\"" = set; then :
2033
2031
$as_echo_n "(cached) " >&6
2115
2113
as_fn_set_status $ac_retval
2117
2115
} # ac_fn_cxx_try_run
2119
# ac_fn_cxx_try_link LINENO
2120
# -------------------------
2121
# Try to link conftest.$ac_ext, and return whether this succeeded.
2122
ac_fn_cxx_try_link ()
2124
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
rm -f conftest.$ac_objext conftest$ac_exeext
2126
if { { ac_try="$ac_link"
2128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129
*) ac_try_echo=$ac_try;;
2131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132
$as_echo "$ac_try_echo"; } >&5
2133
(eval "$ac_link") 2>conftest.err
2135
if test -s conftest.err; then
2136
grep -v '^ *+' conftest.err >conftest.er1
2137
cat conftest.er1 >&5
2138
mv -f conftest.er1 conftest.err
2140
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141
test $ac_status = 0; } && {
2142
test -z "$ac_cxx_werror_flag" ||
2143
test ! -s conftest.err
2144
} && test -s conftest$ac_exeext && {
2145
test "$cross_compiling" = yes ||
2146
$as_test_x conftest$ac_exeext
2150
$as_echo "$as_me: failed program was:" >&5
2151
sed 's/^/| /' conftest.$ac_ext >&5
2155
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2156
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2157
# interfere with the next link command; also delete a directory that is
2158
# left behind by Apple's compiler. We do this before executing the actions.
2159
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2160
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161
as_fn_set_status $ac_retval
2163
} # ac_fn_cxx_try_link
2164
2116
cat >config.log <<_ACEOF
2165
2117
This file contains any messages produced by compilers while
2166
2118
running configure, to aid debugging if configure makes a mistake.
2168
It was created by llvm $as_me 2.7, which was
2169
generated by GNU Autoconf 2.65. Invocation command line was
2120
It was created by llvm $as_me 2.8, which was
2121
generated by GNU Autoconf 2.67. Invocation command line was
2333
2281
if test -n "$ac_subst_files"; then
2335
## ------------------- ##
2282
$as_echo "## ------------------- ##
2336
2283
## File substitutions. ##
2337
## ------------------- ##
2284
## ------------------- ##"
2340
2286
for ac_var in $ac_subst_files
2408
2352
ac_site_file1=NONE
2409
2353
ac_site_file2=NONE
2410
2354
if test -n "$CONFIG_SITE"; then
2411
ac_site_file1=$CONFIG_SITE
2355
# We do not want a PATH search for config.site.
2356
case $CONFIG_SITE in #((
2357
-*) ac_site_file1=./$CONFIG_SITE;;
2358
*/*) ac_site_file1=$CONFIG_SITE;;
2359
*) ac_site_file1=./$CONFIG_SITE;;
2412
2361
elif test "x$prefix" != xNONE; then
2413
2362
ac_site_file1=$prefix/share/config.site
2414
2363
ac_site_file2=$prefix/etc/config.site
2423
2372
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424
2373
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425
2374
sed 's/^/| /' "$ac_site_file" >&5
2376
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378
as_fn_error $? "failed to load site script $ac_site_file
2379
See \`config.log' for more details" "$LINENO" 5 ; }
2502
2455
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2503
2456
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2504
2457
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2505
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2458
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507
2460
## -------------------- ##
2508
2461
## Main body of script. ##
2528
2481
for ac_dir in autoconf "$srcdir"/autoconf; do
2529
for ac_t in install-sh install.sh shtool; do
2530
if test -f "$ac_dir/$ac_t"; then
2532
ac_install_sh="$ac_aux_dir/$ac_t -c"
2482
if test -f "$ac_dir/install-sh"; then
2484
ac_install_sh="$ac_aux_dir/install-sh -c"
2486
elif test -f "$ac_dir/install.sh"; then
2488
ac_install_sh="$ac_aux_dir/install.sh -c"
2490
elif test -f "$ac_dir/shtool"; then
2492
ac_install_sh="$ac_aux_dir/shtool install -c"
2537
2496
if test -z "$ac_aux_dir"; then
2538
as_fn_error "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2497
as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2541
2500
# These three variables are undocumented and unsupported,
2551
2510
if test ${srcdir} != "." ; then
2552
2511
if test -f ${srcdir}/include/llvm/Config/config.h ; then
2553
as_fn_error "Already configured in ${srcdir}" "$LINENO" 5
2512
as_fn_error $? "Already configured in ${srcdir}" "$LINENO" 5
2518
if test -d ${srcdir}/projects/llvm-gcc ; then
2521
subdirs="$subdirs projects/llvm-gcc"
2525
if test -d ${srcdir}/projects/test-suite ; then
2526
subdirs="$subdirs projects/test-suite"
2530
if test -d ${srcdir}/projects/llvm-test ; then
2531
subdirs="$subdirs projects/llvm-test"
2535
if test -d ${srcdir}/projects/poolalloc ; then
2536
subdirs="$subdirs projects/poolalloc"
2540
if test -d ${srcdir}/projects/llvm-poolalloc ; then
2541
subdirs="$subdirs projects/llvm-poolalloc"
2557
2545
for i in `ls ${srcdir}/projects`
2559
2547
if test -d ${srcdir}/projects/${i} ; then
2564
subdirs="$subdirs projects/sample"
2549
sample) subdirs="$subdirs projects/sample"
2566
2551
privbracket) subdirs="$subdirs projects/privbracket"
2568
2553
llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2570
# llvm-test is the old name of the test-suite, kept here for backwards
2572
llvm-test) subdirs="$subdirs projects/llvm-test"
2574
test-suite) subdirs="$subdirs projects/test-suite"
2576
2555
llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2578
llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2580
2557
llvm-java) subdirs="$subdirs projects/llvm-java"
2582
2559
llvm-tv) subdirs="$subdirs projects/llvm-tv"
2584
llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2586
poolalloc) subdirs="$subdirs projects/poolalloc"
2588
2561
safecode) subdirs="$subdirs projects/safecode"
2590
2563
llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2593
2571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2594
2572
$as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2601
2579
# Make sure we can run config.sub.
2602
2580
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2603
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2581
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2606
2584
$as_echo_n "checking build system type... " >&6; }
2611
2589
test "x$ac_build_alias" = x &&
2612
2590
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2613
2591
test "x$ac_build_alias" = x &&
2614
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2592
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2615
2593
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2616
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2594
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2620
2598
$as_echo "$ac_cv_build" >&6; }
2621
2599
case $ac_cv_build in
2623
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2601
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2625
2603
build=$ac_cv_build
2626
2604
ac_save_IFS=$IFS; IFS='-'
2735
2713
llvm_cv_no_link_all_option="-Wl,-noall_load"
2736
2714
llvm_cv_os_type="Darwin"
2737
2715
llvm_cv_platform_type="Unix" ;;
2717
llvm_cv_link_all_option="-Wl,-all_load"
2718
llvm_cv_no_link_all_option="-Wl,-noall_load"
2719
llvm_cv_os_type="Minix"
2720
llvm_cv_platform_type="Unix" ;;
2739
2722
llvm_cv_link_all_option="-Wl,--whole-archive"
2740
2723
llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2863
2848
$as_echo "$llvm_cv_target_os_type" >&6; }
2865
2850
if test "$llvm_cv_os_type" = "Unknown" ; then
2866
as_fn_error "Operating system is unknown, configure can't continue" "$LINENO" 5
2851
as_fn_error $? "Operating system is unknown, configure can't continue" "$LINENO" 5
2869
2854
OS=$llvm_cv_os_type
3240
3225
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241
3226
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242
as_fn_error "no acceptable C compiler found in \$PATH
3243
See \`config.log' for more details." "$LINENO" 5; }
3227
as_fn_error $? "no acceptable C compiler found in \$PATH
3228
See \`config.log' for more details" "$LINENO" 5 ; }
3245
3230
# Provide some information about the compiler.
3246
3231
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3355
3340
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356
3341
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357
{ as_fn_set_status 77
3358
as_fn_error "C compiler cannot create executables
3359
See \`config.log' for more details." "$LINENO" 5; }; }
3342
as_fn_error 77 "C compiler cannot create executables
3343
See \`config.log' for more details" "$LINENO" 5 ; }
3361
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362
3346
$as_echo "yes" >&6; }
3399
3383
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400
3384
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401
as_fn_error "cannot compute suffix of executables: cannot compile and link
3402
See \`config.log' for more details." "$LINENO" 5; }
3385
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3386
See \`config.log' for more details" "$LINENO" 5 ; }
3404
3388
rm -f conftest conftest$ac_cv_exeext
3405
3389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457
3441
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458
3442
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459
as_fn_error "cannot run C compiled programs.
3443
as_fn_error $? "cannot run C compiled programs.
3460
3444
If you meant to cross compile, use \`--host'.
3461
See \`config.log' for more details." "$LINENO" 5; }
3445
See \`config.log' for more details" "$LINENO" 5 ; }
3510
3494
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511
3495
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512
as_fn_error "cannot compute suffix of object files: cannot compile
3513
See \`config.log' for more details." "$LINENO" 5; }
3496
as_fn_error $? "cannot compute suffix of object files: cannot compile
3497
See \`config.log' for more details" "$LINENO" 5 ; }
3515
3499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3773
3757
# Broken: fails on valid input.
3776
rm -f conftest.err conftest.$ac_ext
3760
rm -f conftest.err conftest.i conftest.$ac_ext
3778
3762
# OK, works on sane cases. Now check whether nonexistent headers
3779
3763
# can be detected and how.
3789
3773
ac_preproc_ok=:
3792
rm -f conftest.err conftest.$ac_ext
3776
rm -f conftest.err conftest.i conftest.$ac_ext
3795
3779
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796
rm -f conftest.err conftest.$ac_ext
3780
rm -f conftest.i conftest.err conftest.$ac_ext
3797
3781
if $ac_preproc_ok; then :
3832
3816
# Broken: fails on valid input.
3835
rm -f conftest.err conftest.$ac_ext
3819
rm -f conftest.err conftest.i conftest.$ac_ext
3837
3821
# OK, works on sane cases. Now check whether nonexistent headers
3838
3822
# can be detected and how.
3848
3832
ac_preproc_ok=:
3851
rm -f conftest.err conftest.$ac_ext
3835
rm -f conftest.err conftest.i conftest.$ac_ext
3854
3838
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3855
rm -f conftest.err conftest.$ac_ext
3839
rm -f conftest.i conftest.err conftest.$ac_ext
3856
3840
if $ac_preproc_ok; then :
3859
3843
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860
3844
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3862
See \`config.log' for more details." "$LINENO" 5; }
3845
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3846
See \`config.log' for more details" "$LINENO" 5 ; }
4118
4102
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4119
4103
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4121
eval as_val=\$$as_ac_Header
4122
if test "x$as_val" = x""yes; then :
4105
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4123
4106
cat >>confdefs.h <<_ACEOF
4124
4107
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504
test -z "$BUILD_CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
4487
test -z "$BUILD_CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
4505
4488
ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4506
4489
rm -f conftest*
4507
4490
echo 'int main () { return 0; }' > conftest.$ac_ext
4833
4816
default) ENABLE_DOXYGEN=0
4835
*) as_fn_error "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4818
*) as_fn_error $? "Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4838
4821
# Check whether --enable-threads was given.
4894
4877
default) ENABLE_SHARED=0
4896
*) as_fn_error "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4879
*) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4882
# Check whether --enable-timestamps was given.
4883
if test "${enable_timestamps+set}" = set; then :
4884
enableval=$enable_timestamps;
4889
case "$enableval" in
4890
yes) ENABLE_TIMESTAMPS=1
4892
no) ENABLE_TIMESTAMPS=0
4894
default) ENABLE_TIMESTAMPS=1
4896
*) as_fn_error $? "Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4899
cat >>confdefs.h <<_ACEOF
4900
#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4899
4904
TARGETS_TO_BUILD=""
4900
4905
# Check whether --enable-targets was given.
4910
4915
case "$enableval" in
4911
all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4916
all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
4912
4917
*)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4913
4918
case "$a_target" in
4914
4919
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4925
4930
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4926
4931
blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4927
4932
cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4928
msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4929
4933
cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4930
4934
mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4931
4935
host) case "$llvm_cv_target_arch" in
4943
4947
MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4944
4948
s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4945
4949
Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4946
*) as_fn_error "Can not set target to build" "$LINENO" 5 ;;
4950
*) as_fn_error $? "Can not set target to build" "$LINENO" 5 ;;
4948
*) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
4952
*) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5 ;;
4957
4961
# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4958
4962
for a_target in $TARGETS_TO_BUILD; do
4959
4963
if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4960
LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4962
cat >>confdefs.h <<_ACEOF
4963
#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4965
cat >>confdefs.h <<_ACEOF
4966
#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
4969
LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
4970
LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
4971
LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
4973
cat >>confdefs.h <<_ACEOF
4974
#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
4978
cat >>confdefs.h <<_ACEOF
4979
#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
4983
cat >>confdefs.h <<_ACEOF
4984
#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5004
5025
default) ENABLE_CBE_PRINTF_A=1
5006
*) as_fn_error "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5027
*) as_fn_error $? "Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5009
5030
cat >>confdefs.h <<_ACEOF
5022
5043
case "$withval" in
5023
5044
default) WITH_LLVMGCCDIR=default ;;
5024
5045
/* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5025
*) as_fn_error "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
5046
*) as_fn_error $? "Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
5052
5073
if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5053
as_fn_error "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
5074
as_fn_error $? "Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5 ;
5056
5077
if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5057
as_fn_error "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
5078
as_fn_error $? "Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5 ;
5082
5103
if test "$with_clang" != "default"; then
5083
5104
WITH_CLANGPATH="$with_clang"
5084
5105
if ! test -x "$WITH_CLANGPATH"; then
5085
as_fn_error "invalid --with-clang, path does not specify an executable" "$LINENO" 5
5106
as_fn_error $? "invalid --with-clang, path does not specify an executable" "$LINENO" 5
5087
5108
elif test "$with_built_clang" = "yes"; then
5088
5109
WITH_BUILT_CLANG=1
5129
5150
case "$withval" in
5131
5152
case "$llvm_cv_os_type" in
5132
MingW) optimize_option=-O3 ;;
5133
*) optimize_option=-O2 ;;
5153
FreeBSD) optimize_option=-O2 ;;
5154
MingW) optimize_option=-O2 ;;
5155
*) optimize_option=-O3 ;;
5135
5157
*) optimize_option="$withval" ;;
5169
5191
*)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5170
5192
case "$a_binding" in
5171
5193
ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5172
*) as_fn_error "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5194
*) as_fn_error $? "Unrecognized binding $a_binding" "$LINENO" 5 ;;
5186
5208
case "$withval" in
5187
5209
auto) with_ocaml_libdir="$withval" ;;
5188
5210
/* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5189
*) as_fn_error "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5211
*) as_fn_error $? "Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5270
5292
case "$withval" in
5271
5293
default) WITH_BINUTILS_INCDIR=default ;;
5272
5294
/* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5273
*) as_fn_error "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5295
*) as_fn_error $? "Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5275
5297
if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5276
5298
BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5278
5300
if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5279
5301
echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5280
as_fn_error "Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5302
as_fn_error $? "Invalid path to directory containing plugin-api.h." "$LINENO" 5 ;
5286
5308
enableval=$enable_libffi; case "$enableval" in
5287
5309
yes) llvm_cv_enable_libffi="yes" ;;
5288
5310
no) llvm_cv_enable_libffi="no" ;;
5289
*) as_fn_error "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5311
*) as_fn_error $? "Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5292
5314
llvm_cv_enable_libffi=no
5296
if test "$llvm_cv_os_type" = "Win32" ; then
5302
# Check whether --enable-llvmc-dynamic was given.
5303
if test "${enable_llvmc_dynamic+set}" = set; then :
5304
enableval=$enable_llvmc_dynamic;
5306
enableval=$llvmc_dynamic
5309
if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5310
ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5313
ENABLE_LLVMC_DYNAMIC=
5317
# Check whether --enable-llvmc-dynamic-plugins was given.
5318
if test "${enable_llvmc_dynamic_plugins+set}" = set; then :
5319
enableval=$enable_llvmc_dynamic_plugins;
5324
if test ${enableval} = "yes" ; then
5325
ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5328
ENABLE_LLVMC_DYNAMIC_PLUGINS=
5334
5320
ac_cpp='$CPP $CPPFLAGS'
5372
5358
# Broken: fails on valid input.
5375
rm -f conftest.err conftest.$ac_ext
5361
rm -f conftest.err conftest.i conftest.$ac_ext
5377
5363
# OK, works on sane cases. Now check whether nonexistent headers
5378
5364
# can be detected and how.
5388
5374
ac_preproc_ok=:
5391
rm -f conftest.err conftest.$ac_ext
5377
rm -f conftest.err conftest.i conftest.$ac_ext
5394
5380
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395
rm -f conftest.err conftest.$ac_ext
5381
rm -f conftest.i conftest.err conftest.$ac_ext
5396
5382
if $ac_preproc_ok; then :
5431
5417
# Broken: fails on valid input.
5434
rm -f conftest.err conftest.$ac_ext
5420
rm -f conftest.err conftest.i conftest.$ac_ext
5436
5422
# OK, works on sane cases. Now check whether nonexistent headers
5437
5423
# can be detected and how.
5447
5433
ac_preproc_ok=:
5450
rm -f conftest.err conftest.$ac_ext
5436
rm -f conftest.err conftest.i conftest.$ac_ext
5453
5439
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454
rm -f conftest.err conftest.$ac_ext
5440
rm -f conftest.i conftest.err conftest.$ac_ext
5455
5441
if $ac_preproc_ok; then :
5458
5444
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459
5445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460
as_fn_error "C preprocessor \"$CPP\" fails sanity check
5461
See \`config.log' for more details." "$LINENO" 5; }
5446
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5447
See \`config.log' for more details" "$LINENO" 5 ; }
5576
5562
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577
5563
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5578
as_fn_error "no acceptable C compiler found in \$PATH
5579
See \`config.log' for more details." "$LINENO" 5; }
5564
as_fn_error $? "no acceptable C compiler found in \$PATH
5565
See \`config.log' for more details" "$LINENO" 5 ; }
5581
5567
# Provide some information about the compiler.
5582
5568
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7336
7322
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7325
[\\/$]* | ?:[\\/]* ) ;;
7326
*) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7339
7329
# Extract the first word of "bzip2", so it can be a program name with args.
7340
7330
set dummy bzip2; ac_word=$2
7369
# Extract the first word of "cat", so it can be a program name with args.
7370
set dummy cat; ac_word=$2
7371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372
$as_echo_n "checking for $ac_word... " >&6; }
7373
if test "${ac_cv_path_CAT+set}" = set; then :
7374
$as_echo_n "(cached) " >&6
7378
ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385
test -z "$as_dir" && as_dir=.
7386
for ac_exec_ext in '' $ac_executable_extensions; do
7387
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388
ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7389
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400
if test -n "$CAT"; then
7401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
7402
$as_echo "$CAT" >&6; }
7404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405
$as_echo "no" >&6; }
7379
7409
# Extract the first word of "doxygen", so it can be a program name with args.
7380
7410
set dummy doxygen; ac_word=$2
7381
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609
# Extract the first word of "pdfroff", so it can be a program name with args.
7610
set dummy pdfroff; ac_word=$2
7611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612
$as_echo_n "checking for $ac_word... " >&6; }
7613
if test "${ac_cv_path_PDFROFF+set}" = set; then :
7614
$as_echo_n "(cached) " >&6
7618
ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625
test -z "$as_dir" && as_dir=.
7626
for ac_exec_ext in '' $ac_executable_extensions; do
7627
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628
ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7629
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639
PDFROFF=$ac_cv_path_PDFROFF
7640
if test -n "$PDFROFF"; then
7641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
7642
$as_echo "$PDFROFF" >&6; }
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645
$as_echo "no" >&6; }
7579
7649
# Extract the first word of "runtest", so it can be a program name with args.
7580
7650
set dummy runtest; ac_word=$2
7581
7651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638
7708
elif test -f ${with_tclinclude}/src/tclsh ; then
7639
7709
ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7641
as_fn_error "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
7711
as_fn_error $? "${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
8043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
8044
$as_echo_n "checking for linker version... " >&6; }
8045
if test "${llvm_cv_link_version+set}" = set; then :
8046
$as_echo_n "(cached) " >&6
8049
version_string="$(ld -v 2>&1 | head -1)"
8052
if (echo "$version_string" | grep -q "ld64"); then
8053
llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8055
llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
8060
$as_echo "$llvm_cv_link_version" >&6; }
8062
cat >>confdefs.h <<_ACEOF
8063
#define HOST_LINK_VERSION "$llvm_cv_link_version"
7973
8068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
7974
8069
$as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
7975
8070
if test "${llvm_cv_link_use_r+set}" = set; then :
8166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
8167
$as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
8168
if test "${llvm_cv_link_use_version_script+set}" = set; then :
8169
$as_echo_n "(cached) " >&6
8172
ac_cpp='$CPP $CPPFLAGS'
8173
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179
# The following code is from the autoconf manual,
8180
# "11.13: Limitations of Usual Tools".
8181
# Create a temporary directory $tmp in $TMPDIR (default /tmp).
8182
# Use mktemp if possible; otherwise fall back on mkdir,
8183
# with $RANDOM to make collisions less likely.
8187
(umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8189
test -n "$tmp" && test -d "$tmp"
8191
tmp=$TMPDIR/foo$$-$RANDOM
8192
(umask 077 && mkdir "$tmp")
8195
echo "{" > "$tmp/export.map"
8196
echo " global: main;" >> "$tmp/export.map"
8197
echo " local: *;" >> "$tmp/export.map"
8198
echo "};" >> "$tmp/export.map"
8200
CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8201
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202
/* end confdefs.h. */
8212
if ac_fn_c_try_link "$LINENO"; then :
8213
llvm_cv_link_use_version_script=yes
8215
llvm_cv_link_use_version_script=no
8217
rm -f core conftest.err conftest.$ac_objext \
8218
conftest$ac_exeext conftest.$ac_ext
8219
rm "$tmp/export.map"
8223
ac_cpp='$CPP $CPPFLAGS'
8224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
8231
$as_echo "$llvm_cv_link_use_version_script" >&6; }
8232
if test "$llvm_cv_link_use_version_script" = yes ; then
8233
HAVE_LINK_VERSION_SCRIPT=1
8073
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8155
8322
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8156
8323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8157
8324
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8158
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8325
if eval "test \"\${$as_ac_Header+set}\"" = set; then :
8159
8326
$as_echo_n "(cached) " >&6
8161
8328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182
8349
eval ac_res=\$$as_ac_Header
8183
8350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8184
8351
$as_echo "$ac_res" >&6; }
8185
eval as_val=\$$as_ac_Header
8186
if test "x$as_val" = x""yes; then :
8352
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8187
8353
cat >>confdefs.h <<_ACEOF
8188
8354
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9812
9978
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9813
9979
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9814
eval as_val=\$$as_ac_var
9815
if test "x$as_val" = x""yes; then :
9980
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9816
9981
cat >>confdefs.h <<_ACEOF
9817
9982
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9845
10010
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9846
10011
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9847
eval as_val=\$$as_ac_Header
9848
if test "x$as_val" = x""yes; then :
10012
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9849
10013
cat >>confdefs.h <<_ACEOF
9850
10014
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859
10023
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860
10024
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9861
eval as_val=\$$as_ac_Header
9862
if test "x$as_val" = x""yes; then :
10025
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9863
10026
cat >>confdefs.h <<_ACEOF
9864
10027
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873
10036
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9874
10037
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9875
eval as_val=\$$as_ac_Header
9876
if test "x$as_val" = x""yes; then :
10038
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9877
10039
cat >>confdefs.h <<_ACEOF
9878
10040
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9888
10050
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9889
10051
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9890
eval as_val=\$$as_ac_var
9891
if test "x$as_val" = x""yes; then :
10052
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9892
10053
cat >>confdefs.h <<_ACEOF
9893
10054
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9901
10062
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9902
10063
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9903
eval as_val=\$$as_ac_var
9904
if test "x$as_val" = x""yes; then :
10064
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9905
10065
cat >>confdefs.h <<_ACEOF
9906
10066
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9914
10074
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915
10075
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9916
eval as_val=\$$as_ac_var
9917
if test "x$as_val" = x""yes; then :
10076
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9918
10077
cat >>confdefs.h <<_ACEOF
9919
10078
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927
10086
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9928
10087
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9929
eval as_val=\$$as_ac_var
9930
if test "x$as_val" = x""yes; then :
10088
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9931
10089
cat >>confdefs.h <<_ACEOF
9932
10090
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9940
10098
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9941
10099
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9942
eval as_val=\$$as_ac_var
9943
if test "x$as_val" = x""yes; then :
10100
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9944
10101
cat >>confdefs.h <<_ACEOF
9945
10102
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10073
10230
if (test "$with_llvmcc" != "llvm-gcc" &&
10074
10231
test "$with_llvmcc" != "clang" &&
10075
10232
test "$with_llvmcc" != "none"); then
10076
as_fn_error "invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." "$LINENO" 5
10233
as_fn_error $? "invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." "$LINENO" 5
10078
10235
WITH_LLVMCC="$with_llvmcc"
10079
10236
elif test -n "$LLVMGCC"; then
10105
10262
if test "$GCC" != "yes" && test "$ICC" != "yes"
10107
as_fn_error "gcc|icc required but not found" "$LINENO" 5
10264
as_fn_error $? "gcc|icc required but not found" "$LINENO" 5
10110
10267
if test "$GXX" != "yes" && test "$IXX" != "yes"
10112
as_fn_error "g++|icc required but not found" "$LINENO" 5
10269
as_fn_error $? "g++|icc required but not found" "$LINENO" 5
10115
10272
if test "$GCC" = "yes"
10124
10281
if ac_fn_c_try_compile "$LINENO"; then :
10127
as_fn_error "gcc 3.x required, but you have a lower version" "$LINENO" 5
10284
as_fn_error $? "gcc 3.x required, but you have a lower version" "$LINENO" 5
10129
10286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132
10289
if test -z "$llvm_cv_gnu_make_command"
10134
as_fn_error "GNU Make required but not found" "$LINENO" 5
10291
as_fn_error $? "GNU Make required but not found" "$LINENO" 5
10137
10294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10916
11073
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10917
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10918
11075
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10919
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11076
if eval "test \"\${$as_ac_Header+set}\"" = set; then :
10920
11077
$as_echo_n "(cached) " >&6
10922
11079
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943
11100
eval ac_res=\$$as_ac_Header
10944
11101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10945
11102
$as_echo "$ac_res" >&6; }
10946
eval as_val=\$$as_ac_Header
10947
if test "x$as_val" = x""yes; then :
11103
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10948
11104
cat >>confdefs.h <<_ACEOF
10949
11105
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11352
11508
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353
11509
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11354
eval as_val=\$$as_ac_Header
11355
if test "x$as_val" = x""yes; then :
11510
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11356
11511
cat >>confdefs.h <<_ACEOF
11357
11512
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366
11521
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11367
11522
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11368
eval as_val=\$$as_ac_Header
11369
if test "x$as_val" = x""yes; then :
11523
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11370
11524
cat >>confdefs.h <<_ACEOF
11371
11525
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11380
11534
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11381
11535
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11382
eval as_val=\$$as_ac_Header
11383
if test "x$as_val" = x""yes; then :
11536
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11384
11537
cat >>confdefs.h <<_ACEOF
11385
11538
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394
11547
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11395
11548
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11396
eval as_val=\$$as_ac_Header
11397
if test "x$as_val" = x""yes; then :
11549
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11398
11550
cat >>confdefs.h <<_ACEOF
11399
11551
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408
11560
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11409
11561
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11410
eval as_val=\$$as_ac_Header
11411
if test "x$as_val" = x""yes; then :
11562
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11412
11563
cat >>confdefs.h <<_ACEOF
11413
11564
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571
for ac_header in valgrind/valgrind.h
11573
ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11574
if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
11575
cat >>confdefs.h <<_ACEOF
11576
#define HAVE_VALGRIND_VALGRIND_H 1
11420
11583
if test "$ENABLE_THREADS" -eq 1 ; then
11421
11584
for ac_header in pthread.h
11445
11608
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446
11609
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11447
eval as_val=\$$as_ac_Header
11448
if test "x$as_val" = x""yes; then :
11610
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11449
11611
cat >>confdefs.h <<_ACEOF
11450
11612
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11621
for ac_header in CrashReporterClient.h
11623
ac_fn_c_check_header_mongrel "$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
11624
if test "x$ac_cv_header_CrashReporterClient_h" = x""yes; then :
11625
cat >>confdefs.h <<_ACEOF
11626
#define HAVE_CRASHREPORTERCLIENT_H 1
11614
11789
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11615
11790
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11616
eval as_val=\$$as_ac_var
11617
if test "x$as_val" = x""yes; then :
11791
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11618
11792
cat >>confdefs.h <<_ACEOF
11619
11793
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627
11801
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11628
11802
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11629
eval as_val=\$$as_ac_var
11630
if test "x$as_val" = x""yes; then :
11803
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11631
11804
cat >>confdefs.h <<_ACEOF
11632
11805
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11640
11813
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641
11814
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11642
eval as_val=\$$as_ac_var
11643
if test "x$as_val" = x""yes; then :
11815
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11644
11816
cat >>confdefs.h <<_ACEOF
11645
11817
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11653
11825
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654
11826
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11655
eval as_val=\$$as_ac_var
11656
if test "x$as_val" = x""yes; then :
11827
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11657
11828
cat >>confdefs.h <<_ACEOF
11658
11829
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11664
for ac_func in mktemp realpath sbrk setrlimit strdup
11835
for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
11666
11837
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11667
11838
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11668
eval as_val=\$$as_ac_var
11669
if test "x$as_val" = x""yes; then :
11839
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11670
11840
cat >>confdefs.h <<_ACEOF
11671
11841
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11679
11849
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680
11850
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11681
eval as_val=\$$as_ac_var
11682
if test "x$as_val" = x""yes; then :
11851
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11683
11852
cat >>confdefs.h <<_ACEOF
11684
11853
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11692
11861
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11693
11862
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11694
eval as_val=\$$as_ac_var
11695
if test "x$as_val" = x""yes; then :
11863
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11696
11864
cat >>confdefs.h <<_ACEOF
11697
11865
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11705
11873
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706
11874
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11707
eval as_val=\$$as_ac_var
11708
if test "x$as_val" = x""yes; then :
11875
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11709
11876
cat >>confdefs.h <<_ACEOF
11710
11877
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145
12312
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146
12313
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12148
eval as_val=\$$as_ac_Header
12149
if test "x$as_val" = x""yes; then :
12315
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12150
12316
cat >>confdefs.h <<_ACEOF
12151
12317
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12456
if ac_fn_cxx_try_link "$LINENO"; then :
12622
if ac_fn_c_try_link "$LINENO"; then :
12624
ac_cpp='$CPP $CPPFLAGS'
12625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12457
12629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458
12630
$as_echo "yes" >&6; }
12471
12643
rm -f core conftest.err conftest.$ac_objext \
12472
12644
conftest$ac_exeext conftest.$ac_ext
12474
ac_cpp='$CPP $CPPFLAGS'
12475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12482
12647
if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12725
12890
if test "$binding_prereqs_failed" = 1 ; then
12726
as_fn_error "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
12891
as_fn_error $? "Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
12729
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
12810
12978
ac_config_files="$ac_config_files llvm.spec"
12813
ac_config_files="$ac_config_files docs/doxygen.cfg"
12816
ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
12819
ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
12822
12983
ac_config_commands="$ac_config_commands setup"
12962
13124
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12963
as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13125
as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
12964
13126
Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966
13128
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12967
as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13129
as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
12968
13130
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114
13276
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13117
# as_fn_error ERROR [LINENO LOG_FD]
13118
# ---------------------------------
13279
# as_fn_error STATUS ERROR [LINENO LOG_FD]
13280
# ----------------------------------------
13119
13281
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13120
13282
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13121
# script with status $?, using 1 if that was 0.
13283
# script with STATUS, using 1 if that was 0.
13122
13284
as_fn_error ()
13124
as_status=$?; test $as_status -eq 0 && as_status=1
13126
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13127
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13286
as_status=$1; test $as_status -eq 0 && as_status=1
13288
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13289
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13129
$as_echo "$as_me: error: $1" >&2
13291
$as_echo "$as_me: error: $2" >&2
13130
13292
as_fn_exit $as_status
13131
13293
} # as_fn_error
13375
13537
# report actual input values of CONFIG_FILES etc. instead of their
13376
13538
# values after options handling.
13378
This file was extended by llvm $as_me 2.7, which was
13379
generated by GNU Autoconf 2.65. Invocation command line was
13540
This file was extended by llvm $as_me 2.8, which was
13541
generated by GNU Autoconf 2.67. Invocation command line was
13381
13543
CONFIG_FILES = $CONFIG_FILES
13382
13544
CONFIG_HEADERS = $CONFIG_HEADERS
13441
13603
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442
13604
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13443
13605
ac_cs_version="\\
13444
llvm config.status 2.7
13445
configured by $0, generated by GNU Autoconf 2.65,
13606
llvm config.status 2.8
13607
configured by $0, generated by GNU Autoconf 2.67,
13446
13608
with options \\"\$ac_cs_config\\"
13448
Copyright (C) 2009 Free Software Foundation, Inc.
13610
Copyright (C) 2010 Free Software Foundation, Inc.
13449
13611
This config.status script is free software; the Free Software Foundation
13450
13612
gives unlimited permission to copy, distribute and modify it."
13499
13667
ac_need_defaults=false;;
13501
13669
# Conflict between --help and --header
13502
as_fn_error "ambiguous option: \`$1'
13670
as_fn_error $? "ambiguous option: \`$1'
13503
13671
Try \`$0 --help' for more information.";;
13504
13672
--help | --hel | -h )
13505
13673
$as_echo "$ac_cs_usage"; exit ;;
13564
13732
case $ac_config_target in
13565
13733
"include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
13734
"include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
13566
13735
"include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13567
13736
"include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
13568
13737
"include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
13570
13739
"include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
13571
13740
"Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
13572
13741
"llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
13573
"docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
13574
"tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
13575
"tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13576
13742
"setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
13577
13743
"Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13578
13744
"Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
13588
13754
"bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
13589
13755
"bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
13591
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13757
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13627
13793
tmp=./conf$$-$RANDOM
13628
13794
(umask 077 && mkdir "$tmp")
13629
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13795
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13631
13797
# Set up the scripts for CONFIG_FILES section.
13632
13798
# No need to generate them if there are no CONFIG_FILES.
13657
13823
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13658
13824
echo "_ACEOF"
13659
13825
} >conf$$subs.sh ||
13660
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13661
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13826
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13827
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13662
13828
ac_delim='%!_!# '
13663
13829
for ac_last_try in false false false false false :; do
13664
13830
. ./conf$$subs.sh ||
13665
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13831
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13667
13833
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13668
13834
if test $ac_delim_n = $ac_delim_num; then
13670
13836
elif $ac_last_try; then
13671
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13837
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13673
13839
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13759
13925
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13760
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
13926
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13763
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13764
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13929
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13930
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13765
13931
# trailing colons and then remove the whole line if VPATH becomes empty
13766
13932
# (actually we leave an empty line to preserve line numbers).
13767
13933
if test "x$srcdir" = x.; then
13768
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13769
s/:*\$(srcdir):*/:/
13770
s/:*\${srcdir}:*/:/
13772
s/^\([^=]*=[ ]*\):*/\1/
13934
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13774
13948
s/^[^=]*=[ ]*$//
13924
14098
[\\/$]*) false;;
13925
14099
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13927
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14101
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13929
14103
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13930
14104
as_fn_append ac_file_inputs " '$ac_f'"
14082
14256
$ac_datarootdir_hack
14084
14258
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14085
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14259
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14087
14261
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14088
14262
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14089
14263
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14090
14264
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14091
which seems to be undefined. Please make sure it is defined." >&5
14265
which seems to be undefined. Please make sure it is defined" >&5
14092
14266
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14093
which seems to be undefined. Please make sure it is defined." >&2;}
14267
which seems to be undefined. Please make sure it is defined" >&2;}
14095
14269
rm -f "$tmp/stdin"
14096
14270
case $ac_file in
14097
14271
-) cat "$tmp/out" && rm -f "$tmp/out";;
14098
14272
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14100
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14274
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14108
14282
$as_echo "/* $configure_input */" \
14109
14283
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14110
14284
} >"$tmp/config.h" \
14111
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14285
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14112
14286
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14113
14287
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14114
14288
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14116
14290
rm -f "$ac_file"
14117
14291
mv "$tmp/config.h" "$ac_file" \
14118
|| as_fn_error "could not create $ac_file" "$LINENO" 5
14292
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14121
14295
$as_echo "/* $configure_input */" \
14122
14296
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14123
|| as_fn_error "could not create -" "$LINENO" 5
14297
|| as_fn_error $? "could not create -" "$LINENO" 5
14167
14341
ac_clean_files=$ac_clean_files_save
14169
14343
test $ac_write_fail = 0 ||
14170
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14344
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14173
14347
# configure is writing to config.log, and then calls config.status.
14188
14362
exec 5>>config.log
14189
14363
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14190
14364
# would make configure fail if this is the last instruction.
14191
$ac_cs_success || as_fn_exit $?
14365
$ac_cs_success || as_fn_exit 1
14329
14503
# The eval makes quoting arguments work.
14330
14504
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14331
14505
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14332
as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14506
as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14335
14509
cd "$ac_popdir"