~ubuntu-branches/ubuntu/natty/clamav/natty-security

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-02 21:04:10 UTC
  • mfrom: (0.35.17 sid)
  • Revision ID: james.westby@ubuntu.com-20101202210410-ppgyckmylngsfa8o
Tags: 0.96.5+dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop initial signature definitions from clamav-base
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
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.
4
4
#
5
5
# Report bugs to <llvmbugs@cs.uiuc.edu>.
6
6
#
7
7
#
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,
10
 
# Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
11
11
#
12
12
#
13
13
# This configure script is free software; the Free Software Foundation
321
321
      test -d "$as_dir" && break
322
322
    done
323
323
    test -z "$as_dirs" || eval "mkdir $as_dirs"
324
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
324
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325
325
 
326
326
 
327
327
} # as_fn_mkdir_p
361
361
fi # as_fn_arith
362
362
 
363
363
 
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.
369
369
as_fn_error ()
370
370
{
371
 
  as_status=$?; test $as_status -eq 0 && as_status=1
372
 
  if test "$3"; then
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
 
372
  if test "$4"; then
 
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
375
375
  fi
376
 
  $as_echo "$as_me: error: $1" >&2
 
376
  $as_echo "$as_me: error: $2" >&2
377
377
  as_fn_exit $as_status
378
378
} # as_fn_error
379
379
 
535
535
exec 6>&1
536
536
 
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`
541
541
 
554
554
# Identity of this package.
555
555
PACKAGE_NAME='llvm'
556
556
PACKAGE_TARNAME='-llvm-'
557
 
PACKAGE_VERSION='2.7'
558
 
PACKAGE_STRING='llvm 2.7'
 
557
PACKAGE_VERSION='2.8'
 
558
PACKAGE_STRING='llvm 2.8'
559
559
PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
560
560
PACKAGE_URL=''
561
561
 
639
639
CONVENIENCE_LTDL_TRUE
640
640
INSTALL_LTDL_FALSE
641
641
INSTALL_LTDL_TRUE
 
642
HAVE_LINK_VERSION_SCRIPT
642
643
GAS
643
644
OCAMLDOC
644
645
OCAMLDEP
647
648
ZIP
648
649
TCLSH
649
650
RUNTEST
 
651
PDFROFF
650
652
POD2MAN
651
653
POD2HTML
652
654
GZIP
653
655
GROFF
654
656
DOXYGEN
 
657
CAT
655
658
BZIP2
656
659
INSTALL_DATA
657
660
INSTALL_SCRIPT
683
686
ac_ct_CXX
684
687
CXXFLAGS
685
688
CXX
686
 
ENABLE_LLVMC_DYNAMIC_PLUGINS
687
 
ENABLE_LLVMC_DYNAMIC
688
689
BINUTILS_INCDIR
689
690
EXTRA_OPTIONS
690
691
OPTIMIZE_OPTION
697
698
LLVM_ENUM_ASM_PRINTERS
698
699
LLVM_ENUM_TARGETS
699
700
TARGETS_TO_BUILD
 
701
ENABLE_TIMESTAMPS
700
702
ENABLE_SHARED
701
703
ENABLE_PIC
702
704
ENABLE_THREADS
800
802
enable_threads
801
803
enable_pic
802
804
enable_shared
 
805
enable_timestamps
803
806
enable_targets
804
807
enable_cbe_printf_a
805
808
with_llvmgccdir
818
821
with_cxx_include_64bit_dir
819
822
with_binutils_include
820
823
enable_libffi
821
 
enable_llvmc_dynamic
822
 
enable_llvmc_dynamic_plugins
823
824
with_tclinclude
824
825
enable_ltdl_install
825
826
with_llvmcc
838
839
CXX
839
840
CXXFLAGS
840
841
CCC'
841
 
ac_subdirs_all='projects/sample
 
842
ac_subdirs_all='projects/llvm-gcc
 
843
projects/test-suite
 
844
projects/llvm-test
 
845
projects/poolalloc
 
846
projects/llvm-poolalloc
 
847
projects/sample
842
848
projects/privbracket
843
849
projects/llvm-stacker
844
 
projects/llvm-test
845
 
projects/test-suite
846
850
projects/llvm-reopt
847
 
projects/llvm-gcc
848
851
projects/llvm-java
849
852
projects/llvm-tv
850
 
projects/llvm-poolalloc
851
 
projects/poolalloc
852
853
projects/safecode
853
854
projects/llvm-kernel'
854
855
 
912
913
  fi
913
914
 
914
915
  case $ac_option in
915
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916
 
  *)    ac_optarg=yes ;;
 
916
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
917
  *=)   ac_optarg= ;;
 
918
  *)    ac_optarg=yes ;;
917
919
  esac
918
920
 
919
921
  # Accept the important Cygnus configure options, so we can diagnose typos.
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 ;;
1236
1238
 
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"
1239
1241
    ;;
1240
1242
 
1241
1243
  *=*)
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'" ;;
1247
1249
    esac
1248
1250
    eval $ac_envvar=\$ac_optarg
1249
1251
    export $ac_envvar ;;
1261
1263
 
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"
1265
1267
fi
1266
1268
 
1267
1269
if test -n "$ac_unrecognized_opts"; then
1268
1270
  case $enable_option_checking in
1269
1271
    no) ;;
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 ;;
1272
1274
  esac
1273
1275
fi
1290
1292
    [\\/$]* | ?:[\\/]* )  continue;;
1291
1293
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292
1294
  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"
1294
1296
done
1295
1297
 
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
1311
1313
  fi
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"
1326
1328
 
1327
1329
 
1328
1330
# Find the source files, if location was not specified.
1361
1363
fi
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"
1365
1367
fi
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"
1369
1371
        pwd)`
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.
1393
1395
  cat <<_ACEOF
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.
1395
1397
 
