Browse Source

[trac3663] Checking for errocodes.h in PostgreSQL headers

Wlodek Wencel 10 years ago
parent
commit
27293504b8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -949,6 +949,9 @@ if test "$PG_CONFIG" != "" ; then
              AC_MSG_ERROR([Needs PostgreSQL library])]
     )
 
+    AC_CHECK_HEADERS([utils/errcodes.h],,
+    AC_MSG_ERROR([Missing required header files from PostgreSQL development package]))
+
     CPPFLAGS=$CPPFLAGS_SAVED
     LIBS=$LIBS_SAVED