1 --- gamin-0.1.10/configure.in.orig 2008-11-24 16:23:06.000000000 +0000
2 +++ gamin-0.1.10/configure.in 2023-01-25 21:22:37.375364226 +0000
7 +dnl If the user set no CFLAGS, then don't assume the autotools defaults of
8 +dnl "-g -O2". We set default CFLAGS later based on the --disable-debug flag.
9 +if test -z "$ENV_CFLAGS"; then
14 RELDATE=`date +'%a %b %e %Y'`
17 backends="${backends}, kqueue"
22 + AM_CONDITIONAL(ON_SOLARIS, true)
25 + #ifndef PORT_SOURCE_FILE
26 + #error "Please upgrade to Nevada 72 or above to suppoert FEN"
28 + int main() { return 0; }
30 + if test x$have_fen = x1 ; then
32 + AC_HELP_STRING([--disable-fen], [Disable the FEN backend]),
33 + [fen="${enableval}"], [fen=true])
35 + if test x$fen = xyes; then
37 + elif test x$fen = xno; then
39 + elif test x$fen != xtrue; then
40 + AC_MSG_ERROR(bad value ${enableval} for --disable-fen)
51 +AM_CONDITIONAL(ENABLE_FEN, test x$fen = xtrue)
52 +if test x$fen = xtrue; then
53 + AC_DEFINE(ENABLE_FEN,1,[Use Solaris FEN as backend])
54 + backends="${backends}, FEN"
57 dnl pthread support for reentrance of the client library.
59 [ --with-threads add multithread support(on)])
61 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
64 +dnl Check for getpeerucred support - Solaris
66 +AC_CHECK_HEADER(ucred.h,
67 + AC_CHECK_LIB(c, getpeerucred,[
68 + AC_DEFINE([HAVE_GETPEERUCRED],[],[Define if has getpeerucred])
69 + AC_DEFINE([HAVE_UCRED_H],[],[Define if <ucred.h> exists])]))
74 AC_MSG_CHECKING(abstract socket namespace)
80 if test "$with_python" != "no" ; then
81 if test -x "$with_python/bin/python"
85 if test "$PYTHON" != ""
87 - PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"`
88 + PYTHON_VERSION=`$PYTHON -c "import sys; print(sys.version)" | awk -F\. 'NR==1 {print $1 "." $2}'`
89 echo Found Python version $PYTHON_VERSION
91 if test "$PYTHON_VERSION" != ""
93 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
94 - -d $with_python/lib/python$PYTHON_VERSION/site-packages
95 + -d $with_python/lib/python$PYTHON_VERSION/vendor-packages
97 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
98 - PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
99 + PYTHON_SITE_PACKAGES=/usr/lib/python$PYTHON_VERSION/vendor-packages
101 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
103 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
104 - PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
105 + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/vendor-packages
107 if test -r /usr/include/python$PYTHON_VERSION/Python.h
109 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
110 - PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
111 + PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/vendor-packages
113 echo could not find python$PYTHON_VERSION/Python.h
115 @@ -508,11 +558,13 @@
119 - if test "$with_python" != ""
121 - pythondir='$(PYTHON_SITE_PACKAGES)'
123 - pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
124 + if test -z "$pythondir"; then
125 + if test "$with_python" != ""
127 + pythondir='$(PYTHON_SITE_PACKAGES)'
129 + pythondir='$(libdir)/python$(PYTHON_VERSION)/vendor-packages'
135 AC_SUBST(PYTHON_INCLUDES)
136 AC_SUBST(PYTHON_SITE_PACKAGES)
138 +dnl Check for -lsocket -lnsl
140 +AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
141 +AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
143 +dnl Check for <sys/mnttab.h>
145 +AC_CHECK_HEADER(sys/mnttab.h,
146 + AC_DEFINE([HAVE_SYS_MNTTAB_H], [], [Define if <sys/mnttab.h> is there]))
148 dnl After all config-related tweaking of CFLAGS, set it to its "build" value
150 AC_MSG_CHECKING(for more compiler warnings)