1396
1398
Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1399
 
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
1457
1459
 
1458
1460
if test -n "$ac_init_help"; then
1459
1461
  case $ac_init_help in
1460
 
     short | recursive ) echo "Configuration of llvm 2.7:";;
 
1462
     short | recursive ) echo "Configuration of llvm 2.8:";;
1461
1463
   esac
1462
1464
  cat <<\_ACEOF
1463
1465
 
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
1471
 
                          YES)
 
1473
                          NO)
1472
1474
  --enable-expensive-checks
1473
1475
                          Compile with expensive debug checks enabled (default
1474
1476
                          is NO)
1483
1485
                          is YES)
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
 
1489
                          (default is YES)
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
 
1494
                          cpp (default=all)
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
1497
 
                          Win32)
1498
 
  --enable-llvmc-dynamic-plugins
1499
 
                          Enable dynamic LLVMC plugins (default is YES)
1500
1500
  --enable-ltdl-install   install libltdl
1501
1501
 
1502
1502
Optional Packages:
1612
1612
test -n "$ac_init_help" && exit $ac_status
1613
1613
if $ac_init_version; then
1614
1614
  cat <<\_ACEOF
1615
 
llvm configure 2.7
1616
 
generated by GNU Autoconf 2.65
 
1615
llvm configure 2.8
 
1616
generated by GNU Autoconf 2.67
1617
1617
 
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.
1621
1621
 
1729
1729
    mv -f conftest.er1 conftest.err
1730
1730
  fi
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
1735
1735
       }; then :
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
1759
1759
else
1760
1760
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868
1868
ac_fn_c_check_header_mongrel ()
1869
1869
{
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
1876
1876
fi
1877
1877
eval ac_res=\$$3
1907
1907
else
1908
1908
  ac_header_preproc=no
1909
1909
fi
1910
 
rm -f conftest.err conftest.$ac_ext
 
1910
rm -f conftest.err conftest.i conftest.$ac_ext
1911
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912
1912
$as_echo "$ac_header_preproc" >&6; }
1913
1913
 
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;}
1933
 
( cat <<\_ASBOX
1934
 
## ----------------------------------- ##
 
1933
( $as_echo "## ----------------------------------- ##
1935
1934
## Report this to llvmbugs@cs.uiuc.edu ##
1936
 
## ----------------------------------- ##
1937
 
_ASBOX
 
1935
## ----------------------------------- ##"
1938
1936
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1939
1937
    ;;
1940
1938
esac
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
1945
1943
else
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
1966
1964
else
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
2034
2032
else
2035
2033
  eval "$3=no"
2115
2113
  as_fn_set_status $ac_retval
2116
2114
 
2117
2115
} # ac_fn_cxx_try_run
2118
 
 
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 ()
2123
 
{
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"
2127
 
case "(($ac_try" in
2128
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129
 
  *) ac_try_echo=$ac_try;;
2130
 
esac
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
2134
 
  ac_status=$?
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
2139
 
  fi
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
2147
 
       }; then :
2148
 
  ac_retval=0
2149
 
else
2150
 
  $as_echo "$as_me: failed program was:" >&5
2151
 
sed 's/^/| /' conftest.$ac_ext >&5
2152
 
 
2153
 
        ac_retval=1
2154
 
fi
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
2162
 
 
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.
2167
2119
 
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
2170
2122
 
2171
2123
  $ $0 $@
2172
2124
 
2276
2228
  {
2277
2229
    echo
2278
2230
 
2279
 
    cat <<\_ASBOX
2280
 
## ---------------- ##
 
2231
    $as_echo "## ---------------- ##
2281
2232
## Cache variables. ##
2282
 
## ---------------- ##
2283
 
_ASBOX
 
2233
## ---------------- ##"
2284
2234
    echo
2285
2235
    # The following way of writing the cache mishandles newlines in values,
2286
2236
(
2314
2264
)
2315
2265
    echo
2316
2266
 
2317
 
    cat <<\_ASBOX
2318
 
## ----------------- ##
 
2267
    $as_echo "## ----------------- ##
2319
2268
## Output variables. ##
2320
 
## ----------------- ##
2321
 
_ASBOX
 
2269
## ----------------- ##"
2322
2270
    echo
2323
2271
    for ac_var in $ac_subst_vars
2324
2272
    do
2331
2279
    echo
2332
2280
 
2333
2281
    if test -n "$ac_subst_files"; then
2334
 
      cat <<\_ASBOX
2335
 
## ------------------- ##
 
2282
      $as_echo "## ------------------- ##
2336
2283
## File substitutions. ##
2337
 
## ------------------- ##
2338
 
_ASBOX
 
2284
## ------------------- ##"
2339
2285
      echo
2340
2286
      for ac_var in $ac_subst_files
2341
2287
      do
2349
2295
    fi
2350
2296
 
2351
2297
    if test -s confdefs.h; then
2352
 
      cat <<\_ASBOX
2353
 
## ----------- ##
 
2298
      $as_echo "## ----------- ##
2354
2299
## confdefs.h. ##
2355
 
## ----------- ##
2356
 
_ASBOX
 
2300
## ----------- ##"
2357
2301
      echo
2358
2302
      cat confdefs.h
2359
2303
      echo
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;;
 
2360
  esac
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
2426
 
    . "$ac_site_file"
 
2375
    . "$ac_site_file" \
 
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 ; }
2427
2380
  fi
2428
2381
done
2429
2382
 
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
2506
2459
fi
2507
2460
## -------------------- ##
2508
2461
## Main body of script. ##
2526
2479
 
2527
2480
ac_aux_dir=
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
2531
 
      ac_aux_dir=$ac_dir
2532
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2533
 
      break 2
