--- a/src/configure.ac
+++ b/src/configure.ac
@@ -2,9 +2,7 @@
 AC_INIT([Octave-Forge symbolic package], [1.1.0+])
 
 AC_PROG_CXX
+AC_LANG(C++)
 
 dnl Checking for ginac library
-PKG_CHECK_MODULES(GINAC, ginac, , [AC_MSG_ERROR([GINAC not found])])
-  
-dnl Check for gmp library
-dnl AC_CHECK_LIB(gmp, __gmpz_init, , [AC_MSG_ERROR([GNU MP not found])])
+AC_CHECK_HEADER([ginac/ginac.h], [], [AC_MSG_ERROR([GiNaC not found])])