1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

Use our own getopt() and getopt_long() on Solaris, because that platform's

versions don't handle long options the way we want.  Per Zdenek Kotala.
This commit is contained in:
Tom Lane
2008-02-24 05:22:33 +00:00
parent fd511b5347
commit 36cc9b7cea
2 changed files with 16 additions and 6 deletions

9
configure vendored
View File

@@ -12758,8 +12758,13 @@ else
LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
fi
# similarly, use system's getopt_long() only if system provides struct option.
if test x"$ac_cv_type_struct_option" = xyes ; then
# Similarly, use system's getopt_long() only if system provides struct option.
# Solaris' getopt() doesn't do what we want for long options, so always use
# our versions on that platform.
if test "$PORTNAME" = "solaris"; then
LIBOBJS="$LIBOBJS getopt.$ac_objext"
LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
elif test x"$ac_cv_type_struct_option" = xyes ; then
for ac_func in getopt_long
do