2534
 
    fi
2535
 
  done
 
2482
  if test -f "$ac_dir/install-sh"; then
 
2483
    ac_aux_dir=$ac_dir
 
2484
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2485
    break
 
2486
  elif test -f "$ac_dir/install.sh"; then
 
2487
    ac_aux_dir=$ac_dir
 
2488
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2489
    break
 
2490
  elif test -f "$ac_dir/shtool"; then
 
2491
    ac_aux_dir=$ac_dir
 
2492
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2493
    break
 
2494
  fi
2536
2495
done
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
2539
2498
fi
2540
2499
 
2541
2500
# These three variables are undocumented and unsupported,
2550
2509
 
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
2554
2513
  fi
2555
2514
fi
2556
2515
 
 
2516
 
 
2517
 
 
2518
if test -d ${srcdir}/projects/llvm-gcc ; then
 
2519
 
 
2520
 
 
2521
subdirs="$subdirs projects/llvm-gcc"
 
2522
 
 
2523
fi
 
2524
 
 
2525
if test -d ${srcdir}/projects/test-suite ; then
 
2526
  subdirs="$subdirs projects/test-suite"
 
2527
 
 
2528
fi
 
2529
 
 
2530
if test -d ${srcdir}/projects/llvm-test ; then
 
2531
  subdirs="$subdirs projects/llvm-test"
 
2532
 
 
2533
fi
 
2534
 
 
2535
if test -d ${srcdir}/projects/poolalloc ; then
 
2536
  subdirs="$subdirs projects/poolalloc"
 
2537
 
 
2538
fi
 
2539
 
 
2540
if test -d ${srcdir}/projects/llvm-poolalloc ; then
 
2541
  subdirs="$subdirs projects/llvm-poolalloc"
 
2542
 
 
2543
fi
 
2544
 
2557
2545
for i in `ls ${srcdir}/projects`
2558
2546
do
2559
2547
  if test -d ${srcdir}/projects/${i} ; then
2560
2548
    case ${i} in
2561
 
      CVS) ;;
2562
 
      sample)
2563
 
 
2564
 
subdirs="$subdirs projects/sample"
 
2549
      sample)       subdirs="$subdirs projects/sample"
2565
2550
    ;;
2566
2551
      privbracket)  subdirs="$subdirs projects/privbracket"
2567
2552
 ;;
2568
2553
      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2569
2554
 ;;
2570
 
      # llvm-test is the old name of the test-suite, kept here for backwards
2571
 
      # compatibility
2572
 
      llvm-test)    subdirs="$subdirs projects/llvm-test"
2573
 
 ;;
2574
 
      test-suite)   subdirs="$subdirs projects/test-suite"
2575
 
 ;;
2576
2555
      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2577
2556
;;
2578
 
      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
2579
 
  ;;
2580
2557
      llvm-java)    subdirs="$subdirs projects/llvm-java"
2581
2558
 ;;
2582
2559
      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2583
2560
   ;;
2584
 
      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2585
 
 ;;
2586
 
      poolalloc)    subdirs="$subdirs projects/poolalloc"
2587
 
 ;;
2588
2561
      safecode)     subdirs="$subdirs projects/safecode"
2589
2562
 ;;
2590
2563
      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2591
2564
 ;;
 
2565
      llvm-gcc)       ;;
 
2566
      test-suite)     ;;
 
2567
      llvm-test)      ;;
 
2568
      poolalloc)      ;;
 
2569
      llvm-poolalloc) ;;
2592
2570
      *)
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;}
2600
2578
 
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
2604
2582
 
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
2617
2595
 
2618
2596
fi
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
2622
2600
*-*-*) ;;
2623
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2601
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2624
2602
esac
2625
2603
build=$ac_cv_build
2626
2604
ac_save_IFS=$IFS; IFS='-'
2645
2623
  ac_cv_host=$ac_cv_build
2646
2624
else
2647
2625
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2648
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2626
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2649
2627
fi
2650
2628
 
2651
2629
fi
2653
2631
$as_echo "$ac_cv_host" >&6; }
2654
2632
case $ac_cv_host in
2655
2633
*-*-*) ;;
2656
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2634
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2657
2635
esac
2658
2636
host=$ac_cv_host
2659
2637
ac_save_IFS=$IFS; IFS='-'
2678
2656
  ac_cv_target=$ac_cv_host
2679
2657
else
2680
2658
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2681
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2659
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2682
2660
fi
2683
2661
 
2684
2662
fi
2686
2664
$as_echo "$ac_cv_target" >&6; }
2687
2665
case $ac_cv_target in
2688
2666
*-*-*) ;;
2689
 
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2667
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2690
2668
esac
2691
2669
target=$ac_cv_target
2692
2670
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" ;;
 
2716
  *-*-minix*)
 
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" ;;
2738
2721
  *-*-freebsd*)
2739
2722
    llvm_cv_link_all_option="-Wl,--whole-archive"
2740
2723
    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2829
2812
    llvm_cv_target_os_type="Cygwin" ;;
2830
2813
  *-*-darwin*)
2831
2814
    llvm_cv_target_os_type="Darwin" ;;
 
2815
  *-*-minix*)
 
2816
    llvm_cv_target_os_type="Minix" ;;
2832
2817
  *-*-freebsd*)
2833
2818
    llvm_cv_target_os_type="FreeBSD" ;;
2834
2819
  *-*-openbsd*)
2863
2848
$as_echo "$llvm_cv_target_os_type" >&6; }
2864
2849
 
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
2867
2852
fi
2868
2853
 
2869
2854
OS=$llvm_cv_os_type
3239
3224
 
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 ; }
3244
3229
 
