diff --git a/configure.ac b/configure.ac index 3d4ee383..fb69ca0e 100644 --- a/configure.ac +++ b/configure.ac @@ -547,6 +547,7 @@ DX_INIT_DOXYGEN([$PACKAGE_NAME], [doxygen.cfg]) ############### Ouput cwd=`pwd -P`; cd ${srcdir}; abs_srcdir=`pwd -P`; cd ${cwd} GRID_CXX="$CXX" +GRID_CXXLD="$CXXLD" GRID_CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" GRID_LDFLAGS="$AM_LDFLAGS $LDFLAGS" GRID_LIBS=$LIBS @@ -561,6 +562,7 @@ AC_SUBST([AM_CFLAGS]) AC_SUBST([AM_CXXFLAGS]) AC_SUBST([AM_LDFLAGS]) AC_SUBST([GRID_CXX]) +AC_SUBST([GRID_CXXLD]) AC_SUBST([GRID_CXXFLAGS]) AC_SUBST([GRID_LDFLAGS]) AC_SUBST([GRID_LIBS]) diff --git a/grid-config.in b/grid-config.in index f39b01bd..af0816a5 100755 --- a/grid-config.in +++ b/grid-config.in @@ -19,6 +19,8 @@ Known values for OPTION are: --help display this help and exit --version output version information --git print git revision + --cxx print c++ compiler (may include some flags and spaces) + --cxxld print c++ linker (may include some flags and spaces) EOF @@ -65,6 +67,10 @@ while test $# -gt 0; do echo @GRID_CXX@ ;; + --cxxld) + echo @GRID_CXXLD@ + ;; + --ldflags) echo @GRID_LDFLAGS@ ;;