Added this to CVS and hacked it to use `$CC -shared' to create shared

2000-02-22  Martin Baulig  <martin@home-of-linux.org>

	* ltconfig: Added this to CVS and hacked it to use `$CC -shared'
	to create shared libraries on Solaris.

	* automake.sh: Don't run libtoolize on Solaris but use the CVS
	version instead.
This commit is contained in:
Martin Baulig
2000-02-22 19:58:58 +00:00
committed by Martin Baulig
parent 0a3a0c1a34
commit 00d9dd7065
6 changed files with 3128 additions and 24 deletions

View File

@@ -20,7 +20,6 @@ libgtop-1.*.*
libgtop-mirror.sh.swp
libgtopConf.sh
libtool
ltconfig
ltmain.sh
macros
stamp-h

View File

@@ -1,3 +1,11 @@
2000-02-22 Martin Baulig <martin@home-of-linux.org>
* ltconfig: Added this to CVS and hacked it to use `$CC -shared'
to create shared libraries on Solaris.
* automake.sh: Don't run libtoolize on Solaris but use the CVS
version instead.
2000-02-16 Martin Baulig <martin@home-of-linux.org>
* configure.in (LIBGTOP_LIBS): Add `-lgtop_backend_sysdeps' and

View File

@@ -14,7 +14,12 @@ PKG_NAME="Gnome Top Library"
exit 1
}
. $srcdir/macros/autogen.sh
if test `uname` = 'SunOS' ; then
NO_LIBTOOLIZE=yes . $srcdir/macros/autogen.sh
else
. $srcdir/macros/autogen.sh
fi
cp -f $srcdir/po/Makefile.in.in.in $srcdir/po/Makefile.in.in
echo ""

View File

@@ -157,7 +157,7 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
else
with_modules=no
fi
])
],[with_modules=auto])
dynworks=false
deps=
@@ -167,8 +167,8 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
AC_MSG_RESULT(yes)
fi
if test x$with_modules = xyes; then
AC_MSG_CHECKING(whether dynamic modules work)
if test x$with_modules = xauto; then
oLIBS="$LIBS"
oCFLAGS="$CFLAGS"
LIBS="`glib-config --libs gmodule`"
@@ -186,7 +186,6 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
], dynworks=true, dynworks=false, dynworks=true)
LIBS="$oLIBS"
CFLAGS="$oCFLAGS"
fi
dnl Now we check to see if our libtool supports shared lib deps
dnl (in a rather ugly way even)
@@ -201,6 +200,11 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
dynworks=false
fi
fi
elif test x$with_modules = xyes; then
dynworks=true
else
dynworks=false
fi
if $dynworks; then
AC_DEFINE(USE_GMODULE)
@@ -215,9 +219,9 @@ AC_DEFUN([GNOME_LIBGTOP_DYNLINK],[
libgtop_dynamic_ldflags=
fi
AC_SUBST(libgtop_dynamic_ldflags)
AC_MSG_RESULT($libgtop_use_gmodule)
AC_SUBST(libgtop_dynamic_ldflags)
])
AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[

3086
ltconfig Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,11 @@ LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
INCLUDES = @INCLUDES@
lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
dynamic_ldflags = @libgtop_dynamic_ldflags@
backenddir = @LIBGTOP_BACKEND_DIR@
backend_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la
libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c \
safeio.c swap.c uptime.c loadavg.c \
@@ -12,14 +16,12 @@ libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c \
procmap.c netload.c netinfo.c ppp.c \
procdata.c interfaces.c
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) -module -export-dynamic
libgtop_sysdeps_la_LIBADD = @DL_LIB@
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) $(dynamic_ldflags)
libgtop_sysdeps_suid_la_SOURCES = open_suid.c close_suid.c \
shm_limits.c msg_limits.c sem_limits.c
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO) -module -export-dynamic
libgtop_sysdeps_suid_la_LDFLAGS = $(LT_VERSION_INFO) $(dynamic_ldflags)
include_HEADERS = glibtop_server.h glibtop_machine.h