3245
3230
# Provide some information about the compiler.
3246
3231
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3354
3339
 
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 ; }
3360
3344
else
3361
3345
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362
3346
$as_echo "yes" >&6; }
3398
3382
else
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 ; }
3403
3387
fi
3404
3388
rm -f conftest conftest$ac_cv_exeext
3405
3389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3456
3440
    else
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 ; }
3462
3446
    fi
3463
3447
  fi
3464
3448
fi
3509
3493
 
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 ; }
3514
3498
fi
3515
3499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516
3500
fi
3773
3757
  # Broken: fails on valid input.
3774
3758
continue
3775
3759
fi
3776
 
rm -f conftest.err conftest.$ac_ext
 
3760
rm -f conftest.err conftest.i conftest.$ac_ext
3777
3761
 
3778
3762
  # OK, works on sane cases.  Now check whether nonexistent headers
3779
3763
  # can be detected and how.
3789
3773
ac_preproc_ok=:
3790
3774
break
3791
3775
fi
3792
 
rm -f conftest.err conftest.$ac_ext
 
3776
rm -f conftest.err conftest.i conftest.$ac_ext
3793
3777
 
3794
3778
done
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 :
3798
3782
  break
3799
3783
fi
3832
3816
  # Broken: fails on valid input.
3833
3817
continue
3834
3818
fi
3835
 
rm -f conftest.err conftest.$ac_ext
 
3819
rm -f conftest.err conftest.i conftest.$ac_ext
3836
3820
 
3837
3821
  # OK, works on sane cases.  Now check whether nonexistent headers
3838
3822
  # can be detected and how.
3848
3832
ac_preproc_ok=:
3849
3833
break
3850
3834
fi
3851
 
rm -f conftest.err conftest.$ac_ext
 
3835
rm -f conftest.err conftest.i conftest.$ac_ext
3852
3836
 
3853
3837
done
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 :
3857
3841
 
3858
3842
else
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 ; }
3863
3847
fi
3864
3848
 
3865
3849
ac_ext=c
3920
3904
  done
3921
3905
IFS=$as_save_IFS
3922
3906
  if test -z "$ac_cv_path_GREP"; then
3923
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3907
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3924
3908
  fi
3925
3909
else
3926
3910
  ac_cv_path_GREP=$GREP
3986
3970
  done
3987
3971
IFS=$as_save_IFS
3988
3972
  if test -z "$ac_cv_path_EGREP"; then
3989
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3973
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3990
3974
  fi
3991
3975
else
3992
3976
  ac_cv_path_EGREP=$EGREP
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
4120
4104
"
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
4125
4108
_ACEOF
4350
4333
 
4351
4334
     ;; #(
4352
4335
   *)
4353
 
     as_fn_error "unknown endianness
4354
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 
4336
     as_fn_error $? "unknown endianness
 
4337
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
4355
4338
 esac
4356
4339
 
4357
4340
 
4501
4484
 
4502
4485
     fi
4503
4486
  fi
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
4518
4501
      esac
4519
4502
    done
4520
4503
  else
4521
 
    as_fn_error "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
 
4504
    as_fn_error $? "installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4522
4505
  fi
4523
4506
  rm -f conftest*
4524
4507
  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4669
4652
 
4670
4653
fi
4671
4654
 
4672
 
if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
 
4655
if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4673
4656
  cvsbuild="yes"
4674
4657
  optimize="no"
4675
4658
  CVSBUILD=CVSBUILD=1
4684
4667
if test "${enable_optimized+set}" = set; then :
4685
4668
  enableval=$enable_optimized;
4686
4669
else
4687
 
  enableval=$optimize
 
4670
  enableval="yes"
4688
4671
fi
4689
4672
 
4690
4673
if test ${enableval} = "no" ; then
4714
4697
if test "${enable_assertions+set}" = set; then :
4715
4698
  enableval=$enable_assertions;
4716
4699
else
4717
 
  enableval="yes"
 
4700
  enableval="no"
4718
4701
fi
4719
4702
 
4720
4703
if test ${enableval} = "yes" ; then
4832
4815
 ;;
4833
4816
  default) ENABLE_DOXYGEN=0
4834
4817
 ;;
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  ;;
4836
4819
esac
4837
4820
 
4838
4821
# Check whether --enable-threads was given.
4849
4832
 ;;
4850
4833
  default) ENABLE_THREADS=1
4851
4834
 ;;
4852
 
  *) as_fn_error "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
 
4835
  *) as_fn_error $? "Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5  ;;
4853
4836
esac
4854
4837
 
4855
4838
cat >>confdefs.h <<_ACEOF
4871
4854
 ;;
4872
4855
  default) ENABLE_PIC=1
4873
4856
 ;;
4874
 
  *) as_fn_error "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
 
4857
  *) as_fn_error $? "Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5  ;;
4875
4858
esac
4876
4859
 
4877
4860
cat >>confdefs.h <<_ACEOF
4893
4876
 ;;
4894
4877
  default) ENABLE_SHARED=0
4895
4878
 ;;
4896
 
  *) as_fn_error "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4897
 
esac
 
4879
  *) as_fn_error $? "Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5  ;;
 
4880
esac
 
4881
 
 
4882
# Check whether --enable-timestamps was given.
 
4883
if test "${enable_timestamps+set}" = set; then :
 
4884
  enableval=$enable_timestamps;
 
4885
else
 
4886
  enableval=default
 
4887
fi
 
4888
 
 
4889
case "$enableval" in
 
4890
  yes) ENABLE_TIMESTAMPS=1
 
4891
 ;;
 
4892
  no)  ENABLE_TIMESTAMPS=0
 
4893
 ;;
 
4894
  default) ENABLE_TIMESTAMPS=1
 
4895
 ;;
 
4896
  *) as_fn_error $? "Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" "$LINENO" 5  ;;
 
4897
esac
 
