diff options
| author | Tom Lane | 2001-10-19 20:47:09 +0000 |
|---|---|---|
| committer | Tom Lane | 2001-10-19 20:47:09 +0000 |
| commit | 379268aa62f6aed0ec03ed59e007f3f337b30dd7 (patch) | |
| tree | bb6b681f2a1b970b6ebf2c484f5c63d278c3972c /configure.in | |
| parent | 58f6b951c2ae18056757d22db769836b33b2c1b4 (diff) | |
Proper fix for glibc getopt() botch. Surprising we did not see this
before.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index c572a5fc284..8fd4d2e74dd 100644 --- a/configure.in +++ b/configure.in @@ -985,6 +985,15 @@ if test x"$pgac_cv_var_int_optreset" = x"yes"; then AC_DEFINE(HAVE_INT_OPTRESET, 1) fi +AC_CACHE_CHECK([for __getopt_initialized], pgac_cv_var_int___getopt_initialized, +[AC_TRY_LINK([#include <unistd.h>], + [extern int __getopt_initialized; __getopt_initialized = 1;], + [pgac_cv_var_int___getopt_initialized=yes], + [pgac_cv_var_int___getopt_initialized=no])]) +if test x"$pgac_cv_var_int___getopt_initialized" = x"yes"; then + AC_DEFINE(HAVE_INT___GETOPT_INITIALIZED, 1) +fi + # This test makes sure that run tests work at all. Sometimes a shared # library is found by the linker, but the runtime linker can't find it. |
