mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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:
19
configure
vendored
19
configure
vendored
@ -16630,8 +16630,23 @@ esac
|
||||
|
||||
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
|
||||
case " $LIBOBJS " in
|
||||
*" getopt.$ac_objext "* ) ;;
|
||||
*) LIBOBJS="$LIBOBJS getopt.$ac_objext"
|
||||
;;
|
||||
esac
|
||||
|
||||
case " $LIBOBJS " in
|
||||
*" getopt_long.$ac_objext "* ) ;;
|
||||
*) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
|
||||
;;
|
||||
esac
|
||||
|
||||
elif test x"$ac_cv_type_struct_option" = xyes ; then
|
||||
|
||||
for ac_func in getopt_long
|
||||
do
|
||||
|
Reference in New Issue
Block a user