I can't grant that this will work everywhere - but it works here

svn path=/trunk/kdegraphics/kdvi/; revision=32408
This commit is contained in:
Stephan Kulow 1999-10-31 17:27:40 +00:00
parent 484d0acbed
commit 8107121d50
16 changed files with 13277 additions and 805 deletions

View file

@ -1,5 +1,5 @@
kpathsea = kpathsea/kpathsea.a
kpathsea = kpathsea/libkpathsea.la
# just set the variable
appsdir = $(kde_appsdir)/Graphics
@ -30,8 +30,8 @@ kdvi_SOURCES = main.cpp
squeeze_SOURCES = squeeze.c
# the library search path
libkdvi_la_LDFLAGS = -L./kpathsea $(all_libraries) -version-info 1:0:0 -module
libkdvi_la_LIBADD = $(LIB_KFILE) -lkparts -lkpathsea
libkdvi_la_LDFLAGS = $(all_libraries) -avoid-version -module
libkdvi_la_LIBADD = $(LIB_KFILE) -lkparts kpathsea/libkpathsea.la
kdvi_LDFLAGS = $(all_libraries) $(KDE_RPATH)
kdvi_LDADD = libkdvi.la

View file

@ -224,9 +224,7 @@ int dviWindow::makePK()
return makepk;
}
extern "C"{
char * kpse_font_override_path;
}
extern char * kpse_font_override_path;
void dviWindow::setFontPath( const char *s )
{

91
kpathsea/Makefile.am Normal file
View file

@ -0,0 +1,91 @@
INCLUDES = -I$(srcdir)/.. -I..
noinst_LTLIBRARIES = libkpathsea.la
libkpathsea_la_SOURCES = tex-file.c absolute.c basename.c cnf.c concat.c concat3.c \
concatn.c db.c debug.c dir.c elt-dirs.c expand.c extend-fname.c file-p.c \
find-suffix.c fn.c fontmap.c getopt.c getopt1.c hash.c itoa.c kdefault.c \
line.c magstep.c make-suffix.c path-elt.c pathsearch.c proginit.c \
progname.c putenv.c readable.c rm-suffix.c str-list.c str-llist.c \
tex-glyph.c tex-make.c tilde.c truncate.c uppercasify.c variable.c \
version.c xcalloc.c xfopen.c xmalloc.c xopendir.c xputenv.c xrealloc.c \
xstat.c xstrdup.c selfdir.c dirname.c
AUTOMAKE_OPTIONS = foreign
makevars = prefix=$(prefix) exec_prefix=$(exec_prefix) \
platform=$(platform) \
bindir=$(bindir) scriptdir=$(scriptdir) libdir=$(libdir) \
datadir=$(datadir) infodir=$(infodir) includedir=$(includedir) \
manext=$(manext) mandir=$(mandir) \
texmf=$(texmf) web2cdir=$(web2cdir) \
texinputdir=$(texinputdir) mfinputdir=$(mfinputdir) \
mpinputdir=$(mpinputdir) \
fontdir=$(fontdir) \
fmtdir=$(fmtdir) basedir=$(basedir) \
memdir=$(memdir) \
texpooldir=$(texpooldir) mfpooldir=$(mfpooldir) \
mppooldir=$(mppooldir) \
install_fonts=$(install_fonts) \
dvipsdir=$(dvipsdir) psheaderdir=$(psheaderdir) \
default_texsizes='$(default_texsizes)'
# Besides the straight variable substitutions, also change all
# occurrences of `$(texmf)/' to `$TEXMF', so simply setting that envvar
# changes the root of the whole tree.
texmf.cnf: texmf.cnf.in texmf.sed
sed -f texmf.sed -e 's%$(texmf)/%$$TEXMF/%g' $(srcdir)/texmf.cnf.in >$@
# The idea is to turn each var=value into s%@var@%value%g. Seems simpler
# to put the substitutions in a file than to play shell games.
texmf.sed: $(top_srcdir)/../make/makevars.make
echo $(makevars) \
| tr ' ' '\012' \
| sed -e 's/^/s%@/' -e 's/=/@%/' -e 's/$$/%/' -e 's/$$/g/' \
>$@
# First null out comments and leading/trailing whitespace, then remove
# lines that define invalid C identifiers, then remove blank lines. Each
# line remaining looks like
# <name> = <value>
# (but = and surrounding spaces are optional, hence can't remove all spaces).
# Change this to #ifndef DEFAULT_name@#define DEFAULT_name "value"@#endif,
# then change the @'s to newlines (sed isn't good at multiline replacements),
# then change $TEXMF back to $(texmf)
#
# No backslash-newline escapes in the long sed replacement because that
# will turn into a space in the output.
#
# Without the $TEXMF substitution, if the cnf file was not found for
# some reason, none of the compile-time paths would be of any use, since
# TEXMF wouldn't be defined. Alternatively, we could have a way to
# specify compile-time default values for variables in general, but I
# think it's better to keep the last-resort paths as simple as possible.
#
# The definition of DEFAULT_TEXMF (and possibly other variables)
# that winds up in the final paths.h will not be used.
paths.h: texmf.cnf
echo "/* paths.h: Generated from texmf.cnf `date`. */" >$@
sed -e 's/%.*//' -e 's/^[ ]*//' -e 's/[ ]*$$//' texmf.cnf \
| grep '^[ ]*[A-Za-z_]*[ =]' \
| sed '/^$$/d' \
| sed 's/^\([^ =]*\)[ ]*=*[ ]*\(.*\)/#ifndef DEFAULT_\1@#define DEFAULT_\1 "\2"@#endif/' \
| tr @ '\012' \
>>$@
# A few object files need extra definitions. The dependencies are below.
tex-file.o:
$(LTCOMPILE) $(CPPFLAGS) -DDEFAULT_FONT_SIZES='"$(default_texsizes)"' \
$(CFLAGS) -c $(srcdir)/tex-file.c
distclean-local:
rm -f paths.h texmf.cnf texmf.sed
rm -f kpathsea.cps kpathsea.fn kpathsea.vr kpathsea.tp \
kpathsea.ky kpathsea.pg kpathsea.cm kpathsea.fl \
kpathsea.op kpathsea.toc kpathsea.log kpathsea.aux \
kpathsea.cp mode2dpi.log kpathsea.info-1 \
kpathsea.info-2 kpathsea.info kpathsea.info-3
$(srcdir)/tex-file.c: paths.h

View file

@ -1,567 +0,0 @@
# KDE tags expanded automatically by am_edit
# Makefile for kpathsea --kb@cs.umb.edu.
version = 2.52
ac_include ../make/paths.make
ac_include ../make/makevars.make
# Add -DNO_DEBUG to disable debugging, for unnoticeably better performance.
DEFS = $(XDEFS)
ac_include ../make/common.make
ac_include ../make/library.make
ac_include ../make/programs.make
ac_include ../make/texi.make
# Install these header files (except c-auto.h).
install_headers = *.h
##ifdef HOSTNAME
##warn_more = -Wmissing-prototypes -Wwrite-strings -Wshadow
##MAKEINFO_FLAGS := $(MAKEINFO_FLAGS) --no-split
##malloc = onefile.o # gmalloc.o
##endif
# Put tex-file.o first, because it's what depends on the paths, and may
# reduce frustration if the paths are wrong by doing it first.
objects = tex-file.o absolute.o basename.o cnf.o concat.o concat3.o \
concatn.o db.o debug.o dir.o elt-dirs.o expand.o extend-fname.o file-p.o \
find-suffix.o fn.o fontmap.o getopt.o getopt1.o hash.o itoa.o kdefault.o \
line.o magstep.o make-suffix.o path-elt.o pathsearch.o proginit.o \
progname.o putenv.o readable.o rm-suffix.o str-list.o str-llist.o \
tex-glyph.o tex-make.o tilde.o truncate.o uppercasify.o variable.o \
version.o xcalloc.o xfopen.o xmalloc.o xopendir.o xputenv.o xrealloc.o \
xstat.o xstrdup.o selfdir.o dirname.o $(malloc)
library = kpathsea
default all: $(library).a
$(library).a: $(objects)
rm -f $@
$(AR) $(ARFLAGS) $@ $(objects)
$(RANLIB) $@
#MakeTeXPK: MakeTeXPK.in $(top_srcdir)/../make/paths.make
# sed -e 's,@datadir@,$(datadir),g' \
# -e 's,@psheaderdir@,$(psheaderdir),g' \
# -e 's,@fontnamedir@,$(fontnamedir),g' \
# -e 's,@fontdir@,$(fontdir),g' \
# -e 's,@dcfontdir@,$(dcfontdir),g' \
# -e 's,@sauterdir@,$(sauterdir),g' \
# -e 's,@web2cdir@,$(web2cdir),g' \
# <$(srcdir)/MakeTeXPK.in >$@.tmp
# mv $@.tmp $@
# -chmod a+x $@
# Besides the straight variable substitutions, also change all
# occurrences of `$(texmf)/' to `$TEXMF', so simply setting that envvar
# changes the root of the whole tree.
texmf.cnf: texmf.cnf.in texmf.sed
sed -f texmf.sed -e 's%$(texmf)/%$$TEXMF/%g' $(srcdir)/texmf.cnf.in >$@
# The idea is to turn each var=value into s%@var@%value%g. Seems simpler
# to put the substitutions in a file than to play shell games.
texmf.sed: $(top_srcdir)/../make/makevars.make
echo $(makevars) \
| tr ' ' '\012' \
| sed -e 's/^/s%@/' -e 's/=/@%/' -e 's/$$/%/' -e 's/$$/g/' \
>$@
# First null out comments and leading/trailing whitespace, then remove
# lines that define invalid C identifiers, then remove blank lines. Each
# line remaining looks like
# <name> = <value>
# (but = and surrounding spaces are optional, hence can't remove all spaces).
# Change this to #ifndef DEFAULT_name@#define DEFAULT_name "value"@#endif,
# then change the @'s to newlines (sed isn't good at multiline replacements),
# then change $TEXMF back to $(texmf)
#
# No backslash-newline escapes in the long sed replacement because that
# will turn into a space in the output.
#
# Without the $TEXMF substitution, if the cnf file was not found for
# some reason, none of the compile-time paths would be of any use, since
# TEXMF wouldn't be defined. Alternatively, we could have a way to
# specify compile-time default values for variables in general, but I
# think it's better to keep the last-resort paths as simple as possible.
#
# The definition of DEFAULT_TEXMF (and possibly other variables)
# that winds up in the final paths.h will not be used.
paths.h: texmf.cnf
echo "/* paths.h: Generated from texmf.cnf `date`. */" >$@
sed -e 's/%.*//' -e 's/^[ ]*//' -e 's/[ ]*$$//' texmf.cnf \
| grep '^[ ]*[A-Za-z_]*[ =]' \
| sed '/^$$/d' \
| sed 's/^\([^ =]*\)[ ]*=*[ ]*\(.*\)/#ifndef DEFAULT_\1@#define DEFAULT_\1 "\2"@#endif/' \
| tr @ '\012' \
>>$@
# A few object files need extra definitions. The dependencies are below.
tex-file.o:
$(CC) $(CPPFLAGS) -DDEFAULT_FONT_SIZES='"$(default_texsizes)"' \
$(CFLAGS) -c $(srcdir)/tex-file.c
# Need the -DHAVE_CONFIG_H.
gmalloc.o:
$(CC) $(CPPFLAGS) @DEFS@ $(CFLAGS) -c $(srcdir)/gmalloc.c
check:
# Installation of kpathsea itself is complicated by the fact that we
# want to install texmf.cnf, kpathsea.info, and MakeTeXPK by default,
# but not the headers or the .a file itself. So we have a separate
# target `install-library' to install the latter stuff.
install: test-tetexdir install-data
uninstall: uninstall-exec uninstall-data
test-tetexdir:
ifeq ($(TETEXDIR),)
echo "TETEXDIR is unset."
exit 1
endif
# teTeX hat its own MakeTeXPK
install-exec:
#$(SHELL) $(top_srcdir)/../mkdirchain $(bindir) $(scriptdir)
#if grep 'original MakeTeXPK --' $(scriptdir)/MakeTeXPK >/dev/null 2>&1\
# || test ! -r $(scriptdir)/MakeTeXPK; then \
# $(INSTALL_PROGRAM) MakeTeXPK $(scriptdir)/MakeTeXPK; \
#else true; fi
# avoid gcc bug on alpha
ifneq (,$(findstring alpha-osf4,$(platform)))
hash.o: hash.c
$(CC) $(CPPFLAGS) $(filter-out -O%, $(CFLAGS)) -c hash.c
endif
uninstall-exec:
install-data: texmf.cnf kpathsea.info
$(SHELL) $(top_srcdir)/../mkdirchain $(texmf) $(infodir) $(TETEXDIR)
if grep 'original texmf.cnf --' $(web2cdir)/texmf.cnf >/dev/null 2>&1 \
|| test ! -r $(TETEXDIR)/texmf.cnf; then \
$(INSTALL_DATA) texmf.cnf $(TETEXDIR)/texmf.cnf; \
else true; fi
$(INSTALL_DATA) $(srcdir)/kpathsea.info $(infodir)/kpathsea.info
uninstall-data:
rm -f $(infodir)/kpathsea.info*
install-library: $(library).a
$(SHELL) $(top_srcdir)/../mkdirchain $(includedir)/kpathsea $(libdir)
$(INSTALL_DATA) $(library).a $(libdir)/lib$(library).a
for f in $(install_headers); do \
$(INSTALL_DATA) $$f $(includedir)/kpathsea/$$f; done
rm -f $(includedir)/kpathsea/c-auto.h
uninstall-library:
rm -f $(libdir)/lib$(library).a
for f in $(install_headers); do rm -f $(includedir)/$$f; done
# distdir is used by other distributions; they define $(distdir).
distdir: INSTALL TAGS $(library).info $(library).dvi
rm -rf $(distdir)
mkdir -p $(distdir)
ln $(ln_files) $(distdir)
cp -p $(HOME)/gnu/gnuorg/*.texi $(distdir)
touch *.info*
ln *.info* *.texi $(library).aux $(library).cps $(distdir)
ln CONFIGURE HIER common.ac $(distdir)
cd $(distdir); rm -f paths.h
cd $(distdir); add-version $(version) version.c
ac_include ../make/config.make
info: $(library).info
dvi: $(library).dvi
INSTALL: $(library).texi install.texi
-$(MAKEINFO) $(MAKEINFO_FLAGS) --no-headers $< -o - \
| sed -n -e '/^Installation/,/wrong fonts/'p >$@
add-info-toc $@
ac_include ../make/misc.make
mostlyclean::
distclean::
rm -f paths.h texmf.cnf texmf.sed
rm -f kpathsea.cps kpathsea.fn kpathsea.vr kpathsea.tp \
kpathsea.ky kpathsea.pg kpathsea.cm kpathsea.fl \
kpathsea.op kpathsea.toc kpathsea.log kpathsea.aux \
kpathsea.cp mode2dpi.log kpathsea.info-1 \
kpathsea.info-2 kpathsea.info kpathsea.info-3
ac_include ../make/rdepend.make
absolute.o: absolute.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/absolute.h $(kpathsea_srcdir)/c-pathch.h
basename.o: basename.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h
cnf.o: cnf.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-fopen.h $(kpathsea_srcdir)/c-ctype.h \
$(kpathsea_srcdir)/cnf.h $(kpathsea_srcdir)/db.h $(kpathsea_srcdir)/str-list.h \
$(kpathsea_srcdir)/hash.h $(kpathsea_srcdir)/line.h paths.h \
$(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/tex-file.h \
$(kpathsea_srcdir)/variable.h
concat.o: concat.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
concat3.o: concat3.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
concatn.o: concatn.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/concatn.h $(kpathsea_srcdir)/c-vararg.h
db.o: db.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-fopen.h $(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/db.h \
$(kpathsea_srcdir)/str-list.h $(kpathsea_srcdir)/hash.h $(kpathsea_srcdir)/line.h \
$(kpathsea_srcdir)/readable.h $(kpathsea_srcdir)/variable.h
debug.o: debug.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
dir.o: dir.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-dir.h \
$(kpathsea_srcdir)/c-stat.h \
$(kpathsea_srcdir)/hash.h
elt-dirs.o: elt-dirs.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/expand.h $(kpathsea_srcdir)/fn.h \
$(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/xopendir.h \
$(kpathsea_srcdir)/c-dir.h
expand.o: expand.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/expand.h $(kpathsea_srcdir)/pathsearch.h \
$(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/tilde.h $(kpathsea_srcdir)/variable.h
extend-fname.o: extend-fname.c $(kpathsea_srcdir)/config.h ./c-auto.h \
$(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
file-p.o: file-p.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/xstat.h $(kpathsea_srcdir)/c-stat.h
find-suffix.o: find-suffix.c $(kpathsea_srcdir)/config.h ./c-auto.h \
$(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h
fn.o: fn.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h $(kpathsea_srcdir)/fn.h
fontmap.o: fontmap.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-fopen.h $(kpathsea_srcdir)/fontmap.h $(kpathsea_srcdir)/hash.h \
$(kpathsea_srcdir)/line.h $(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h \
$(kpathsea_srcdir)/str-list.h
getopt.o: getopt.c \
getopt.h
getopt1.o: getopt1.c getopt.h
hash.o: hash.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/hash.h $(kpathsea_srcdir)/str-list.h
itoa.o: itoa.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
kdefault.o: kdefault.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/default.h
make-suffix.o: make-suffix.c $(kpathsea_srcdir)/config.h ./c-auto.h \
$(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
path-elt.o: path-elt.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h
pathsearch.o: pathsearch.c $(kpathsea_srcdir)/config.h ./c-auto.h \
$(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-fopen.h $(kpathsea_srcdir)/absolute.h $(kpathsea_srcdir)/expand.h \
$(kpathsea_srcdir)/db.h $(kpathsea_srcdir)/str-list.h $(kpathsea_srcdir)/pathsearch.h \
$(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/readable.h $(kpathsea_srcdir)/variable.h
proginit.o: proginit.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/proginit.h $(kpathsea_srcdir)/progname.h \
$(kpathsea_srcdir)/tex-file.h
progname.o: progname.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/progname.h
putenv.o: putenv.c ./c-auto.h
readable.o: readable.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-stat.h \
$(kpathsea_srcdir)/readable.h $(kpathsea_srcdir)/truncate.h
rm-suffix.o: rm-suffix.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
str-list.o: str-list.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/str-list.h
str-llist.o: str-llist.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/str-llist.h
tex-file.o: tex-file.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-vararg.h $(kpathsea_srcdir)/cnf.h $(kpathsea_srcdir)/default.h \
$(kpathsea_srcdir)/expand.h paths.h $(kpathsea_srcdir)/pathsearch.h \
$(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/tex-file.h
tex-glyph.o: tex-glyph.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/absolute.h $(kpathsea_srcdir)/expand.h $(kpathsea_srcdir)/fontmap.h \
$(kpathsea_srcdir)/hash.h $(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h \
$(kpathsea_srcdir)/tex-glyph.h $(kpathsea_srcdir)/tex-file.h $(kpathsea_srcdir)/tex-make.h \
$(kpathsea_srcdir)/variable.h
tex-make.o: tex-make.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-fopen.h $(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/concatn.h \
$(kpathsea_srcdir)/c-vararg.h $(kpathsea_srcdir)/db.h $(kpathsea_srcdir)/str-list.h \
$(kpathsea_srcdir)/fn.h $(kpathsea_srcdir)/magstep.h $(kpathsea_srcdir)/readable.h \
$(kpathsea_srcdir)/tex-make.h $(kpathsea_srcdir)/tex-file.h $(kpathsea_srcdir)/variable.h
tilde.o: tilde.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/tilde.h
truncate.o: truncate.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-namemx.h $(kpathsea_srcdir)/c-pathch.h $(kpathsea_srcdir)/c-pathmx.h \
$(kpathsea_srcdir)/truncate.h
uppercasify.o: uppercasify.c $(kpathsea_srcdir)/config.h ./c-auto.h \
$(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-ctype.h
variable.o: variable.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/c-ctype.h $(kpathsea_srcdir)/cnf.h \
$(kpathsea_srcdir)/fn.h $(kpathsea_srcdir)/variable.h
version.o: version.c
xcalloc.o: xcalloc.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
xfopen.o: xfopen.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
xmalloc.o: xmalloc.c
xopendir.o: xopendir.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/xopendir.h $(kpathsea_srcdir)/c-dir.h
xputenv.o: xputenv.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
xrealloc.o: xrealloc.c
xstat.o: xstat.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h \
$(kpathsea_srcdir)/xstat.h $(kpathsea_srcdir)/c-stat.h
xstrdup.o: xstrdup.c $(kpathsea_srcdir)/config.h ./c-auto.h $(kpathsea_srcdir)/c-std.h \
$(kpathsea_srcdir)/c-unistd.h $(kpathsea_srcdir)/systypes.h \
$(kpathsea_srcdir)/c-memstr.h \
$(kpathsea_srcdir)/c-errno.h $(kpathsea_srcdir)/c-minmax.h \
$(kpathsea_srcdir)/c-limits.h \
$(kpathsea_srcdir)/c-proto.h \
$(kpathsea_srcdir)/lib.h $(kpathsea_srcdir)/types.h $(kpathsea_srcdir)/debug.h
#>+ 6
force-reedit:
cd $(top_srcdir) && perl admin/am_edit kdvi/kpathsea/Makefile.in
#>+ 2
clean-final:
#>+ 2
final:
$(MAKE) all-am
#>+ 3
cvs-clean:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean

536
kpathsea/acinclude.m4 Normal file
View file

@ -0,0 +1,536 @@
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## As a special exception to the GNU General Public License, if you
## distribute this file as part of a program that contains a
## configuration script generated by Autoconf, you may include it under
## the same distribution terms that you use for the rest of that program.
# serial 42 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_CC])dnl
with_gcc="$GCC"; AC_SUBST([with_gcc])
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_OBJEXT])dnl
AC_REQUIRE([AC_EXEEXT])dnl
dnl
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(STRIP, strip, :)
echo 'This is only a test.' > conftest.txt
AC_PATH_TOOL_GREP_OUTPUT(FILE, file conftest.txt, text, :, "/usr/bin:$PATH")
rm -rf conftest*
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
[libtool_flags="$libtool_flags --enable-dlopen"])
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[libtool_flags="$libtool_flags --enable-win32-dll"])
AC_ARG_ENABLE(libtool-lock,
[ --disable-libtool-lock avoid locking (might break parallel builds)])
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
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.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[*-*-cygwin* | *-*-mingw*)
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(AS, as, false)
AC_CHECK_TOOL(OBJDUMP, objdump, false)
# 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([DllMain (0, 0, 0);],
[extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);],
[lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])])
case $host in
*-*-cygwin*)
# 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" ;;
*-*-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" ;;
esac
;;
])
esac
])
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_SHARED, [dnl
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_SHARED(no)])
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_STATIC, [dnl
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_STATIC(no)])
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_FAST_INSTALL(no)])
# AC_PATH_PROG_GREP_OUTPUT - look for a particular expression in the output
# generated by $PROG
dnl AC_PATH_PROG_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]])
AC_DEFUN(AC_PATH_PROG_GREP_OUTPUT,
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
/*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path.
;;
*)
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([$5], , $PATH, [$5])"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if eval '$ac_dir/$2' 2>&1 | grep $3 >/dev/null 2>&1; then
ac_cv_path_$1="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
])dnl
;;
esac])dnl
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
AC_MSG_RESULT([$]$1)
else
AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])
# AC_PATH_TOOL_GREP_OUTPUT - Try AC_PATH_PROG_GREP_OUTPUT with target
# prefix when cross-compiling
dnl AC_PATH_TOOL_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AC_PATH_TOOL_GREP_OUTPUT,
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
AC_PATH_PROG_GREP_OUTPUT($1, ${ac_tool_prefix}$2, $3,
ifelse([$4], , [$2], ), $5)
ifelse([$4], , , [
if test -z "$ac_cv_prog_$1"; then
if test -n "$ac_tool_prefix"; then
AC_PATH_PROG_GREP_OUTPUT($1, $2, $3, $2, $5)
else
$1="$4"
fi
fi
])
])
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
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.
changequote(,)dnl
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL(ac_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$ac_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT($LD)
else
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_SUBST(LD)
AC_PROG_LD_GNU
])
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi])
with_gnu_ld=$ac_cv_prog_gnu_ld
AC_SUBST(with_gnu_ld)
])
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_SUBST(NM)
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
case "$host" in
*-*-beos* | *-*-cygwin*)
# These system don't have libm
;;
*-ncr-sysv4.3*)
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
;;
*)
AC_CHECK_LIB(m, main, LIBM="-lm")
;;
esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
case "$enable_ltdl_convenience" in
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_CHECK_LIB(ltdl, main,
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
[if test x"$enable_ltdl_install" = xno; then
AC_MSG_WARN([libltdl not installed, but installation disabled])
else
enable_ltdl_install=yes
fi
])
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTDL=
fi
])
dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl

642
kpathsea/aclocal.m4 vendored Normal file
View file

@ -0,0 +1,642 @@
dnl aclocal.m4 generated automatically by aclocal 1.4
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl 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
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
# serial 42 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_CC])dnl
with_gcc="$GCC"; AC_SUBST([with_gcc])
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_OBJEXT])dnl
AC_REQUIRE([AC_EXEEXT])dnl
dnl
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(STRIP, strip, :)
echo 'This is only a test.' > conftest.txt
AC_PATH_TOOL_GREP_OUTPUT(FILE, file conftest.txt, text, :, "/usr/bin:$PATH")
rm -rf conftest*
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
[libtool_flags="$libtool_flags --enable-dlopen"])
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[libtool_flags="$libtool_flags --enable-win32-dll"])
AC_ARG_ENABLE(libtool-lock,
[ --disable-libtool-lock avoid locking (might break parallel builds)])
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
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.o`" in
*32-bit*)
LD="${LD-ld} -32"
;;
*N32*)
LD="${LD-ld} -n32"
;;
*64-bit*)
LD="${LD-ld} -64"
;;
esac
fi
rm -rf conftest*
;;
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
[*-*-cygwin* | *-*-mingw*)
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(AS, as, false)
AC_CHECK_TOOL(OBJDUMP, objdump, false)
# 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([DllMain (0, 0, 0);],
[extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);],
[lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])])
case $host in
*-*-cygwin*)
# 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" ;;
*-*-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" ;;
esac
;;
])
esac
])
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_SHARED, [dnl
define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_SHARED(no)])
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_STATIC, [dnl
define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_STATIC(no)])
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_ENABLE_FAST_INSTALL(no)])
# AC_PATH_PROG_GREP_OUTPUT - look for a particular expression in the output
# generated by $PROG
dnl AC_PATH_PROG_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND[, PATH]])
AC_DEFUN(AC_PATH_PROG_GREP_OUTPUT,
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
/*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
?:/*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a dos path.
;;
*)
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([$5], , $PATH, [$5])"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if eval '$ac_dir/$2' 2>&1 | grep $3 >/dev/null 2>&1; then
ac_cv_path_$1="$ac_dir/$ac_word"
break
fi
done
IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
])dnl
;;
esac])dnl
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
AC_MSG_RESULT([$]$1)
else
AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])
# AC_PATH_TOOL_GREP_OUTPUT - Try AC_PATH_PROG_GREP_OUTPUT with target
# prefix when cross-compiling
dnl AC_PATH_TOOL_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AC_PATH_TOOL_GREP_OUTPUT,
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
AC_PATH_PROG_GREP_OUTPUT($1, ${ac_tool_prefix}$2, $3,
ifelse([$4], , [$2], ), $5)
ifelse([$4], , , [
if test -z "$ac_cv_prog_$1"; then
if test -n "$ac_tool_prefix"; then
AC_PATH_PROG_GREP_OUTPUT($1, $2, $3, $2, $5)
else
$1="$4"
fi
fi
])
])
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
AC_MSG_CHECKING([for ld used by GCC])
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.
changequote(,)dnl
[\\/]* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
# If it fails, then pretend we aren't using GCC.
ac_prog=ld
;;
*)
# If it is relative, then search for the first ld in PATH.
with_gnu_ld=unknown
;;
esac
elif test "$with_gnu_ld" = yes; then
AC_MSG_CHECKING([for GNU ld])
else
AC_MSG_CHECKING([for non-GNU ld])
fi
AC_CACHE_VAL(ac_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
test "$with_gnu_ld" != no && break
else
test "$with_gnu_ld" != yes && break
fi
fi
done
IFS="$ac_save_ifs"
else
ac_cv_path_LD="$LD" # Let the user override the test with a path.
fi])
LD="$ac_cv_path_LD"
if test -n "$LD"; then
AC_MSG_RESULT($LD)
else
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_SUBST(LD)
AC_PROG_LD_GNU
])
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
ac_cv_prog_gnu_ld=yes
else
ac_cv_prog_gnu_ld=no
fi])
with_gnu_ld=$ac_cv_prog_gnu_ld
AC_SUBST(with_gnu_ld)
])
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AC_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
ac_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -B"
break
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
ac_cv_path_NM="$ac_dir/nm -p"
break
else
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
fi
fi
done
IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_SUBST(NM)
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
case "$host" in
*-*-beos* | *-*-cygwin*)
# These system don't have libm
;;
*-ncr-sysv4.3*)
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
;;
*)
AC_CHECK_LIB(m, main, LIBM="-lm")
;;
esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
case "$enable_ltdl_convenience" in
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_CHECK_LIB(ltdl, main,
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
[if test x"$enable_ltdl_install" = xno; then
AC_MSG_WARN([libltdl not installed, but installation disabled])
else
enable_ltdl_install=yes
fi
])
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTDL=
fi
])
dnl old names
AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
dnl This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])dnl
# Do all the work for Automake. 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.
# serial 1
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AC_SUBST(VERSION)
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
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
#
# Check to make sure that the build environment is sane.
#
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftestfile
# 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
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "[$]*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "[$]*" != "X $srcdir/configure conftestfile" \
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "[$]2" = conftestfile
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
rm -f conftest*
AC_MSG_RESULT(yes)])
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
$1=$2
AC_MSG_RESULT(found)
else
$1="$3/missing $2"
AC_MSG_RESULT(missing)
fi
AC_SUBST($1)])
# 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([,]))])

View file

@ -72,3 +72,10 @@
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION

View file

@ -22,7 +22,7 @@ AC_CHECK_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h \
AC_CHECK_FUNCS(basename bcopy memmove putenv getcwd)
AC_C_CONST
AC_PROG_LIBTOOL
# This is a GNU libc invention.
AC_MSG_CHECKING(whether program_invocation_name is predefined)

1087
kpathsea/config.guess vendored Executable file

File diff suppressed because it is too large Load diff

1215
kpathsea/config.sub vendored Executable file

File diff suppressed because it is too large Load diff

1644
kpathsea/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,108 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(pathsearch.c)
sinclude(common.ac)
AM_INIT_AUTOMAKE(kpathsea, 1.0)
dnl Common Autoconf sinclude file for kpathsea-using programs. (Have to
dnl use the m4 `sinclude' builtin instead of `include', since Autoconf
dnl disables `include'.)
dnl Write output here, instead of putting a zillion -D's on the command line.
AM_CONFIG_HEADER(c-auto.h)
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL
AC_ISC_POSIX
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_FUNC_CLOSEDIR_VOID
AC_CHECK_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h \
string.h unistd.h)
AC_CHECK_FUNCS(basename bcopy memmove putenv getcwd)
AC_C_CONST
AC_ENABLE_STATIC(no)
AM_PROG_LIBTOOL
# This is a GNU libc invention.
AC_MSG_CHECKING(whether program_invocation_name is predefined)
AC_CACHE_VAL(kb_cv_var_program_inv_name,
[AC_TRY_LINK(, [main() { program_invocation_name = "love"; }],
kb_cv_var_program_inv_name=yes, kb_cv_var_program_inv_name=no)])dnl
AC_MSG_RESULT($kb_cv_var_program_inv_name)
if test $kb_cv_var_program_inv_name = yes; then
AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)
fi
# Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment.
# This test program is due to Mike Hibler <mike@cs.utah.edu>.
# We don't actually need to run this if we don't have putenv, but it
# doesn't hurt.
AC_MSG_CHECKING(whether putenv uses malloc)
AC_CACHE_VAL(kb_cv_func_putenv_malloc,
[AC_TRY_RUN([
#define VAR "YOW_VAR"
#define STRING1 "GabbaGabbaHey"
#define STRING2 "Yow!!" /* should be shorter than STRING1 */
extern char *getenv (); /* in case char* and int don't mix gracefully */
main ()
{
char *str1, *rstr1, *str2, *rstr2;
str1 = getenv (VAR);
if (str1)
exit (1);
str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
if (str1 == 0)
exit (2);
strcpy (str1, VAR);
strcat (str1, "=");
strcat (str1, STRING1);
if (putenv (str1) < 0)
exit (3);
rstr1 = getenv (VAR);
if (rstr1 == 0)
exit (4);
rstr1 -= strlen (VAR) + 1;
if (strncmp (rstr1, VAR, strlen (VAR)))
exit (5);
str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
if (str2 == 0 || str1 == str2)
exit (6);
strcpy (str2, VAR);
strcat (str2, "=");
strcat (str2, STRING2);
if (putenv (str2) < 0)
exit (7);
rstr2 = getenv (VAR);
if (rstr2 == 0)
exit (8);
rstr2 -= strlen (VAR) + 1;
#if 0
printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
/*
* If string from first call was reused for the second call,
* you had better not do a free on the first string!
*/
if (rstr1 == rstr2)
printf ("#define SMART_PUTENV\n");
else
printf ("#undef SMART_PUTENV\n");
#endif
exit (rstr1 == rstr2 ? 0 : 1);
}], kb_cv_func_putenv_malloc=yes, kb_cv_func_putenv_malloc=no,
kb_cv_func_putenv_malloc=no)])dnl
AC_MSG_RESULT($kb_cv_func_putenv_malloc)
if test $kb_cv_func_putenv_malloc = yes; then
AC_DEFINE(SMART_PUTENV)
fi
AC_OUTPUT(Makefile)

3110
kpathsea/ltconfig Executable file

File diff suppressed because it is too large Load diff

4843
kpathsea/ltmain.sh Normal file

File diff suppressed because it is too large Load diff

188
kpathsea/missing Executable file
View file

@ -0,0 +1,188 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
# 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.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
case "$1" in
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing - GNU libit 0.0"
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
aclocal)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acinclude.m4' or \`configure.in'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`configure.in'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`configure.in'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in`
if test -z "$files"; then
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in`
test -z "$files" || files="$files.in"
else
files=`echo "$files" | sed -e 's/:/ /g'`
fi
test -z "$files" && files="config.h.in"
touch $files
;;
automake)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print \
| sed 's/^\(.*\).am$/touch \1.in/' \
| sh
;;
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex|flex)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
makeinfo)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
fi
touch $file
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0

36
kpathsea/mkinstalldirs Executable file
View file

@ -0,0 +1,36 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Last modified: 1994-03-25
# Public domain
errstatus=0
for file in ${1+"$@"} ; do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d in ${1+"$@"} ; do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp" 1>&2
mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
fi
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here