~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_check_compiler_version.m4

Split out warnings - start using the pandora build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN([PANDORA_CHECK_C_VERSION],[
 
2
 
 
3
  dnl Print version of C compiler
 
4
  AC_MSG_CHECKING("C Compiler version--$GCC")
 
5
  AS_IF([test "$GCC" = "yes"],[
 
6
    CC_VERSION=`$CC --version | sed 1q`
 
7
  ],[AS_IF([test "$SUNCC" = "yes"],[
 
8
      CC_VERSION=`$CC -V 2>&1 | sed 1q`
 
9
    ],[
 
10
      CC_VERSION=""
 
11
    ])
 
12
  ])
 
13
  AC_MSG_RESULT("$CC_VERSION")
 
14
  AC_SUBST(CC_VERSION)
 
15
])
 
16
 
 
17
 
 
18
AC_DEFUN([PANDORA_CHECK_CXX_VERSION], [
 
19
  dnl Print version of CXX compiler
 
20
  AC_MSG_CHECKING("C++ Compiler version")
 
21
  AS_IF([test "$GCC" = "yes"],[
 
22
    CXX_VERSION=`$CXX --version | sed 1q`
 
23
  ],[AS_IF([test "$SUNCC" = "yes"],[
 
24
      CXX_VERSION=`$CXX -V 2>&1 | sed 1q`
 
25
    ],[
 
26
    CXX_VERSION=""
 
27
    ])
 
28
  ])
 
29
  AC_MSG_RESULT("$CXX_VERSION")
 
30
  AC_SUBST(CXX_VERSION)
 
31
])