aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-05 21:40:55 +0800
committerkrion <krion@FreeBSD.org>2004-03-05 21:40:55 +0800
commit9d9349aa74fe6fbd27b58c6fa672f7553056316a (patch)
tree15c3bc7e79b5c04eb2ce0a639c7e0736925b4007 /print
parente8355cc613d21e94868cd11e7f6b828ad55f47cf (diff)
downloadfreebsd-ports-gnome-9d9349aa74fe6fbd27b58c6fa672f7553056316a.tar.gz
freebsd-ports-gnome-9d9349aa74fe6fbd27b58c6fa672f7553056316a.tar.zst
freebsd-ports-gnome-9d9349aa74fe6fbd27b58c6fa672f7553056316a.zip
- Fix build on -stable with Qt frontend
- Add CONFLICTS PR: ports/63754 Submitted by: Ports Fury
Diffstat (limited to 'print')
-rw-r--r--print/lyx-devel/Makefile11
-rw-r--r--print/lyx-devel/files/patch-configure94
-rw-r--r--print/lyx/Makefile11
-rw-r--r--print/lyx/files/patch-configure94
-rw-r--r--print/lyx14/Makefile11
-rw-r--r--print/lyx14/files/patch-configure94
-rw-r--r--print/lyx15/Makefile11
-rw-r--r--print/lyx15/files/patch-configure94
-rw-r--r--print/lyx16/Makefile11
-rw-r--r--print/lyx16/files/patch-configure94
10 files changed, 495 insertions, 30 deletions
diff --git a/print/lyx-devel/Makefile b/print/lyx-devel/Makefile
index 4a13b7ea7d1f..7379ad54cc83 100644
--- a/print/lyx-devel/Makefile
+++ b/print/lyx-devel/Makefile
@@ -20,13 +20,15 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
latex:${PORTSDIR}/print/teTeX
+CONFLICTS= cjk-lyx-*
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_PERL5= yes
USE_PYTHON= yes
+USE_GETTEXT= yes
USE_GMAKE= yes
-USE_LIBTOOL_VER= 14
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -58,9 +60,6 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.if ${OSVERSION} < 500035
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
-.if defined(WITH_QT)
-BROKEN= QT Frontend coredumps on 4.x. Use the xforms Frontend instead.
-.endif
.endif
pre-everything::
diff --git a/print/lyx-devel/files/patch-configure b/print/lyx-devel/files/patch-configure
new file mode 100644
index 000000000000..638a66c23d38
--- /dev/null
+++ b/print/lyx-devel/files/patch-configure
@@ -0,0 +1,94 @@
+--- configure.orig Thu Feb 19 02:35:31 2004
++++ configure Tue Mar 2 01:03:20 2004
+@@ -5304,33 +5304,51 @@
+
+ fi
+
+-
+-echo "$as_me:$LINENO: checking for fopen in -lc" >&5
+-echo $ECHO_N "checking for fopen in -lc... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_fopen+set}" = set; then
++echo "$as_me:$LINENO: checking for fopen" >&5
++echo $ECHO_N "checking for fopen... $ECHO_C" >&6
++if test "${ac_cv_func_fopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
++ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char fopen (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char fopen ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_fopen) || defined (__stub___fopen)
++choke me
++#else
++char (*f) () = fopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
+ int
+ main ()
+ {
+-fopen ();
++return f != fopen;
+ ;
+ return 0;
+ }
+@@ -5347,26 +5365,17 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_c_fopen=yes
++ ac_cv_func_fopen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_c_fopen=no
++ac_cv_func_fopen=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_fopen" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_fopen" >&6
+-if test $ac_cv_lib_c_fopen = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC 1
+-_ACEOF
+-
+- LIBS="-lc $LIBS"
+-
+ fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fopen" >&5
++echo "${ECHO_T}$ac_cv_func_fopen" >&6
+
+
+ ### Add extra directories to check for libraries.
diff --git a/print/lyx/Makefile b/print/lyx/Makefile
index 4a13b7ea7d1f..7379ad54cc83 100644
--- a/print/lyx/Makefile
+++ b/print/lyx/Makefile
@@ -20,13 +20,15 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
latex:${PORTSDIR}/print/teTeX
+CONFLICTS= cjk-lyx-*
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_PERL5= yes
USE_PYTHON= yes
+USE_GETTEXT= yes
USE_GMAKE= yes
-USE_LIBTOOL_VER= 14
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -58,9 +60,6 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.if ${OSVERSION} < 500035
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
-.if defined(WITH_QT)
-BROKEN= QT Frontend coredumps on 4.x. Use the xforms Frontend instead.
-.endif
.endif
pre-everything::
diff --git a/print/lyx/files/patch-configure b/print/lyx/files/patch-configure
new file mode 100644
index 000000000000..638a66c23d38
--- /dev/null
+++ b/print/lyx/files/patch-configure
@@ -0,0 +1,94 @@
+--- configure.orig Thu Feb 19 02:35:31 2004
++++ configure Tue Mar 2 01:03:20 2004
+@@ -5304,33 +5304,51 @@
+
+ fi
+
+-
+-echo "$as_me:$LINENO: checking for fopen in -lc" >&5
+-echo $ECHO_N "checking for fopen in -lc... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_fopen+set}" = set; then
++echo "$as_me:$LINENO: checking for fopen" >&5
++echo $ECHO_N "checking for fopen... $ECHO_C" >&6
++if test "${ac_cv_func_fopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
++ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char fopen (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char fopen ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_fopen) || defined (__stub___fopen)
++choke me
++#else
++char (*f) () = fopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
+ int
+ main ()
+ {
+-fopen ();
++return f != fopen;
+ ;
+ return 0;
+ }
+@@ -5347,26 +5365,17 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_c_fopen=yes
++ ac_cv_func_fopen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_c_fopen=no
++ac_cv_func_fopen=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_fopen" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_fopen" >&6
+-if test $ac_cv_lib_c_fopen = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC 1
+-_ACEOF
+-
+- LIBS="-lc $LIBS"
+-
+ fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fopen" >&5
++echo "${ECHO_T}$ac_cv_func_fopen" >&6
+
+
+ ### Add extra directories to check for libraries.
diff --git a/print/lyx14/Makefile b/print/lyx14/Makefile
index 4a13b7ea7d1f..7379ad54cc83 100644
--- a/print/lyx14/Makefile
+++ b/print/lyx14/Makefile
@@ -20,13 +20,15 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
latex:${PORTSDIR}/print/teTeX
+CONFLICTS= cjk-lyx-*
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_PERL5= yes
USE_PYTHON= yes
+USE_GETTEXT= yes
USE_GMAKE= yes
-USE_LIBTOOL_VER= 14
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -58,9 +60,6 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.if ${OSVERSION} < 500035
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
-.if defined(WITH_QT)
-BROKEN= QT Frontend coredumps on 4.x. Use the xforms Frontend instead.
-.endif
.endif
pre-everything::
diff --git a/print/lyx14/files/patch-configure b/print/lyx14/files/patch-configure
new file mode 100644
index 000000000000..638a66c23d38
--- /dev/null
+++ b/print/lyx14/files/patch-configure
@@ -0,0 +1,94 @@
+--- configure.orig Thu Feb 19 02:35:31 2004
++++ configure Tue Mar 2 01:03:20 2004
+@@ -5304,33 +5304,51 @@
+
+ fi
+
+-
+-echo "$as_me:$LINENO: checking for fopen in -lc" >&5
+-echo $ECHO_N "checking for fopen in -lc... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_fopen+set}" = set; then
++echo "$as_me:$LINENO: checking for fopen" >&5
++echo $ECHO_N "checking for fopen... $ECHO_C" >&6
++if test "${ac_cv_func_fopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
++ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char fopen (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char fopen ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_fopen) || defined (__stub___fopen)
++choke me
++#else
++char (*f) () = fopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
+ int
+ main ()
+ {
+-fopen ();
++return f != fopen;
+ ;
+ return 0;
+ }
+@@ -5347,26 +5365,17 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_c_fopen=yes
++ ac_cv_func_fopen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_c_fopen=no
++ac_cv_func_fopen=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_fopen" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_fopen" >&6
+-if test $ac_cv_lib_c_fopen = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC 1
+-_ACEOF
+-
+- LIBS="-lc $LIBS"
+-
+ fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fopen" >&5
++echo "${ECHO_T}$ac_cv_func_fopen" >&6
+
+
+ ### Add extra directories to check for libraries.
diff --git a/print/lyx15/Makefile b/print/lyx15/Makefile
index 4a13b7ea7d1f..7379ad54cc83 100644
--- a/print/lyx15/Makefile
+++ b/print/lyx15/Makefile
@@ -20,13 +20,15 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
latex:${PORTSDIR}/print/teTeX
+CONFLICTS= cjk-lyx-*
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_PERL5= yes
USE_PYTHON= yes
+USE_GETTEXT= yes
USE_GMAKE= yes
-USE_LIBTOOL_VER= 14
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -58,9 +60,6 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.if ${OSVERSION} < 500035
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
-.if defined(WITH_QT)
-BROKEN= QT Frontend coredumps on 4.x. Use the xforms Frontend instead.
-.endif
.endif
pre-everything::
diff --git a/print/lyx15/files/patch-configure b/print/lyx15/files/patch-configure
new file mode 100644
index 000000000000..638a66c23d38
--- /dev/null
+++ b/print/lyx15/files/patch-configure
@@ -0,0 +1,94 @@
+--- configure.orig Thu Feb 19 02:35:31 2004
++++ configure Tue Mar 2 01:03:20 2004
+@@ -5304,33 +5304,51 @@
+
+ fi
+
+-
+-echo "$as_me:$LINENO: checking for fopen in -lc" >&5
+-echo $ECHO_N "checking for fopen in -lc... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_fopen+set}" = set; then
++echo "$as_me:$LINENO: checking for fopen" >&5
++echo $ECHO_N "checking for fopen... $ECHO_C" >&6
++if test "${ac_cv_func_fopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
++ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char fopen (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char fopen ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_fopen) || defined (__stub___fopen)
++choke me
++#else
++char (*f) () = fopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
+ int
+ main ()
+ {
+-fopen ();
++return f != fopen;
+ ;
+ return 0;
+ }
+@@ -5347,26 +5365,17 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_c_fopen=yes
++ ac_cv_func_fopen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_c_fopen=no
++ac_cv_func_fopen=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_fopen" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_fopen" >&6
+-if test $ac_cv_lib_c_fopen = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC 1
+-_ACEOF
+-
+- LIBS="-lc $LIBS"
+-
+ fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fopen" >&5
++echo "${ECHO_T}$ac_cv_func_fopen" >&6
+
+
+ ### Add extra directories to check for libraries.
diff --git a/print/lyx16/Makefile b/print/lyx16/Makefile
index 4a13b7ea7d1f..7379ad54cc83 100644
--- a/print/lyx16/Makefile
+++ b/print/lyx16/Makefile
@@ -20,13 +20,15 @@ BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
latex:${PORTSDIR}/print/teTeX
+CONFLICTS= cjk-lyx-*
+
USE_BZIP2= yes
-USE_GETTEXT= yes
+USE_GNOME= gnometarget lthack
USE_PERL5= yes
USE_PYTHON= yes
+USE_GETTEXT= yes
USE_GMAKE= yes
-USE_LIBTOOL_VER= 14
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_LIBTOOL= yes
CONFIGURE_ARGS= --with-extra-lib="${LOCALBASE}/lib" \
--with-extra-inc="${LOCALBASE}/include"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
@@ -58,9 +60,6 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
.if ${OSVERSION} < 500035
CFLAGS+= -Wno-non-template-friend -ftemplate-depth-30
-.if defined(WITH_QT)
-BROKEN= QT Frontend coredumps on 4.x. Use the xforms Frontend instead.
-.endif
.endif
pre-everything::
diff --git a/print/lyx16/files/patch-configure b/print/lyx16/files/patch-configure
new file mode 100644
index 000000000000..638a66c23d38
--- /dev/null
+++ b/print/lyx16/files/patch-configure
@@ -0,0 +1,94 @@
+--- configure.orig Thu Feb 19 02:35:31 2004
++++ configure Tue Mar 2 01:03:20 2004
+@@ -5304,33 +5304,51 @@
+
+ fi
+
+-
+-echo "$as_me:$LINENO: checking for fopen in -lc" >&5
+-echo $ECHO_N "checking for fopen in -lc... $ECHO_C" >&6
+-if test "${ac_cv_lib_c_fopen+set}" = set; then
++echo "$as_me:$LINENO: checking for fopen" >&5
++echo $ECHO_N "checking for fopen... $ECHO_C" >&6
++if test "${ac_cv_func_fopen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
++ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h. */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-
++/* System header to define __stub macros and hopefully few prototypes,
++ which can conflict with char fopen (); below.
++ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
++ <limits.h> exists even on freestanding compilers. */
++#ifdef __STDC__
++# include <limits.h>
++#else
++# include <assert.h>
++#endif
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+ extern "C"
++{
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+ char fopen ();
++/* The GNU C library defines this for functions which it implements
++ to always fail with ENOSYS. Some functions are actually named
++ something starting with __ and the normal name is an alias. */
++#if defined (__stub_fopen) || defined (__stub___fopen)
++choke me
++#else
++char (*f) () = fopen;
++#endif
++#ifdef __cplusplus
++}
++#endif
++
+ int
+ main ()
+ {
+-fopen ();
++return f != fopen;
+ ;
+ return 0;
+ }
+@@ -5347,26 +5365,17 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_c_fopen=yes
++ ac_cv_func_fopen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_c_fopen=no
++ac_cv_func_fopen=no
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_c_fopen" >&5
+-echo "${ECHO_T}$ac_cv_lib_c_fopen" >&6
+-if test $ac_cv_lib_c_fopen = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBC 1
+-_ACEOF
+-
+- LIBS="-lc $LIBS"
+-
+ fi
++echo "$as_me:$LINENO: result: $ac_cv_func_fopen" >&5
++echo "${ECHO_T}$ac_cv_func_fopen" >&6
+
+
+ ### Add extra directories to check for libraries.