Author: rmottola Date: Tue May 12 22:45:42 2015 New Revision: 38489 URL: http://svn.gna.org/viewcvs/gnustep?rev=38489&view=rev Log: pick up gnustep make configured CC, CPP, CXX and check they are consistent with how make was configured
Modified: libs/back/trunk/ChangeLog libs/back/trunk/configure libs/back/trunk/configure.ac Modified: libs/back/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/ChangeLog?rev=38489&r1=38488&r2=38489&view=diff ============================================================================== --- libs/back/trunk/ChangeLog (original) +++ libs/back/trunk/ChangeLog Tue May 12 22:45:42 2015 @@ -1,3 +1,10 @@ +2015-05-12 Riccardo Mottola <r...@gnu.org> + + * configure.ac + pick up gnustep make configured CC, CPP, CXX and check they are consistent with how make was configured + * configure + regenerated + 2015-03-31 Germán Arias <germanan...@gmx.es> * Source/win32/WIN32Server.m (-windowEventProc:, -process_mouse_event:): Modified: libs/back/trunk/configure URL: http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/configure?rev=38489&r1=38488&r2=38489&view=diff ============================================================================== --- libs/back/trunk/configure (original) +++ libs/back/trunk/configure Tue May 12 22:45:42 2015 @@ -665,6 +665,13 @@ EGREP GREP CPP +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC target_os target_vendor target_cpu @@ -677,13 +684,6 @@ build_vendor build_cpu build -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC target_alias host_alias build_alias @@ -2217,6 +2217,129 @@ #-------------------------------------------------------------------- # Determine the host, build, and target systems #-------------------------------------------------------------------- +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +$as_echo_n "checking target system type... " >&6; } +if ${ac_cv_target+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + +#-------------------------------------------------------------------- +# Find the compiler +#-------------------------------------------------------------------- +if test "$CC" = ""; then + CC=`gnustep-config --variable=CC` +fi +if test "$CPP" = ""; then + CPP=`gnustep-config --variable=CPP` +fi +if test "$CXX" = ""; then + CXX=`gnustep-config --variable=CXX` +fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3006,171 +3129,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 -$as_echo_n "checking target system type... " >&6; } -if ${ac_cv_target+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$target_alias" = x; then - ac_cv_target=$ac_cv_host -else - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 -$as_echo "$ac_cv_target" >&6; } -case $ac_cv_target in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; -esac -target=$ac_cv_target -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_target -shift -target_cpu=$1 -target_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -target_os=$* -IFS=$ac_save_IFS -case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac - - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - -#-------------------------------------------------------------------- -# The following is so that headers and custom libraries -# in the GNUstep root are used before the standard ones -#-------------------------------------------------------------------- -GRAPHIC_CFLAGS="$CPPFLAGS" -GRAPHIC_LFLAGS="$LDFLAGS" - -# -# It looks like we ought to source the whole GNUstep.sh here, and even -# ask it to output all variables! That way we have access to (eg) -# GNUSTEP_SYSTEM_HEADERS below. -# -GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes -. "$GNUSTEP_MAKEFILES/GNUstep.sh" -unset GNUSTEP_SH_EXPORT_ALL_VARIABLES - -# For backwards compatibility, define GNUSTEP_SYSTEM_HEADERS from -# GNUSTEP_SYSTEM_ROOT if not set yet. -if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then - GNUSTEP_SYSTEM_HEADERS="$GNUSTEP_SYSTEM_ROOT/Library/Headers" -fi - -if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then - GNUSTEP_SYSTEM_LIBRARIES="$GNUSTEP_SYSTEM_ROOT/Library/Libraries" -fi - -if test "$GNUSTEP_IS_FLATTENED" = no; then - clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os` - clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu` - obj_dir=$clean_target_cpu/$clean_target_os - GNUSTEP_LDIR=$GNUSTEP_SYSTEM_LIBRARIES/$obj_dir - GNUSTEP_HDIR=$GNUSTEP_SYSTEM_HEADERS/$LIBRARY_COMBO -else - GNUSTEP_LDIR=$GNUSTEP_SYSTEM_LIBRARIES - GNUSTEP_HDIR=$GNUSTEP_SYSTEM_HEADERS -fi -CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR" -LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR" - -#-------------------------------------------------------------------- -# Add target OS directories as necessary -#-------------------------------------------------------------------- -case "$target_os" in - freebsd* | openbsd* ) - CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" - LDFLAGS="$LDFLAGS -L/usr/pkg/lib";; - netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" - LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";; -esac - -#-------------------------------------------------------------------- -# These headers/functions needed by gpbs.m -#-------------------------------------------------------------------- - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3307,6 +3265,67 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +MAKECC=`gnustep-config --variable=CC` +if test "$CC" != "$MAKECC"; then + as_fn_error $? "You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make" "$LINENO" 5 + exit 1 +fi + +#-------------------------------------------------------------------- +# The following is so that headers and custom libraries +# in the GNUstep root are used before the standard ones +#-------------------------------------------------------------------- +GRAPHIC_CFLAGS="$CPPFLAGS" +GRAPHIC_LFLAGS="$LDFLAGS" + +# +# It looks like we ought to source the whole GNUstep.sh here, and even +# ask it to output all variables! That way we have access to (eg) +# GNUSTEP_SYSTEM_HEADERS below. +# +GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes +. "$GNUSTEP_MAKEFILES/GNUstep.sh" +unset GNUSTEP_SH_EXPORT_ALL_VARIABLES + +# For backwards compatibility, define GNUSTEP_SYSTEM_HEADERS from +# GNUSTEP_SYSTEM_ROOT if not set yet. +if test x"$GNUSTEP_SYSTEM_HEADERS" = x""; then + GNUSTEP_SYSTEM_HEADERS="$GNUSTEP_SYSTEM_ROOT/Library/Headers" +fi + +if test x"$GNUSTEP_SYSTEM_LIBRARIES" = x""; then + GNUSTEP_SYSTEM_LIBRARIES="$GNUSTEP_SYSTEM_ROOT/Library/Libraries" +fi + +if test "$GNUSTEP_IS_FLATTENED" = no; then + clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os` + clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu` + obj_dir=$clean_target_cpu/$clean_target_os + GNUSTEP_LDIR=$GNUSTEP_SYSTEM_LIBRARIES/$obj_dir + GNUSTEP_HDIR=$GNUSTEP_SYSTEM_HEADERS/$LIBRARY_COMBO +else + GNUSTEP_LDIR=$GNUSTEP_SYSTEM_LIBRARIES + GNUSTEP_HDIR=$GNUSTEP_SYSTEM_HEADERS +fi +CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR" +LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR" + +#-------------------------------------------------------------------- +# Add target OS directories as necessary +#-------------------------------------------------------------------- +case "$target_os" in + freebsd* | openbsd* ) + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib";; + netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";; +esac + +#-------------------------------------------------------------------- +# These headers/functions needed by gpbs.m +#-------------------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 Modified: libs/back/trunk/configure.ac URL: http://svn.gna.org/viewcvs/gnustep/libs/back/trunk/configure.ac?rev=38489&r1=38488&r2=38489&view=diff ============================================================================== --- libs/back/trunk/configure.ac (original) +++ libs/back/trunk/configure.ac Tue May 12 22:45:42 2015 @@ -1,7 +1,7 @@ -# configure.in for GNUstep GUI Backend +# configure.ac for GNUstep GUI Backend # Process this file with autoconf to produce a configure script. # -# Copyright (C) 1996-2002 Free Software Foundation, Inc. +# Copyright (C) 1996-2015 Free Software Foundation, Inc. # # Author: Adam Fedor <fe...@gnu.org> # @@ -47,8 +47,28 @@ #-------------------------------------------------------------------- # Determine the host, build, and target systems #-------------------------------------------------------------------- +AC_CANONICAL_TARGET([]) + +#-------------------------------------------------------------------- +# Find the compiler +#-------------------------------------------------------------------- +if test "$CC" = ""; then + CC=`gnustep-config --variable=CC` +fi +if test "$CPP" = ""; then + CPP=`gnustep-config --variable=CPP` +fi +if test "$CXX" = ""; then + CXX=`gnustep-config --variable=CXX` +fi AC_PROG_CC -AC_CANONICAL_TARGET([]) +AC_PROG_CPP + +MAKECC=`gnustep-config --variable=CC` +if test "$CC" != "$MAKECC"; then + AC_MSG_ERROR([You are running configure with the compiler ($CC) set to a different value from that used by gnustep-make ($MAKECC). Please run configure again with your environment set to match your gnustep-make]) + exit 1 +fi #-------------------------------------------------------------------- # The following is so that headers and custom libraries _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs