projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d54047
)
*** empty log message ***
author
root
<root>
Mon, 3 Jan 2005 12:00:50 +0000
(12:00 +0000)
committer
root
<root>
Mon, 3 Jan 2005 12:00:50 +0000
(12:00 +0000)
autoconf/config.h.in
patch
|
blob
|
history
autoconf/configure.in
patch
|
blob
|
history
diff --git
a/autoconf/config.h.in
b/autoconf/config.h.in
index
faed8d8
..
3932c77
100644
(file)
--- a/
autoconf/config.h.in
+++ b/
autoconf/config.h.in
@@
-178,6
+178,18
@@
/* Define if you have the Xft library (-lXft). */
#undef HAVE_LIBXFT
/* Define if you have the Xft library (-lXft). */
#undef HAVE_LIBXFT
+/* Use all glibc features. */
+#undef _GNU_SOURCE
+
+/* Needed to get declarations for msg_control and msg_controllen on Solaris */
+#undef _XOPEN_SOURCE_EXTENDED
+
+/* Needed to get declarations for msg_control and msg_controllen on Solaris */
+#undef _XOPEN_SOURCE
+
+/* Needed to get declarations for msg_control and msg_controllen on Solaris */
+#undef __EXTENSIONS__
+
/* Build shared library version - specify via configure only */
#undef LIBRXVT
/* Build shared library version - specify via configure only */
#undef LIBRXVT
diff --git
a/autoconf/configure.in
b/autoconf/configure.in
index
d7a68df
..
587ca3a
100644
(file)
--- a/
autoconf/configure.in
+++ b/
autoconf/configure.in
@@
-7,6
+7,8
@@
AC_CONFIG_SRCDIR([src/feature.h])
AC_CONFIG_AUX_DIR(autoconf)
AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
AC_CONFIG_AUX_DIR(autoconf)
AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
+AC_CANONICAL_HOST
+
dnl RXVT version
changequote(, )dnl
VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
dnl RXVT version
changequote(, )dnl
VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
@@
-42,7
+44,15
@@
if test x$GCC = xyes && test x$GXX = xyes; then
fi
AC_SUBST(LINKER,[$LINKER])
fi
AC_SUBST(LINKER,[$LINKER])
-CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE=2"
+AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.)
+
+case $host in
+ *-*-solaris* )
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
+ AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris)
+ AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
+ ;;
+esac
dnl if test x$GXX = xyes; then
dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...
dnl if test x$GXX = xyes; then
dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...