mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-31 14:30:07 +01:00
Stop shipping an embedded glib
Drop the embedded glib, the associated patches and adjust build scripts appropriately.
This commit is contained in:
parent
03bd4a5528
commit
99964eddb5
22 changed files with 13 additions and 4251 deletions
|
|
@ -1,11 +1,4 @@
|
|||
if USE_INSTALLED_GLIB
|
||||
included_glib_includes = @GLIB_CFLAGS@
|
||||
pkg_config_LDADD=@GLIB_LIBS@
|
||||
else
|
||||
GLIB_SUBDIR = glib-1.2.10
|
||||
included_glib_includes = -I$(top_srcdir)/glib-1.2.10 -I$(top_builddir)/glib-1.2.10
|
||||
pkg_config_LDADD=glib-1.2.10/libglib.la
|
||||
endif
|
||||
|
||||
if USE_INSTALLED_POPT
|
||||
pkg_config_LDADD += $(POPT_LIBS)
|
||||
|
|
@ -28,7 +21,7 @@ EXTRA_DIST = $(m4_DATA) $(man_MANS) README.win32
|
|||
bin_PROGRAMS = pkg-config
|
||||
AM_CFLAGS=@WARN_CFLAGS@
|
||||
|
||||
INCLUDES=-DPKG_CONFIG_PC_PATH="\"$(pc_path)\"" $(included_glib_includes) \
|
||||
INCLUDES=-DPKG_CONFIG_PC_PATH="\"$(pc_path)\"" @GLIB_CFLAGS@ \
|
||||
$(popt_includes)
|
||||
|
||||
pkg_config_SOURCES= \
|
||||
|
|
|
|||
25
autogen.sh
25
autogen.sh
|
|
@ -8,30 +8,7 @@ test -z "$srcdir" && srcdir=.
|
|||
ORIGDIR=`pwd`
|
||||
cd $srcdir
|
||||
|
||||
rm -r glib-1.2.10
|
||||
gunzip --stdout glib-1.2.10.tar.gz | tar xf - || {
|
||||
echo "glib tarball not unpacked"
|
||||
exit 1
|
||||
}
|
||||
|
||||
chmod +w `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/lib_LTLIBRARIES/noinst_LTLIBRARIES/g" `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/bin_SCRIPTS/noinst_SCRIPTS/g" `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/include_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/glibnoinst_HEADERS/noinst_HEADERS/g" `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e 's/([a-zA-Z0-9]+)_DATA/noinst_DATA/g' `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/info_TEXINFOS/noinst_TEXINFOS/g" `find glib-1.2.10 -name Makefile.am`
|
||||
perl -p -i.bak -e "s/man_MANS/noinst_MANS/g" `find glib-1.2.10 -name Makefile.am`
|
||||
|
||||
## patch gslist.c to have stable sort
|
||||
perl -p -w -i.bak -e 's/if \(compare_func\(l1->data,l2->data\) < 0\)/if \(compare_func\(l1->data,l2->data\) <= 0\)/g' glib-1.2.10/gslist.c
|
||||
|
||||
# Update random auto* files to actually have something which have a snowball's
|
||||
# chance in a hot place of working with modern auto* tools.
|
||||
|
||||
(cd glib-1.2.10 && for p in ../glib-patches/*.diff; do echo $p; patch -p1 < $p || exit 1; done ) || exit 1
|
||||
|
||||
# Rebuild the autotools for pkg-config and glib
|
||||
# Rebuild the autotools for pkg-config
|
||||
${AUTORECONF-autoreconf} -iv || exit $?
|
||||
|
||||
cd $ORIGDIR
|
||||
|
|
|
|||
50
configure.in
50
configure.in
|
|
@ -97,45 +97,17 @@ case "$libdir" in
|
|||
*) : ;;
|
||||
esac
|
||||
|
||||
if test x$native_win32 = xyes; then
|
||||
# On Win32, use the normal installed GLib. Yes, this is a circular
|
||||
# dependency. But then, only experienced hackers that presumably can
|
||||
# work around that will be building pkg-config and GLib on Win32
|
||||
# anyway (especially using the auto*/configure/libtool
|
||||
# mechanism). Others use prebuilt versions.
|
||||
#
|
||||
# These are correct for GLib 2.x
|
||||
GLIB_CFLAGS="-I$includedir/glib-2.0 -I$libdir/glib-2.0/include"
|
||||
GLIB_LIBS="-L$libdir -lglib-2.0 -liconv -lintl"
|
||||
use_installed_glib=yes
|
||||
else
|
||||
use_installed_glib=no
|
||||
AC_ARG_WITH([installed-glib],
|
||||
[ --with-installed-glib Use installed Glib-2.x], [
|
||||
if test x$withval = xyes; then
|
||||
# Not on Win32, but the user requested to use the installed Glib-2.x,
|
||||
# therefore we may assume that (some older version of) pkg-config can
|
||||
# be found in the users PATH (otherwise we simply ignore the request).
|
||||
AC_CHECK_PROGS([PKG_CONFIG], [pkg-config], [])
|
||||
if test -n $PKG_CONFIG && $PKG_CONFIG --exists glib-2.0; then
|
||||
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
|
||||
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
|
||||
use_installed_glib=yes
|
||||
fi
|
||||
fi
|
||||
])
|
||||
fi # !use_installed_glib
|
||||
|
||||
AM_CONDITIONAL(USE_INSTALLED_GLIB, test x$use_installed_glib = xyes)
|
||||
|
||||
if test x$use_installed_glib = xyes; then
|
||||
AC_DEFINE(USE_INSTALLED_GLIB, 1, [We are using an installed GLib])
|
||||
AC_SUBST(GLIB_LIBS)
|
||||
AC_SUBST(GLIB_CFLAGS)
|
||||
|
||||
else
|
||||
AC_CONFIG_SUBDIRS(glib-1.2.10)
|
||||
fi # !native_win32
|
||||
if test "x$GLIB_CFLAGS" = "x" && test "x$GLIB_LIBS" = "x"; then
|
||||
AC_CHECK_PROGS([PKG_CONFIG], [pkg-config], [])
|
||||
if test -n $PKG_CONFIG && $PKG_CONFIG --exists glib-2.0; then
|
||||
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
|
||||
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
|
||||
else
|
||||
AC_MSG_ERROR([pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values])]
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(GLIB_LIBS)
|
||||
AC_SUBST(GLIB_CFLAGS)
|
||||
|
||||
AC_ARG_WITH([installed-popt],
|
||||
[AS_HELP_STRING([--with-installed-popt], [use installed popt library])],
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,18 +0,0 @@
|
|||
diff -Nru glib-1.2.8/acglib.m4 glib-1.2.8-pkgconfig/acglib.m4
|
||||
--- glib-1.2.8/acglib.m4 1999-07-17 11:47:53.000000000 +0200
|
||||
+++ glib-1.2.8-pkgconfig/acglib.m4 2005-02-20 21:24:11.415172848 +0100
|
||||
@@ -1,3 +1,14 @@
|
||||
+# GLIB_AC_DIVERT_BEFORE_HELP(STUFF)
|
||||
+# ---------------------------------
|
||||
+# Put STUFF early enough so that they are available for $ac_help expansion.
|
||||
+# Handle both classic (<= v2.13) and modern autoconf
|
||||
+AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
|
||||
+[ifdef([m4_divert_text], [m4_divert_text([NOTICE],[$1])],
|
||||
+ [ifdef([AC_DIVERT], [AC_DIVERT([NOTICE],[$1])],
|
||||
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
||||
+$1
|
||||
+AC_DIVERT_POP()])])])
|
||||
+
|
||||
dnl GLIB_IF_VAR_EQ (ENV_VAR, VALUE [, EQUALS_ACTION] [, ELSE_ACTION])
|
||||
AC_DEFUN(GLIB_IF_VAR_EQ,[
|
||||
case "$[$1]" in
|
||||
|
|
@ -1,434 +0,0 @@
|
|||
diff -Nru glib-1.2.8/acinclude.m4 glib-1.2.8-pkgconfig/acinclude.m4
|
||||
--- glib-1.2.8/acinclude.m4 2000-02-04 19:30:01.000000000 +0100
|
||||
+++ glib-1.2.8-pkgconfig/acinclude.m4 1970-01-01 01:00:00.000000000 +0100
|
||||
@@ -1,430 +0,0 @@
|
||||
-## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
|
||||
-## Copyright (C) 1996-1999 Free Software Foundation, Inc.
|
||||
-## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
-##
|
||||
-## This program is free software; you can redistribute it and/or modify
|
||||
-## it under the terms of the GNU General Public License as published by
|
||||
-## the Free Software Foundation; either version 2 of the License, or
|
||||
-## (at your option) any later version.
|
||||
-##
|
||||
-## This program is distributed in the hope that it will be useful, but
|
||||
-## WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
-## General Public License for more details.
|
||||
-##
|
||||
-## You should have received a copy of the GNU General Public License
|
||||
-## along with this program; if not, write to the Free Software
|
||||
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
-##
|
||||
-## As a special exception to the GNU General Public License, if you
|
||||
-## distribute this file as part of a program that contains a
|
||||
-## configuration script generated by Autoconf, you may include it under
|
||||
-## the same distribution terms that you use for the rest of that program.
|
||||
-
|
||||
-# serial 40 AC_PROG_LIBTOOL
|
||||
-AC_DEFUN(AC_PROG_LIBTOOL,
|
||||
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
||||
-
|
||||
-# Save cache, so that ltconfig can load it
|
||||
-AC_CACHE_SAVE
|
||||
-
|
||||
-# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
||||
-CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
||||
-LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
||||
-LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
|
||||
-DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
|
||||
-${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
||||
-$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|
||||
-|| AC_MSG_ERROR([libtool configure failed])
|
||||
-
|
||||
-# Reload cache, that may have been modified by ltconfig
|
||||
-AC_CACHE_LOAD
|
||||
-
|
||||
-# This can be used to rebuild libtool when needed
|
||||
-LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
|
||||
-
|
||||
-# Always use our own libtool.
|
||||
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
||||
-AC_SUBST(LIBTOOL)dnl
|
||||
-
|
||||
-# Redirect the config.log output again, so that the ltconfig log is not
|
||||
-# clobbered by the next message.
|
||||
-exec 5>>./config.log
|
||||
-])
|
||||
-
|
||||
-AC_DEFUN(AC_LIBTOOL_SETUP,
|
||||
-[AC_PREREQ(2.13)dnl
|
||||
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
||||
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
||||
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
||||
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||
-AC_REQUIRE([AC_PROG_RANLIB])dnl
|
||||
-AC_REQUIRE([AC_PROG_CC])dnl
|
||||
-AC_REQUIRE([AC_PROG_LD])dnl
|
||||
-AC_REQUIRE([AC_PROG_NM])dnl
|
||||
-AC_REQUIRE([AC_PROG_LN_S])dnl
|
||||
-dnl
|
||||
-
|
||||
-case "$target" in
|
||||
-NONE) lt_target="$host" ;;
|
||||
-*) lt_target="$target" ;;
|
||||
-esac
|
||||
-
|
||||
-# Check for any special flags to pass to ltconfig.
|
||||
-libtool_flags="--cache-file=$cache_file"
|
||||
-test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
||||
-test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
||||
-test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
||||
-test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
||||
-test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
||||
-ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
|
||||
-[libtool_flags="$libtool_flags --enable-dlopen"])
|
||||
-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
|
||||
-[libtool_flags="$libtool_flags --enable-win32-dll"])
|
||||
-AC_ARG_ENABLE(libtool-lock,
|
||||
- [ --disable-libtool-lock avoid locking (might break parallel builds)])
|
||||
-test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
||||
-test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
||||
-
|
||||
-# Some flags need to be propagated to the compiler or linker for good
|
||||
-# libtool support.
|
||||
-case "$lt_target" in
|
||||
-*-*-irix6*)
|
||||
- # Find out which ABI we are using.
|
||||
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
||||
- if AC_TRY_EVAL(ac_compile); then
|
||||
- case "`/usr/bin/file conftest.o`" in
|
||||
- *32-bit*)
|
||||
- LD="${LD-ld} -32"
|
||||
- ;;
|
||||
- *N32*)
|
||||
- LD="${LD-ld} -n32"
|
||||
- ;;
|
||||
- *64-bit*)
|
||||
- LD="${LD-ld} -64"
|
||||
- ;;
|
||||
- esac
|
||||
- fi
|
||||
- rm -rf conftest*
|
||||
- ;;
|
||||
-
|
||||
-*-*-sco3.2v5*)
|
||||
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
||||
- SAVE_CFLAGS="$CFLAGS"
|
||||
- CFLAGS="$CFLAGS -belf"
|
||||
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
||||
- [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
|
||||
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
||||
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
||||
- CFLAGS="$SAVE_CFLAGS"
|
||||
- fi
|
||||
- ;;
|
||||
-
|
||||
-ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
|
||||
-[*-*-cygwin* | *-*-mingw*)
|
||||
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||
- AC_CHECK_TOOL(AS, as, false)
|
||||
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||
- ;;
|
||||
-])
|
||||
-esac
|
||||
-])
|
||||
-
|
||||
-# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
|
||||
-AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
|
||||
-
|
||||
-# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
|
||||
-AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
|
||||
-
|
||||
-# AC_ENABLE_SHARED - implement the --enable-shared flag
|
||||
-# Usage: AC_ENABLE_SHARED[(DEFAULT)]
|
||||
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
||||
-# `yes'.
|
||||
-AC_DEFUN(AC_ENABLE_SHARED, [dnl
|
||||
-define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
||||
-AC_ARG_ENABLE(shared,
|
||||
-changequote(<<, >>)dnl
|
||||
-<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
|
||||
-changequote([, ])dnl
|
||||
-[p=${PACKAGE-default}
|
||||
-case "$enableval" in
|
||||
-yes) enable_shared=yes ;;
|
||||
-no) enable_shared=no ;;
|
||||
-*)
|
||||
- enable_shared=no
|
||||
- # Look at the argument we got. We use all the common list separators.
|
||||
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
||||
- for pkg in $enableval; do
|
||||
- if test "X$pkg" = "X$p"; then
|
||||
- enable_shared=yes
|
||||
- fi
|
||||
- done
|
||||
- IFS="$ac_save_ifs"
|
||||
- ;;
|
||||
-esac],
|
||||
-enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
|
||||
-])
|
||||
-
|
||||
-# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
|
||||
-AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||
-AC_ENABLE_SHARED(no)])
|
||||
-
|
||||
-# AC_ENABLE_STATIC - implement the --enable-static flag
|
||||
-# Usage: AC_ENABLE_STATIC[(DEFAULT)]
|
||||
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
||||
-# `yes'.
|
||||
-AC_DEFUN(AC_ENABLE_STATIC, [dnl
|
||||
-define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
||||
-AC_ARG_ENABLE(static,
|
||||
-changequote(<<, >>)dnl
|
||||
-<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
|
||||
-changequote([, ])dnl
|
||||
-[p=${PACKAGE-default}
|
||||
-case "$enableval" in
|
||||
-yes) enable_static=yes ;;
|
||||
-no) enable_static=no ;;
|
||||
-*)
|
||||
- enable_static=no
|
||||
- # Look at the argument we got. We use all the common list separators.
|
||||
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
||||
- for pkg in $enableval; do
|
||||
- if test "X$pkg" = "X$p"; then
|
||||
- enable_static=yes
|
||||
- fi
|
||||
- done
|
||||
- IFS="$ac_save_ifs"
|
||||
- ;;
|
||||
-esac],
|
||||
-enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
|
||||
-])
|
||||
-
|
||||
-# AC_DISABLE_STATIC - set the default static flag to --disable-static
|
||||
-AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||
-AC_ENABLE_STATIC(no)])
|
||||
-
|
||||
-
|
||||
-# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
|
||||
-# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
|
||||
-# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
|
||||
-# `yes'.
|
||||
-AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
|
||||
-define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
||||
-AC_ARG_ENABLE(fast-install,
|
||||
-changequote(<<, >>)dnl
|
||||
-<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
|
||||
-changequote([, ])dnl
|
||||
-[p=${PACKAGE-default}
|
||||
-case "$enableval" in
|
||||
-yes) enable_fast_install=yes ;;
|
||||
-no) enable_fast_install=no ;;
|
||||
-*)
|
||||
- enable_fast_install=no
|
||||
- # Look at the argument we got. We use all the common list separators.
|
||||
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
||||
- for pkg in $enableval; do
|
||||
- if test "X$pkg" = "X$p"; then
|
||||
- enable_fast_install=yes
|
||||
- fi
|
||||
- done
|
||||
- IFS="$ac_save_ifs"
|
||||
- ;;
|
||||
-esac],
|
||||
-enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
|
||||
-])
|
||||
-
|
||||
-# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
|
||||
-AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||
-AC_ENABLE_FAST_INSTALL(no)])
|
||||
-
|
||||
-# AC_PROG_LD - find the path to the GNU or non-GNU linker
|
||||
-AC_DEFUN(AC_PROG_LD,
|
||||
-[AC_ARG_WITH(gnu-ld,
|
||||
-[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
||||
-test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
||||
-AC_REQUIRE([AC_PROG_CC])dnl
|
||||
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||
-ac_prog=ld
|
||||
-if test "$ac_cv_prog_gcc" = yes; then
|
||||
- # Check if gcc -print-prog-name=ld gives a path.
|
||||
- AC_MSG_CHECKING([for ld used by GCC])
|
||||
- ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
||||
- case "$ac_prog" in
|
||||
- # Accept absolute paths.
|
||||
-changequote(,)dnl
|
||||
- [\\/]* | [A-Za-z]:[\\/]*)
|
||||
- re_direlt='/[^/][^/]*/\.\./'
|
||||
-changequote([,])dnl
|
||||
- # Canonicalize the path of ld
|
||||
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
||||
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
||||
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
||||
- done
|
||||
- test -z "$LD" && LD="$ac_prog"
|
||||
- ;;
|
||||
- "")
|
||||
- # If it fails, then pretend we aren't using GCC.
|
||||
- ac_prog=ld
|
||||
- ;;
|
||||
- *)
|
||||
- # If it is relative, then search for the first ld in PATH.
|
||||
- with_gnu_ld=unknown
|
||||
- ;;
|
||||
- esac
|
||||
-elif test "$with_gnu_ld" = yes; then
|
||||
- AC_MSG_CHECKING([for GNU ld])
|
||||
-else
|
||||
- AC_MSG_CHECKING([for non-GNU ld])
|
||||
-fi
|
||||
-AC_CACHE_VAL(ac_cv_path_LD,
|
||||
-[if test -z "$LD"; then
|
||||
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
||||
- for ac_dir in $PATH; do
|
||||
- test -z "$ac_dir" && ac_dir=.
|
||||
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
||||
- ac_cv_path_LD="$ac_dir/$ac_prog"
|
||||
- # Check to see if the program is GNU ld. I'd rather use --version,
|
||||
- # but apparently some GNU ld's only accept -v.
|
||||
- # Break only if it was the GNU/non-GNU ld that we prefer.
|
||||
- if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
||||
- test "$with_gnu_ld" != no && break
|
||||
- else
|
||||
- test "$with_gnu_ld" != yes && break
|
||||
- fi
|
||||
- fi
|
||||
- done
|
||||
- IFS="$ac_save_ifs"
|
||||
-else
|
||||
- ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||
-fi])
|
||||
-LD="$ac_cv_path_LD"
|
||||
-if test -n "$LD"; then
|
||||
- AC_MSG_RESULT($LD)
|
||||
-else
|
||||
- AC_MSG_RESULT(no)
|
||||
-fi
|
||||
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
||||
-AC_PROG_LD_GNU
|
||||
-])
|
||||
-
|
||||
-AC_DEFUN(AC_PROG_LD_GNU,
|
||||
-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
|
||||
-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
||||
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
||||
- ac_cv_prog_gnu_ld=yes
|
||||
-else
|
||||
- ac_cv_prog_gnu_ld=no
|
||||
-fi])
|
||||
-])
|
||||
-
|
||||
-# AC_PROG_NM - find the path to a BSD-compatible name lister
|
||||
-AC_DEFUN(AC_PROG_NM,
|
||||
-[AC_MSG_CHECKING([for BSD-compatible nm])
|
||||
-AC_CACHE_VAL(ac_cv_path_NM,
|
||||
-[if test -n "$NM"; then
|
||||
- # Let the user override the test.
|
||||
- ac_cv_path_NM="$NM"
|
||||
-else
|
||||
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
||||
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
||||
- test -z "$ac_dir" && ac_dir=.
|
||||
- if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
|
||||
- # Check to see if the nm accepts a BSD-compat flag.
|
||||
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
||||
- # nm: unknown option "B" ignored
|
||||
- if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
||||
- ac_cv_path_NM="$ac_dir/nm -B"
|
||||
- break
|
||||
- elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
||||
- ac_cv_path_NM="$ac_dir/nm -p"
|
||||
- break
|
||||
- else
|
||||
- ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
|
||||
- continue # so that we can try to find one that supports BSD flags
|
||||
- fi
|
||||
- fi
|
||||
- done
|
||||
- IFS="$ac_save_ifs"
|
||||
- test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
||||
-fi])
|
||||
-NM="$ac_cv_path_NM"
|
||||
-AC_MSG_RESULT([$NM])
|
||||
-])
|
||||
-
|
||||
-# AC_CHECK_LIBM - check for math library
|
||||
-AC_DEFUN(AC_CHECK_LIBM,
|
||||
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
-LIBM=
|
||||
-case "$lt_target" in
|
||||
-*-*-beos* | *-*-cygwin*)
|
||||
- # These system don't have libm
|
||||
- ;;
|
||||
-*-ncr-sysv4.3*)
|
||||
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
||||
- AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
|
||||
- ;;
|
||||
-*)
|
||||
- AC_CHECK_LIB(m, main, LIBM="-lm")
|
||||
- ;;
|
||||
-esac
|
||||
-])
|
||||
-
|
||||
-# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
|
||||
-# the libltdl convenience library, adds --enable-ltdl-convenience to
|
||||
-# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
|
||||
-# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
|
||||
-# to be `${top_builddir}/libltdl'. Make sure you start DIR with
|
||||
-# '${top_builddir}/' (note the single quotes!) if your package is not
|
||||
-# flat, and, if you're not using automake, define top_builddir as
|
||||
-# appropriate in the Makefiles.
|
||||
-AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||
- case "$enable_ltdl_convenience" in
|
||||
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
||||
- "") enable_ltdl_convenience=yes
|
||||
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
||||
- esac
|
||||
- LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
|
||||
- INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
|
||||
-])
|
||||
-
|
||||
-# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
|
||||
-# the libltdl installable library, and adds --enable-ltdl-install to
|
||||
-# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
|
||||
-# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
|
||||
-# to be `${top_builddir}/libltdl'. Make sure you start DIR with
|
||||
-# '${top_builddir}/' (note the single quotes!) if your package is not
|
||||
-# flat, and, if you're not using automake, define top_builddir as
|
||||
-# appropriate in the Makefiles.
|
||||
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
||||
-AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||
- AC_CHECK_LIB(ltdl, main,
|
||||
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
||||
- [if test x"$enable_ltdl_install" = xno; then
|
||||
- AC_MSG_WARN([libltdl not installed, but installation disabled])
|
||||
- else
|
||||
- enable_ltdl_install=yes
|
||||
- fi
|
||||
- ])
|
||||
- if test x"$enable_ltdl_install" = x"yes"; then
|
||||
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
||||
- LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
|
||||
- INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
|
||||
- else
|
||||
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
||||
- LIBLTDL="-lltdl"
|
||||
- INCLTDL=
|
||||
- fi
|
||||
-])
|
||||
-
|
||||
-dnl old names
|
||||
-AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
|
||||
-AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
|
||||
-AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
|
||||
-AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
|
||||
-AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
|
||||
-AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
|
||||
-AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
|
||||
-
|
||||
-dnl This is just to silence aclocal about the macro not being used
|
||||
-ifelse([AC_DISABLE_FAST_INSTALL])dnl
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
This is file patch-06-autoconf-warning for pkg-config-0.21
|
||||
|
||||
Fix autoconf (2.61a) warning
|
||||
AC_CACHE_VAL(glib_cv_sane_realloc, ...): suspicious presence of
|
||||
an AC_DEFINE in the second argument, where no actions should be taken
|
||||
|
||||
diff -ur -x autom4te.cache -x aclocal.m4 -x configure -x Makefile.in -x config.h.in -x 'config.h.in~' pkg-config-0.21.orig/glib-1.2.8/configure.in pkg-config-0.21/glib-1.2.8/configure.in
|
||||
--- glib-1.2.8/configure.in 2006-08-16 20:24:29.000000000 +0200
|
||||
+++ glib-1.2.8/configure.in 2007-01-19 15:05:37.000000000 +0100
|
||||
@@ -405,11 +405,13 @@
|
||||
return realloc (0, sizeof (int)) == 0;
|
||||
}],
|
||||
glib_cv_sane_realloc=yes
|
||||
- AC_DEFINE(REALLOC_0_WORKS)
|
||||
,
|
||||
glib_cv_sane_realloc=no
|
||||
,)
|
||||
])
|
||||
+if test x$glib_cv_sane_realloc = xyes; then
|
||||
+ AC_DEFINE(REALLOC_0_WORKS)
|
||||
+fi
|
||||
AC_MSG_RESULT($glib_cv_sane_realloc)
|
||||
|
||||
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
This is file patch-05-automake-warning for pkg-config-0.21
|
||||
|
||||
Fix automake (1.10) warnings
|
||||
BUILT_SOURCES multiply defined in condition TRUE ...
|
||||
noinst_DATA multiply defined in condition TRUE ...
|
||||
whitespace following trailing backslash
|
||||
|
||||
diff -ur -x autom4te.cache -x aclocal.m4 -x configure -x Makefile.in -x config.h.in -x 'config.h.in~' pkg-config-0.21.orig/glib-1.2.8/Makefile.am pkg-config-0.21/glib-1.2.8/Makefile.am
|
||||
--- glib-1.2.8/Makefile.am 2006-08-16 20:24:29.000000000 +0200
|
||||
+++ glib-1.2.8/Makefile.am 2007-01-19 15:03:19.000000000 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
configincludedir = $(pkglibdir)/include
|
||||
|
||||
noinst_SCRIPTS=glib-config
|
||||
-BUILT_SOURCES=glib-config
|
||||
+#BUILT_SOURCES=glib-config
|
||||
glib-config: glib-config.in
|
||||
|
||||
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
|
||||
@@ -65,8 +65,8 @@
|
||||
glibnoinst_HEADERS = \
|
||||
glib.h
|
||||
|
||||
-noinst_DATA = \
|
||||
- glibconfig.h
|
||||
+#noinst_DATA = \
|
||||
+# glibconfig.h
|
||||
|
||||
CONFIGURE_DEPENDENCIES = acglib.m4
|
||||
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,70 +0,0 @@
|
|||
--- glib-1.2.8/configure.in 2000-05-25 02:29:09.000000000 +0200
|
||||
+++ glib-1.2.8-pkgconfig/configure.in 2005-02-21 00:21:02.831215088 +0100
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
dnl we need to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they
|
||||
dnl are available for $ac_help expansion (don't we all *love* autoconf?)
|
||||
-AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
||||
+GLIB_AC_DIVERT_BEFORE_HELP([
|
||||
#
|
||||
# The following version number definitions apply to GLib, GModule and GThread
|
||||
# as a whole, so if changes occoured in any of them, they are all
|
||||
@@ -38,7 +38,7 @@
|
||||
GLIB_BINARY_AGE=10
|
||||
GLIB_VERSION=$GLIB_MAJOR_VERSION.$GLIB_MINOR_VERSION.$GLIB_MICRO_VERSION
|
||||
dnl
|
||||
-AC_DIVERT_POP()dnl
|
||||
+])
|
||||
|
||||
AC_SUBST(GLIB_MAJOR_VERSION)
|
||||
AC_SUBST(GLIB_MINOR_VERSION)
|
||||
@@ -72,7 +72,7 @@
|
||||
AC_DEFINE_UNQUOTED(GLIB_BINARY_AGE, $GLIB_BINARY_AGE)
|
||||
|
||||
dnl Initialize libtool
|
||||
-AM_PROG_LIBTOOL
|
||||
+AC_PROG_LIBTOOL
|
||||
|
||||
dnl Initialize maintainer mode
|
||||
AM_MAINTAINER_MODE
|
||||
@@ -81,13 +81,13 @@
|
||||
|
||||
dnl figure debugging default, prior to $ac_help setup
|
||||
dnl
|
||||
-AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
||||
+GLIB_AC_DIVERT_BEFORE_HELP([
|
||||
if test `expr $GLIB_MINOR_VERSION \% 2` = 1 ; then
|
||||
debug_default=yes
|
||||
else
|
||||
debug_default=minimum
|
||||
fi
|
||||
-AC_DIVERT_POP()dnl
|
||||
+]) dnl
|
||||
|
||||
dnl declare --enable-* args and collect ac_help strings
|
||||
AC_ARG_ENABLE(debug, [ --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default)
|
||||
@@ -509,18 +509,20 @@
|
||||
dnl *** dlopen() and dlsym() in system libraries
|
||||
if test -z "$G_MODULE_IMPL"; then
|
||||
AC_CHECK_FUNC(dlopen,
|
||||
- AC_CHECK_FUNC(dlsym,
|
||||
+ [AC_CHECK_FUNC(dlsym,
|
||||
G_MODULE_IMPL=G_MODULE_IMPL_DL
|
||||
- ,)
|
||||
+ ,)]
|
||||
,)
|
||||
+
|
||||
fi
|
||||
+
|
||||
dnl *** dlopen() and dlsym() in libdl
|
||||
if test -z "$G_MODULE_IMPL"; then
|
||||
AC_CHECK_LIB(dl, dlopen,
|
||||
- AC_CHECK_LIB(dl, dlsym,
|
||||
+ [AC_CHECK_LIB(dl, dlsym,
|
||||
G_MODULE_LIBS=-ldl
|
||||
G_MODULE_IMPL=G_MODULE_IMPL_DL
|
||||
- ,)
|
||||
+ ,)]
|
||||
,)
|
||||
fi
|
||||
dnl *** shl_load() in libdld (HP-UX)
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
diff -ru glib-1.2.8.orig/configure.in glib-1.2.8/configure.in
|
||||
--- glib-1.2.8.orig/configure.in 2005-06-26 20:38:20.468504000 +0200
|
||||
+++ glib-1.2.8/configure.in 2005-06-26 20:40:14.057549097 +0200
|
||||
@@ -336,7 +336,7 @@
|
||||
if test $gtk_ok = yes; then
|
||||
AC_MSG_RESULT([yes, found in sys/types.h])
|
||||
else
|
||||
- AC_HEADER_EGREP(fd_mask, sys/select.h, gtk_ok=yes)
|
||||
+ AC_HEADER_EGREP(fd_set, sys/select.h, gtk_ok=yes)
|
||||
if test $gtk_ok = yes; then
|
||||
AC_DEFINE(HAVE_SYS_SELECT_H)
|
||||
AC_MSG_RESULT([yes, found in sys/select.h])
|
||||
Only in glib-1.2.8: configure.in~
|
||||
|
|
@ -1,482 +0,0 @@
|
|||
--- glib-1.2.8/depcomp 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ glib-1.2.8-pkgconfig/depcomp 2005-02-20 23:26:37.216663960 +0100
|
||||
@@ -0,0 +1,479 @@
|
||||
+#! /bin/sh
|
||||
+
|
||||
+# depcomp - compile a program generating dependencies as side-effects
|
||||
+# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
|
||||
+
|
||||
+# This program is free software; you can redistribute it and/or modify
|
||||
+# it under the terms of the GNU General Public License as published by
|
||||
+# the Free Software Foundation; either version 2, or (at your option)
|
||||
+# any later version.
|
||||
+
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program; if not, write to the Free Software
|
||||
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
+# 02111-1307, USA.
|
||||
+
|
||||
+# As a special exception to the GNU General Public License, if you
|
||||
+# distribute this file as part of a program that contains a
|
||||
+# configuration script generated by Autoconf, you may include it under
|
||||
+# the same distribution terms that you use for the rest of that program.
|
||||
+
|
||||
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
+
|
||||
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
+ exit 1
|
||||
+fi
|
||||
+# `libtool' can also be set to `yes' or `no'.
|
||||
+
|
||||
+if test -z "$depfile"; then
|
||||
+ base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
|
||||
+ dir=`echo "$object" | sed 's,/.*$,/,'`
|
||||
+ if test "$dir" = "$object"; then
|
||||
+ dir=
|
||||
+ fi
|
||||
+ # FIXME: should be _deps on DOS.
|
||||
+ depfile="$dir.deps/$base"
|
||||
+fi
|
||||
+
|
||||
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
+
|
||||
+rm -f "$tmpdepfile"
|
||||
+
|
||||
+# Some modes work just like other modes, but use different flags. We
|
||||
+# parameterize here, but still list the modes in the big case below,
|
||||
+# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
+# here, because this file can only contain one case statement.
|
||||
+if test "$depmode" = hp; then
|
||||
+ # HP compiler uses -M and no extra arg.
|
||||
+ gccflag=-M
|
||||
+ depmode=gcc
|
||||
+fi
|
||||
+
|
||||
+if test "$depmode" = dashXmstdout; then
|
||||
+ # This is just like dashmstdout with a different argument.
|
||||
+ dashmflag=-xM
|
||||
+ depmode=dashmstdout
|
||||
+fi
|
||||
+
|
||||
+case "$depmode" in
|
||||
+gcc3)
|
||||
+## gcc 3 implements dependency tracking that does exactly what
|
||||
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
+## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
+ "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||
+ stat=$?
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+ mv "$tmpdepfile" "$depfile"
|
||||
+ ;;
|
||||
+
|
||||
+gcc)
|
||||
+## There are various ways to get dependency output from gcc. Here's
|
||||
+## why we pick this rather obscure method:
|
||||
+## - Don't want to use -MD because we'd like the dependencies to end
|
||||
+## up in a subdir. Having to rename by hand is ugly.
|
||||
+## (We might end up doing this anyway to support other compilers.)
|
||||
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
+## -MM, not -M (despite what the docs say).
|
||||
+## - Using -M directly means running the compiler twice (even worse
|
||||
+## than renaming).
|
||||
+ if test -z "$gccflag"; then
|
||||
+ gccflag=-MD,
|
||||
+ fi
|
||||
+ "$@" -Wp,"$gccflag$tmpdepfile"
|
||||
+ stat=$?
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+ rm -f "$depfile"
|
||||
+ echo "$object : \\" > "$depfile"
|
||||
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
+## The second -e expression handles DOS-style file names with drive letters.
|
||||
+ sed -e 's/^[^:]*: / /' \
|
||||
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
+## This next piece of magic avoids the `deleted header file' problem.
|
||||
+## The problem is that when a header file which appears in a .P file
|
||||
+## is deleted, the dependency causes make to die (because there is
|
||||
+## typically no way to rebuild the header). We avoid this by adding
|
||||
+## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
+## this for us directly.
|
||||
+ tr ' ' '
|
||||
+' < "$tmpdepfile" |
|
||||
+## Some versions of gcc put a space before the `:'. On the theory
|
||||
+## that the space means something, we add a space to the output as
|
||||
+## well.
|
||||
+## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
+## correctly. Breaking it into two sed invocations is a workaround.
|
||||
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+hp)
|
||||
+ # This case exists only to let depend.m4 do its work. It works by
|
||||
+ # looking at the text of this script. This case will never be run,
|
||||
+ # since it is checked for above.
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+
|
||||
+sgi)
|
||||
+ if test "$libtool" = yes; then
|
||||
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
+ else
|
||||
+ "$@" -MDupdate "$tmpdepfile"
|
||||
+ fi
|
||||
+ stat=$?
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+ rm -f "$depfile"
|
||||
+
|
||||
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
+ echo "$object : \\" > "$depfile"
|
||||
+
|
||||
+ # Clip off the initial element (the dependent). Don't try to be
|
||||
+ # clever and replace this with sed code, as IRIX sed won't handle
|
||||
+ # lines with more than a fixed number of characters (4096 in
|
||||
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
+ # the IRIX cc adds comments like `#:fec' to the end of the
|
||||
+ # dependency line.
|
||||
+ tr ' ' '
|
||||
+' < "$tmpdepfile" \
|
||||
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
+ tr '
|
||||
+' ' ' >> $depfile
|
||||
+ echo >> $depfile
|
||||
+
|
||||
+ # The second pass generates a dummy entry for each header file.
|
||||
+ tr ' ' '
|
||||
+' < "$tmpdepfile" \
|
||||
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
+ >> $depfile
|
||||
+ else
|
||||
+ # The sourcefile does not contain any dependencies, so just
|
||||
+ # store a dummy comment line, to avoid errors with the Makefile
|
||||
+ # "include basename.Plo" scheme.
|
||||
+ echo "#dummy" > "$depfile"
|
||||
+ fi
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+aix)
|
||||
+ # The C for AIX Compiler uses -M and outputs the dependencies
|
||||
+ # in a .u file. In older versions, this file always lives in the
|
||||
+ # current directory. Also, the AIX compiler puts `$object:' at the
|
||||
+ # start of each line; $object doesn't have directory information.
|
||||
+ # Version 6 uses the directory in both cases.
|
||||
+ stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||
+ tmpdepfile="$stripped.u"
|
||||
+ if test "$libtool" = yes; then
|
||||
+ "$@" -Wc,-M
|
||||
+ else
|
||||
+ "$@" -M
|
||||
+ fi
|
||||
+ stat=$?
|
||||
+
|
||||
+ if test -f "$tmpdepfile"; then :
|
||||
+ else
|
||||
+ stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||
+ tmpdepfile="$stripped.u"
|
||||
+ fi
|
||||
+
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+
|
||||
+ if test -f "$tmpdepfile"; then
|
||||
+ outname="$stripped.o"
|
||||
+ # Each line is of the form `foo.o: dependent.h'.
|
||||
+ # Do two passes, one to just change these to
|
||||
+ # `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
+ sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
+ sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||
+ else
|
||||
+ # The sourcefile does not contain any dependencies, so just
|
||||
+ # store a dummy comment line, to avoid errors with the Makefile
|
||||
+ # "include basename.Plo" scheme.
|
||||
+ echo "#dummy" > "$depfile"
|
||||
+ fi
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+icc)
|
||||
+ # Intel's C compiler understands `-MD -MF file'. However on
|
||||
+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
+ # ICC 7.0 will fill foo.d with something like
|
||||
+ # foo.o: sub/foo.c
|
||||
+ # foo.o: sub/foo.h
|
||||
+ # which is wrong. We want:
|
||||
+ # sub/foo.o: sub/foo.c
|
||||
+ # sub/foo.o: sub/foo.h
|
||||
+ # sub/foo.c:
|
||||
+ # sub/foo.h:
|
||||
+ # ICC 7.1 will output
|
||||
+ # foo.o: sub/foo.c sub/foo.h
|
||||
+ # and will wrap long lines using \ :
|
||||
+ # foo.o: sub/foo.c ... \
|
||||
+ # sub/foo.h ... \
|
||||
+ # ...
|
||||
+
|
||||
+ "$@" -MD -MF "$tmpdepfile"
|
||||
+ stat=$?
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+ rm -f "$depfile"
|
||||
+ # Each line is of the form `foo.o: dependent.h',
|
||||
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
+ # Do two passes, one to just change these to
|
||||
+ # `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
+ # Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
+ # correctly. Breaking it into two sed invocations is a workaround.
|
||||
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||
+ sed -e 's/$/ :/' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+tru64)
|
||||
+ # The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
+ # dependencies in `foo.d' instead, so we check for that too.
|
||||
+ # Subdirectories are respected.
|
||||
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
+ test "x$dir" = "x$object" && dir=
|
||||
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
+
|
||||
+ if test "$libtool" = yes; then
|
||||
+ tmpdepfile1="$dir.libs/$base.lo.d"
|
||||
+ tmpdepfile2="$dir.libs/$base.d"
|
||||
+ "$@" -Wc,-MD
|
||||
+ else
|
||||
+ tmpdepfile1="$dir$base.o.d"
|
||||
+ tmpdepfile2="$dir$base.d"
|
||||
+ "$@" -MD
|
||||
+ fi
|
||||
+
|
||||
+ stat=$?
|
||||
+ if test $stat -eq 0; then :
|
||||
+ else
|
||||
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||
+ exit $stat
|
||||
+ fi
|
||||
+
|
||||
+ if test -f "$tmpdepfile1"; then
|
||||
+ tmpdepfile="$tmpdepfile1"
|
||||
+ else
|
||||
+ tmpdepfile="$tmpdepfile2"
|
||||
+ fi
|
||||
+ if test -f "$tmpdepfile"; then
|
||||
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
+ # That's a tab and a space in the [].
|
||||
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
+ else
|
||||
+ echo "#dummy" > "$depfile"
|
||||
+ fi
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+#nosideeffect)
|
||||
+ # This comment above is used by automake to tell side-effect
|
||||
+ # dependency tracking mechanisms from slower ones.
|
||||
+
|
||||
+dashmstdout)
|
||||
+ # Important note: in order to support this mode, a compiler *must*
|
||||
+ # always write the preprocessed file to stdout, regardless of -o.
|
||||
+ "$@" || exit $?
|
||||
+
|
||||
+ # Remove the call to Libtool.
|
||||
+ if test "$libtool" = yes; then
|
||||
+ while test $1 != '--mode=compile'; do
|
||||
+ shift
|
||||
+ done
|
||||
+ shift
|
||||
+ fi
|
||||
+
|
||||
+ # Remove `-o $object'.
|
||||
+ IFS=" "
|
||||
+ for arg
|
||||
+ do
|
||||
+ case $arg in
|
||||
+ -o)
|
||||
+ shift
|
||||
+ ;;
|
||||
+ $object)
|
||||
+ shift
|
||||
+ ;;
|
||||
+ *)
|
||||
+ set fnord "$@" "$arg"
|
||||
+ shift # fnord
|
||||
+ shift # $arg
|
||||
+ ;;
|
||||
+ esac
|
||||
+ done
|
||||
+
|
||||
+ test -z "$dashmflag" && dashmflag=-M
|
||||
+ # Require at least two characters before searching for `:'
|
||||
+ # in the target name. This is to cope with DOS-style filenames:
|
||||
+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||
+ "$@" $dashmflag |
|
||||
+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
+ rm -f "$depfile"
|
||||
+ cat < "$tmpdepfile" > "$depfile"
|
||||
+ tr ' ' '
|
||||
+' < "$tmpdepfile" | \
|
||||
+## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
+## correctly. Breaking it into two sed invocations is a workaround.
|
||||
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+dashXmstdout)
|
||||
+ # This case only exists to satisfy depend.m4. It is never actually
|
||||
+ # run, as this mode is specially recognized in the preamble.
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+
|
||||
+makedepend)
|
||||
+ "$@" || exit $?
|
||||
+ # Remove any Libtool call
|
||||
+ if test "$libtool" = yes; then
|
||||
+ while test $1 != '--mode=compile'; do
|
||||
+ shift
|
||||
+ done
|
||||
+ shift
|
||||
+ fi
|
||||
+ # X makedepend
|
||||
+ shift
|
||||
+ cleared=no
|
||||
+ for arg in "$@"; do
|
||||
+ case $cleared in
|
||||
+ no)
|
||||
+ set ""; shift
|
||||
+ cleared=yes ;;
|
||||
+ esac
|
||||
+ case "$arg" in
|
||||
+ -D*|-I*)
|
||||
+ set fnord "$@" "$arg"; shift ;;
|
||||
+ # Strip any option that makedepend may not understand. Remove
|
||||
+ # the object too, otherwise makedepend will parse it as a source file.
|
||||
+ -*|$object)
|
||||
+ ;;
|
||||
+ *)
|
||||
+ set fnord "$@" "$arg"; shift ;;
|
||||
+ esac
|
||||
+ done
|
||||
+ obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||
+ touch "$tmpdepfile"
|
||||
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
+ rm -f "$depfile"
|
||||
+ cat < "$tmpdepfile" > "$depfile"
|
||||
+ sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
+' | \
|
||||
+## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
+## correctly. Breaking it into two sed invocations is a workaround.
|
||||
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
+ ;;
|
||||
+
|
||||
+cpp)
|
||||
+ # Important note: in order to support this mode, a compiler *must*
|
||||
+ # always write the preprocessed file to stdout.
|
||||
+ "$@" || exit $?
|
||||
+
|
||||
+ # Remove the call to Libtool.
|
||||
+ if test "$libtool" = yes; then
|
||||
+ while test $1 != '--mode=compile'; do
|
||||
+ shift
|
||||
+ done
|
||||
+ shift
|
||||
+ fi
|
||||
+
|
||||
+ # Remove `-o $object'.
|
||||
+ IFS=" "
|
||||
+ for arg
|
||||
+ do
|
||||
+ case $arg in
|
||||
+ -o)
|
||||
+ shift
|
||||
+ ;;
|
||||
+ $object)
|
||||
+ shift
|
||||
+ ;;
|
||||
+ *)
|
||||
+ set fnord "$@" "$arg"
|
||||
+ shift # fnord
|
||||
+ shift # $arg
|
||||
+ ;;
|
||||
+ esac
|
||||
+ done
|
||||
+
|
||||
+ "$@" -E |
|
||||
+ sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||
+ sed '$ s: \\$::' > "$tmpdepfile"
|
||||
+ rm -f "$depfile"
|
||||
+ echo "$object : \\" > "$depfile"
|
||||
+ cat < "$tmpdepfile" >> "$depfile"
|
||||
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+msvisualcpp)
|
||||
+ # Important note: in order to support this mode, a compiler *must*
|
||||
+ # always write the preprocessed file to stdout, regardless of -o,
|
||||
+ # because we must use -o when running libtool.
|
||||
+ "$@" || exit $?
|
||||
+ IFS=" "
|
||||
+ for arg
|
||||
+ do
|
||||
+ case "$arg" in
|
||||
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
+ set fnord "$@"
|
||||
+ shift
|
||||
+ shift
|
||||
+ ;;
|
||||
+ *)
|
||||
+ set fnord "$@" "$arg"
|
||||
+ shift
|
||||
+ shift
|
||||
+ ;;
|
||||
+ esac
|
||||
+ done
|
||||
+ "$@" -E |
|
||||
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||
+ rm -f "$depfile"
|
||||
+ echo "$object : \\" > "$depfile"
|
||||
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||
+ echo " " >> "$depfile"
|
||||
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
+ rm -f "$tmpdepfile"
|
||||
+ ;;
|
||||
+
|
||||
+none)
|
||||
+ exec "$@"
|
||||
+ ;;
|
||||
+
|
||||
+*)
|
||||
+ echo "Unknown depmode $depmode" 1>&2
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+exit 0
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
--- glib-1.2.8/tests/Makefile.am.old 2005-03-28 13:18:58.219623027 +0200
|
||||
+++ glib-1.2.8/tests/Makefile.am 2005-03-28 13:19:07.243153444 +0200
|
||||
@@ -34,3 +34,5 @@
|
||||
|
||||
makefile.msc: $(top_builddir)/config.status $(top_srcdir)/tests/makefile.msc.in
|
||||
cd $(top_builddir) && CONFIG_FILES=tests/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
+
|
||||
+CLEANFILES = makefile.msc
|
||||
--- glib-1.2.8/Makefile.am.old 2005-03-28 13:20:29.053829656 +0200
|
||||
+++ glib-1.2.8/Makefile.am 2005-03-28 13:20:47.429836916 +0200
|
||||
@@ -128,3 +128,8 @@
|
||||
&& cp INSTALL README $(distdir) ; \
|
||||
fi \
|
||||
&& cp glib.spec $(distdir)
|
||||
+
|
||||
+DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h glibconfig.h.win32 \
|
||||
+ config.h.win32
|
||||
+
|
||||
+CLEANFILES = stamp-gc-h makefile.msc
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- glib-1.2.8/gmodule/Makefile.am 2005-02-21 00:33:40.818983432 +0100
|
||||
+++ glib-1.2.8-pkgconfig/gmodule/Makefile.am 2005-02-20 23:44:16.122685776 +0100
|
||||
@@ -42,7 +42,7 @@
|
||||
libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
|
||||
|
||||
noinst_PROGRAMS = testgmodule
|
||||
-testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
|
||||
+testgmodule_LDFLAGS = @G_MODULE_LDFLAGS@
|
||||
testgmodule_LDADD = libgmodule.la $(libglib) @G_MODULE_LIBS@
|
||||
|
||||
.PHONY: files release
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
|
||||
Patch stolen from glib1.2_1.2.10-17 in Debian. G_GNUC_PRETTY_FUNCTION
|
||||
is a variable now, not a string constant.
|
||||
|
||||
--- glib1.2-1.2.10.orig/gstrfuncs.c
|
||||
+++ glib1.2-1.2.10/gstrfuncs.c
|
||||
@@ -867,8 +867,8 @@
|
||||
/* beware of positional parameters
|
||||
*/
|
||||
case '$':
|
||||
- g_warning (G_GNUC_PRETTY_FUNCTION
|
||||
- "(): unable to handle positional parameters (%%n$)");
|
||||
+ g_warning ("%s(): unable to handle positional parameters (%%n$)",
|
||||
+ G_GNUC_PRETTY_FUNCTION );
|
||||
len += 1024; /* try adding some safety padding */
|
||||
break;
|
||||
|
||||
@@ -1034,8 +1034,8 @@
|
||||
/* n . dddddddddddddddddddddddd E +- eeee */
|
||||
conv_len += 1 + 1 + MAX (24, spec.precision) + 1 + 1 + 4;
|
||||
if (spec.mod_extra_long)
|
||||
- g_warning (G_GNUC_PRETTY_FUNCTION
|
||||
- "(): unable to handle long double, collecting double only");
|
||||
+ g_warning ("%s(): unable to handle long double, collecting double only",
|
||||
+ G_GNUC_PRETTY_FUNCTION);
|
||||
#ifdef HAVE_LONG_DOUBLE
|
||||
#error need to implement special handling for long double
|
||||
#endif
|
||||
@@ -1047,7 +1047,7 @@
|
||||
gint exp = u_double.mpn.biased_exponent;
|
||||
|
||||
exp -= G_IEEE754_DOUBLE_BIAS;
|
||||
- exp = exp * G_LOG_2_BASE_10 + 1;
|
||||
+ exp = abs(exp * G_LOG_2_BASE_10) + 1;
|
||||
conv_len += exp;
|
||||
}
|
||||
/* some printf() implementations require extra padding for rounding */
|
||||
@@ -1077,8 +1077,8 @@
|
||||
conv_done = TRUE;
|
||||
if (spec.mod_long)
|
||||
{
|
||||
- g_warning (G_GNUC_PRETTY_FUNCTION
|
||||
- "(): unable to handle wide char strings");
|
||||
+ g_warning ("%s(): unable to handle wide char strings",
|
||||
+ G_GNUC_PRETTY_FUNCTION);
|
||||
len += 1024; /* try adding some safety padding */
|
||||
}
|
||||
break;
|
||||
@@ -1108,8 +1108,8 @@
|
||||
conv_len += format - spec_start;
|
||||
break;
|
||||
default:
|
||||
- g_warning (G_GNUC_PRETTY_FUNCTION
|
||||
- "(): unable to handle `%c' while parsing format",
|
||||
+ g_warning ("%s(): unable to handle `%c' while parsing format",
|
||||
+ G_GNUC_PRETTY_FUNCTION,
|
||||
c);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1,272 +0,0 @@
|
|||
--- glib-1.2.8/missing 2000-03-11 10:25:38.000000000 +0100
|
||||
+++ glib-1.2.8-pkgconfig/missing 2005-02-20 23:26:36.580760632 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
-# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
-# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
|
||||
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -18,11 +18,37 @@
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
+# As a special exception to the GNU General Public License, if you
|
||||
+# distribute this file as part of a program that contains a
|
||||
+# configuration script generated by Autoconf, you may include it under
|
||||
+# the same distribution terms that you use for the rest of that program.
|
||||
+
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
+run=:
|
||||
+
|
||||
+# In the cases where this matters, `missing' is being run in the
|
||||
+# srcdir already.
|
||||
+if test -f configure.ac; then
|
||||
+ configure_ac=configure.ac
|
||||
+else
|
||||
+ configure_ac=configure.in
|
||||
+fi
|
||||
+
|
||||
+case "$1" in
|
||||
+--run)
|
||||
+ # Try to run requested program, and just exit if it succeeds.
|
||||
+ run=
|
||||
+ shift
|
||||
+ "$@" && exit 0
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+# If it does not exist, or fails to run (possibly an outdated version),
|
||||
+# try to emulate it.
|
||||
case "$1" in
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
@@ -35,6 +61,7 @@
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
+ --run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
@@ -43,13 +70,15 @@
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
+ help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
+ tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
- echo "missing - GNU libit 0.0"
|
||||
+ echo "missing 0.4 - GNU automake"
|
||||
;;
|
||||
|
||||
-*)
|
||||
@@ -58,31 +87,46 @@
|
||||
exit 1
|
||||
;;
|
||||
|
||||
- aclocal)
|
||||
+ aclocal*)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
- you modified \`acinclude.m4' or \`configure.in'. You might want
|
||||
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
- you modified \`configure.in'. You might want to install the
|
||||
+ you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
- you modified \`acconfig.h' or \`configure.in'. You might want
|
||||
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
|
||||
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
@@ -95,10 +139,15 @@
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
- automake)
|
||||
+ automake*)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
- you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
|
||||
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
@@ -106,6 +155,34 @@
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
+ autom4te)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ echo 1>&2 "\
|
||||
+WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||
+ system. You might have modified some files without having the
|
||||
+ proper tools for further handling them.
|
||||
+ You can get \`$1' as part of \`Autoconf' from any GNU
|
||||
+ archive site."
|
||||
+
|
||||
+ file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||
+ test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||
+ if test -f "$file"; then
|
||||
+ touch $file
|
||||
+ else
|
||||
+ test -z "$file" || exec >$file
|
||||
+ echo "#! /bin/sh"
|
||||
+ echo "# Created by GNU Automake missing as a replacement of"
|
||||
+ echo "# $ $@"
|
||||
+ echo "exit 0"
|
||||
+ chmod +x $file
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ ;;
|
||||
+
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
@@ -159,7 +236,37 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+ help2man)
|
||||
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
+ # We have it, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ echo 1>&2 "\
|
||||
+WARNING: \`$1' is missing on your system. You should only need it if
|
||||
+ you modified a dependency of a manual page. You may need the
|
||||
+ \`Help2man' package in order for those modifications to take
|
||||
+ effect. You can get \`Help2man' from any GNU archive site."
|
||||
+
|
||||
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
+ if test -z "$file"; then
|
||||
+ file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||
+ fi
|
||||
+ if [ -f "$file" ]; then
|
||||
+ touch $file
|
||||
+ else
|
||||
+ test -z "$file" || exec >$file
|
||||
+ echo ".ab help2man is required to generate this page"
|
||||
+ exit 1
|
||||
+ fi
|
||||
+ ;;
|
||||
+
|
||||
makeinfo)
|
||||
+ if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
|
||||
+ # We have makeinfo, but it failed.
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is missing on your system. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
@@ -175,12 +282,51 @@
|
||||
touch $file
|
||||
;;
|
||||
|
||||
+ tar)
|
||||
+ shift
|
||||
+ if test -n "$run"; then
|
||||
+ echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ # We have already tried tar in the generic part.
|
||||
+ # Look for gnutar/gtar before invocation to avoid ugly error
|
||||
+ # messages.
|
||||
+ if (gnutar --version > /dev/null 2>&1); then
|
||||
+ gnutar "$@" && exit 0
|
||||
+ fi
|
||||
+ if (gtar --version > /dev/null 2>&1); then
|
||||
+ gtar "$@" && exit 0
|
||||
+ fi
|
||||
+ firstarg="$1"
|
||||
+ if shift; then
|
||||
+ case "$firstarg" in
|
||||
+ *o*)
|
||||
+ firstarg=`echo "$firstarg" | sed s/o//`
|
||||
+ tar "$firstarg" "$@" && exit 0
|
||||
+ ;;
|
||||
+ esac
|
||||
+ case "$firstarg" in
|
||||
+ *h*)
|
||||
+ firstarg=`echo "$firstarg" | sed s/h//`
|
||||
+ tar "$firstarg" "$@" && exit 0
|
||||
+ ;;
|
||||
+ esac
|
||||
+ fi
|
||||
+
|
||||
+ echo 1>&2 "\
|
||||
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
+ You may want to install GNU tar or Free paxutils, or check the
|
||||
+ command line arguments."
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and you do not seem to have it handy on your
|
||||
system. You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
- it often tells you about the needed prerequirements for installing
|
||||
+ it often tells you about the needed prerequisites for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
--- glib-1.2.8/mkinstalldirs.old 2005-04-01 23:54:11.908326540 +0200
|
||||
+++ glib-1.2.8/mkinstalldirs 2005-04-01 23:54:26.425962180 +0200
|
||||
@@ -4,37 +4,108 @@
|
||||
# Created: 1993-05-16
|
||||
# Public domain
|
||||
|
||||
-# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
|
||||
-
|
||||
errstatus=0
|
||||
+dirmode=""
|
||||
+
|
||||
+usage="\
|
||||
+Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
|
||||
+
|
||||
+# process command line arguments
|
||||
+while test $# -gt 0 ; do
|
||||
+ case $1 in
|
||||
+ -h | --help | --h*) # -h for help
|
||||
+ echo "$usage" 1>&2
|
||||
+ exit 0
|
||||
+ ;;
|
||||
+ -m) # -m PERM arg
|
||||
+ shift
|
||||
+ test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
|
||||
+ dirmode=$1
|
||||
+ shift
|
||||
+ ;;
|
||||
+ --) # stop option processing
|
||||
+ shift
|
||||
+ break
|
||||
+ ;;
|
||||
+ -*) # unknown option
|
||||
+ echo "$usage" 1>&2
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+ *) # first non-opt arg
|
||||
+ break
|
||||
+ ;;
|
||||
+ esac
|
||||
+done
|
||||
+
|
||||
+for file
|
||||
+do
|
||||
+ if test -d "$file"; then
|
||||
+ shift
|
||||
+ else
|
||||
+ break
|
||||
+ fi
|
||||
+done
|
||||
+
|
||||
+case $# in
|
||||
+ 0) exit 0 ;;
|
||||
+esac
|
||||
+
|
||||
+case $dirmode in
|
||||
+ '')
|
||||
+ if mkdir -p -- . 2>/dev/null; then
|
||||
+ echo "mkdir -p -- $*"
|
||||
+ exec mkdir -p -- "$@"
|
||||
+ fi
|
||||
+ ;;
|
||||
+ *)
|
||||
+ if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
|
||||
+ echo "mkdir -m $dirmode -p -- $*"
|
||||
+ exec mkdir -m "$dirmode" -p -- "$@"
|
||||
+ fi
|
||||
+ ;;
|
||||
+esac
|
||||
|
||||
for file
|
||||
do
|
||||
- set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
- shift
|
||||
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||
+ shift
|
||||
|
||||
- pathcomp=
|
||||
- for d
|
||||
- do
|
||||
- pathcomp="$pathcomp$d"
|
||||
- case "$pathcomp" in
|
||||
- -* ) pathcomp=./$pathcomp ;;
|
||||
- esac
|
||||
-
|
||||
- if test ! -d "$pathcomp"; then
|
||||
- echo "mkdir $pathcomp"
|
||||
-
|
||||
- mkdir "$pathcomp" || lasterr=$?
|
||||
-
|
||||
- if test ! -d "$pathcomp"; then
|
||||
- errstatus=$lasterr
|
||||
- fi
|
||||
- fi
|
||||
+ pathcomp=
|
||||
+ for d
|
||||
+ do
|
||||
+ pathcomp="$pathcomp$d"
|
||||
+ case $pathcomp in
|
||||
+ -*) pathcomp=./$pathcomp ;;
|
||||
+ esac
|
||||
+
|
||||
+ if test ! -d "$pathcomp"; then
|
||||
+ echo "mkdir $pathcomp"
|
||||
+
|
||||
+ mkdir "$pathcomp" || lasterr=$?
|
||||
+
|
||||
+ if test ! -d "$pathcomp"; then
|
||||
+ errstatus=$lasterr
|
||||
+ else
|
||||
+ if test ! -z "$dirmode"; then
|
||||
+ echo "chmod $dirmode $pathcomp"
|
||||
+ lasterr=""
|
||||
+ chmod "$dirmode" "$pathcomp" || lasterr=$?
|
||||
+
|
||||
+ if test ! -z "$lasterr"; then
|
||||
+ errstatus=$lasterr
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
|
||||
- pathcomp="$pathcomp/"
|
||||
- done
|
||||
+ pathcomp="$pathcomp/"
|
||||
+ done
|
||||
done
|
||||
|
||||
exit $errstatus
|
||||
|
||||
+# Local Variables:
|
||||
+# mode: shell-script
|
||||
+# sh-indentation: 2
|
||||
+# End:
|
||||
# mkinstalldirs ends here
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
This is file patch-07-dist for pkg-config-0.21
|
||||
to be applied on top of patch-05-automake-warning
|
||||
|
||||
Don't distribute DISTCLEAN files
|
||||
|
||||
diff -ur -x autom4te.cache -x aclocal.m4 -x configure -x Makefile.in -x config.h.in -x 'config.h.in~' pkg-config-0.21.orig/glib-1.2.8/Makefile.am pkg-config-0.21/glib-1.2.8/Makefile.am
|
||||
--- glib-1.2.8/Makefile.am 2007-01-19 15:03:19.000000000 +0100
|
||||
+++ glib-1.2.8/Makefile.am 2007-01-19 15:07:29.000000000 +0100
|
||||
@@ -23,9 +23,7 @@
|
||||
makefile.msc.in \
|
||||
makefile.msc \
|
||||
giowin32.c \
|
||||
- glibconfig.h.win32 \
|
||||
glibconfig.h.win32.in \
|
||||
- config.h.win32 \
|
||||
config.h.win32.in \
|
||||
glib.pc.in \
|
||||
gmodule.pc.in \
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
--- glib-1.2.8/configure.in 2000-05-25 02:29:09.000000000 +0200
|
||||
+++ glib-1.2.8/configure.in 2004-10-13 09:45:16.965305752 +0200
|
||||
@@ -888,6 +888,7 @@
|
||||
AC_MSG_CHECKING(whether pthread_cond_timedwait is posix like)
|
||||
# DCE Threads return -1 as failure, posix ETIMEDOUT.
|
||||
AC_TRY_RUN([#include <pthread.h>
|
||||
+ #include <sys/time.h>
|
||||
int main () {
|
||||
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
|
||||
@@ -896,6 +897,7 @@
|
||||
gettimeofday (&tval, NULL);
|
||||
tspec.tv_sec = tval.tv_sec;
|
||||
tspec.tv_nsec = 0;
|
||||
+ pthread_mutex_lock (&mutex);
|
||||
return pthread_cond_timedwait (&cond,&mutex,&tspec)
|
||||
!= -1;}],
|
||||
[AC_MSG_RESULT(no)],
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
--- glib-1.2.8/gstrfuncs.c 2000-04-17 17:05:16.000000000 +0200
|
||||
+++ glib-1.2.8/gstrfuncs.c.new 2005-04-02 16:39:10.627002672 +0200
|
||||
@@ -31,7 +31,8 @@
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
+#define _GNU_SOURCE
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -702,7 +703,6 @@
|
||||
char *msg;
|
||||
|
||||
#ifdef HAVE_STRSIGNAL
|
||||
- extern char *strsignal (int sig);
|
||||
return strsignal (signum);
|
||||
#elif NO_SYS_SIGLIST
|
||||
switch (signum)
|
||||
4
pkg.h
4
pkg.h
|
|
@ -20,11 +20,7 @@
|
|||
#ifndef PKG_CONFIG_PKG_H
|
||||
#define PKG_CONFIG_PKG_H
|
||||
|
||||
#ifdef USE_INSTALLED_GLIB
|
||||
#include <glib.h>
|
||||
#else
|
||||
#include "glib-1.2.10/glib.h"
|
||||
#endif
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
/* No hardcoded paths in the binary, thanks */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue