File tree Expand file tree Collapse file tree 2 files changed +29
-5
lines changed Expand file tree Collapse file tree 2 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -16974,8 +16974,27 @@ esac
16974
16974
16975
16975
fi
16976
16976
16977
- # similarly, use system's getopt_long() only if system provides struct option.
16978
- if test x"$ac_cv_type_struct_option" = xyes ; then
16977
+ # Similarly, use system's getopt_long() only if system provides struct option.
16978
+ # Solaris' getopt() doesn't do what we want for long options, so always use
16979
+ # our versions on that platform.
16980
+ if test "$PORTNAME" = "solaris"; then
16981
+ case $LIBOBJS in
16982
+ "getopt.$ac_objext" | \
16983
+ *" getopt.$ac_objext" | \
16984
+ "getopt.$ac_objext "* | \
16985
+ *" getopt.$ac_objext "* ) ;;
16986
+ *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
16987
+ esac
16988
+
16989
+ case $LIBOBJS in
16990
+ "getopt_long.$ac_objext" | \
16991
+ *" getopt_long.$ac_objext" | \
16992
+ "getopt_long.$ac_objext "* | \
16993
+ *" getopt_long.$ac_objext "* ) ;;
16994
+ *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
16995
+ esac
16996
+
16997
+ elif test x"$ac_cv_type_struct_option" = xyes ; then
16979
16998
16980
16999
for ac_func in getopt_long
16981
17000
do
Original file line number Diff line number Diff line change 1
1
dnl Process this file with autoconf to produce a configure script.
2
- dnl $PostgreSQL: pgsql/configure.in,v 1.546 2008/02/01 04:16:29 scrappy Exp $
2
+ dnl $PostgreSQL: pgsql/configure.in,v 1.546.2.1 2008/02/24 05:22:03 tgl Exp $
3
3
dnl
4
4
dnl Developers, please strive to achieve this order:
5
5
dnl
@@ -1107,8 +1107,13 @@ else
1107
1107
AC_LIBOBJ(getaddrinfo)
1108
1108
fi
1109
1109
1110
- # similarly, use system's getopt_long() only if system provides struct option.
1111
- if test x"$ac_cv_type_struct_option" = xyes ; then
1110
+ # Similarly, use system's getopt_long() only if system provides struct option.
1111
+ # Solaris' getopt() doesn't do what we want for long options, so always use
1112
+ # our versions on that platform.
1113
+ if test "$PORTNAME" = "solaris"; then
1114
+ AC_LIBOBJ(getopt)
1115
+ AC_LIBOBJ(getopt_long)
1116
+ elif test x"$ac_cv_type_struct_option" = xyes ; then
1112
1117
AC_REPLACE_FUNCS([getopt_long])
1113
1118
else
1114
1119
AC_LIBOBJ(getopt_long)
You can’t perform that action at this time.
0 commit comments