diff options
| author | Gareth Rees | 2013-02-05 13:34:42 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-02-05 13:34:42 +0000 |
| commit | e12d5890e3136bc277441c47e5cfa2ea41cb273e (patch) | |
| tree | 022c5a34a517a2b23a9beff31ad91a9341afee6b | |
| parent | 51b123525e973741c58ea6b25c9fe00b649da871 (diff) | |
| download | emacs-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.in | 6 | ||||
| -rw-r--r-- | mps/code/mps.xcodeproj/project.pbxproj | 29 | ||||
| -rwxr-xr-x | mps/configure | 966 | ||||
| -rw-r--r-- | mps/configure.ac | 6 |
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@ | |||
| 14 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ | 14 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
| 15 | MAKE=@MAKE@ | 15 | MAKE=@MAKE@ |
| 16 | MPS_TARGET_NAME=@MPS_TARGET_NAME@ | 16 | MPS_TARGET_NAME=@MPS_TARGET_NAME@ |
| 17 | EXTRA_TARGETS=@EXTRA_TARGETS@ | ||
| 17 | prefix=$(DESTDIR)@prefix@ | 18 | prefix=$(DESTDIR)@prefix@ |
| 18 | 19 | ||
| 19 | all: @BUILD_TARGET@ | 20 | all: @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 | ||
| 33 | build-via-xcode: | 34 | build-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 | ||
| 48 | Makefile: Makefile.in config.status | 48 | Makefile: 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 |
| 201 | test \$(( 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 |
| 203 | else | 204 | else |
| @@ -585,13 +586,56 @@ PACKAGE_BUGREPORT='mps-questions@ravenbrook.com' | |||
| 585 | PACKAGE_URL='http://www.ravenbrook.com/project/mps/' | 586 | PACKAGE_URL='http://www.ravenbrook.com/project/mps/' |
| 586 | 587 | ||
| 587 | ac_unique_file="code/mps.c" | 588 | ac_unique_file="code/mps.c" |
| 589 | # Factoring default headers for most tests. | ||
| 590 | ac_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 | |||
| 588 | ac_subst_vars='LTLIBOBJS | 625 | ac_subst_vars='LTLIBOBJS |
| 589 | LIBOBJS | 626 | LIBOBJS |
| 627 | EXTRA_TARGETS | ||
| 590 | INSTALL_TARGET | 628 | INSTALL_TARGET |
| 591 | CLEAN_TARGET | 629 | CLEAN_TARGET |
| 592 | BUILD_TARGET | 630 | BUILD_TARGET |
| 593 | MPS_TARGET_NAME | 631 | MPS_TARGET_NAME |
| 594 | MAKE | 632 | MAKE |
| 633 | EGREP | ||
| 634 | GREP | ||
| 635 | CXXCPP | ||
| 636 | ac_ct_CXX | ||
| 637 | CXXFLAGS | ||
| 638 | CXX | ||
| 595 | host_os | 639 | host_os |
| 596 | host_vendor | 640 | host_vendor |
| 597 | host_cpu | 641 | host_cpu |
| @@ -659,7 +703,11 @@ CC | |||
| 659 | CFLAGS | 703 | CFLAGS |
| 660 | LDFLAGS | 704 | LDFLAGS |
| 661 | LIBS | 705 | LIBS |
| 662 | CPPFLAGS' | 706 | CPPFLAGS |
| 707 | CXX | ||
| 708 | CXXFLAGS | ||
| 709 | CCC | ||
| 710 | CXXCPP' | ||
| 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 | ||
| 1281 | Use these variables to override the choices made by `configure' or to help | 1332 | Use these variables to override the choices made by `configure' or to help |
| 1282 | it to find libraries and programs with nonstandard names/locations. | 1333 | it 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. | ||
| 1454 | ac_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" | ||
| 1459 | case "(($ac_try" in | ||
| 1460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1461 | *) ac_try_echo=$ac_try;; | ||
| 1462 | esac | ||
| 1463 | eval 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 | ||
| 1478 | else | ||
| 1479 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1480 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1481 | |||
| 1482 | ac_retval=1 | ||
| 1483 | fi | ||
| 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. | ||
| 1492 | ac_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" | ||
| 1496 | case "(($ac_try" in | ||
| 1497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1498 | *) ac_try_echo=$ac_try;; | ||
| 1499 | esac | ||
| 1500 | eval 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 | ||
| 1515 | else | ||
| 1516 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1517 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1518 | |||
| 1519 | ac_retval=1 | ||
| 1520 | fi | ||
| 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. | ||
| 1531 | ac_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; } | ||
| 1537 | if eval \${$3+:} false; then : | ||
| 1538 | $as_echo_n "(cached) " >&6 | ||
| 1539 | fi | ||
| 1540 | eval ac_res=\$$3 | ||
| 1541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 1542 | $as_echo "$ac_res" >&6; } | ||
| 1543 | else | ||
| 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; } | ||
| 1547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1548 | /* end confdefs.h. */ | ||
| 1549 | $4 | ||
| 1550 | #include <$2> | ||
| 1551 | _ACEOF | ||
| 1552 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 1553 | ac_header_compiler=yes | ||
| 1554 | else | ||
| 1555 | ac_header_compiler=no | ||
| 1556 | fi | ||
| 1557 | rm -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; } | ||
| 1564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1565 | /* end confdefs.h. */ | ||
| 1566 | #include <$2> | ||
| 1567 | _ACEOF | ||
| 1568 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
| 1569 | ac_header_preproc=yes | ||
| 1570 | else | ||
| 1571 | ac_header_preproc=no | ||
| 1572 | fi | ||
| 1573 | rm -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? | ||
| 1578 | case $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 | ;; | ||
| 1601 | esac | ||
| 1602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
| 1603 | $as_echo_n "checking for $2... " >&6; } | ||
| 1604 | if eval \${$3+:} false; then : | ||
| 1605 | $as_echo_n "(cached) " >&6 | ||
| 1606 | else | ||
| 1607 | eval "$3=\$ac_header_compiler" | ||
| 1608 | fi | ||
| 1609 | eval ac_res=\$$3 | ||
| 1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
| 1611 | $as_echo "$ac_res" >&6; } | ||
| 1612 | fi | ||
| 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. | ||
| 1621 | ac_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" | ||
| 1625 | case "(($ac_try" in | ||
| 1626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 1627 | *) ac_try_echo=$ac_try;; | ||
| 1628 | esac | ||
| 1629 | eval 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;; | ||
| 1638 | esac | ||
| 1639 | eval 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 | ||
| 1646 | else | ||
| 1647 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
| 1648 | $as_echo "$as_me: failed program was:" >&5 | ||
| 1649 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 1650 | |||
| 1651 | ac_retval=$ac_status | ||
| 1652 | fi | ||
| 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. | ||
| 1663 | ac_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; } | ||
| 1668 | if eval \${$3+:} false; then : | ||
| 1669 | $as_echo_n "(cached) " >&6 | ||
| 1670 | else | ||
| 1671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 1672 | /* end confdefs.h. */ | ||
| 1673 | $4 | ||
| 1674 | #include <$2> | ||
| 1675 | _ACEOF | ||
| 1676 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 1677 | eval "$3=yes" | ||
| 1678 | else | ||
| 1679 | eval "$3=no" | ||
| 1680 | fi | ||
| 1681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 1682 | fi | ||
| 1683 | eval 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 | ||
| 1399 | cat >config.log <<_ACEOF | 1689 | cat >config.log <<_ACEOF |
| 1400 | This file contains any messages produced by compilers while | 1690 | This file contains any messages produced by compilers while |
| 1401 | running configure, to aid debugging if configure makes a mistake. | 1691 | running 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 |
| 2802 | esac | 3092 | esac |
| 2803 | 3093 | ||
| 3094 | EXTRA_TARGETS="eventcnv" | ||
| 3095 | ac_ext=cpp | ||
| 3096 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
| 3097 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3098 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3099 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
| 3100 | |||
| 3101 | ac_ext=cpp | ||
| 3102 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
| 3103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
| 3106 | if 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. | ||
| 3114 | set 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; } | ||
| 3117 | if ${ac_cv_prog_CXX+:} false; then : | ||
| 3118 | $as_echo_n "(cached) " >&6 | ||
| 3119 | else | ||
| 3120 | if test -n "$CXX"; then | ||
| 3121 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
| 3122 | else | ||
| 3123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3124 | for as_dir in $PATH | ||
| 3125 | do | ||
| 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 | ||
| 3134 | done | ||
| 3135 | done | ||
| 3136 | IFS=$as_save_IFS | ||
| 3137 | |||
| 3138 | fi | ||
| 3139 | fi | ||
| 3140 | CXX=$ac_cv_prog_CXX | ||
| 3141 | if test -n "$CXX"; then | ||
| 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | ||
| 3143 | $as_echo "$CXX" >&6; } | ||
| 3144 | else | ||
| 3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3146 | $as_echo "no" >&6; } | ||
| 3147 | fi | ||
| 3148 | |||
| 3149 | |||
| 3150 | test -n "$CXX" && break | ||
| 3151 | done | ||
| 3152 | fi | ||
| 3153 | if 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 | ||
| 3156 | do | ||
| 3157 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 3158 | set 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; } | ||
| 3161 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | ||
| 3162 | $as_echo_n "(cached) " >&6 | ||
| 3163 | else | ||
| 3164 | if test -n "$ac_ct_CXX"; then | ||
| 3165 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
| 3166 | else | ||
| 3167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3168 | for as_dir in $PATH | ||
| 3169 | do | ||
| 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 | ||
| 3178 | done | ||
| 3179 | done | ||
| 3180 | IFS=$as_save_IFS | ||
| 3181 | |||
| 3182 | fi | ||
| 3183 | fi | ||
| 3184 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
| 3185 | if 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; } | ||
| 3188 | else | ||
| 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
| 3190 | $as_echo "no" >&6; } | ||
| 3191 | fi | ||
| 3192 | |||
| 3193 | |||
| 3194 | test -n "$ac_ct_CXX" && break | ||
| 3195 | done | ||
| 3196 | |||
| 3197 | if test "x$ac_ct_CXX" = x; then | ||
| 3198 | CXX="g++" | ||
| 3199 | else | ||
| 3200 | case $cross_compiling:$ac_tool_warned in | ||
| 3201 | yes:) | ||
| 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;} | ||
| 3204 | ac_tool_warned=yes ;; | ||
| 3205 | esac | ||
| 3206 | CXX=$ac_ct_CXX | ||
| 3207 | fi | ||
| 3208 | fi | ||
| 3209 | |||
| 3210 | fi | ||
| 3211 | fi | ||
| 3212 | # Provide some information about the compiler. | ||
| 3213 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | ||
| 3214 | set X $ac_compile | ||
| 3215 | ac_compiler=$2 | ||
| 3216 | for ac_option in --version -v -V -qversion; do | ||
| 3217 | { { ac_try="$ac_compiler $ac_option >&5" | ||
| 3218 | case "(($ac_try" in | ||
| 3219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
| 3220 | *) ac_try_echo=$ac_try;; | ||
| 3221 | esac | ||
| 3222 | eval 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; } | ||
| 3235 | done | ||
| 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; } | ||
| 3239 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | ||
| 3240 | $as_echo_n "(cached) " >&6 | ||
| 3241 | else | ||
| 3242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3243 | /* end confdefs.h. */ | ||
| 3244 | |||
| 3245 | int | ||
| 3246 | main () | ||
| 3247 | { | ||
| 3248 | #ifndef __GNUC__ | ||
| 3249 | choke me | ||
| 3250 | #endif | ||
| 3251 | |||
| 3252 | ; | ||
| 3253 | return 0; | ||
| 3254 | } | ||
| 3255 | _ACEOF | ||
| 3256 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 3257 | ac_compiler_gnu=yes | ||
| 3258 | else | ||
| 3259 | ac_compiler_gnu=no | ||
| 3260 | fi | ||
| 3261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3262 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
| 3263 | |||
| 3264 | fi | ||
| 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
| 3266 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | ||
| 3267 | if test $ac_compiler_gnu = yes; then | ||
| 3268 | GXX=yes | ||
| 3269 | else | ||
| 3270 | GXX= | ||
| 3271 | fi | ||
| 3272 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
| 3273 | ac_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; } | ||
| 3276 | if ${ac_cv_prog_cxx_g+:} false; then : | ||
| 3277 | $as_echo_n "(cached) " >&6 | ||
| 3278 | else | ||
| 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 | |||
| 3286 | int | ||
| 3287 | main () | ||
| 3288 | { | ||
| 3289 | |||
| 3290 | ; | ||
| 3291 | return 0; | ||
| 3292 | } | ||
| 3293 | _ACEOF | ||
| 3294 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 3295 | ac_cv_prog_cxx_g=yes | ||
| 3296 | else | ||
| 3297 | CXXFLAGS="" | ||
| 3298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 3299 | /* end confdefs.h. */ | ||
| 3300 | |||
| 3301 | int | ||
| 3302 | main () | ||
| 3303 | { | ||
| 3304 | |||
| 3305 | ; | ||
| 3306 | return 0; | ||
| 3307 | } | ||
| 3308 | _ACEOF | ||
| 3309 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 3310 | |||
| 3311 | else | ||
| 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 | |||
| 3317 | int | ||
| 3318 | main () | ||
| 3319 | { | ||
| 3320 | |||
| 3321 | ; | ||
| 3322 | return 0; | ||
| 3323 | } | ||
| 3324 | _ACEOF | ||
| 3325 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 3326 | ac_cv_prog_cxx_g=yes | ||
| 3327 | fi | ||
| 3328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3329 | fi | ||
| 3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3331 | fi | ||
| 3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3333 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
| 3334 | fi | ||
| 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | ||
| 3336 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | ||
| 3337 | if test "$ac_test_CXXFLAGS" = set; then | ||
| 3338 | CXXFLAGS=$ac_save_CXXFLAGS | ||
| 3339 | elif 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 | ||
| 3345 | else | ||
| 3346 | if test "$GXX" = yes; then | ||
| 3347 | CXXFLAGS="-O2" | ||
| 3348 | else | ||
| 3349 | CXXFLAGS= | ||
| 3350 | fi | ||
| 3351 | fi | ||
| 3352 | ac_ext=cpp | ||
| 3353 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
| 3354 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3355 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3356 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
| 3357 | |||
| 3358 | |||
| 3359 | ac_ext=cpp | ||
| 3360 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
| 3361 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3362 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3363 | ac_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; } | ||
| 3366 | if test -z "$CXXCPP"; then | ||
| 3367 | if ${ac_cv_prog_CXXCPP+:} false; then : | ||
| 3368 | $as_echo_n "(cached) " >&6 | ||
| 3369 | else | ||
| 3370 | # Double quotes because CXXCPP needs to be expanded | ||
| 3371 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
| 3372 | do | ||
| 3373 | ac_preproc_ok=false | ||
| 3374 | for ac_cxx_preproc_warn_flag in '' yes | ||
| 3375 | do | ||
| 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 | ||
| 3391 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
| 3392 | |||
| 3393 | else | ||
| 3394 | # Broken: fails on valid input. | ||
| 3395 | continue | ||
| 3396 | fi | ||
| 3397 | rm -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 | ||
| 3405 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
| 3406 | # Broken: success on invalid input. | ||
| 3407 | continue | ||
| 3408 | else | ||
| 3409 | # Passes both tests. | ||
| 3410 | ac_preproc_ok=: | ||
| 3411 | break | ||
| 3412 | fi | ||
| 3413 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
| 3414 | |||
| 3415 | done | ||
| 3416 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3417 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
| 3418 | if $ac_preproc_ok; then : | ||
| 3419 | break | ||
| 3420 | fi | ||
| 3421 | |||
| 3422 | done | ||
| 3423 | ac_cv_prog_CXXCPP=$CXXCPP | ||
| 3424 | |||
| 3425 | fi | ||
| 3426 | CXXCPP=$ac_cv_prog_CXXCPP | ||
| 3427 | else | ||
| 3428 | ac_cv_prog_CXXCPP=$CXXCPP | ||
| 3429 | fi | ||
| 3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | ||
| 3431 | $as_echo "$CXXCPP" >&6; } | ||
| 3432 | ac_preproc_ok=false | ||
| 3433 | for ac_cxx_preproc_warn_flag in '' yes | ||
| 3434 | do | ||
| 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 | ||
| 3450 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
| 3451 | |||
| 3452 | else | ||
| 3453 | # Broken: fails on valid input. | ||
| 3454 | continue | ||
| 3455 | fi | ||
| 3456 | rm -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 | ||
| 3464 | if ac_fn_cxx_try_cpp "$LINENO"; then : | ||
| 3465 | # Broken: success on invalid input. | ||
| 3466 | continue | ||
| 3467 | else | ||
| 3468 | # Passes both tests. | ||
| 3469 | ac_preproc_ok=: | ||
| 3470 | break | ||
| 3471 | fi | ||
| 3472 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
| 3473 | |||
| 3474 | done | ||
| 3475 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
| 3476 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
| 3477 | if $ac_preproc_ok; then : | ||
| 3478 | |||
| 3479 | else | ||
| 3480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 3482 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | ||
| 3483 | See \`config.log' for more details" "$LINENO" 5; } | ||
| 3484 | fi | ||
| 3485 | |||
| 3486 | ac_ext=cpp | ||
| 3487 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
| 3488 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3489 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3490 | ac_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; } | ||
| 3495 | if ${ac_cv_path_GREP+:} false; then : | ||
| 3496 | $as_echo_n "(cached) " >&6 | ||
| 3497 | else | ||
| 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 | ||
| 3502 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 3503 | do | ||
| 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 | ||
| 3512 | case `"$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;; | ||
| 3536 | esac | ||
| 3537 | |||
| 3538 | $ac_path_GREP_found && break 3 | ||
| 3539 | done | ||
| 3540 | done | ||
| 3541 | done | ||
| 3542 | IFS=$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 | ||
| 3546 | else | ||
| 3547 | ac_cv_path_GREP=$GREP | ||
| 3548 | fi | ||
| 3549 | |||
| 3550 | fi | ||
| 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; } | ||
| 3558 | if ${ac_cv_path_EGREP+:} false; then : | ||
| 3559 | $as_echo_n "(cached) " >&6 | ||
| 3560 | else | ||
| 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 | ||
| 3568 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
| 3569 | do | ||
| 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 | ||
| 3578 | case `"$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;; | ||
| 3602 | esac | ||
| 3603 | |||
| 3604 | $ac_path_EGREP_found && break 3 | ||
| 3605 | done | ||
| 3606 | done | ||
| 3607 | done | ||
| 3608 | IFS=$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 | ||
| 3612 | else | ||
| 3613 | ac_cv_path_EGREP=$EGREP | ||
| 3614 | fi | ||
| 3615 | |||
| 3616 | fi | ||
| 3617 | fi | ||
| 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; } | ||
| 3625 | if ${ac_cv_header_stdc+:} false; then : | ||
| 3626 | $as_echo_n "(cached) " >&6 | ||
| 3627 | else | ||
| 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 | |||
| 3635 | int | ||
| 3636 | main () | ||
| 3637 | { | ||
| 3638 | |||
| 3639 | ; | ||
| 3640 | return 0; | ||
| 3641 | } | ||
| 3642 | _ACEOF | ||
| 3643 | if ac_fn_cxx_try_compile "$LINENO"; then : | ||
| 3644 | ac_cv_header_stdc=yes | ||
| 3645 | else | ||
| 3646 | ac_cv_header_stdc=no | ||
| 3647 | fi | ||
| 3648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 3649 | |||
| 3650 | if 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 | ||
| 3657 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3658 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
| 3659 | |||
| 3660 | else | ||
| 3661 | ac_cv_header_stdc=no | ||
| 3662 | fi | ||
| 3663 | rm -f conftest* | ||
| 3664 | |||
| 3665 | fi | ||
| 3666 | |||
| 3667 | if 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 | ||
| 3674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3675 | $EGREP "free" >/dev/null 2>&1; then : | ||
| 3676 | |||
| 3677 | else | ||
| 3678 | ac_cv_header_stdc=no | ||
| 3679 | fi | ||
| 3680 | rm -f conftest* | ||
| 3681 | |||
| 3682 | fi | ||
| 3683 | |||
| 3684 | if 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 | : | ||
| 3688 | else | ||
| 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))) | ||
| 3705 | int | ||
| 3706 | main () | ||
| 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 | ||
| 3716 | if ac_fn_cxx_try_run "$LINENO"; then : | ||
| 3717 | |||
| 3718 | else | ||
| 3719 | ac_cv_header_stdc=no | ||
| 3720 | fi | ||
| 3721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
| 3722 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
| 3723 | fi | ||
| 3724 | |||
| 3725 | fi | ||
| 3726 | fi | ||
| 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
| 3728 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
| 3729 | if test $ac_cv_header_stdc = yes; then | ||
| 3730 | |||
| 3731 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
| 3732 | |||
| 3733 | fi | ||
| 3734 | |||
| 3735 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
| 3736 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
| 3737 | inttypes.h stdint.h unistd.h | ||
| 3738 | do : | ||
| 3739 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
| 3740 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
| 3741 | " | ||
| 3742 | if 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 | |||
| 3747 | fi | ||
| 3748 | |||
| 3749 | done | ||
| 3750 | |||
| 3751 | |||
| 3752 | ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" | ||
| 3753 | if test "x$ac_cv_header_sqlite3_h" = xyes; then : | ||
| 3754 | EXTRA_TARGETS+=" eventsql" | ||
| 3755 | fi | ||
| 3756 | |||
| 3757 | |||
| 3758 | ac_ext=c | ||
| 3759 | ac_cpp='$CPP $CPPFLAGS' | ||
| 3760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 3761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 3762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 3763 | |||
| 3764 | |||
| 2804 | for ac_prog in gnumake gmake make | 3765 | for ac_prog in gnumake gmake make |
| 2805 | do | 3766 | do |
| 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 | |||
| 2858 | ac_config_files="$ac_config_files Makefile example/scheme/Makefile" | 3820 | ac_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]) |
| 84 | esac | 84 | esac |
| 85 | 85 | ||
| 86 | EXTRA_TARGETS="eventcnv" | ||
| 87 | AC_LANG_PUSH([C++]) | ||
| 88 | AC_CHECK_HEADER([sqlite3.h], [EXTRA_TARGETS+=" eventsql"]) | ||
| 89 | AC_LANG_POP([C++]) | ||
| 90 | |||
| 86 | AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])]) | 91 | AC_CHECK_PROGS([MAKE],[gnumake gmake make],[AC_MSG_ERROR([Unable to find a make program.])]) |
| 87 | if ! $MAKE --version | grep -q "GNU" 2> /dev/null; then | 92 | if ! $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) | |||
| 92 | AC_SUBST(BUILD_TARGET) | 97 | AC_SUBST(BUILD_TARGET) |
| 93 | AC_SUBST(CLEAN_TARGET) | 98 | AC_SUBST(CLEAN_TARGET) |
| 94 | AC_SUBST(INSTALL_TARGET) | 99 | AC_SUBST(INSTALL_TARGET) |
| 100 | AC_SUBST(EXTRA_TARGETS) | ||
| 95 | AC_SUBST(CFLAGS) | 101 | AC_SUBST(CFLAGS) |
| 96 | AC_SUBST(LDFLAGS) | 102 | AC_SUBST(LDFLAGS) |
| 97 | AC_SUBST(CPPFLAGS) | 103 | AC_SUBST(CPPFLAGS) |