ports/emulators/tme/files/patch-configure.in
2014-10-03 21:44:11 +00:00

39 lines
1.4 KiB
Text

--- configure.in.orig
+++ configure.in
@@ -599,18 +599,16 @@
esac
changequote([, ])dnl
AC_MSG_RESULT([${misc_hosts}])
-if test "x${misc_hosts}" = no; then
+if test "x${misc_hosts}" = xno; then
misc_hosts=
fi
dnl Configure for libtool.
-AC_LIBLTDL_INSTALLABLE
+LT_CONFIG_LTDL_DIR([libltdl])
+LT_INIT([dlopen])
+LTDL_INIT([installable])
AC_SUBST(INCLTDL)
AC_SUBST(LIBLTDL)
-AC_LIBTOOL_DLOPEN
-AM_PROG_LIBTOOL
-AC_SUBST(LTLIBOBJS)
-AC_CONFIG_SUBDIRS(libltdl)
TME_PREOPEN=
if test $enable_shared = no; then
TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
@@ -683,11 +681,8 @@
#define _TMECONFIG_H
TMEEOF
- (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
- grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \
- done) | sort | uniq >> ${outfile}-tmp
- grep FLOAT_FORMAT config.h | \
- sed 's/#define[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' >> ${outfile}-tmp
+ sed -e '/FLOAT_FORMAT/ s/#[[:space:]]*define[[:space:]]\{1,\}\([A-Za-z0-9_]\{1,\}\)[[:space:]]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' \
+ -e '/FLOAT_FORMAT/!s/#[[:space:]]*define[[:space:]]\{1,\}/&_TME_/' config.h >> ${outfile}-tmp
echo '#define TME_BUSMAX_LOG2 TME_BUS'${bus_size_max}'_LOG2' >> ${outfile}-tmp
echo '#define TME_HAVE_RECODE (' \
`if test "x${recode_hosts}" = x; then echo 0; else echo 1; fi` ')' >> ${outfile}-tmp