4898
 
 
4899
cat >>confdefs.h <<_ACEOF
 
4900
#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
 
4901
_ACEOF
 
4902
 
4898
4903
 
4899
4904
TARGETS_TO_BUILD=""
4900
4905
# Check whether --enable-targets was given.
4908
4913
  enableval=host
4909
4914
fi
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  ;;
4947
4951
          esac ;;
4948
 
        *) as_fn_error "Unrecognized target $a_target" "$LINENO" 5 ;;
 
4952
        *) as_fn_error $? "Unrecognized target $a_target" "$LINENO" 5  ;;
4949
4953
      esac
4950
4954
  done
4951
4955
  ;;
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"
4961
 
 
4962
 
cat >>confdefs.h <<_ACEOF
4963
 
#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
 
4964
 
 
4965
cat >>confdefs.h <<_ACEOF
 
4966
#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
 
4967
_ACEOF
 
4968
 
 
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"
 
4972
 
 
4973
cat >>confdefs.h <<_ACEOF
 
4974
#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
 
4975
_ACEOF
 
4976
 
 
4977
 
 
4978
cat >>confdefs.h <<_ACEOF
 
4979
#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
 
4980
_ACEOF
 
4981
 
 
4982
 
 
4983
cat >>confdefs.h <<_ACEOF
 
4984
#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
4964
4985
_ACEOF
4965
4986
 
4966
4987
  fi
5003
5024
 ;;
5004
5025
  default)  ENABLE_CBE_PRINTF_A=1
5005
5026
 ;;
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  ;;
5007
5028
esac
5008
5029
 
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  ;;
5026
5047
esac
5027
5048
 
5028
5049
 
5050
5071
fi
5051
5072
 
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 ;
5054
5075
fi
5055
5076
 
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 ;
5058
5079
fi
5059
5080
 
5060
5081
 
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
5086
5107
   fi
5087
5108
elif test "$with_built_clang" = "yes"; then
5088
5109
   WITH_BUILT_CLANG=1
5090
5111
   WITH_BUILT_CLANG=0
5091
5112
else
5092
5113
   if test "$with_built_clang" != "check"; then
5093
 
      as_fn_error "invalid value for --with-built-clang." "$LINENO" 5
 
5114
      as_fn_error $? "invalid value for --with-built-clang." "$LINENO" 5
5094
5115
   fi
5095
5116
 
5096
5117
   if test -f ${srcdir}/tools/clang/README.txt; then
5129
5150
case "$withval" in
5130
5151
  default)
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 ;;
5134
5156
    esac ;;
5135
5157
  *) optimize_option="$withval" ;;
5136
5158
esac
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  ;;
5173
5195
      esac
5174
5196
  done
5175
5197
  ;;
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  ;;
5190
5212
esac
5191
5213
 
5192
5214
 
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  ;;
5274
5296
esac
5275
5297
if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5276
5298
  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5277
5299
 
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 ;
5281
5303
  fi
5282
5304
fi
5283
5305
 
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  ;;
5290
5312
  esac
5291
5313
else
5292
5314
  llvm_cv_enable_libffi=no
5293
5315
fi
5294
5316
 
5295
5317
 
5296
 
if test "$llvm_cv_os_type" = "Win32" ; then
5297
 
   llvmc_dynamic="yes"
5298
 
else
5299
 
   llvmc_dynamic="no"
5300
 
fi
5301
 
 
5302
 
# Check whether --enable-llvmc-dynamic was given.
5303
 
if test "${enable_llvmc_dynamic+set}" = set; then :
5304
 
  enableval=$enable_llvmc_dynamic;
5305
 
else
5306
 
  enableval=$llvmc_dynamic
5307
 
fi
5308
 
 
5309
 
if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5310
 
   ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5311
 
 
5312
 
else
5313
 
   ENABLE_LLVMC_DYNAMIC=
5314
 
 
5315
 
fi
5316
 
 
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;
5320
 
else
5321
 
  enableval=yes
5322
 
fi
5323
 
 
5324
 
if test ${enableval} = "yes" ; then
5325
 
   ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5326
 
 
5327
 
else
5328
 
   ENABLE_LLVMC_DYNAMIC_PLUGINS=
5329
 
 
5330
 
fi
5331
 
 
5332
5318
 
5333
5319
ac_ext=c
5334
5320
ac_cpp='$CPP $CPPFLAGS'
5372
5358
  # Broken: fails on valid input.
5373
5359
continue
5374
5360
fi
5375
 
rm -f conftest.err conftest.$ac_ext
 
5361
rm -f conftest.err conftest.i conftest.$ac_ext
5376
5362
 
5377
5363
  # OK, works on sane cases.  Now check whether nonexistent headers
5378
5364
  # can be detected and how.
5388
5374
ac_preproc_ok=:
5389
5375
break
5390
5376
fi
5391
 
rm -f conftest.err conftest.$ac_ext
 
5377
rm -f conftest.err conftest.i conftest.$ac_ext
5392
5378
 
5393
5379
done
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 :
5397
5383
  break
5398
5384
fi
5431
5417
  # Broken: fails on valid input.
5432
5418
continue
5433
5419
fi
5434
 
rm -f conftest.err conftest.$ac_ext
 
5420
rm -f conftest.err conftest.i conftest.$ac_ext
5435
5421
 
5436
5422
  # OK, works on sane cases.  Now check whether nonexistent headers
5437
5423
  # can be detected and how.
5447
5433
ac_preproc_ok=:
5448
5434
break
5449
5435
fi
5450
 
rm -f conftest.err conftest.$ac_ext
 
5436
rm -f conftest.err conftest.i conftest.$ac_ext
5451
5437
 
5452
5438
done
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 :
5456
5442
 
5457
5443
else
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 ; }
5462
5448
fi
5463
5449
 
5464
5450
ac_ext=c
5575
5561
 
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 ; }
5580
5566
 
5581
5567
# Provide some information about the compiler.
5582
5568
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7335
7321
 
7336
7322
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7337
7323
 
 
7324
case "$INSTALL" in
 
7325
 [\\/$]* | ?:[\\/]* ) ;;
 
7326
 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
 
7327
esac
7338
7328
 
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
7376
7366
fi
7377
7367
 
7378
7368
 
 
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
 
7375
else
 
7376
  case $CAT in
 
7377
  [\\/]* | ?:[\\/]*)
 
7378
  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
 
7379
  ;;
 
7380
  *)
 
7381
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7382
for as_dir in $PATH
 
7383
do
 
7384
  IFS=$as_save_IFS
 
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
 
7390
    break 2
 
7391
  fi
 
7392
done
 
7393
  done
 
7394
IFS=$as_save_IFS
 
7395
 
 
7396
  ;;
 
7397
esac
 
7398
fi
 
7399
CAT=$ac_cv_path_CAT
 
7400
if test -n "$CAT"; then
 
7401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
 
7402
$as_echo "$CAT" >&6; }
 
7403
else
 
7404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7405
$as_echo "no" >&6; }
 
7406
fi
 
7407
 
 
7408
 
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
7576
7606
fi
7577
7607
 
7578
7608
 
 
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
 
7615
else
 
7616
  case $PDFROFF in
 
7617
  [\\/]* | ?:[\\/]*)
 
7618
  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
 
7619
  ;;
 
7620
  *)
 
7621
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7622
for as_dir in $PATH
 
7623
do
 
7624
  IFS=$as_save_IFS
 
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
 
7630
    break 2
 
7631
  fi
 
7632
done
 
7633
  done
 
7634
IFS=$as_save_IFS
 
7635
 
 
7636
  ;;
 
7637
esac
 
7638
fi
 
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; }
 
7643
else
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7645
$as_echo "no" >&6; }
 
7646
fi
 
7647
 
 
7648
 
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)`
7640
7710
  else
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
7642
7712
  fi
7643
7713
fi
7644
7714
fi
7970
8040
done
7971
8041
 
7972
8042
 
 
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
 
8047
else
 
8048
 
 
8049
   version_string="$(ld -v 2>&1 | head -1)"
 
8050
 
 
8051
   # Check for ld64.
 
8052
   if (echo "$version_string" | grep -q "ld64"); then
 
8053
     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
 
8054
   else
 
8055
     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
 
8056
   fi
 
8057
 
 
8058
fi
 
8059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
 
8060
$as_echo "$llvm_cv_link_version" >&6; }
 
8061
 
 
8062
cat >>confdefs.h <<_ACEOF
 
8063
#define HOST_LINK_VERSION "$llvm_cv_link_version"
 
8064
_ACEOF
 
8065
 
 
8066
 
 
8067
 
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 :
7989
8084
int
7990
8085
main ()
7991
8086
{
7992
 
int main() { return 0; }
 
8087
 
7993
8088
  ;
7994
8089
  return 0;
7995
8090
}
8038
8133
int
8039
8134
main ()
8040
8135
{
8041
 
int main() { return 0; }
 
8136
 
8042
8137
  ;
8043
8138
  return 0;
8044
8139
}
8068
8163
  fi
8069
8164
 
8070
8165
 
 
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
 
8170
else
 
8171
   ac_ext=c
 
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
 
8176
 
 
8177
  oldcflags="$CFLAGS"
 
8178
 
 
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.
 
8184
  : ${TMPDIR=/tmp}
 
8185
  {
 
8186
    tmp=`
 
8187
      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
 
8188
    ` &&
 
8189
    test -n "$tmp" && test -d "$tmp"
 
8190
  } || {
 
8191
    tmp=$TMPDIR/foo$$-$RANDOM
 
8192
    (umask 077 && mkdir "$tmp")
 
8193
  } || exit $?
 
8194
 
 
8195
  echo "{" > "$tmp/export.map"
 
8196
  echo "  global: main;" >> "$tmp/export.map"
 
8197
  echo "  local: *;" >> "$tmp/export.map"
 
8198
  echo "};" >> "$tmp/export.map"
 
8199
 
 
8200
  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
 
8201
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8202
/* end confdefs.h.  */
 
8203
 
 
8204
int
 
8205
main ()
 
8206
{
 
8207
 
 
8208
  ;
 
8209
  return 0;
 
8210
}
 
8211
_ACEOF
 
8212
if ac_fn_c_try_link "$LINENO"; then :
 
8213
  llvm_cv_link_use_version_script=yes
 
8214
else
 
8215
  llvm_cv_link_use_version_script=no
 
8216
fi
 
8217
rm -f core conftest.err conftest.$ac_objext \
 
8218
    conftest$ac_exeext conftest.$ac_ext
 
8219
  rm "$tmp/export.map"
 
8220
  rmdir "$tmp"
 
8221
  CFLAGS="$oldcflags"
 
8222
  ac_ext=c
 
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
 
8227
 
 
8228
 
 
8229
fi
 
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
 
8234
 
 
8235
  fi
 
8236
 
 
8237
 
8071
8238
 
8072
8239
 
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
8160
8327
else
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
8189
8355
_ACEOF
9590
9756
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9591
9757
  lt_status=$lt_dlunknown
9592
9758
  cat > conftest.$ac_ext <<EOF
9593
 
#line 9593 "configure"
 
9759
#line 9759 "configure"
9594
9760
#include "confdefs.h"
9595
9761
 
9596
9762
#if HAVE_DLFCN_H
9811
9977
do :
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
9818
9983
_ACEOF
9844
10009
do :
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
9851
10015
_ACEOF
9858
10022
do :
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
9865
10028
_ACEOF
9872
10035
do :
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
9879
10041
_ACEOF
9887
10049
do :
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
9894
10055
_ACEOF
9900
10061
do :
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
9907
10067
_ACEOF
9913
10073
do :
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
9920
10079
_ACEOF
9926
10085
do :
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
9933
10091
_ACEOF
9939
10097
do :
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
9946
10103
_ACEOF
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
10077
10234
   fi
10078
10235
   WITH_LLVMCC="$with_llvmcc"
10079
10236
elif test -n "$LLVMGCC"; then
10104
10261
 
10105
10262
if test "$GCC" != "yes" && test "$ICC" != "yes"
10106
10263
then
10107
 
  as_fn_error "gcc|icc required but not found" "$LINENO" 5
 
10264
  as_fn_error $? "gcc|icc required but not found" "$LINENO" 5
10108
10265
fi
10109
10266
 
10110
10267
if test "$GXX" != "yes" && test "$IXX" != "yes"
10111
10268
then
10112
 
  as_fn_error "g++|icc required but not found" "$LINENO" 5
 
10269
  as_fn_error $? "g++|icc required but not found" "$LINENO" 5
10113
10270
fi
10114
10271
 
10115
10272
if test "$GCC" = "yes"
10124
10281
if ac_fn_c_try_compile "$LINENO"; then :
10125
10282
 
10126
10283
else
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
10128
10285
fi
10129
10286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130
10287
fi
10131
10288
 
10132
10289
if test -z "$llvm_cv_gnu_make_command"
10133
10290
then
10134
 
  as_fn_error "GNU Make required but not found" "$LINENO" 5
 
10291
  as_fn_error $? "GNU Make required but not found" "$LINENO" 5
10135
10292
fi
10136
10293
 
10137
10294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10393
10550
$as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
10394
10551
 
10395
10552
else
10396
 
  as_fn_error "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
 
10553
  as_fn_error $? "libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
10397
10554
fi
10398
10555
 
10399
10556
fi
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
10921
11078
else
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
10950
11106
_ACEOF
11351
11507
do :
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
11358
11513
_ACEOF
11365
11520
do :
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
11372
11526
_ACEOF
11379
11533
do :
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
11386
11539
_ACEOF
11393
11546
do :
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
11400
11552
_ACEOF
11407
11559
do :
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
11414
11565
_ACEOF
11417
11568
 
11418
11569
done
11419
11570
 
 
11571
for ac_header in valgrind/valgrind.h
 
11572
do :
 
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
 
11577
_ACEOF
 
11578
 
 
11579
fi
 
11580
 
 
11581
done
 
11582
 
11420
11583
if test "$ENABLE_THREADS" -eq 1 ; then
11421
11584
  for ac_header in pthread.h
11422
11585
do :
11444
11607
do :
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
11451
11613
_ACEOF
11456
11618
 
11457
11619
fi
11458
11620
 
 
11621
for ac_header in CrashReporterClient.h
 
11622
do :
 
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
 
11627
_ACEOF
 
11628
 
 
11629
fi
 
11630
 
 
11631
done
 
11632
 
 
11633
 
11459
11634
 
11460
11635
 
11461
11636
 
11581
11756
 
11582
11757
 
11583
11758
else
11584
 
  as_fn_error "Type int64_t required but not found" "$LINENO" 5
 
11759
  as_fn_error $? "Type int64_t required but not found" "$LINENO" 5
11585
11760
fi
11586
11761
 
11587
11762
ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11602
11777
 
11603
11778
 
11604
11779
else
11605
 
  as_fn_error "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
 
11780
  as_fn_error $? "Type uint64_t or u_int64_t required but not found" "$LINENO" 5
11606
11781
fi
11607
11782
 
11608
11783
fi
11613
11788
do :
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
11620
11794
_ACEOF
11626
11800
do :
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
11633
11806
_ACEOF
11639
11812
do :
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
11646
11818
_ACEOF
11652
11824
do :
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
11659
11830
_ACEOF
11661
11832
fi
11662
11833
done
11663
11834
 
11664
 
for ac_func in mktemp realpath sbrk setrlimit strdup
 
11835
for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
11665
11836
do :
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
11672
11842
_ACEOF
11678
11848
do :
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
11685
11854
_ACEOF
11691
11860
do :
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
11698
11866
_ACEOF
11704
11872
do :
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
11711
11878
_ACEOF
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
12147
12314
"
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
12152
12318
_ACEOF
12453
12619
      }
12454
12620
 
12455
12621
_ACEOF
12456
 
if ac_fn_cxx_try_link "$LINENO"; then :
 
12622
if ac_fn_c_try_link "$LINENO"; then :
 
12623
  ac_ext=c
 
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
 
12628
 
12457
12629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458
12630
$as_echo "yes" >&6; }
12459
12631
 
12470
12642
fi
12471
12643
rm -f core conftest.err conftest.$ac_objext \
12472
12644
    conftest$ac_exeext conftest.$ac_ext
12473
 
ac_ext=c
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
12478
 
 
12479
 
 
12480
12645
 
12481
12646
 
12482
12647
if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12723
12888
  esac
12724
12889
done
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
12727
12892
fi
12728
12893
 
12729
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
12791
12956
 
12792
12957
 
12793
12958
 
12794
 
ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
 
12959
ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
 
12960
 
 
12961
 
 
12962
 
12795
12963
 
12796
12964
ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
12797
12965
 
12810
12978
ac_config_files="$ac_config_files llvm.spec"
12811
12979
 
12812
12980
 
12813
 
ac_config_files="$ac_config_files docs/doxygen.cfg"
12814
 
 
12815
 
 
12816
 
ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
12817
 
 
12818
 
 
12819
 
ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
12820
12981
 
12821
12982
 
12822
12983
ac_config_commands="$ac_config_commands setup"
12944
13105
 
12945
13106
ac_libobjs=
12946
13107
ac_ltlibobjs=
 
13108
U=
12947
13109
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12948
13110
  # 1. Remove the extension, and $U if already installed.
12949
13111
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12960
13122
 
12961
13123
 
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
12965
13127
fi
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
12969
13131
fi
12970
13132
 
13114
13276
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13115
13277
 
13116
13278
 
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 ()
13123
13285
{
13124
 
  as_status=$?; test $as_status -eq 0 && as_status=1
13125
 
  if test "$3"; then
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
 
13287
  if test "$4"; then
 
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
13128
13290
  fi
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
13132
13294
 
13322
13484
      test -d "$as_dir" && break
13323
13485
    done
13324
13486
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13325
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
13487
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13326
13488
 
13327
13489
 
13328
13490
} # as_fn_mkdir_p
13375
13537
# report actual input values of CONFIG_FILES etc. instead of their
13376
13538
# values after options handling.
13377
13539
ac_log="
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
13380
13542
 
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\\"
13447
13609
 
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."
13451
13613
 
13461
13623
while test $# != 0
13462
13624
do
13463
13625
  case $1 in
13464
 
  --*=*)
 
13626
  --*=?*)
13465
13627
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13466
13628
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13467
13629
    ac_shift=:
13468
13630
    ;;
 
13631
  --*=)
 
13632
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13633
    ac_optarg=
 
13634
    ac_shift=:
 
13635
    ;;
13469
13636
  *)
13470
13637
    ac_option=$1
13471
13638
    ac_optarg=$2
13487
13654
    $ac_shift
13488
13655
    case $ac_optarg in
13489
13656
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13657
    '') as_fn_error $? "missing file argument" ;;
13490
13658
    esac
13491
13659
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13492
13660
    ac_need_defaults=false;;
13499
13667
    ac_need_defaults=false;;
13500
13668
  --he | --h)
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 ;;
13508
13676
    ac_cs_silent=: ;;
13509
13677
 
13510
13678
  # This is an error.
13511
 
  -*) as_fn_error "unrecognized option: \`$1'
 
13679
  -*) as_fn_error $? "unrecognized option: \`$1'
13512
13680
Try \`$0 --help' for more information." ;;
13513
13681
 
13514
13682
  *) as_fn_append ac_config_targets " $1"
13563
13731
do
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" ;;
13590
13756
 
13591
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13757
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13592
13758
  esac
13593
13759
done
13594
13760
 
13626
13792
{
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
13630
13796
 
13631
13797
# Set up the scripts for CONFIG_FILES section.
13632
13798
# No need to generate them if there are no CONFIG_FILES.
13643
13809
fi
13644
13810
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13645
13811
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13646
 
  ac_cs_awk_cr='\r'
 
13812
  ac_cs_awk_cr='\\r'
13647
13813
else
13648
13814
  ac_cs_awk_cr=$ac_cr
13649
13815
fi
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
13666
13832
 
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
13669
13835
    break
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
13672
13838
  else
13673
13839
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13674
13840
  fi
13757
13923
else
13758
13924
  cat
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
13761
13927
_ACEOF
13762
13928
 
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}:*/:/
13771
 
s/:*@srcdir@:*/:/
13772
 
s/^\([^=]*=[     ]*\):*/\1/
 
13934
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
13935
h
 
13936
s///
 
13937
s/^/:/
 
13938
s/[      ]*$/:/
 
13939
s/:\$(srcdir):/:/g
 
13940
s/:\${srcdir}:/:/g
 
13941
s/:@srcdir@:/:/g
 
13942
s/^:*//
13773
13943
s/:*$//
 
13944
x
 
13945
s/\(=[   ]*\).*/\1/
 
13946
G
 
13947
s/\n//
13774
13948
s/^[^=]*=[       ]*$//
13775
13949
}'
13776
13950
fi
13798
13972
  if test -z "$ac_t"; then
13799
13973
    break
13800
13974
  elif $ac_last_try; then
13801
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
13975
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13802
13976
  else
13803
13977
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13804
13978
  fi
13883
14057
_ACAWK
13884
14058
_ACEOF
13885
14059
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13886
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
14060
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13887
14061
fi # test -n "$CONFIG_HEADERS"
13888
14062
 
13889
14063
 
13896
14070
  esac
13897
14071
  case $ac_mode$ac_tag in
13898
14072
  :[FHL]*:*);;
13899
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14073
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13900
14074
  :[FH]-) ac_tag=-:-;;
13901
14075
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13902
14076
  esac
13924
14098
           [\\/$]*) false;;
13925
14099
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13926
14100
           esac ||
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 ;;
13928
14102
      esac
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'"
13951
14125
 
13952
14126
    case $ac_tag in
13953
14127
    *:-:* | *:-) cat >"$tmp/stdin" \
13954
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
14128
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
13955
14129
    esac
13956
14130
    ;;
13957
14131
  esac
14082
14256
$ac_datarootdir_hack
14083
14257
"
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
14086
14260
 
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;}
14094
14268
 
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";;
14099
14273
  esac \
14100
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14274
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14101
14275
 ;;
14102
14276
  :H)
14103
14277
  #
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;}
14115
14289
    else
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
14119
14293
    fi
14120
14294
  else
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
14124
14298
  fi
14125
14299
 ;;
14126
14300
 
14167
14341
ac_clean_files=$ac_clean_files_save
14168
14342
 
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
14171
14345
 
14172
14346
 
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
14192
14366
fi
14193
14367
 
14194
14368
#
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
14333
14507
    fi
14334
14508
 
14335
14509
    cd "$ac_popdir"