< prev index next >

common/autoconf/basics.m4

Print this page




 733       # If no system framework headers, then SYSROOT must be set, or we won't build
 734       AC_MSG_ERROR([Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments.])
 735     fi
 736 
 737     # Perform a basic sanity test
 738     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
 739       if test -z "$SYSROOT"; then
 740         AC_MSG_ERROR([Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly])
 741       else
 742         AC_MSG_ERROR([Invalid SDK or SYSROOT path, dependent framework headers not found])
 743       fi
 744     fi
 745 
 746     # set SDKROOT too, Xcode tools will pick it up
 747     AC_SUBST(SDKROOT,$SYSROOT)
 748   fi
 749 
 750   # Prepend the extra path to the global path
 751   BASIC_PREPEND_TO_PATH([PATH],$EXTRA_PATH)
 752 
 753   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
 754     # Add extra search paths on solaris for utilities like ar, as, dtrace etc...
 755     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin"
 756   fi
 757 
 758   AC_MSG_CHECKING([for sysroot])
 759   AC_MSG_RESULT([$SYSROOT])
 760   AC_MSG_CHECKING([for toolchain path])
 761   AC_MSG_RESULT([$TOOLCHAIN_PATH])
 762   AC_MSG_CHECKING([for extra path])
 763   AC_MSG_RESULT([$EXTRA_PATH])
 764 ])
 765 
 766 AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
 767 [
 768 
 769   AC_ARG_WITH(conf-name, [AS_HELP_STRING([--with-conf-name],
 770       [use this as the name of the configuration @<:@generated from important configuration options@:>@])],
 771       [ CONF_NAME=${with_conf_name} ])
 772 
 773   # Test from where we are running configure, in or outside of src root.
 774   AC_MSG_CHECKING([where to store configuration])
 775   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
 776       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
 777       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then




 733       # If no system framework headers, then SYSROOT must be set, or we won't build
 734       AC_MSG_ERROR([Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments.])
 735     fi
 736 
 737     # Perform a basic sanity test
 738     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
 739       if test -z "$SYSROOT"; then
 740         AC_MSG_ERROR([Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly])
 741       else
 742         AC_MSG_ERROR([Invalid SDK or SYSROOT path, dependent framework headers not found])
 743       fi
 744     fi
 745 
 746     # set SDKROOT too, Xcode tools will pick it up
 747     AC_SUBST(SDKROOT,$SYSROOT)
 748   fi
 749 
 750   # Prepend the extra path to the global path
 751   BASIC_PREPEND_TO_PATH([PATH],$EXTRA_PATH)
 752 





 753   AC_MSG_CHECKING([for sysroot])
 754   AC_MSG_RESULT([$SYSROOT])
 755   AC_MSG_CHECKING([for toolchain path])
 756   AC_MSG_RESULT([$TOOLCHAIN_PATH])
 757   AC_MSG_CHECKING([for extra path])
 758   AC_MSG_RESULT([$EXTRA_PATH])
 759 ])
 760 
 761 AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
 762 [
 763 
 764   AC_ARG_WITH(conf-name, [AS_HELP_STRING([--with-conf-name],
 765       [use this as the name of the configuration @<:@generated from important configuration options@:>@])],
 766       [ CONF_NAME=${with_conf_name} ])
 767 
 768   # Test from where we are running configure, in or outside of src root.
 769   AC_MSG_CHECKING([where to store configuration])
 770   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
 771       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
 772       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then


< prev index next >