aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees2013-02-05 13:34:42 +0000
committerGareth Rees2013-02-05 13:34:42 +0000
commite12d5890e3136bc277441c47e5cfa2ea41cb273e (patch)
tree022c5a34a517a2b23a9beff31ad91a9341afee6b
parent51b123525e973741c58ea6b25c9fe00b649da871 (diff)
downloademacs-e12d5890e3136bc277441c47e5cfa2ea41cb273e.tar.gz
emacs-e12d5890e3136bc277441c47e5cfa2ea41cb273e.zip
Improvements to the mps build/installation process:
1. Build eventtxt on Mac OS X (add "eventtxt" as dependency for "all" target). 2. In configure, check for the existence of the header "sqlite3.h" and set EXTRA_TARGETS accordingly. 3. In top-level Makefile, install all targets in EXTRA_TARGETS. Copied from Perforce Change: 180907 ServerID: perforce.ravenbrook.com
-rw-r--r--mps/Makefile.in6
-rw-r--r--mps/code/mps.xcodeproj/project.pbxproj29
-rwxr-xr-xmps/configure966
-rw-r--r--mps/configure.ac6
4 files changed, 997 insertions, 10 deletions
diff --git a/mps/Makefile.in b/mps/Makefile.in
index 543c224d1e3..c60c969c5df 100644
--- a/mps/Makefile.in
+++ b/mps/Makefile.in
@@ -14,6 +14,7 @@ INSTALL_DATA=@INSTALL_DATA@
14INSTALL_PROGRAM=@INSTALL_PROGRAM@ 14INSTALL_PROGRAM=@INSTALL_PROGRAM@
15MAKE=@MAKE@ 15MAKE=@MAKE@
16MPS_TARGET_NAME=@MPS_TARGET_NAME@ 16MPS_TARGET_NAME=@MPS_TARGET_NAME@
17EXTRA_TARGETS=@EXTRA_TARGETS@
17prefix=$(DESTDIR)@prefix@ 18prefix=$(DESTDIR)@prefix@
18 19
19all: @BUILD_TARGET@ 20all: @BUILD_TARGET@
@@ -28,7 +29,7 @@ install-make-build: make-install-dirs build-via-make
28 $(INSTALL_DATA) code/mps*.h $(prefix)/include/ 29 $(INSTALL_DATA) code/mps*.h $(prefix)/include/
29 $(INSTALL_DATA) code/$(MPS_TARGET_NAME)/cool/mps.a $(prefix)/lib/libmps-debug.a 30 $(INSTALL_DATA) code/$(MPS_TARGET_NAME)/cool/mps.a $(prefix)/lib/libmps-debug.a
30 $(INSTALL_DATA) code/$(MPS_TARGET_NAME)/hot/mps.a $(prefix)/lib/libmps.a 31 $(INSTALL_DATA) code/$(MPS_TARGET_NAME)/hot/mps.a $(prefix)/lib/libmps.a
31 $(INSTALL_PROGRAM) code/$(MPS_TARGET_NAME)/hot/eventcnv $(prefix)/bin/mpseventcnv 32 for PROGRAM in $(EXTRA_TARGETS); do $(INSTALL_PROGRAM) code/$(MPS_TARGET_NAME)/hot/$$PROGRAM $(prefix)/bin/mps$$PROGRAM; done
32 33
33build-via-xcode: 34build-via-xcode:
34 xcodebuild -project code/mps.xcodeproj -config Release 35 xcodebuild -project code/mps.xcodeproj -config Release
@@ -42,8 +43,7 @@ install-xcode-build: make-install-dirs build-via-xcode
42 $(INSTALL_DATA) code/mps*.h $(prefix)/include/ 43 $(INSTALL_DATA) code/mps*.h $(prefix)/include/
43 $(INSTALL_DATA) code/xc/Debug/libmps.a $(prefix)/lib/libmps-debug.a 44 $(INSTALL_DATA) code/xc/Debug/libmps.a $(prefix)/lib/libmps-debug.a
44 $(INSTALL_DATA) code/xc/Release/libmps.a $(prefix)/lib/libmps.a 45 $(INSTALL_DATA) code/xc/Release/libmps.a $(prefix)/lib/libmps.a
45 $(INSTALL_PROGRAM) code/xc/Release/eventcnv $(prefix)/bin/mpseventcnv 46 for PROGRAM in $(EXTRA_TARGETS); do $(INSTALL_PROGRAM) code/xc/Release/$$PROGRAM $(prefix)/bin/mps$$PROGRAM; done
46 $(INSTALL_PROGRAM) code/xc/Release/eventsql $(prefix)/bin/mpseventsql
47 47
48Makefile: Makefile.in config.status 48Makefile: Makefile.in config.status
49 ./config.status Makefile 49 ./config.status Makefile
diff --git a/mps/code/mps.xcodeproj/project.pbxproj b/mps/code/mps.xcodeproj/project.pbxproj
index 9fe15daa36c..08b81eb2752 100644
--- a/mps/code/mps.xcodeproj/project.pbxproj
+++ b/mps/code/mps.xcodeproj/project.pbxproj
@@ -13,9 +13,10 @@
13 buildPhases = ( 13 buildPhases = (
14 ); 14 );
15 dependencies = ( 15 dependencies = (
16 2D07B9791636FCBD00DB751B /* PBXTargetDependency */,
17 3104AFF6156D37BC000A585A /* PBXTargetDependency */, 16 3104AFF6156D37BC000A585A /* PBXTargetDependency */,
18 3114A6D5156E9839001E0AA3 /* PBXTargetDependency */, 17 3114A6D5156E9839001E0AA3 /* PBXTargetDependency */,
18 2D07B9791636FCBD00DB751B /* PBXTargetDependency */,
19 22E16A8916C141020090AD9F /* PBXTargetDependency */,
19 3114A6B9156E9763001E0AA3 /* PBXTargetDependency */, 20 3114A6B9156E9763001E0AA3 /* PBXTargetDependency */,
20 3114A6A7156E9739001E0AA3 /* PBXTargetDependency */, 21 3114A6A7156E9739001E0AA3 /* PBXTargetDependency */,
21 3114A68D156E9686001E0AA3 /* PBXTargetDependency */, 22 3114A68D156E9686001E0AA3 /* PBXTargetDependency */,
@@ -201,6 +202,13 @@
201/* End PBXBuildFile section */ 202/* End PBXBuildFile section */
202 203
203/* Begin PBXContainerItemProxy section */ 204/* Begin PBXContainerItemProxy section */
205 22E16A8816C141020090AD9F /* PBXContainerItemProxy */ = {
206 isa = PBXContainerItemProxy;
207 containerPortal = 31EEABDA156AAE9E00714D05 /* Project object */;
208 proxyType = 1;
209 remoteGlobalIDString = 2D604B9B16514B1A003AAF46;
210 remoteInfo = eventtxt;
211 };
204 2D07B9781636FCBD00DB751B /* PBXContainerItemProxy */ = { 212 2D07B9781636FCBD00DB751B /* PBXContainerItemProxy */ = {
205 isa = PBXContainerItemProxy; 213 isa = PBXContainerItemProxy;
206 containerPortal = 31EEABDA156AAE9E00714D05 /* Project object */; 214 containerPortal = 31EEABDA156AAE9E00714D05 /* Project object */;
@@ -2184,7 +2192,7 @@
2184 31EEABDA156AAE9E00714D05 /* Project object */ = { 2192 31EEABDA156AAE9E00714D05 /* Project object */ = {
2185 isa = PBXProject; 2193 isa = PBXProject;
2186 attributes = { 2194 attributes = {
2187 LastUpgradeCheck = 0440; 2195 LastUpgradeCheck = 0460;
2188 }; 2196 };
2189 buildConfigurationList = 31EEABDD156AAE9E00714D05 /* Build configuration list for PBXProject "mps" */; 2197 buildConfigurationList = 31EEABDD156AAE9E00714D05 /* Build configuration list for PBXProject "mps" */;
2190 compatibilityVersion = "Xcode 3.2"; 2198 compatibilityVersion = "Xcode 3.2";
@@ -2585,6 +2593,11 @@
2585/* End PBXSourcesBuildPhase section */ 2593/* End PBXSourcesBuildPhase section */
2586 2594
2587/* Begin PBXTargetDependency section */ 2595/* Begin PBXTargetDependency section */
2596 22E16A8916C141020090AD9F /* PBXTargetDependency */ = {
2597 isa = PBXTargetDependency;
2598 target = 2D604B9B16514B1A003AAF46 /* eventtxt */;
2599 targetProxy = 22E16A8816C141020090AD9F /* PBXContainerItemProxy */;
2600 };
2588 2D07B9791636FCBD00DB751B /* PBXTargetDependency */ = { 2601 2D07B9791636FCBD00DB751B /* PBXTargetDependency */ = {
2589 isa = PBXTargetDependency; 2602 isa = PBXTargetDependency;
2590 target = 2D07B9701636FC9900DB751B /* eventsql */; 2603 target = 2D07B9701636FC9900DB751B /* eventsql */;
@@ -2988,6 +3001,7 @@
2988 3104AFF3156D37A0000A585A /* Debug */ = { 3001 3104AFF3156D37A0000A585A /* Debug */ = {
2989 isa = XCBuildConfiguration; 3002 isa = XCBuildConfiguration;
2990 buildSettings = { 3003 buildSettings = {
3004 ARCHS = "$(NATIVE_ARCH_ACTUAL)";
2991 COMBINE_HIDPI_IMAGES = YES; 3005 COMBINE_HIDPI_IMAGES = YES;
2992 PRODUCT_NAME = "$(TARGET_NAME)"; 3006 PRODUCT_NAME = "$(TARGET_NAME)";
2993 }; 3007 };
@@ -2996,6 +3010,7 @@
2996 3104AFF4156D37A0000A585A /* Release */ = { 3010 3104AFF4156D37A0000A585A /* Release */ = {
2997 isa = XCBuildConfiguration; 3011 isa = XCBuildConfiguration;
2998 buildSettings = { 3012 buildSettings = {
3013 ARCHS = "$(NATIVE_ARCH_ACTUAL)";
2999 COMBINE_HIDPI_IMAGES = YES; 3014 COMBINE_HIDPI_IMAGES = YES;
3000 PRODUCT_NAME = "$(TARGET_NAME)"; 3015 PRODUCT_NAME = "$(TARGET_NAME)";
3001 }; 3016 };
@@ -3284,9 +3299,10 @@
3284 318387EB15DC30CC008E4EA0 /* WE */ = { 3299 318387EB15DC30CC008E4EA0 /* WE */ = {
3285 isa = XCBuildConfiguration; 3300 isa = XCBuildConfiguration;
3286 buildSettings = { 3301 buildSettings = {
3287 ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 3302 ARCHS = "$(ARCHS_STANDARD_32_BIT)";
3288 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; 3303 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
3289 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 3304 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
3305 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3290 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 3306 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
3291 GCC_C_LANGUAGE_STANDARD = ansi; 3307 GCC_C_LANGUAGE_STANDARD = ansi;
3292 GCC_OPTIMIZATION_LEVEL = 2; 3308 GCC_OPTIMIZATION_LEVEL = 2;
@@ -3337,6 +3353,7 @@
3337 318387EC15DC30CC008E4EA0 /* WE */ = { 3353 318387EC15DC30CC008E4EA0 /* WE */ = {
3338 isa = XCBuildConfiguration; 3354 isa = XCBuildConfiguration;
3339 buildSettings = { 3355 buildSettings = {
3356 ARCHS = "$(NATIVE_ARCH_ACTUAL)";
3340 COMBINE_HIDPI_IMAGES = YES; 3357 COMBINE_HIDPI_IMAGES = YES;
3341 PRODUCT_NAME = "$(TARGET_NAME)"; 3358 PRODUCT_NAME = "$(TARGET_NAME)";
3342 }; 3359 };
@@ -3649,9 +3666,10 @@
3649 31EEABDF156AAE9E00714D05 /* Debug */ = { 3666 31EEABDF156AAE9E00714D05 /* Debug */ = {
3650 isa = XCBuildConfiguration; 3667 isa = XCBuildConfiguration;
3651 buildSettings = { 3668 buildSettings = {
3652 ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 3669 ARCHS = "$(ARCHS_STANDARD_32_BIT)";
3653 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; 3670 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
3654 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 3671 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
3672 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3655 COPY_PHASE_STRIP = NO; 3673 COPY_PHASE_STRIP = NO;
3656 GCC_C_LANGUAGE_STANDARD = ansi; 3674 GCC_C_LANGUAGE_STANDARD = ansi;
3657 GCC_OPTIMIZATION_LEVEL = 0; 3675 GCC_OPTIMIZATION_LEVEL = 0;
@@ -3703,9 +3721,10 @@
3703 31EEABE0156AAE9E00714D05 /* Release */ = { 3721 31EEABE0156AAE9E00714D05 /* Release */ = {
3704 isa = XCBuildConfiguration; 3722 isa = XCBuildConfiguration;
3705 buildSettings = { 3723 buildSettings = {
3706 ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 3724 ARCHS = "$(ARCHS_STANDARD_32_BIT)";
3707 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; 3725 CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES;
3708 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 3726 CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
3727 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
3709 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 3728 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
3710 GCC_C_LANGUAGE_STANDARD = ansi; 3729 GCC_C_LANGUAGE_STANDARD = ansi;
3711 GCC_OPTIMIZATION_LEVEL = 2; 3730 GCC_OPTIMIZATION_LEVEL = 2;
diff --git a/mps/configure b/mps/configure
index 611a674ec72..fa26b55d6a1 100755
--- a/mps/configure
+++ b/mps/configure
@@ -197,7 +197,8 @@ test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then : 202 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes 203 as_have_required=yes
203else 204else
@@ -585,13 +586,56 @@ PACKAGE_BUGREPORT='mps-questions@ravenbrook.com'
585PACKAGE_URL='http://www.ravenbrook.com/project/mps/' 586PACKAGE_URL='http://www.ravenbrook.com/project/mps/'
586 587
587ac_unique_file="code/mps.c" 588ac_unique_file="code/mps.c"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
588ac_subst_vars='LTLIBOBJS 625ac_subst_vars='LTLIBOBJS
589LIBOBJS 626LIBOBJS
627EXTRA_TARGETS
590INSTALL_TARGET 628INSTALL_TARGET
591CLEAN_TARGET 629CLEAN_TARGET
592BUILD_TARGET 630BUILD_TARGET
593MPS_TARGET_NAME 631MPS_TARGET_NAME
594MAKE 632MAKE
633EGREP
634GREP
635CXXCPP
636ac_ct_CXX
637CXXFLAGS
638CXX
595host_os 639host_os
596host_vendor 640host_vendor
597host_cpu 641host_cpu
@@ -659,7 +703,11 @@ CC
659CFLAGS 703CFLAGS
660LDFLAGS 704LDFLAGS
661LIBS 705LIBS
662CPPFLAGS' 706CPPFLAGS
707CXX
708CXXFLAGS
709CCC
710CXXCPP'
663 711
664 712
665# Initialize some variables set by options. 713# Initialize some variables set by options.
@@ -1277,6 +1325,9 @@ Some influential environment variables:
1277 LIBS libraries to pass to the linker, e.g. -l<library> 1325 LIBS libraries to pass to the linker, e.g. -l<library>
1278 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1326 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1279 you have headers in a nonstandard directory <include dir> 1327 you have headers in a nonstandard directory <include dir>
1328 CXX C++ compiler command
1329 CXXFLAGS C++ compiler flags
1330 CXXCPP C++ preprocessor
1280 1331
1281Use these variables to override the choices made by `configure' or to help 1332Use these variables to override the choices made by `configure' or to help
1282it to find libraries and programs with nonstandard names/locations. 1333it to find libraries and programs with nonstandard names/locations.
@@ -1396,6 +1447,245 @@ fi
1396 as_fn_set_status $ac_retval 1447 as_fn_set_status $ac_retval
1397 1448
1398} # ac_fn_c_try_compile 1449} # ac_fn_c_try_compile
1450
1451# ac_fn_cxx_try_compile LINENO
1452# ----------------------------
1453# Try to compile conftest.$ac_ext, and return whether this succeeded.
1454ac_fn_cxx_try_compile ()
1455{
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1459case "(($ac_try" in
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1462esac
1463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464$as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1466 ac_status=$?
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1471 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_cxx_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.$ac_objext; then :
1477 ac_retval=0
1478else
1479 $as_echo "$as_me: failed program was:" >&5
1480sed 's/^/| /' conftest.$ac_ext >&5
1481
1482 ac_retval=1
1483fi
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485 as_fn_set_status $ac_retval
1486
1487} # ac_fn_cxx_try_compile
1488
1489# ac_fn_cxx_try_cpp LINENO
1490# ------------------------
1491# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_cxx_try_cpp ()
1493{
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 if { { ac_try="$ac_cpp conftest.$ac_ext"
1496case "(($ac_try" in
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1499esac
1500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501$as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1503 ac_status=$?
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1508 fi
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } > conftest.i && {
1511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1512 test ! -s conftest.err
1513 }; then :
1514 ac_retval=0
1515else
1516 $as_echo "$as_me: failed program was:" >&5
1517sed 's/^/| /' conftest.$ac_ext >&5
1518
1519 ac_retval=1
1520fi
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1523
1524} # ac_fn_cxx_try_cpp
1525
1526# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1527# ---------------------------------------------------------
1528# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1529# the include files in INCLUDES and setting the cache variable VAR
1530# accordingly.
1531ac_fn_cxx_check_header_mongrel ()
1532{
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 if eval \${$3+:} false; then :
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536$as_echo_n "checking for $2... " >&6; }
1537if eval \${$3+:} false; then :
1538 $as_echo_n "(cached) " >&6
1539fi
1540eval ac_res=\$$3
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542$as_echo "$ac_res" >&6; }
1543else
1544 # Is the header compilable?
1545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1546$as_echo_n "checking $2 usability... " >&6; }
1547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548/* end confdefs.h. */
1549$4
1550#include <$2>
1551_ACEOF
1552if ac_fn_cxx_try_compile "$LINENO"; then :
1553 ac_header_compiler=yes
1554else
1555 ac_header_compiler=no
1556fi
1557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1559$as_echo "$ac_header_compiler" >&6; }
1560
1561# Is the header present?
1562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1563$as_echo_n "checking $2 presence... " >&6; }
1564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565/* end confdefs.h. */
1566#include <$2>
1567_ACEOF
1568if ac_fn_cxx_try_cpp "$LINENO"; then :
1569 ac_header_preproc=yes
1570else
1571 ac_header_preproc=no
1572fi
1573rm -f conftest.err conftest.i conftest.$ac_ext
1574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1575$as_echo "$ac_header_preproc" >&6; }
1576
1577# So? What about this header?
1578case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1579 yes:no: )
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1581$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 ;;
1585 no:yes:* )
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1587$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1589$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1591$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1593$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1596( $as_echo "## ------------------------------------------- ##
1597## Report this to mps-questions@ravenbrook.com ##
1598## ------------------------------------------- ##"
1599 ) | sed "s/^/$as_me: WARNING: /" >&2
1600 ;;
1601esac
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
1604if eval \${$3+:} false; then :
1605 $as_echo_n "(cached) " >&6
1606else
1607 eval "$3=\$ac_header_compiler"
1608fi
1609eval ac_res=\$$3
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611$as_echo "$ac_res" >&6; }
1612fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614
1615} # ac_fn_cxx_check_header_mongrel
1616
1617# ac_fn_cxx_try_run LINENO
1618# ------------------------
1619# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1620# that executables *can* be run.
1621ac_fn_cxx_try_run ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if { { ac_try="$ac_link"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1635 { { case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_try") 2>&5
1642 ac_status=$?
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; }; }; then :
1645 ac_retval=0
1646else
1647 $as_echo "$as_me: program exited with status $ac_status" >&5
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=$ac_status
1652fi
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657} # ac_fn_cxx_try_run
1658
1659# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1660# ---------------------------------------------------------
1661# Tests whether HEADER exists and can be compiled using the include files in
1662# INCLUDES, setting the cache variable VAR accordingly.
1663ac_fn_cxx_check_header_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667$as_echo_n "checking for $2... " >&6; }
1668if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h. */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_cxx_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678else
1679 eval "$3=no"
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682fi
1683eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685$as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_cxx_check_header_compile
1399cat >config.log <<_ACEOF 1689cat >config.log <<_ACEOF
1400This file contains any messages produced by compilers while 1690This file contains any messages produced by compilers while
1401running configure, to aid debugging if configure makes a mistake. 1691running configure, to aid debugging if configure makes a mistake.
@@ -2801,6 +3091,677 @@ $as_echo "FreeBSD x86_64" >&6; }
2801 as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5 3091 as_fn_error $? "MPS does not support this platform out of the box. See manual/build.txt" "$LINENO" 5
2802esac 3092esac
2803 3093
3094EXTRA_TARGETS="eventcnv"
3095ac_ext=cpp
3096ac_cpp='$CXXCPP $CPPFLAGS'
3097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100
3101ac_ext=cpp
3102ac_cpp='$CXXCPP $CPPFLAGS'
3103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3106if test -z "$CXX"; then
3107 if test -n "$CCC"; then
3108 CXX=$CCC
3109 else
3110 if test -n "$ac_tool_prefix"; then
3111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3112 do
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if ${ac_cv_prog_CXX+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119else
3120 if test -n "$CXX"; then
3121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134done
3135 done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140CXX=$ac_cv_prog_CXX
3141if test -n "$CXX"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3143$as_echo "$CXX" >&6; }
3144else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150 test -n "$CXX" && break
3151 done
3152fi
3153if test -z "$CXX"; then
3154 ac_ct_CXX=$CXX
3155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3156do
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158set dummy $ac_prog; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163else
3164 if test -n "$ac_ct_CXX"; then
3165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_CXX="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179 done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3185if test -n "$ac_ct_CXX"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3187$as_echo "$ac_ct_CXX" >&6; }
3188else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193
3194 test -n "$ac_ct_CXX" && break
3195done
3196
3197 if test "x$ac_ct_CXX" = x; then
3198 CXX="g++"
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201yes:)
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204ac_tool_warned=yes ;;
3205esac
3206 CXX=$ac_ct_CXX
3207 fi
3208fi
3209
3210 fi
3211fi
3212# Provide some information about the compiler.
3213$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3214set X $ac_compile
3215ac_compiler=$2
3216for ac_option in --version -v -V -qversion; do
3217 { { ac_try="$ac_compiler $ac_option >&5"
3218case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223$as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3225 ac_status=$?
3226 if test -s conftest.err; then
3227 sed '10a\
3228... rest of stderr output deleted ...
3229 10q' conftest.err >conftest.er1
3230 cat conftest.er1 >&5
3231 fi
3232 rm -f conftest.er1 conftest.err
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }
3235done
3236
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3238$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3239if ${ac_cv_cxx_compiler_gnu+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241else
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h. */
3244
3245int
3246main ()
3247{
3248#ifndef __GNUC__
3249 choke me
3250#endif
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256if ac_fn_cxx_try_compile "$LINENO"; then :
3257 ac_compiler_gnu=yes
3258else
3259 ac_compiler_gnu=no
3260fi
3261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3263
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3266$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3267if test $ac_compiler_gnu = yes; then
3268 GXX=yes
3269else
3270 GXX=
3271fi
3272ac_test_CXXFLAGS=${CXXFLAGS+set}
3273ac_save_CXXFLAGS=$CXXFLAGS
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3275$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3276if ${ac_cv_prog_cxx_g+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278else
3279 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3280 ac_cxx_werror_flag=yes
3281 ac_cv_prog_cxx_g=no
3282 CXXFLAGS="-g"
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284/* end confdefs.h. */
3285
3286int
3287main ()
3288{
3289
3290 ;
3291 return 0;
3292}
3293_ACEOF
3294if ac_fn_cxx_try_compile "$LINENO"; then :
3295 ac_cv_prog_cxx_g=yes
3296else
3297 CXXFLAGS=""
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299/* end confdefs.h. */
3300
3301int
3302main ()
3303{
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309if ac_fn_cxx_try_compile "$LINENO"; then :
3310
3311else
3312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3313 CXXFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h. */
3316
3317int
3318main ()
3319{
3320
3321 ;
3322 return 0;
3323}
3324_ACEOF
3325if ac_fn_cxx_try_compile "$LINENO"; then :
3326 ac_cv_prog_cxx_g=yes
3327fi
3328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329fi
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331fi
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3334fi
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3336$as_echo "$ac_cv_prog_cxx_g" >&6; }
3337if test "$ac_test_CXXFLAGS" = set; then
3338 CXXFLAGS=$ac_save_CXXFLAGS
3339elif test $ac_cv_prog_cxx_g = yes; then
3340 if test "$GXX" = yes; then
3341 CXXFLAGS="-g -O2"
3342 else
3343 CXXFLAGS="-g"
3344 fi
3345else
3346 if test "$GXX" = yes; then
3347 CXXFLAGS="-O2"
3348 else
3349 CXXFLAGS=
3350 fi
3351fi
3352ac_ext=cpp
3353ac_cpp='$CXXCPP $CPPFLAGS'
3354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3357
3358
3359ac_ext=cpp
3360ac_cpp='$CXXCPP $CPPFLAGS'
3361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3365$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3366if test -z "$CXXCPP"; then
3367 if ${ac_cv_prog_CXXCPP+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 # Double quotes because CXXCPP needs to be expanded
3371 for CXXCPP in "$CXX -E" "/lib/cpp"
3372 do
3373 ac_preproc_ok=false
3374for ac_cxx_preproc_warn_flag in '' yes
3375do
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h. */
3384#ifdef __STDC__
3385# include <limits.h>
3386#else
3387# include <assert.h>
3388#endif
3389 Syntax error
3390_ACEOF
3391if ac_fn_cxx_try_cpp "$LINENO"; then :
3392
3393else
3394 # Broken: fails on valid input.
3395continue
3396fi
3397rm -f conftest.err conftest.i conftest.$ac_ext
3398
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
3405if ac_fn_cxx_try_cpp "$LINENO"; then :
3406 # Broken: success on invalid input.
3407continue
3408else
3409 # Passes both tests.
3410ac_preproc_ok=:
3411break
3412fi
3413rm -f conftest.err conftest.i conftest.$ac_ext
3414
3415done
3416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417rm -f conftest.i conftest.err conftest.$ac_ext
3418if $ac_preproc_ok; then :
3419 break
3420fi
3421
3422 done
3423 ac_cv_prog_CXXCPP=$CXXCPP
3424
3425fi
3426 CXXCPP=$ac_cv_prog_CXXCPP
3427else
3428 ac_cv_prog_CXXCPP=$CXXCPP
3429fi
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3431$as_echo "$CXXCPP" >&6; }
3432ac_preproc_ok=false
3433for ac_cxx_preproc_warn_flag in '' yes
3434do
3435 # Use a header file that comes with gcc, so configuring glibc
3436 # with a fresh cross-compiler works.
3437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438 # <limits.h> exists even on freestanding compilers.
3439 # On the NeXT, cc -E runs the code through the compiler's parser,
3440 # not just through cpp. "Syntax error" is here to catch this case.
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h. */
3443#ifdef __STDC__
3444# include <limits.h>
3445#else
3446# include <assert.h>
3447#endif
3448 Syntax error
3449_ACEOF
3450if ac_fn_cxx_try_cpp "$LINENO"; then :
3451
3452else
3453 # Broken: fails on valid input.
3454continue
3455fi
3456rm -f conftest.err conftest.i conftest.$ac_ext
3457
3458 # OK, works on sane cases. Now check whether nonexistent headers
3459 # can be detected and how.
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */
3462#include <ac_nonexistent.h>
3463_ACEOF
3464if ac_fn_cxx_try_cpp "$LINENO"; then :
3465 # Broken: success on invalid input.
3466continue
3467else
3468 # Passes both tests.
3469ac_preproc_ok=:
3470break
3471fi
3472rm -f conftest.err conftest.i conftest.$ac_ext
3473
3474done
3475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476rm -f conftest.i conftest.err conftest.$ac_ext
3477if $ac_preproc_ok; then :
3478
3479else
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3483See \`config.log' for more details" "$LINENO" 5; }
3484fi
3485
3486ac_ext=cpp
3487ac_cpp='$CXXCPP $CPPFLAGS'
3488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491
3492
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3494$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3495if ${ac_cv_path_GREP+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -z "$GREP"; then
3499 ac_path_GREP_found=false
3500 # Loop through the user's path and test for each of PROGNAME-LIST
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_prog in grep ggrep; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3509 as_fn_executable_p "$ac_path_GREP" || continue
3510# Check for GNU ac_path_GREP and select it if it is found.
3511 # Check for GNU $ac_path_GREP
3512case `"$ac_path_GREP" --version 2>&1` in
3513*GNU*)
3514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3515*)
3516 ac_count=0
3517 $as_echo_n 0123456789 >"conftest.in"
3518 while :
3519 do
3520 cat "conftest.in" "conftest.in" >"conftest.tmp"
3521 mv "conftest.tmp" "conftest.in"
3522 cp "conftest.in" "conftest.nl"
3523 $as_echo 'GREP' >> "conftest.nl"
3524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3526 as_fn_arith $ac_count + 1 && ac_count=$as_val
3527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3528 # Best one so far, save it but keep looking for a better one
3529 ac_cv_path_GREP="$ac_path_GREP"
3530 ac_path_GREP_max=$ac_count
3531 fi
3532 # 10*(2^10) chars as input seems more than enough
3533 test $ac_count -gt 10 && break
3534 done
3535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3536esac
3537
3538 $ac_path_GREP_found && break 3
3539 done
3540 done
3541 done
3542IFS=$as_save_IFS
3543 if test -z "$ac_cv_path_GREP"; then
3544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3545 fi
3546else
3547 ac_cv_path_GREP=$GREP
3548fi
3549
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3552$as_echo "$ac_cv_path_GREP" >&6; }
3553 GREP="$ac_cv_path_GREP"
3554
3555
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3557$as_echo_n "checking for egrep... " >&6; }
3558if ${ac_cv_path_EGREP+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3562 then ac_cv_path_EGREP="$GREP -E"
3563 else
3564 if test -z "$EGREP"; then
3565 ac_path_EGREP_found=false
3566 # Loop through the user's path and test for each of PROGNAME-LIST
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_prog in egrep; do
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3575 as_fn_executable_p "$ac_path_EGREP" || continue
3576# Check for GNU ac_path_EGREP and select it if it is found.
3577 # Check for GNU $ac_path_EGREP
3578case `"$ac_path_EGREP" --version 2>&1` in
3579*GNU*)
3580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3581*)
3582 ac_count=0
3583 $as_echo_n 0123456789 >"conftest.in"
3584 while :
3585 do
3586 cat "conftest.in" "conftest.in" >"conftest.tmp"
3587 mv "conftest.tmp" "conftest.in"
3588 cp "conftest.in" "conftest.nl"
3589 $as_echo 'EGREP' >> "conftest.nl"
3590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3592 as_fn_arith $ac_count + 1 && ac_count=$as_val
3593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3594 # Best one so far, save it but keep looking for a better one
3595 ac_cv_path_EGREP="$ac_path_EGREP"
3596 ac_path_EGREP_max=$ac_count
3597 fi
3598 # 10*(2^10) chars as input seems more than enough
3599 test $ac_count -gt 10 && break
3600 done
3601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3602esac
3603
3604 $ac_path_EGREP_found && break 3
3605 done
3606 done
3607 done
3608IFS=$as_save_IFS
3609 if test -z "$ac_cv_path_EGREP"; then
3610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3611 fi
3612else
3613 ac_cv_path_EGREP=$EGREP
3614fi
3615
3616 fi
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3619$as_echo "$ac_cv_path_EGREP" >&6; }
3620 EGREP="$ac_cv_path_EGREP"
3621
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3624$as_echo_n "checking for ANSI C header files... " >&6; }
3625if ${ac_cv_header_stdc+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630#include <stdlib.h>
3631#include <stdarg.h>
3632#include <string.h>
3633#include <float.h>
3634
3635int
3636main ()
3637{
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643if ac_fn_cxx_try_compile "$LINENO"; then :
3644 ac_cv_header_stdc=yes
3645else
3646 ac_cv_header_stdc=no
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649
3650if test $ac_cv_header_stdc = yes; then
3651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#include <string.h>
3655
3656_ACEOF
3657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658 $EGREP "memchr" >/dev/null 2>&1; then :
3659
3660else
3661 ac_cv_header_stdc=no
3662fi
3663rm -f conftest*
3664
3665fi
3666
3667if test $ac_cv_header_stdc = yes; then
3668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h. */
3671#include <stdlib.h>
3672
3673_ACEOF
3674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3675 $EGREP "free" >/dev/null 2>&1; then :
3676
3677else
3678 ac_cv_header_stdc=no
3679fi
3680rm -f conftest*
3681
3682fi
3683
3684if test $ac_cv_header_stdc = yes; then
3685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3686 if test "$cross_compiling" = yes; then :
3687 :
3688else
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691#include <ctype.h>
3692#include <stdlib.h>
3693#if ((' ' & 0x0FF) == 0x020)
3694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3696#else
3697# define ISLOWER(c) \
3698 (('a' <= (c) && (c) <= 'i') \
3699 || ('j' <= (c) && (c) <= 'r') \
3700 || ('s' <= (c) && (c) <= 'z'))
3701# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3702#endif
3703
3704#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3705int
3706main ()
3707{
3708 int i;
3709 for (i = 0; i < 256; i++)
3710 if (XOR (islower (i), ISLOWER (i))
3711 || toupper (i) != TOUPPER (i))
3712 return 2;
3713 return 0;
3714}
3715_ACEOF
3716if ac_fn_cxx_try_run "$LINENO"; then :
3717
3718else
3719 ac_cv_header_stdc=no
3720fi
3721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3722 conftest.$ac_objext conftest.beam conftest.$ac_ext
3723fi
3724
3725fi
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3728$as_echo "$ac_cv_header_stdc" >&6; }
3729if test $ac_cv_header_stdc = yes; then
3730
3731$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3732
3733fi
3734
3735# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3736for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3737 inttypes.h stdint.h unistd.h
3738do :
3739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3740ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3741"
3742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3743 cat >>confdefs.h <<_ACEOF
3744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3745_ACEOF
3746
3747fi
3748
3749done
3750
3751
3752ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
3753if test "x$ac_cv_header_sqlite3_h" = xyes; then :
3754 EXTRA_TARGETS+=" eventsql"
3755fi
3756
3757
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764
2804for ac_prog in gnumake gmake make 3765for ac_prog in gnumake gmake make
2805do 3766do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args. 3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -2855,6 +3816,7 @@ fi
2855 3816
2856 3817
2857 3818
3819
2858ac_config_files="$ac_config_files Makefile example/scheme/Makefile" 3820ac_config_files="$ac_config_files Makefile example/scheme/Makefile"
2859 3821
2860 3822
diff --git a/mps/configure.ac b/mps/configure.ac
index bfa6184da13..f898a482f46 100644
--- a/mps/configure.ac
+++ b/mps/configure.ac
@@ -83,6 +83,11 @@ case $host in
83 AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt]) 83 AC_MSG_ERROR([MPS does not support this platform out of the box. See manual/build.txt])
84esac 84esac
85 85
86EXTRA_TARGETS="eventcnv"
87AC_LANG_PUSH([C++])
88AC_CHECK_HEADER([sqlite3.h], [EXTRA_TARGETS+=" eventsql"])
89AC_LANG_POP([C++])
90
86AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])]) 91AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])])
87if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then 92if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then
88 AC_MSG_ERROR([MPS requires GNU make to build from configure, but see manual/build.txt]) 93 AC_MSG_ERROR([MPS requires GNU make to build from configure, but see manual/build.txt])
@@ -92,6 +97,7 @@ AC_SUBST(MPS_TARGET_NAME)
92AC_SUBST(BUILD_TARGET) 97AC_SUBST(BUILD_TARGET)
93AC_SUBST(CLEAN_TARGET) 98AC_SUBST(CLEAN_TARGET)
94AC_SUBST(INSTALL_TARGET) 99AC_SUBST(INSTALL_TARGET)
100AC_SUBST(EXTRA_TARGETS)
95AC_SUBST(CFLAGS) 101AC_SUBST(CFLAGS)
96AC_SUBST(LDFLAGS) 102AC_SUBST(LDFLAGS)
97AC_SUBST(CPPFLAGS) 103AC_SUBST(CPPFLAGS)