Commit 42fcd7bb by Andreas Jaeger

configure.in: Handle multilibs, support --enable-version-specific-runtime-libs.

	* configure.in: Handle multilibs, support
	--enable-version-specific-runtime-libs.
	* Makefile.am (lib_LTLIBRARIES): Rename to ...
        (toolexeclib_LTLIBRARIES): this for multilib support.
	* Makefile.in: Regenerated.
	* configure: Regenerated.
	* aclocal.m4: Regenerated.

	* testsuite/lib/libmudflap.exp (libmudflap-init): Handle
	multilibs, using multilib directory instead of hardcoded path.
	Set LD_RUN_PATH.

From-SVN: r82527
parent 017f7506
2004-06-01 Andreas Jaeger <aj@suse.de>
* configure.in: Handle multilibs, support
--enable-version-specific-runtime-libs.
* Makefile.am (lib_LTLIBRARIES): Rename to ...
(toolexeclib_LTLIBRARIES): this for multilib support.
* Makefile.in: Regenerated.
* configure: Regenerated.
* aclocal.m4: Regenerated.
2004-06-01 Andreas Jaeger <aj@suse.de>
* testsuite/lib/libmudflap.exp (libmudflap-init): Handle
multilibs, using multilib directory instead of hardcoded path.
Set LD_RUN_PATH.
2004-05-21 Frank Ch. Eigler <fche@redhat.com> 2004-05-21 Frank Ch. Eigler <fche@redhat.com>
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS. * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
...@@ -974,4 +990,3 @@ ...@@ -974,4 +990,3 @@
* mf-hooks.c: New file: interposed libc functions. * mf-hooks.c: New file: interposed libc functions.
* mf-runtime.c: New file: bulk of runtime. * mf-runtime.c: New file: bulk of runtime.
* mf-runtime.h: New file: public functions. * mf-runtime.h: New file: public functions.
...@@ -16,7 +16,7 @@ else ...@@ -16,7 +16,7 @@ else
libmudflapth = libmudflapth =
endif endif
lib_LTLIBRARIES = libmudflap.la $(libmudflapth) toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
include_HEADERS = mf-runtime.h include_HEADERS = mf-runtime.h
libmudflap_la_SOURCES = \ libmudflap_la_SOURCES = \
......
# Makefile.in generated automatically by automake 1.4 from Makefile.am # Makefile.in generated by automake 1.8.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation # This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
...@@ -10,101 +12,284 @@ ...@@ -10,101 +12,284 @@
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. # PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
SOURCES = $(libmudflap_la_SOURCES) $(libmudflapth_la_SOURCES)
srcdir = @srcdir@ srcdir = @srcdir@
top_srcdir = @top_srcdir@ top_srcdir = @top_srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@ pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = . top_builddir = .
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
INSTALL = @INSTALL@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) install_sh_DATA = $(install_sh) -c -m 644
INSTALL_DATA = @INSTALL_DATA@ install_sh_PROGRAM = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@ install_sh_SCRIPT = $(install_sh) -c
transform = @program_transform_name@ INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = : NORMAL_INSTALL = :
PRE_INSTALL = : PRE_INSTALL = :
POST_INSTALL = : POST_INSTALL = :
NORMAL_UNINSTALL = : NORMAL_UNINSTALL = :
PRE_UNINSTALL = : PRE_UNINSTALL = :
POST_UNINSTALL = : POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@ build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@ host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@ target_triplet = @target@
AS = @AS@ DIST_COMMON = $(am__configure_deps) $(include_HEADERS) \
$(srcdir)/../config.guess $(srcdir)/../config.sub \
$(srcdir)/../depcomp $(srcdir)/../install-sh \
$(srcdir)/../ltmain.sh $(srcdir)/../missing \
$(srcdir)/../mkinstalldirs $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(srcdir)/mf-runtime.h.in $(top_srcdir)/configure ChangeLog
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno configure.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = mf-runtime.h
am__installdirs = "$(DESTDIR)$(toolexeclibdir)" "$(DESTDIR)$(includedir)"
toolexeclibLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(toolexeclib_LTLIBRARIES)
am__DEPENDENCIES_1 = malloc-hook.lo free-hook.lo calloc-hook.lo \
realloc-hook.lo mmap-hook.lo munmap-hook.lo alloca-hook.lo
am__DEPENDENCIES_2 = memcpy-hook.lo memmove-hook.lo memset-hook.lo \
memcmp-hook.lo memchr-hook.lo memrchr-hook.lo strcpy-hook.lo \
strncpy-hook.lo strcat-hook.lo strncat-hook.lo strcmp-hook.lo \
strcasecmp-hook.lo strncmp-hook.lo strncasecmp-hook.lo \
strdup-hook.lo strndup-hook.lo strchr-hook.lo strrchr-hook.lo \
strstr-hook.lo memmem-hook.lo strlen-hook.lo strnlen-hook.lo \
bzero-hook.lo bcopy-hook.lo bcmp-hook.lo index-hook.lo \
rindex-hook.lo asctime-hook.lo ctime-hook.lo gmtime-hook.lo \
localtime-hook.lo time-hook.lo strerror-hook.lo fopen-hook.lo \
fclose-hook.lo fread-hook.lo fwrite-hook.lo fgetc-hook.lo \
fgets-hook.lo getc-hook.lo gets-hook.lo ungetc-hook.lo \
fputc-hook.lo fputs-hook.lo putc-hook.lo puts-hook.lo \
clearerr-hook.lo feof-hook.lo ferror-hook.lo fileno-hook.lo \
printf-hook.lo fprintf-hook.lo sprintf-hook.lo \
snprintf-hook.lo vprintf-hook.lo vfprintf-hook.lo \
vsprintf-hook.lo vsnprintf-hook.lo access-hook.lo \
remove-hook.lo fflush-hook.lo fseek-hook.lo ftell-hook.lo \
rewind-hook.lo fgetpos-hook.lo fsetpos-hook.lo stat-hook.lo \
fstat-hook.lo lstat-hook.lo mkfifo-hook.lo setvbuf-hook.lo \
setbuf-hook.lo opendir-hook.lo closedir-hook.lo \
readdir-hook.lo recv-hook.lo recvfrom-hook.lo recvmsg-hook.lo \
send-hook.lo sendto-hook.lo sendmsg-hook.lo setsockopt-hook.lo \
getsockopt-hook.lo accept-hook.lo bind-hook.lo connect-hook.lo \
gethostname-hook.lo sethostname-hook.lo gethostbyname-hook.lo \
wait-hook.lo waitpid-hook.lo popen-hook.lo pclose-hook.lo \
execve-hook.lo execv-hook.lo execvp-hook.lo system-hook.lo \
dlopen-hook.lo dlerror-hook.lo dlsym-hook.lo dlclose-hook.lo \
fopen64-hook.lo stat64-hook.lo fseeko64-hook.lo \
ftello64-hook.lo semop-hook.lo semctl-hook.lo shmctl-hook.lo \
shmat-hook.lo shmdt-hook.lo
am__DEPENDENCIES_3 =
am_libmudflap_la_OBJECTS = mf-runtime.lo mf-heuristics.lo
libmudflap_la_OBJECTS = $(am_libmudflap_la_OBJECTS)
am__DEPENDENCIES_4 = pth/malloc-hook.lo pth/free-hook.lo \
pth/calloc-hook.lo pth/realloc-hook.lo pth/mmap-hook.lo \
pth/munmap-hook.lo pth/alloca-hook.lo
am__DEPENDENCIES_5 = pth/memcpy-hook.lo pth/memmove-hook.lo \
pth/memset-hook.lo pth/memcmp-hook.lo pth/memchr-hook.lo \
pth/memrchr-hook.lo pth/strcpy-hook.lo pth/strncpy-hook.lo \
pth/strcat-hook.lo pth/strncat-hook.lo pth/strcmp-hook.lo \
pth/strcasecmp-hook.lo pth/strncmp-hook.lo \
pth/strncasecmp-hook.lo pth/strdup-hook.lo pth/strndup-hook.lo \
pth/strchr-hook.lo pth/strrchr-hook.lo pth/strstr-hook.lo \
pth/memmem-hook.lo pth/strlen-hook.lo pth/strnlen-hook.lo \
pth/bzero-hook.lo pth/bcopy-hook.lo pth/bcmp-hook.lo \
pth/index-hook.lo pth/rindex-hook.lo pth/asctime-hook.lo \
pth/ctime-hook.lo pth/gmtime-hook.lo pth/localtime-hook.lo \
pth/time-hook.lo pth/strerror-hook.lo pth/fopen-hook.lo \
pth/fclose-hook.lo pth/fread-hook.lo pth/fwrite-hook.lo \
pth/fgetc-hook.lo pth/fgets-hook.lo pth/getc-hook.lo \
pth/gets-hook.lo pth/ungetc-hook.lo pth/fputc-hook.lo \
pth/fputs-hook.lo pth/putc-hook.lo pth/puts-hook.lo \
pth/clearerr-hook.lo pth/feof-hook.lo pth/ferror-hook.lo \
pth/fileno-hook.lo pth/printf-hook.lo pth/fprintf-hook.lo \
pth/sprintf-hook.lo pth/snprintf-hook.lo pth/vprintf-hook.lo \
pth/vfprintf-hook.lo pth/vsprintf-hook.lo \
pth/vsnprintf-hook.lo pth/access-hook.lo pth/remove-hook.lo \
pth/fflush-hook.lo pth/fseek-hook.lo pth/ftell-hook.lo \
pth/rewind-hook.lo pth/fgetpos-hook.lo pth/fsetpos-hook.lo \
pth/stat-hook.lo pth/fstat-hook.lo pth/lstat-hook.lo \
pth/mkfifo-hook.lo pth/setvbuf-hook.lo pth/setbuf-hook.lo \
pth/opendir-hook.lo pth/closedir-hook.lo pth/readdir-hook.lo \
pth/recv-hook.lo pth/recvfrom-hook.lo pth/recvmsg-hook.lo \
pth/send-hook.lo pth/sendto-hook.lo pth/sendmsg-hook.lo \
pth/setsockopt-hook.lo pth/getsockopt-hook.lo \
pth/accept-hook.lo pth/bind-hook.lo pth/connect-hook.lo \
pth/gethostname-hook.lo pth/sethostname-hook.lo \
pth/gethostbyname-hook.lo pth/wait-hook.lo pth/waitpid-hook.lo \
pth/popen-hook.lo pth/pclose-hook.lo pth/execve-hook.lo \
pth/execv-hook.lo pth/execvp-hook.lo pth/system-hook.lo \
pth/dlopen-hook.lo pth/dlerror-hook.lo pth/dlsym-hook.lo \
pth/dlclose-hook.lo pth/fopen64-hook.lo pth/stat64-hook.lo \
pth/fseeko64-hook.lo pth/ftello64-hook.lo pth/semop-hook.lo \
pth/semctl-hook.lo pth/shmctl-hook.lo pth/shmat-hook.lo \
pth/shmdt-hook.lo
am__DEPENDENCIES_6 = pth/pthreadstuff-hook.lo
am_libmudflapth_la_OBJECTS =
libmudflapth_la_OBJECTS = $(am_libmudflapth_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
depcomp = $(SHELL) $(top_srcdir)/../depcomp
am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/mf-heuristics.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/mf-runtime.Plo
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(libmudflap_la_SOURCES) $(libmudflapth_la_SOURCES)
DIST_SOURCES = $(libmudflap_la_SOURCES) $(libmudflapth_la_SOURCES)
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-exec-recursive install-info-recursive \
install-recursive installcheck-recursive installdirs-recursive \
pdf-recursive ps-recursive uninstall-info-recursive \
uninstall-recursive
includeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(include_HEADERS)
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
{ test ! -d $(distdir) \
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(distdir); }; }
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@ CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@ CPP = @CPP@
CXX = @CXX@ CPPFLAGS = @CPPFLAGS@
CXXCPP = @CXXCPP@ CYGPATH_W = @CYGPATH_W@
DLLTOOL = @DLLTOOL@ DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
GCJ = @GCJ@ INSTALL_DATA = @INSTALL_DATA@
GCJFLAGS = @GCJFLAGS@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LIBMUDFLAPTH_FALSE = @LIBMUDFLAPTH_FALSE@
LIBMUDFLAPTH_TRUE = @LIBMUDFLAPTH_TRUE@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@ LIBTOOL = @LIBTOOL@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
MF_HAVE_STDINT_H = @MF_HAVE_STDINT_H@ MF_HAVE_STDINT_H = @MF_HAVE_STDINT_H@
MF_HAVE_UINTPTR_T = @MF_HAVE_UINTPTR_T@ MF_HAVE_UINTPTR_T = @MF_HAVE_UINTPTR_T@
NM = @NM@ NM = @NM@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@ OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@ STRIP = @STRIP@
VERSION = @VERSION@ VERSION = @VERSION@
ac_ct_CC = @ac_ct_CC@
ac_ct_NM = @ac_ct_NM@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
enable_shared = @enable_shared@ enable_shared = @enable_shared@
enable_static = @enable_static@ enable_static = @enable_static@
exec_prefix = @exec_prefix@
gcc_version = @gcc_version@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
libtool_VERSION = @libtool_VERSION@ libtool_VERSION = @libtool_VERSION@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
multi_basedir = @multi_basedir@
oldincludedir = @oldincludedir@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
toolexecdir = @toolexecdir@
toolexeclibdir = @toolexeclibdir@
AUTOMAKE_OPTIONS = 1.3 foreign AUTOMAKE_OPTIONS = 1.3 foreign
MAINT_CHARSET = latin1 MAINT_CHARSET = latin1
SUBDIRS = testsuite SUBDIRS = testsuite
AM_CFLAGS = -Wall AM_CFLAGS = -Wall
@LIBMUDFLAPTH_TRUE@libmudflapth = @LIBMUDFLAPTH_TRUE@libmudflapth.la
@LIBMUDFLAPTH_FALSE@libmudflapth = @LIBMUDFLAPTH_FALSE@libmudflapth =
@LIBMUDFLAPTH_TRUE@libmudflapth = libmudflapth.la
lib_LTLIBRARIES = libmudflap.la $(libmudflapth) toolexeclib_LTLIBRARIES = libmudflap.la $(libmudflapth)
include_HEADERS = mf-runtime.h include_HEADERS = mf-runtime.h
libmudflap_la_SOURCES = \ libmudflap_la_SOURCES = \
mf-runtime.c \ mf-runtime.c \
mf-heuristics.c mf-heuristics.c
HOOK1OBJS = \ HOOK1OBJS = \
malloc-hook.lo \ malloc-hook.lo \
free-hook.lo \ free-hook.lo \
...@@ -114,7 +299,6 @@ HOOK1OBJS = \ ...@@ -114,7 +299,6 @@ HOOK1OBJS = \
munmap-hook.lo \ munmap-hook.lo \
alloca-hook.lo alloca-hook.lo
HOOK2OBJS = \ HOOK2OBJS = \
memcpy-hook.lo \ memcpy-hook.lo \
memmove-hook.lo \ memmove-hook.lo \
...@@ -239,7 +423,6 @@ PTHHOOK1OBJS = \ ...@@ -239,7 +423,6 @@ PTHHOOK1OBJS = \
pth/munmap-hook.lo \ pth/munmap-hook.lo \
pth/alloca-hook.lo pth/alloca-hook.lo
PTHHOOK2OBJS = \ PTHHOOK2OBJS = \
pth/memcpy-hook.lo \ pth/memcpy-hook.lo \
pth/memmove-hook.lo \ pth/memmove-hook.lo \
...@@ -352,16 +535,12 @@ PTHHOOK2OBJS = \ ...@@ -352,16 +535,12 @@ PTHHOOK2OBJS = \
pth/shmat-hook.lo \ pth/shmat-hook.lo \
pth/shmdt-hook.lo pth/shmdt-hook.lo
PTHHOOK3OBJS = \ PTHHOOK3OBJS = \
pth/pthreadstuff-hook.lo pth/pthreadstuff-hook.lo
libmudflapth_la_SOURCES = libmudflapth_la_SOURCES =
libmudflap_la_LIBADD = $(HOOK1OBJS) $(HOOK2OBJS) $(HOOK3OBJS) libmudflap_la_LIBADD = $(HOOK1OBJS) $(HOOK2OBJS) $(HOOK3OBJS)
libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD) libmudflap_la_DEPENDENCIES = $(libmudflap_la_LIBADD)
libmudflapth_la_LIBADD = pth/mf-runtime.lo pth/mf-heuristics.lo \ libmudflapth_la_LIBADD = pth/mf-runtime.lo pth/mf-heuristics.lo \
$(PTHHOOK1OBJS) $(PTHHOOK2OBJS) $(PTHHOOK3OBJS) $(PTHHOOK1OBJS) $(PTHHOOK2OBJS) $(PTHHOOK3OBJS)
...@@ -409,7 +588,6 @@ AM_MAKEFLAGS = \ ...@@ -409,7 +588,6 @@ AM_MAKEFLAGS = \
"RANLIB=$(RANLIB)" \ "RANLIB=$(RANLIB)" \
"DESTDIR=$(DESTDIR)" "DESTDIR=$(DESTDIR)"
MAKEOVERRIDES = MAKEOVERRIDES =
# Multilib support variables. # Multilib support variables.
...@@ -419,141 +597,127 @@ MULTIDIRS = ...@@ -419,141 +597,127 @@ MULTIDIRS =
MULTISUBDIR = MULTISUBDIR =
MULTIDO = true MULTIDO = true
MULTICLEAN = true MULTICLEAN = true
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 all: config.h
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs $(MAKE) $(AM_MAKEFLAGS) all-recursive
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = mf-runtime.h
LTLIBRARIES = $(lib_LTLIBRARIES)
DEFS = @DEFS@ -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
libmudflap_la_LDFLAGS =
libmudflap_la_OBJECTS = mf-runtime.lo mf-heuristics.lo
libmudflapth_la_LDFLAGS =
libmudflapth_la_OBJECTS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS = $(include_HEADERS)
DIST_COMMON = ./stamp-h.in ChangeLog Makefile.am Makefile.in \
acinclude.m4 aclocal.m4 config.h.in configure configure.in \
mf-runtime.h.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
DEP_FILES = .deps/mf-heuristics.P .deps/mf-runtime.P
SOURCES = $(libmudflap_la_SOURCES) $(libmudflapth_la_SOURCES)
OBJECTS = $(libmudflap_la_OBJECTS) $(libmudflapth_la_OBJECTS)
all: all-redirect
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .S .c .lo .o .obj .s .SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) am--refresh:
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile @:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) @for dep in $?; do \
cd $(top_builddir) \ case '$(am__configure_deps)' in \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status *$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4 cd $(srcdir) && $(AUTOMAKE) --foreign \
cd $(srcdir) && $(ACLOCAL) && exit 0; \
exit 1;; \
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck $(SHELL) ./config.status --recheck
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(srcdir) && $(AUTOCONF) cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h; \
$(MAKE) stamp-h; \
else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
$(SHELL) ./config.status
@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
@if test ! -f $@; then \ @if test ! -f $@; then \
rm -f $(srcdir)/stamp-h.in; \ rm -f stamp-h1; \
$(MAKE) $(srcdir)/stamp-h.in; \ $(MAKE) stamp-h1; \
else :; fi else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
mostlyclean-hdr: stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
clean-hdr: cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_srcdir) && $(AUTOHEADER)
rm -f stamp-h1
touch $@
distclean-hdr: distclean-hdr:
-rm -f config.h -rm -f config.h stamp-h1
mf-runtime.h: $(top_builddir)/config.status $(srcdir)/mf-runtime.h.in
maintainer-clean-hdr: cd $(top_builddir) && $(SHELL) ./config.status $@
mf-runtime.h: $(top_builddir)/config.status mf-runtime.h.in install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES)
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
mostlyclean-libLTLIBRARIES:
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
distclean-libLTLIBRARIES:
maintainer-clean-libLTLIBRARIES:
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(libdir) test -z "$(toolexeclibdir)" || $(mkdir_p) "$(DESTDIR)$(toolexeclibdir)"
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \ @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \ if test -f $$p; then \
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \ f="`echo $$p | sed -e 's|^.*/||'`"; \
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \ echo " $(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(toolexeclibdir)/$$f'"; \
$(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(toolexeclibdir)/$$f"; \
else :; fi; \ else :; fi; \
done done
uninstall-libLTLIBRARIES: uninstall-toolexeclibLTLIBRARIES:
@$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
list='$(lib_LTLIBRARIES)'; for p in $$list; do \ @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ p="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(toolexeclibdir)/$$p'"; \
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(toolexeclibdir)/$$p"; \
done done
# FIXME: We should only use cygpath when building on Windows, clean-toolexeclibLTLIBRARIES:
# and only if it is available. -test -z "$(toolexeclib_LTLIBRARIES)" || rm -f $(toolexeclib_LTLIBRARIES)
.c.obj: @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
$(COMPILE) -c `cygpath -w $<` dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
.s.o: echo "rm -f \"$${dir}/so_locations\""; \
$(COMPILE) -c $< rm -f "$${dir}/so_locations"; \
done
.S.o: libmudflap.la: $(libmudflap_la_OBJECTS) $(libmudflap_la_DEPENDENCIES)
$(COMPILE) -c $< $(LINK) -rpath $(toolexeclibdir) $(libmudflap_la_LDFLAGS) $(libmudflap_la_OBJECTS) $(libmudflap_la_LIBADD) $(LIBS)
libmudflapth.la: $(libmudflapth_la_OBJECTS) $(libmudflapth_la_DEPENDENCIES)
$(LINK) -rpath $(toolexeclibdir) $(libmudflapth_la_LDFLAGS) $(libmudflapth_la_OBJECTS) $(libmudflapth_la_LIBADD) $(LIBS)
mostlyclean-compile: mostlyclean-compile:
-rm -f *.o core *.core
-rm -f *.$(OBJEXT) -rm -f *.$(OBJEXT)
clean-compile:
distclean-compile: distclean-compile:
-rm -f *.tab.c -rm -f *.tab.c
maintainer-clean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mf-heuristics.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mf-runtime.Plo@am__quote@
.s.lo: .c.o:
$(LIBTOOL) --mode=compile $(COMPILE) -c $< @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.S.lo: .c.obj:
$(LIBTOOL) --mode=compile $(COMPILE) -c $< @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool: mostlyclean-libtool:
-rm -f *.lo -rm -f *.lo
...@@ -562,28 +726,24 @@ clean-libtool: ...@@ -562,28 +726,24 @@ clean-libtool:
-rm -rf .libs _libs -rm -rf .libs _libs
distclean-libtool: distclean-libtool:
-rm -f libtool
maintainer-clean-libtool: uninstall-info-am:
libmudflap.la: $(libmudflap_la_OBJECTS) $(libmudflap_la_DEPENDENCIES)
$(LINK) -rpath $(libdir) $(libmudflap_la_LDFLAGS) $(libmudflap_la_OBJECTS) $(libmudflap_la_LIBADD) $(LIBS)
libmudflapth.la: $(libmudflapth_la_OBJECTS) $(libmudflapth_la_DEPENDENCIES)
$(LINK) -rpath $(libdir) $(libmudflapth_la_LDFLAGS) $(libmudflapth_la_OBJECTS) $(libmudflapth_la_LIBADD) $(LIBS)
install-includeHEADERS: $(include_HEADERS) install-includeHEADERS: $(include_HEADERS)
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(includedir) test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
@list='$(include_HEADERS)'; for p in $$list; do \ @list='$(include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ f="`echo $$p | sed -e 's|^.*/||'`"; \
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
$(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
done done
uninstall-includeHEADERS: uninstall-includeHEADERS:
@$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
list='$(include_HEADERS)'; for p in $$list; do \ @list='$(include_HEADERS)'; for p in $$list; do \
rm -f $(DESTDIR)$(includedir)/$$p; \ f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
rm -f "$(DESTDIR)$(includedir)/$$f"; \
done done
# This directory's subdirectories are mostly independent; you can cd # This directory's subdirectories are mostly independent; you can cd
...@@ -592,13 +752,8 @@ uninstall-includeHEADERS: ...@@ -592,13 +752,8 @@ uninstall-includeHEADERS:
# (1) if the variable is set in `config.status', edit `config.status' # (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make'); # (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line. # (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@SET_MAKE@ @set fnord $$MAKEFLAGS; amf=$$2; \
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \ dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \ target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \ list='$(SUBDIRS)'; for subdir in $$list; do \
...@@ -618,13 +773,18 @@ check-recursive installcheck-recursive info-recursive dvi-recursive: ...@@ -618,13 +773,18 @@ check-recursive installcheck-recursive info-recursive dvi-recursive:
mostlyclean-recursive clean-recursive distclean-recursive \ mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive: maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \ @set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \ dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \ rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \ fi; \
done; \ done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \ rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \ target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \ for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \ echo "Making $$target in $$subdir"; \
...@@ -640,228 +800,321 @@ tags-recursive: ...@@ -640,228 +800,321 @@ tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \ list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
ID: $(HEADERS) $(SOURCES) $(LISP) unique=`for i in $$list; do \
list='$(SOURCES) $(HEADERS)'; \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
unique=`for i in $$list; do echo $$i; done | \ done | \
awk ' { files[$$0] = 1; } \ $(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \ END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \ mkid -fID $$unique
&& mkid -f$$here/ID $$unique $(LISP) tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \ tags=; \
here=`pwd`; \ here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \ list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \ if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \ fi; \
done; \ done; \
list='$(SOURCES) $(HEADERS)'; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do echo $$i; done | \ unique=`for i in $$list; do \
awk ' { files[$$0] = 1; } \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \ END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
mostlyclean-tags: $$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
clean-tags: GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags: distclean-tags:
-rm -f TAGS ID -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
maintainer-clean-tags:
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES) distdir: $(DISTFILES)
-rm -rf $(distdir) $(am__remove_distdir)
mkdir $(distdir) mkdir $(distdir)
-chmod 777 $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/..
here=`cd $(top_builddir) && pwd`; \ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
top_distdir=`cd $(distdir) && pwd`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
distdir=`cd $(distdir) && pwd`; \ list='$(DISTFILES)'; for file in $$list; do \
cd $(top_srcdir) \ case $$file in \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
@for file in $(DISTFILES); do \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
d=$(srcdir); \ esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkdir_p) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \ if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \ else \
test -f $(distdir)/$$file \ test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file || :; \ || exit 1; \
fi; \ fi; \
done done
for subdir in $(SUBDIRS); do \ list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \ if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \ test -d "$(distdir)/$$subdir" \
|| mkdir $(distdir)/$$subdir \ || mkdir "$(distdir)/$$subdir" \
|| exit 1; \ || exit 1; \
chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ $(MAKE) $(AM_MAKEFLAGS) \
top_distdir="../$(top_distdir)" \
distdir="../$(distdir)/$$subdir" \
distdir) \
|| exit 1; \ || exit 1; \
fi; \ fi; \
done done
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
dist-gzip: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist-tarZ: distdir
$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
$(am__remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__remove_distdir)
dist dist-all: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
*.tar.bz2*) \
bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& cd $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
$(am__remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
distuninstallcheck:
@cd $(distuninstallcheck_dir) \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile $(LTLIBRARIES) all-multi $(HEADERS) config.h
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(toolexeclibdir)" "$(DESTDIR)$(includedir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-include $(DEP_FILES) installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
mostlyclean-depend: clean-generic:
clean-depend: distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
distclean-depend: maintainer-clean-generic:
-rm -rf .deps @echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-multi clean-recursive
maintainer-clean-depend: clean-am: clean-generic clean-libtool clean-local \
clean-toolexeclibLTLIBRARIES mostlyclean-am
%.o: %.c distclean: distclean-multi distclean-recursive
@echo '$(COMPILE) -c $<'; \ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< -rm -rf ./$(DEPDIR)
@-cp .deps/$(*F).pp .deps/$(*F).P; \ -rm -f Makefile
tr ' ' '\012' < .deps/$(*F).pp \ distclean-am: clean-am distclean-compile distclean-generic \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ distclean-hdr distclean-libtool distclean-tags
>> .deps/$(*F).P; \
rm .deps/$(*F).pp
%.lo: %.c
@echo '$(LTCOMPILE) -c $<'; \
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
< .deps/$(*F).pp > .deps/$(*F).P; \
tr ' ' '\012' < .deps/$(*F).pp \
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
>> .deps/$(*F).P; \
rm -f .deps/$(*F).pp
info-am:
info: info-recursive
dvi-am:
dvi: dvi-recursive dvi: dvi-recursive
check-am: all-am
check: check-recursive
installcheck-am:
installcheck: installcheck-recursive
all-recursive-am: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
install-exec-am: install-libLTLIBRARIES dvi-am:
install-exec: install-exec-recursive
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-includeHEADERS install-data-am: install-includeHEADERS
install-data: install-data-recursive
install-am: all-am install-exec-am: install-multi install-toolexeclibLTLIBRARIES
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS
uninstall: uninstall-recursive
all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
all-redirect: all-recursive-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs: installdirs-recursive
installdirs-am:
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
install-info: install-info-recursive
mostlyclean-generic: install-man:
clean-generic: installcheck-am:
distclean-generic: maintainer-clean: maintainer-clean-multi maintainer-clean-recursive
-rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]* -rm -rf $(top_srcdir)/autom4te.cache
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
maintainer-clean-generic: mostlyclean: mostlyclean-multi mostlyclean-recursive
mostlyclean-am: mostlyclean-hdr mostlyclean-libLTLIBRARIES \
mostlyclean-compile mostlyclean-libtool \
mostlyclean-tags mostlyclean-depend mostlyclean-generic
mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
clean-am: clean-hdr clean-libLTLIBRARIES clean-compile clean-libtool \ pdf: pdf-recursive
clean-tags clean-depend clean-generic mostlyclean-am \
clean-local
clean: clean-recursive pdf-am:
distclean-am: distclean-hdr distclean-libLTLIBRARIES distclean-compile \ ps: ps-recursive
distclean-libtool distclean-tags distclean-depend \
distclean-generic clean-am
-rm -f libtool
distclean: distclean-recursive ps-am:
-rm -f config.status
maintainer-clean-am: maintainer-clean-hdr \ uninstall-am: uninstall-includeHEADERS uninstall-info-am \
maintainer-clean-libLTLIBRARIES \ uninstall-toolexeclibLTLIBRARIES
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-tags maintainer-clean-depend \ uninstall-info: uninstall-info-recursive
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-multi \
-rm -f config.status am--refresh check check-am clean clean-generic clean-libtool \
clean-local clean-multi clean-recursive \
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist \
mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \ dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \ distcheck distclean distclean-compile distclean-generic \
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \ distclean-hdr distclean-libtool distclean-multi \
distclean-compile clean-compile maintainer-clean-compile \ distclean-recursive distclean-tags distcleancheck distdir \
mostlyclean-libtool distclean-libtool clean-libtool \ distuninstallcheck dvi dvi-am html html-am info info-am \
maintainer-clean-libtool uninstall-includeHEADERS \ install install-am install-data install-data-am install-exec \
install-includeHEADERS install-data-recursive uninstall-data-recursive \ install-exec-am install-includeHEADERS install-info \
install-exec-recursive uninstall-exec-recursive installdirs-recursive \ install-info-am install-man install-multi install-strip \
uninstalldirs-recursive all-recursive check-recursive \ install-toolexeclibLTLIBRARIES installcheck installcheck-am \
installcheck-recursive info-recursive dvi-recursive \ installdirs installdirs-am maintainer-clean \
mostlyclean-recursive distclean-recursive clean-recursive \ maintainer-clean-generic maintainer-clean-multi \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ maintainer-clean-recursive mostlyclean mostlyclean-compile \
distclean-tags clean-tags maintainer-clean-tags distdir \ mostlyclean-generic mostlyclean-libtool mostlyclean-multi \
mostlyclean-depend distclean-depend clean-depend \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
maintainer-clean-depend info-am info dvi-am dvi check check-am \ uninstall uninstall-am uninstall-includeHEADERS \
installcheck-am installcheck all-recursive-am install-exec-am \ uninstall-info-am uninstall-toolexeclibLTLIBRARIES
install-exec install-data-am install-data install-am install \
uninstall-am uninstall all-redirect all-am all installdirs-am \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
$(HOOK1OBJS): mf-hooks1.c mf-runtime.h mf-impl.h $(HOOK1OBJS): mf-hooks1.c mf-runtime.h mf-impl.h
...@@ -913,7 +1166,6 @@ distclean-multi: ...@@ -913,7 +1166,6 @@ distclean-multi:
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
maintainer-clean-multi: maintainer-clean-multi:
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: .NOEXPORT:
dnl aclocal.m4 generated automatically by aclocal 1.4 # generated automatically by aclocal 1.8.5 -*- Autoconf -*-
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
dnl This file is free software; the Free Software Foundation # Free Software Foundation, Inc.
dnl gives unlimited permission to copy and/or distribute it, # This file is free software; the Free Software Foundation
dnl with or without modifications, as long as this notice is preserved. # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without # This program is distributed in the hope that it will be useful,
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl PARTICULAR PURPOSE. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# serial 46 AC_PROG_LIBTOOL # -*- Autoconf -*-
AC_DEFUN([AC_PROG_LIBTOOL], # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl # Generated from amversion.in; do not edit by hand.
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. # This program is free software; you can redistribute it and/or modify
AC_PROVIDE_IFELSE([AC_PROG_CXX], # it under the terms of the GNU General Public License as published by
[AC_LIBTOOL_CXX], # the Free Software Foundation; either version 2, or (at your option)
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX # any later version.
])])
# This program is distributed in the hope that it will be useful,
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. # but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. # GNU General Public License for more details.
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
[AC_LIBTOOL_GCJ], # You should have received a copy of the GNU General Public License
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], # along with this program; if not, write to the Free Software
[AC_LIBTOOL_GCJ], # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
[AC_LIBTOOL_GCJ], # AM_AUTOMAKE_VERSION(VERSION)
[ifdef([AC_PROG_GCJ], # ----------------------------
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ # Automake X.Y traces this macro to ensure aclocal.m4 has been
])]) # generated from the m4 files accompanying Automake X.Y.
ifdef([A][M_PROG_GCJ], AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ
])]) # AM_SET_CURRENT_AUTOMAKE_VERSION
ifdef([LT_AC_PROG_GCJ], # -------------------------------
[define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ # Call AM_AUTOMAKE_VERSION so it can be traced.
])])])])])]) # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
AC_DEFUN([_AC_PROG_LIBTOOL], [AM_AUTOMAKE_VERSION([1.8.5])])
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl # AM_AUX_DIR_EXPAND
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE # 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
# Actually configure libtool. ac_aux_dir is where install-sh is found. # the Free Software Foundation; either version 2, or (at your option)
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ # any later version.
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ # This program is distributed in the hope that it will be useful,
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ # but WITHOUT ANY WARRANTY; without even the implied warranty of
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ # GNU General Public License for more details.
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ # You should have received a copy of the GNU General Public License
|| AC_MSG_ERROR([libtool configure failed]) # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# Reload cache, that may have been modified by ltconfig # 02111-1307, USA.
AC_CACHE_LOAD
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
# This can be used to rebuild libtool when needed # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
#
# Always use our own libtool. # Of course, Automake must honor this variable whenever it calls a
LIBTOOL='$(SHELL) $(top_builddir)/libtool' # tool from the auxiliary directory. The problem is that $srcdir (and
AC_SUBST(LIBTOOL)dnl # therefore $ac_aux_dir as well) can be either absolute or relative,
# depending on how configure is run. This is pretty annoying, since
# Redirect the config.log output again, so that the ltconfig log is not # it makes $ac_aux_dir quite unusable in subdirectories: in the top
# clobbered by the next message. # source directory, any form will work fine, but in subdirectories a
exec 5>>./config.log # relative path needs to be adjusted first.
#
# $ac_aux_dir/missing
# fails when called from a subdirectory if $ac_aux_dir is relative
# $top_srcdir/$ac_aux_dir/missing
# fails if $ac_aux_dir is absolute,
# fails when called from a subdirectory in a VPATH build with
# a relative $ac_aux_dir
#
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
# are both prefixed by $srcdir. In an in-source build this is usually
# harmless because $srcdir is `.', but things will broke when you
# start a VPATH build or use an absolute $srcdir.
#
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
# and then we would define $MISSING as
# MISSING="\${SHELL} $am_aux_dir/missing"
# This will work as long as MISSING is not called from configure, because
# unfortunately $(top_srcdir) has no meaning in configure.
# However there are other variables, like CC, which are often used in
# configure, and could therefore not use this "fixed" $ac_aux_dir.
#
# Another solution, used here, is to always expand $ac_aux_dir to an
# absolute PATH. The drawback is that using absolute paths prevent a
# configured tree to be moved without reconfiguration.
AC_DEFUN([AM_AUX_DIR_EXPAND],
[dnl Rely on autoconf to set up CDPATH properly.
AC_PREREQ([2.50])dnl
# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
]) ])
AC_DEFUN([AC_LIBTOOL_SETUP], # AM_CONDITIONAL -*- Autoconf -*-
[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_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
AC_REQUIRE([AC_OBJEXT])dnl
AC_REQUIRE([AC_EXEEXT])dnl
dnl
# Only perform the check for file, if the check method requires it
case $deplibs_check_method in
file_magic*)
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
AC_PATH_MAGIC
fi
;;
esac
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(STRIP, strip, :)
# 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 "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$lt_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"
AC_ARG_WITH(pic,
[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
pic_mode="$withval", pic_mode=default)
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host 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.$ac_objext` in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
ia64-*-hpux*) # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
# Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then
case "`/usr/bin/file conftest.o`" in
*ELF-32*)
HPUX_IA64_MODE="32"
;;
*ELF-64*)
HPUX_IA64_MODE="64"
;;
esac
fi
rm -rf conftest*
;;
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # This program is free software; you can redistribute it and/or modify
# Find out which ABI we are using. # it under the terms of the GNU General Public License as published by
echo 'int i;' > conftest.$ac_ext # the Free Software Foundation; either version 2, or (at your option)
if AC_TRY_EVAL(ac_compile); then # any later version.
case "`/usr/bin/file conftest.o`" in
*32-bit*)
case $host in
x86_64-*linux*)
LD="${LD-ld} -m elf_i386"
;;
ppc64-*linux*)
LD="${LD-ld} -m elf32ppclinux"
;;
s390x-*linux*)
LD="${LD-ld} -m elf_s390"
;;
sparc64-*linux*)
LD="${LD-ld} -m elf32_sparc"
;;
esac
;;
*64-bit*)
case $host in
x86_64-*linux*)
LD="${LD-ld} -m elf_x86_64"
;;
ppc*-*linux*|powerpc*-*linux*)
LD="${LD-ld} -m elf64ppc"
;;
s390*-*linux*)
LD="${LD-ld} -m elf64_s390"
;;
sparc*-*linux*)
LD="${LD-ld} -m elf64_sparc"
;;
esac
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*) # This program is distributed in the hope that it will be useful,
# On SCO OpenServer 5, we need -belf to get full-featured binaries. # but WITHOUT ANY WARRANTY; without even the implied warranty of
SAVE_CFLAGS="$CFLAGS" # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
CFLAGS="$CFLAGS -belf" # GNU General Public License for more details.
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_LANG_SAVE
AC_LANG_C
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
AC_LANG_RESTORE])
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], # You should have received a copy of the GNU General Public License
[*-*-cygwin* | *-*-mingw* | *-*-pw32*) # along with this program; if not, write to the Free Software
AC_CHECK_TOOL(DLLTOOL, dlltool, false) # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
AC_CHECK_TOOL(AS, as, false) # 02111-1307, USA.
AC_CHECK_TOOL(OBJDUMP, objdump, false)
# recent cygwin and mingw systems supply a stub DllMain which the user
# can override, but on older systems we have to supply one
AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
[AC_TRY_LINK([],
[extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
DllMain (0, 0, 0);],
[lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
case $host/$CC in
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
# old mingw systems require "-dll" to link a DLL, while more recent ones
# require "-mdll"
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mdll"
AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
[AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
CFLAGS="$SAVE_CFLAGS" ;;
*-*-cygwin* | *-*-pw32*)
# cygwin systems need to pass --dll to the linker, and not link
# crt.o which will require a WinMain@16 definition.
lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
esac
;;
])
esac
])
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support # serial 6
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],
[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 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl # -------------------------------------
AC_ENABLE_SHARED(no)]) # Define a conditional.
AC_DEFUN([AM_CONDITIONAL],
# AC_ENABLE_STATIC - implement the --enable-static flag [AC_PREREQ(2.52)dnl
# Usage: AC_ENABLE_STATIC[(DEFAULT)] ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
# `yes'. AC_SUBST([$1_TRUE])
AC_DEFUN([AC_ENABLE_STATIC], AC_SUBST([$1_FALSE])
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl if $2; then
AC_ARG_ENABLE(static, $1_TRUE=
changequote(<<, >>)dnl $1_FALSE='#'
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], else
changequote([, ])dnl $1_TRUE='#'
[p=${PACKAGE-default} $1_FALSE=
case $enableval in fi
yes) enable_static=yes ;; AC_CONFIG_COMMANDS_PRE(
no) enable_static=no ;; [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
*) AC_MSG_ERROR([conditional "$1" was never defined.
enable_static=no Usually this means the macro was only invoked conditionally.])
# Look at the argument we got. We use all the common list separators. fi])])
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do # serial 7 -*- Autoconf -*-
if test "X$pkg" = "X$p"; then
enable_static=yes # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
fi # Free Software Foundation, Inc.
done
IFS="$ac_save_ifs" # 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
esac], # the Free Software Foundation; either version 2, or (at your option)
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl # 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.
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN([AC_DISABLE_STATIC], # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl # written in clear, in which case automake, when reading aclocal.m4,
AC_ENABLE_STATIC(no)]) # will think it sees a *use*, and therefore will trigger all it's
# C support machinery. Also note that it means that autoscan, seeing
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
# 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'. # _AM_DEPENDENCIES(NAME)
AC_DEFUN([AC_ENABLE_FAST_INSTALL], # ----------------------
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl # See how the compiler implements dependency checking.
AC_ARG_ENABLE(fast-install, # NAME is "CC", "CXX", "GCJ", or "OBJC".
changequote(<<, >>)dnl # We try a few techniques and use that to set a single cache variable.
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], #
changequote([, ])dnl # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
[p=${PACKAGE-default} # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
case $enableval in # dependency, and given that the user is not expected to run this macro,
yes) enable_fast_install=yes ;; # just rely on AC_PROG_CC.
no) enable_fast_install=no ;; AC_DEFUN([_AM_DEPENDENCIES],
*) [AC_REQUIRE([AM_SET_DEPDIR])dnl
enable_fast_install=no AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
# Look at the argument we got. We use all the common list separators. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," AC_REQUIRE([AM_DEP_TRACK])dnl
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
enable_fast_install=yes [$1], CXX, [depcc="$CXX" am_compiler_list=],
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
[depcc="$$1" am_compiler_list=])
AC_CACHE_CHECK([dependency style of $depcc],
[am_cv_$1_dependencies_compiler_type],
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cp "$am_depcomp" conftest.dir
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
am_cv_$1_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
fi fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
# Solaris 8's {/usr,}/bin/sh.
touch sub/conftst$i.h
done done
IFS="$ac_save_ifs" echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
;;
esac], case $depmode in
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl nosideeffect)
]) # after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install if test "x$enable_dependency_tracking" = xyes; then
AC_DEFUN([AC_DISABLE_FAST_INSTALL], continue
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_FAST_INSTALL(no)])
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
# Where MODE is either `yes' or `no'. If omitted, it defaults to
# `both'.
AC_DEFUN([AC_LIBTOOL_PICMODE],
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
pic_mode=ifelse($#,1,$1,default)])
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
AC_DEFUN([AC_PATH_TOOL_PREFIX],
[AC_MSG_CHECKING([for $1])
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
[case $MAGIC_CMD in
/*)
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
;;
?:/*)
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
;;
*)
ac_save_MAGIC_CMD="$MAGIC_CMD"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
dnl $ac_dummy forces splitting on constant user-supplied paths.
dnl POSIX.2 word splitting is done only on the output of word expansions,
dnl not every word. This closes a longstanding sh security hole.
ac_dummy="ifelse([$2], , $PATH, [$2])"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$1; then
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
if test -n "$file_magic_test_file"; then
case $deplibs_check_method in
"file_magic "*)
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
egrep "$file_magic_regex" > /dev/null; then
:
else else
cat <<EOF 1>&2 break
*** Warning: the command libtool uses to detect shared libraries,
*** $file_magic_cmd, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org
EOF
fi ;;
esac
fi fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
if depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
if (grep 'ignoring option' conftest.err ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
am_cv_$1_dependencies_compiler_type=$depmode
break break
fi fi
fi
done done
IFS="$ac_save_ifs"
MAGIC_CMD="$ac_save_MAGIC_CMD" cd ..
;; rm -rf conftest.dir
esac])
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
if test -n "$MAGIC_CMD"; then
AC_MSG_RESULT($MAGIC_CMD)
else else
AC_MSG_RESULT(no) am_cv_$1_dependencies_compiler_type=none
fi fi
]) ])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
# AC_PATH_MAGIC - find a file program which can recognise a shared library # AM_SET_DEPDIR
AC_DEFUN([AC_PATH_MAGIC], # -------------
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl # Choose a directory name for dependency files.
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) # This macro is AC_REQUIREd in _AM_DEPENDENCIES
if test -z "$lt_cv_path_MAGIC_CMD"; then AC_DEFUN([AM_SET_DEPDIR],
if test -n "$ac_tool_prefix"; then [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
else
MAGIC_CMD=:
fi
fi
]) ])
# AC_PROG_LD - find the path to the GNU or non-GNU linker # AM_DEP_TRACK
AC_DEFUN([AC_PROG_LD], # ------------
[AC_ARG_WITH(gnu-ld, AC_DEFUN([AM_DEP_TRACK],
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], [AC_ARG_ENABLE(dependency-tracking,
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) [ --disable-dependency-tracking speeds up one-time build
AC_REQUIRE([AC_PROG_CC])dnl --enable-dependency-tracking do not reject slow dependency extractors])
AC_REQUIRE([AC_CANONICAL_HOST])dnl if test "x$enable_dependency_tracking" != xno; then
AC_REQUIRE([AC_CANONICAL_BUILD])dnl am_depcomp="$ac_aux_dir/depcomp"
ac_prog=ld AMDEPBACKSLASH='\'
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
case $host in
*-*-mingw*)
# gcc leaves a trailing carriage return which upsets mingw
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
*)
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]* | [A-Za-z]:[\\/]*)]
re_direlt=['/[^/][^/]*/\.\./']
# 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 fi
AC_CACHE_VAL(lt_cv_path_LD, AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
[if test -z "$LD"; then AC_SUBST([AMDEPBACKSLASH])
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" ])
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=. # Generate code to set up dependency tracking. -*- Autoconf -*-
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
lt_cv_path_LD="$ac_dir/$ac_prog" # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v. # This program is free software; you can redistribute it and/or modify
# Break only if it was the GNU/non-GNU ld that we prefer. # it under the terms of the GNU General Public License as published by
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then # the Free Software Foundation; either version 2, or (at your option)
test "$with_gnu_ld" != no && break # 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.
#serial 2
# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
[for mf in $CONFIG_FILES; do
# Strip MF so we end up with the name of the file.
mf=`echo "$mf" | sed -e 's/:.*$//'`
# Check whether this is an Automake generated Makefile or not.
# We used to match only the files named `Makefile.in', but
# some people rename them; so instead we look at the file content.
# Grep'ing the first line is not enough: some people post-process
# each Makefile.in and add a new line on top of each file to say so.
# So let's grep whole file.
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
dirpart=`AS_DIRNAME("$mf")`
else else
test "$with_gnu_ld" != yes && break continue
fi
fi fi
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
# Extract the definition of DEP_FILES from the Makefile without
# running `make'.
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
# When using ansi2knr, U may be empty or an underscore; expand it
U=`sed -n 's/^U = //p' < "$mf"`
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
# We invoke sed twice because it is the simplest approach to
# changing $(DEPDIR) to its actual value in the expansion.
for file in `sed -n '
/^DEP_FILES = .*\\\\$/ {
s/^DEP_FILES = //
:loop
s/\\\\$//
p
n
/\\\\$/ b loop
p
}
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
# Make sure the directory exists.
test -f "$dirpart/$file" && continue
fdir=`AS_DIRNAME(["$file"])`
AS_MKDIR_P([$dirpart/$fdir])
# echo "creating $dirpart/$file"
echo '# dummy' > "$dirpart/$file"
done done
IFS="$ac_save_ifs" done
else ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$lt_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], lt_cv_prog_gnu_ld, # AM_OUTPUT_DEPENDENCY_COMMANDS
[# 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 # This macro should only be invoked once -- use via AC_REQUIRE.
lt_cv_prog_gnu_ld=yes #
else # This code is only required when automatic dependency tracking
lt_cv_prog_gnu_ld=no # is enabled. FIXME. This creates each `.P' file that we will
fi]) # need in order to bootstrap the dependency handling code.
with_gnu_ld=$lt_cv_prog_gnu_ld AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AC_CONFIG_COMMANDS([depfiles],
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
]) ])
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
# -- PORTME Some linkers may need a different reload flag.
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
[lt_cv_ld_reload_flag='-r']) # This program is free software; you can redistribute it and/or modify
reload_flag=$lt_cv_ld_reload_flag # it under the terms of the GNU General Public License as published by
test -n "$reload_flag" && reload_flag=" $reload_flag" # 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.
# serial 7
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
# Do all the work for Automake. -*- Autoconf -*-
# This macro actually does too much some checks are only needed if
# your package does certain things. But this isn't really a big deal.
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 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.
# serial 11
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
# AM_INIT_AUTOMAKE([OPTIONS])
# -----------------------------------------------
# The call with PACKAGE and VERSION arguments is the old style
# call (pre autoconf-2.50), which is being phased out. PACKAGE
# and VERSION should now be passed to AC_INIT and removed from
# the call to AM_INIT_AUTOMAKE.
# We support both call styles for the transition. After
# the next Automake release, Autoconf can make the AC_INIT
# arguments mandatory, and then we can depend on a new Autoconf
# release and drop the old call support.
AC_DEFUN([AM_INIT_AUTOMAKE],
[AC_PREREQ([2.58])dnl
dnl Autoconf wants to disallow AM_ names. We explicitly allow
dnl the ones we care about.
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
AC_REQUIRE([AC_PROG_INSTALL])dnl
# test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
AC_SUBST([PACKAGE], [$1])dnl
AC_SUBST([VERSION], [$2])],
[_AM_SET_OPTIONS([$1])dnl
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
_AM_IF_OPTION([no-define],,
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
# Some tools Automake needs.
AC_REQUIRE([AM_SANITY_CHECK])dnl
AC_REQUIRE([AC_ARG_PROGRAM])dnl
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
AM_MISSING_PROG(AUTOCONF, autoconf)
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
AM_MISSING_PROG(AUTOHEADER, autoheader)
AM_MISSING_PROG(MAKEINFO, makeinfo)
AM_MISSING_PROG(AMTAR, tar)
AM_PROG_INSTALL_SH
AM_PROG_INSTALL_STRIP
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
])
]) ])
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
# -- PORTME fill in with the dynamic library characteristics
# Don't cache this sucker.
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
[AC_MSG_CHECKING([how to recognise dependant libraries])
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [regex]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
case $host_os in
aix*)
lt_cv_deplibs_check_method=pass_all
;;
beos*) # When config.status generates a header, we must update the stamp-h file.
lt_cv_deplibs_check_method=pass_all # This file resides in the same directory as the config header
;; # that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[# Compute $1's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
case $_am_header in
$1 | $1:* )
break ;;
* )
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
esac
done
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
bsdi4*) # AM_PROG_INSTALL_SH
lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'] # ------------------
lt_cv_file_magic_cmd='/usr/bin/file -L' # Define $install_sh.
lt_cv_file_magic_test_file=/shlib/libc.so
;;
cygwin* | mingw* |pw32*) # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
lt_cv_file_magic_cmd='$OBJDUMP -f'
;;
darwin* | rhapsody*) # This program is free software; you can redistribute it and/or modify
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' # it under the terms of the GNU General Public License as published by
lt_cv_file_magic_cmd='/usr/bin/file -L' # the Free Software Foundation; either version 2, or (at your option)
case "$host_os" in # any later version.
rhapsody* | darwin1.[012])
lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
;;
*) # Darwin 1.3 on
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
;;
esac
;;
freebsd* ) # This program is distributed in the hope that it will be useful,
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then # but WITHOUT ANY WARRANTY; without even the implied warranty of
case $host_cpu in # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
i*86 ) # GNU General Public License for more details.
# Not sure whether the presence of OpenBSD here was a mistake.
# Let's accept both of them until this is cleared up.
lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;;
esac
else
lt_cv_deplibs_check_method=pass_all
fi
;;
gnu*) # You should have received a copy of the GNU General Public License
lt_cv_deplibs_check_method=pass_all # along with this program; if not, write to the Free Software
;; # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
hpux10.20*|hpux11*) AC_DEFUN([AM_PROG_INSTALL_SH],
case $host_cpu in [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
hppa*) install_sh=${install_sh-"$am_aux_dir/install-sh"}
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] AC_SUBST(install_sh)])
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
ia64*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64']
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
;;
esac
;;
irix5* | irix6*) # -*- Autoconf -*-
case $host_os in # Copyright (C) 2003 Free Software Foundation, Inc.
irix5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
*)
case $LD in
*-32|*"-32 ") libmagic=32-bit;;
*-n32|*"-n32 ") libmagic=N32;;
*-64|*"-64 ") libmagic=64-bit;;
*) libmagic=never-match;;
esac
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
;;
esac
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
lt_cv_deplibs_check_method=pass_all
;;
# This must be Linux ELF. # This program is free software; you can redistribute it and/or modify
linux-gnu*) # it under the terms of the GNU General Public License as published by
case $host_cpu in # the Free Software Foundation; either version 2, or (at your option)
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64* | sh*) # any later version.
lt_cv_deplibs_check_method=pass_all ;;
# NB 2003-06-03: According to Alexandre Oliva, x86_64 should not be
# in this list. However, it works around a libtool problem that
# wrongly excludes -ldl/-lpthread from the libmudflap(th) dependencies.
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
netbsd*) # This program is distributed in the hope that it will be useful,
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then # but WITHOUT ANY WARRANTY; without even the implied warranty of
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
else # GNU General Public License for more details.
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
fi
;;
newsos6) # You should have received a copy of the GNU General Public License
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] # along with this program; if not, write to the Free Software
lt_cv_file_magic_cmd=/usr/bin/file # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
lt_cv_file_magic_test_file=/usr/lib/libnls.so # 02111-1307, USA.
;;
osf3* | osf4* | osf5*) # serial 1
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
lt_cv_file_magic_test_file=/shlib/libc.so
lt_cv_deplibs_check_method=pass_all
;;
sco3.2v5*) # Check whether the underlying file-system supports filenames
lt_cv_deplibs_check_method=pass_all # with a leading dot. For instance MS-DOS doesn't.
;; AC_DEFUN([AM_SET_LEADING_DOT],
[rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
am__leading_dot=.
else
am__leading_dot=_
fi
rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])])
solaris*) # Add --enable-maintainer-mode option to configure.
lt_cv_deplibs_check_method=pass_all # From Jim Meyering
lt_cv_file_magic_test_file=/lib/libc.so
;;
[sysv5uw[78]* | sysv4*uw2*)] # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
lt_cv_deplibs_check_method=pass_all # Free Software Foundation, Inc.
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) # This program is free software; you can redistribute it and/or modify
case $host_vendor in # it under the terms of the GNU General Public License as published by
ncr) # the Free Software Foundation; either version 2, or (at your option)
lt_cv_deplibs_check_method=pass_all # any later version.
;;
motorola)
lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
;;
esac
;;
esac
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
# NB: See above NB ... this is to make sure that the overriden
# local libtool variant doesn't pollute the upstream cache
unset lt_cv_file_magic_cmd
unset lt_cv_deplibs_check_method
AC_MSG_RESULT($deplibs_check_method)
])
# 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.
# AC_PROG_NM - find the path to a BSD-compatible name lister # You should have received a copy of the GNU General Public License
AC_DEFUN([AC_PROG_NM], # along with this program; if not, write to the Free Software
[AC_MSG_CHECKING([for BSD-compatible nm]) # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
AC_CACHE_VAL(lt_cv_path_NM, # 02111-1307, USA.
[if test -n "$NM"; then
# Let the user override the test.
lt_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=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm
if test -f $tmp_nm || test -f $tmp_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
# Tru64's nm complains that /dev/null is an invalid object file
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
lt_cv_path_NM="$tmp_nm -B"
break
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
lt_cv_path_NM="$tmp_nm -p"
break
else
lt_cv_path_NM=${lt_cv_path_NM="$tmp_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 "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi])
NM="$lt_cv_path_NM"
AC_MSG_RESULT([$NM])
])
# AC_CHECK_LIBM - check for math library # serial 3
AC_DEFUN([AC_CHECK_LIBM],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
case $host in
*-*-beos* | *-*-cygwin* | *-*-pw32*)
# 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 AC_DEFUN([AM_MAINTAINER_MODE],
# the libltdl convenience library and INCLTDL to the include flags for [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
# the libltdl header and adds --enable-ltdl-convenience to the dnl maintainer-mode is disabled by default
# configure arguments. Note that LIBLTDL and INCLTDL are not AC_ARG_ENABLE(maintainer-mode,
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not [ --enable-maintainer-mode enable make rules and dependencies not useful
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed (and sometimes confusing) to the casual installer],
# with '${top_builddir}/' and INCLTDL will be prefixed with USE_MAINTAINER_MODE=$enableval,
# '${top_srcdir}/' (note the single quotes!). If your package is not USE_MAINTAINER_MODE=no)
# flat and you're not using automake, define top_builddir and AC_MSG_RESULT([$USE_MAINTAINER_MODE])
# top_srcdir appropriately in the Makefiles. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
AC_DEFUN([AC_LIBLTDL_CONVENIENCE], MAINT=$MAINTAINER_MODE_TRUE
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_SUBST(MAINT)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='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
# the libltdl installable library and INCLTDL to the include flags for
# the libltdl header and adds --enable-ltdl-install to the configure # Check to see how 'make' treats includes. -*- Autoconf -*-
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed # This program is free software; you can redistribute it and/or modify
# with '${top_srcdir}/' (note the single quotes!). If your package is # it under the terms of the GNU General Public License as published by
# not flat and you're not using automake, define top_builddir and # the Free Software Foundation; either version 2, or (at your option)
# top_srcdir appropriately in the Makefiles. # any later version.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN([AC_LIBLTDL_INSTALLABLE], # This program is distributed in the hope that it will be useful,
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl # but WITHOUT ANY WARRANTY; without even the implied warranty of
AC_CHECK_LIB(ltdl, main, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], # GNU General Public License for more details.
[if test x"$enable_ltdl_install" = xno; then
AC_MSG_WARN([libltdl not installed, but installation disabled]) # You should have received a copy of the GNU General Public License
else # along with this program; if not, write to the Free Software
enable_ltdl_install=yes # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
fi # 02111-1307, USA.
])
if test x"$enable_ltdl_install" = x"yes"; then # serial 2
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la # AM_MAKE_INCLUDE()
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # -----------------
else # Check to see how make treats includes.
ac_configure_args="$ac_configure_args --enable-ltdl-install=no" AC_DEFUN([AM_MAKE_INCLUDE],
LIBLTDL="-lltdl" [am_make=${MAKE-make}
INCLTDL= cat > confinc << 'END'
am__doit:
@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
AC_MSG_CHECKING([for style of include used by $am_make])
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
echo '.include "confinc"' > confmf
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
am__include=.include
am__quote="\""
_am_result=BSD
fi fi
fi
AC_SUBST([am__include])
AC_SUBST([am__quote])
AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
]) ])
# If this macro is not defined by Autoconf, define it here. # -*- Autoconf -*-
ifdef([AC_PROVIDE_IFELSE],
[],
[define([AC_PROVIDE_IFELSE],
[ifdef([AC_PROVIDE_$1],
[$2], [$3])])])
# AC_LIBTOOL_CXX - enable support for C++ libraries
AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])])
AC_DEFUN([_AC_LIBTOOL_CXX],
[AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AC_PROG_CXXCPP])
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
lt_save_CC="$CC"
lt_save_CFLAGS="$CFLAGS"
dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
dnl is set to the C++ compiler.
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" \
file_magic_cmd="$file_magic_cmd" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|| AC_MSG_ERROR([libtool tag configuration failed])
CC="$lt_save_CC"
CFLAGS="$lt_save_CFLAGS"
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
# AC_LIBTOOL_GCJ - enable support for GCJ libraries
AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])])
AC_DEFUN([_AC_LIBTOOL_GCJ],
[AC_REQUIRE([AC_PROG_LIBTOOL])
AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
lt_save_CC="$CC"
lt_save_CFLAGS="$CFLAGS"
dnl Make sure LTCC is set to the C compiler, i.e. set LTCC before CC
dnl is set to the C++ compiler.
AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
deplibs_check_method="$deplibs_check_method" \
file_magic_cmd="$file_magic_cmd" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
|| AC_MSG_ERROR([libtool tag configuration failed])
CC="$lt_save_CC"
CFLAGS="$lt_save_CFLAGS"
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
dnl old names # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl
AC_DEFUN([LT_AC_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj, no)
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
AC_SUBST(GCJFLAGS)
])
# Do all the work for Automake. This macro actually does too much -- # This program is free software; you can redistribute it and/or modify
# some checks are only needed if your package does certain things. # it under the terms of the GNU General Public License as published by
# But this isn't really a big deal. # the Free Software Foundation; either version 2, or (at your option)
# any later version.
# serial 1 # 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.
dnl Usage: # You should have received a copy of the GNU General Public License
dnl AM_INIT_AUTOMAKE(package,version, [no-define]) # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
AC_DEFUN(AM_INIT_AUTOMAKE, # 02111-1307, USA.
[AC_REQUIRE([AC_PROG_INSTALL])
PACKAGE=[$1] # serial 3
AC_SUBST(PACKAGE)
VERSION=[$2] # AM_MISSING_PROG(NAME, PROGRAM)
AC_SUBST(VERSION) # ------------------------------
dnl test to see if srcdir already configured AC_DEFUN([AM_MISSING_PROG],
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then [AC_REQUIRE([AM_MISSING_HAS_RUN])
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) $1=${$1-"${am_missing_run}$2"}
AC_SUBST($1)])
# AM_MISSING_HAS_RUN
# ------------------
# Define MISSING if not defined so far and test if it supports --run.
# If it does, set am_missing_run to use it, otherwise, to nothing.
AC_DEFUN([AM_MISSING_HAS_RUN],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run "
else
am_missing_run=
AC_MSG_WARN([`missing' script is too old or missing])
fi
])
# AM_PROG_MKDIR_P
# ---------------
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
# Copyright (C) 2003, 2004 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.
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
# created by `make install' are always world readable, even if the
# installer happens to have an overly restrictive umask (e.g. 077).
# This was a mistake. There are at least two reasons why we must not
# use `-m 0755':
# - it causes special bits like SGID to be ignored,
# - it may be too restrictive (some setups expect 775 directories).
#
# Do not use -m 0755 and let people choose whatever they expect by
# setting umask.
#
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
# Some implementations (such as Solaris 8's) are not thread-safe: if a
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
# concurrently, both version can detect that a/ is missing, but only
# one can create it and the other will error out. Consequently we
# restrict ourselves to GNU make (using the --version option ensures
# this.)
AC_DEFUN([AM_PROG_MKDIR_P],
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
# Keeping the `.' argument allows $(mkdir_p) to be used without
# argument. Indeed, we sometimes output rules like
# $(mkdir_p) $(somedir)
# where $(somedir) is conditionally defined.
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
# expensive solution, as it forces Make to start a sub-shell.)
mkdir_p='mkdir -p -- .'
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
for d in ./-p ./--version;
do
test -d $d && rmdir $d
done
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
if test -f "$ac_aux_dir/mkinstalldirs"; then
mkdir_p='$(mkinstalldirs)'
else
mkdir_p='$(install_sh) -d'
fi
fi
AC_SUBST([mkdir_p])])
# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
# 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.
# serial 4
# AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
# ---------------------------------------------------
# Add --enable-multilib to configure.
AC_DEFUN([AM_ENABLE_MULTILIB],
[# Default to --enable-multilib
AC_ARG_ENABLE(multilib,
[ --enable-multilib build many library versions (default)],
[case "$enableval" in
yes) multilib=yes ;;
no) multilib=no ;;
*) AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
esac],
[multilib=yes])
# We may get other options which we leave undocumented:
# --with-target-subdir, --with-multisrctop, --with-multisubdir
# See config-ml.in if you want the gory details.
if test "$srcdir" = "."; then
if test "$with_target_subdir" != "."; then
multi_basedir="$srcdir/$with_multisrctop../$2"
else
multi_basedir="$srcdir/$with_multisrctop$2"
fi
else
multi_basedir="$srcdir/$2"
fi fi
ifelse([$3],, AC_SUBST(multi_basedir)
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) AC_OUTPUT_COMMANDS([
AC_REQUIRE([AM_SANITY_CHECK]) # Only add multilib support code if we just rebuilt the top-level
AC_REQUIRE([AC_ARG_PROGRAM]) # Makefile.
dnl FIXME This is truly gross. case " $CONFIG_FILES " in
missing_dir=`cd $ac_aux_dir && pwd` *" ]m4_default([$1],Makefile)[ "*)
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) ;;
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) esac],
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) [
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) srcdir="$srcdir"
AC_REQUIRE([AC_PROG_MAKE_SET])]) host="$host"
target="$target"
with_multisubdir="$with_multisubdir"
with_multisrctop="$with_multisrctop"
with_target_subdir="$with_target_subdir"
ac_configure_args="${multilib_arg} ${ac_configure_args}"
multi_basedir="$multi_basedir"
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
CC="$CC"])])dnl
# Helper functions for option handling. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 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.
# serial 2
# _AM_MANGLE_OPTION(NAME)
# -----------------------
AC_DEFUN([_AM_MANGLE_OPTION],
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
# _AM_SET_OPTION(NAME)
# ------------------------------
# Set option NAME. Presently that only means defining a flag for this option.
AC_DEFUN([_AM_SET_OPTION],
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
# _AM_SET_OPTIONS(OPTIONS)
# ----------------------------------
# OPTIONS is a space-separated list of Automake options.
AC_DEFUN([_AM_SET_OPTIONS],
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
# -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
# #
# Check to make sure that the build environment is sane. # Check to make sure that the build environment is sane.
# #
AC_DEFUN(AM_SANITY_CHECK, # Copyright (C) 1996, 1997, 2000, 2001, 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.
# serial 3
# AM_SANITY_CHECK
# ---------------
AC_DEFUN([AM_SANITY_CHECK],
[AC_MSG_CHECKING([whether build environment is sane]) [AC_MSG_CHECKING([whether build environment is sane])
# Just in case # Just in case
sleep 1 sleep 1
echo timestamp > conftestfile echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's # Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a # arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks # symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing # (eg FreeBSD returns the mod time of the symlink's containing
# directory). # directory).
if ( if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "[$]*" = "X"; then if test "$[*]" = "X"; then
# -L didn't work. # -L didn't work.
set X `ls -t $srcdir/configure conftestfile` set X `ls -t $srcdir/configure conftest.file`
fi fi
if test "[$]*" != "X $srcdir/configure conftestfile" \ rm -f conftest.file
&& test "[$]*" != "X conftestfile $srcdir/configure"; then if test "$[*]" != "X $srcdir/configure conftest.file" \
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen # If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a # if, for instance, CONFIG_SHELL is bash and it inherits a
...@@ -980,7 +989,7 @@ if ( ...@@ -980,7 +989,7 @@ if (
alias in your environment]) alias in your environment])
fi fi
test "[$]2" = conftestfile test "$[2]" = conftest.file
) )
then then
# Ok. # Ok.
...@@ -989,78 +998,45 @@ else ...@@ -989,78 +998,45 @@ else
AC_MSG_ERROR([newly created file is older than distributed files! AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock]) Check your system clock])
fi fi
rm -f conftest*
AC_MSG_RESULT(yes)]) AC_MSG_RESULT(yes)])
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) # AM_PROG_INSTALL_STRIP
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG, # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if # This program is free software; you can redistribute it and/or modify
# an executable is not found, even if stderr is redirected. # it under the terms of the GNU General Public License as published by
# Redirect stdin to placate older versions of autoconf. Sigh. # the Free Software Foundation; either version 2, or (at your option)
if ($2 --version) < /dev/null > /dev/null 2>&1; then # any later version.
$1=$2
AC_MSG_RESULT(found) # This program is distributed in the hope that it will be useful,
else # but WITHOUT ANY WARRANTY; without even the implied warranty of
$1="$3/missing $2" # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
AC_MSG_RESULT(missing) # 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.
# One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip
# is unlikely to handle the host's binaries.
# Fortunately install-sh will honor a STRIPPROG variable, so we
# always use install-sh in `make install-strip', and initialize
# STRIPPROG with the value of the STRIP variable (set by the user).
AC_DEFUN([AM_PROG_INSTALL_STRIP],
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
if test "$cross_compiling" != no; then
AC_CHECK_TOOL([STRIP], [strip], :)
fi fi
AC_SUBST($1)]) INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
# Add --enable-maintainer-mode option to configure.
# From Jim Meyering
# serial 1
AC_DEFUN(AM_MAINTAINER_MODE,
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
dnl maintainer-mode is disabled by default
AC_ARG_ENABLE(maintainer-mode,
[ --enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer],
USE_MAINTAINER_MODE=$enableval,
USE_MAINTAINER_MODE=no)
AC_MSG_RESULT($USE_MAINTAINER_MODE)
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
MAINT=$MAINTAINER_MODE_TRUE
AC_SUBST(MAINT)dnl
]
)
# Define a conditional.
AC_DEFUN(AM_CONDITIONAL,
[AC_SUBST($1_TRUE)
AC_SUBST($1_FALSE)
if $2; then
$1_TRUE=
$1_FALSE='#'
else
$1_TRUE='#'
$1_FALSE=
fi])
# Like AC_CONFIG_HEADER, but automatically create stamp file.
AC_DEFUN(AM_CONFIG_HEADER,
[AC_PREREQ([2.12])
AC_CONFIG_HEADER([$1])
dnl When config.status generates a header, we must update the stamp-h file.
dnl This file resides in the same directory as the config header
dnl that is generated. We must strip everything past the first ":",
dnl and everything past the last "/".
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
<<am_indx=1
for am_file in <<$1>>; do
case " <<$>>CONFIG_HEADERS " in
*" <<$>>am_file "*<<)>>
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
;;
esac
am_indx=`expr "<<$>>am_indx" + 1`
done<<>>dnl>>)
changequote([,]))])
m4_include([acinclude.m4])
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,17 +11,40 @@ AC_SUBST(PACKAGE) ...@@ -11,17 +11,40 @@ AC_SUBST(PACKAGE)
libtool_VERSION=1:0:0 libtool_VERSION=1:0:0
AC_SUBST(libtool_VERSION) AC_SUBST(libtool_VERSION)
dnl AM_ENABLE_MULTILIB AC_MSG_CHECKING([for --enable-version-specific-runtime-libs])
AC_ARG_ENABLE(version-specific-runtime-libs,
[ --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory ],
[case "$enableval" in
yes) version_specific_libs=yes ;;
no) version_specific_libs=no ;;
*) AC_MSG_ERROR([Unknown argument to enable/disable version-specific libs]);;
esac],
[version_specific_libs=no])
AC_MSG_RESULT($version_specific_libs)
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
AC_EXEEXT AC_EXEEXT
AM_ENABLE_MULTILIB(, ..)
target_alias=${target_alias-$target} target_alias=${target_alias-$target}
AC_SUBST(target_alias) AC_SUBST(target_alias)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AC_LANG_C AC_LANG_C
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
# We must force CC to /not/ be precious variables; otherwise
# the wrong, non-multilib-adjusted value will be used in multilibs.
# As a side effect, we have to subst CFLAGS ourselves.
m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
m4_define([_AC_ARG_VAR_PRECIOUS],[])
AC_PROG_CC AC_PROG_CC
m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
AC_SUBST(CFLAGS)
if test "x$GCC" != "xyes"; then if test "x$GCC" != "xyes"; then
AC_MSG_ERROR([libmudflap must be built with GCC]) AC_MSG_ERROR([libmudflap must be built with GCC])
fi fi
...@@ -95,6 +118,42 @@ AM_CONDITIONAL(LIBMUDFLAPTH, [test "x$ac_have_pthread_h" != ""]) ...@@ -95,6 +118,42 @@ AM_CONDITIONAL(LIBMUDFLAPTH, [test "x$ac_have_pthread_h" != ""])
AC_CHECK_LIB(dl, dlsym) AC_CHECK_LIB(dl, dlsym)
# Process the option "--enable-version-specific-runtime-libs"
gcc_version_trigger=${srcdir}/../gcc/version.c
gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/'`
gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
AC_SUBST(gcc_version)
# Calculate toolexeclibdir
# Also toolexecdir, though it's only used in toolexeclibdir
case ${version_specific_libs} in
yes)
# Need the gcc compiler version to know where to install libraries
# and header files if --enable-version-specific-runtime-libs option
# is selected.
toolexecdir='$(libdir)/gcc/$(target_alias)'
toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
;;
no)
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
# Install a library built with a cross compiler in tooldir, not libdir.
toolexecdir='$(exec_prefix)/$(target_alias)'
toolexeclibdir='$(toolexecdir)/lib'
else
toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
toolexeclibdir='$(libdir)'
fi
multi_os_directory=`$CC -print-multi-os-directory`
case $multi_os_directory in
.) ;; # Avoid trailing /.
*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
esac
;;
esac
AC_SUBST(toolexecdir)
AC_SUBST(toolexeclibdir)
if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != ""; then if test "x$enable_shared" = "xyes" && test "x$ac_have_pthread_h" != ""; then
# NB: don't check for -lpthread here, because then it would be # NB: don't check for -lpthread here, because then it would be
# added to LIBS. For the thread-unaware libmudflap.la, we don't # added to LIBS. For the thread-unaware libmudflap.la, we don't
...@@ -133,5 +192,10 @@ EOF ...@@ -133,5 +192,10 @@ EOF
fi fi
AC_DEFINE_UNQUOTED(PTHREAD_CREATE_VERSION, $pthread_create_version, [pthread_create symbol version]) AC_DEFINE_UNQUOTED(PTHREAD_CREATE_VERSION, $pthread_create_version, [pthread_create symbol version])
if test ${multilib} = yes; then
multilib_arg="--enable-multilib"
else
multilib_arg=
fi
AC_OUTPUT([Makefile testsuite/Makefile mf-runtime.h]) AC_OUTPUT([Makefile testsuite/Makefile mf-runtime.h])
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. # Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -76,7 +76,7 @@ proc libmudflap-init { language } { ...@@ -76,7 +76,7 @@ proc libmudflap-init { language } {
} }
append ld_library_path ":${blddir}/.libs" append ld_library_path ":${blddir}/.libs"
set libs "-L../.libs -L../../../gcc" set libs "-L${blddir}/.libs"
set cxxflags "-ggdb3 -DDEBUG_ASSERT" set cxxflags "-ggdb3 -DDEBUG_ASSERT"
set includes "-I${srcdir} -I.." set includes "-I${srcdir} -I.."
...@@ -87,7 +87,7 @@ proc libmudflap-init { language } { ...@@ -87,7 +87,7 @@ proc libmudflap-init { language } {
# c++ libs are included by --build-cxx below # c++ libs are included by --build-cxx below
set cxx "[exec sh $cxxflags_file --build-cxx]" set cxx "[exec sh $cxxflags_file --build-cxx]"
} else { } else {
lappend libs "-L../../libstdc++-v3/src/.libs" lappend libs "-L${cxxblddir}src/.libs"
lappend includes "-I../../libstdc++-v3/include" lappend includes "-I../../libstdc++-v3/include"
} }
} }
...@@ -95,6 +95,7 @@ proc libmudflap-init { language } { ...@@ -95,6 +95,7 @@ proc libmudflap-init { language } {
verbose -log "ld_library_path=$ld_library_path" verbose -log "ld_library_path=$ld_library_path"
setenv LD_LIBRARY_PATH $ld_library_path setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path setenv SHLIB_PATH $ld_library_path
setenv LD_RUN_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path setenv LD_LIBRARY64_PATH $ld_library_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment