diff --git a/configure b/configure index 72e4f5435395b5680528fdf7da2a12b625aceaf9..820b92c642f27901bf659bf7f1e5fb24f907a974 100755 --- a/configure +++ b/configure @@ -26921,6 +26921,8 @@ echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;} # Create compiler version string if test x"$GCC" = x"yes" ; then cc_string="GCC `${CC} --version | sed q`" +elif test x"$SUN_STUDIO_CC" = x"yes" ; then + cc_string=`${CC} -V 2>&1 | sed q` else cc_string=$CC fi diff --git a/configure.in b/configure.in index 89d58adf831e16e1887cd687548fc43297e25c7d..52a8db226cb11cd7049b0c978b9b50d0bbd16633 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.583 2009/01/07 03:39:33 momjian Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.584 2009/01/07 10:38:44 petere Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1771,6 +1771,8 @@ AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS]) # Create compiler version string if test x"$GCC" = x"yes" ; then cc_string="GCC `${CC} --version | sed q`" +elif test x"$SUN_STUDIO_CC" = x"yes" ; then + cc_string=`${CC} -V 2>&1 | sed q` else cc_string=$CC fi