OSDN Git Service

Add getopt test.
authorBruce Momjian <bruce@momjian.us>
Sun, 18 Jul 1999 21:02:56 +0000 (21:02 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 18 Jul 1999 21:02:56 +0000 (21:02 +0000)
src/configure.in
src/include/config.h.in
src/interfaces/ecpg/preproc/ecpg.c

index 1cdb147..89bbaaa 100644 (file)
@@ -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)
index 6bb0346..5bf092c 100644 (file)
 /* Set to 1 if you have <fp_class.h> */
 #undef HAVE_FP_CLASS_H
 
+/* Set to 1 if you have <fp_class.h> */
+#undef HAVE_GETOPT
+
 /* Set to 1 if you have <history.h> */
 #undef HAVE_HISTORY_H
 
index 968293a..7d1978c 100644 (file)
@@ -4,7 +4,9 @@
 
 #include "postgres.h"
 
+#ifdef HAVE_GETOPT_H
 #include <getopt.h>
+#endif
 #include <unistd.h>
 extern int     optind;
 extern char *optarg;