From cb08547646072db415e9ccd99bac5c02fff63784 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 18 Jul 1999 21:02:56 +0000 Subject: [PATCH] Add getopt test. --- src/configure.in | 1 + src/include/config.h.in | 3 +++ src/interfaces/ecpg/preproc/ecpg.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/configure.in b/src/configure.in index 1cdb147606..89bbaaa81f 100644 --- a/src/configure.in +++ b/src/configure.in @@ -582,6 +582,7 @@ AC_CHECK_HEADERS(dld.h) AC_CHECK_HEADERS(endian.h) AC_CHECK_HEADERS(float.h) AC_CHECK_HEADERS(fp_class.h) +AC_CHECK_HEADERS(getopt.h) AC_CHECK_HEADERS(history.h) AC_CHECK_HEADERS(ieeefp.h) AC_CHECK_HEADERS(limits.h) diff --git a/src/include/config.h.in b/src/include/config.h.in index 6bb03462c8..5bf092c222 100644 --- a/src/include/config.h.in +++ b/src/include/config.h.in @@ -235,6 +235,9 @@ /* Set to 1 if you have */ #undef HAVE_FP_CLASS_H +/* Set to 1 if you have */ +#undef HAVE_GETOPT + /* Set to 1 if you have */ #undef HAVE_HISTORY_H diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c index 968293aaf6..7d1978c834 100644 --- a/src/interfaces/ecpg/preproc/ecpg.c +++ b/src/interfaces/ecpg/preproc/ecpg.c @@ -4,7 +4,9 @@ #include "postgres.h" +#ifdef HAVE_GETOPT_H #include +#endif #include extern int optind; extern char *optarg;