Skip to content

Commit be22dc8

Browse files
committed
phase 2
1 parent de634b8 commit be22dc8

2 files changed

Lines changed: 8 additions & 44 deletions

File tree

autogen.sh

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -35,50 +35,14 @@ if expr "$confver" \> "$gettext_version" >/dev/null; then
3535
exit 1
3636
fi
3737

38-
# Force intl regenration to get last update from installed gettext templates
39-
rm -rf intl/*
40-
#if [ ! -d intl ]; then
41-
echo "Setting up internationalization files."
42-
autopoint --force
43-
if grep -q datarootdir po/Makefile.in.in; then
44-
echo autopoint honors dataroot variable, not patching.
45-
else
46-
echo autopoint does not honor dataroot variable, patching.
47-
sed -e '/^datadir *=/a\
48-
datarootdir = @datarootdir@' po/Makefile.in.in > po/Makefile.in.in.tmp && mv -f po/Makefile.in.in.tmp po/Makefile.in.in
49-
sed -e '/^datadir *=/a\
50-
datarootdir = @datarootdir@' intl/Makefile.in > intl/Makefile.in.tmp && mv -f intl/Makefile.in.tmp intl/Makefile.in
51-
fi
52-
UNAME=`uname`
53-
if [ x$UNAME = x"Darwin" ]; then
54-
echo Not patching po/Makefile.in.in - sed is too old.
55-
else
56-
sed -e '/^clean:/a\
57-
rm -f *.gmo' po/Makefile.in.in > po/Makefile.in.in.tmp && mv -f po/Makefile.in.in.tmp po/Makefile.in.in
58-
fi
59-
# if [ -f Makefile -a -x config.status ]; then
60-
# CONFIG_FILES=intl/Makefile CONFIG_HEADERS= /bin/sh ./config.status
61-
# fi
62-
# gettextize --intl -f --no-changelog
63-
# echo "restoring Makefile.am and configure.ac"
64-
# cp -f Makefile.am~ Makefile.am
65-
# cp -f configure.ac~ configure.ac
66-
#fi
67-
68-
echo "Running aclocal -I m4"
69-
aclocal -I m4
70-
71-
echo "Running autoheader"
72-
autoheader
73-
74-
echo "Running autoconf"
75-
autoconf
38+
echo "Running autopoint"
39+
autopoint
7640

7741
echo "Creating pixmaps Makefile.am"
7842
OLDPWD="`pwd`"
7943
cd src/pixmaps/flags_xpm
8044
./makeflags.sh
8145
cd "$OLDPWD"
8246

83-
echo "Running automake --foreign -a -c -f"
84-
automake --foreign -a -c -f
47+
echo "Running autoreconf --install"
48+
autoreconf --install

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@
2525
#
2626

2727
AC_INIT([aMule],[SVN],[admin@amule.org])
28-
AM_INIT_AUTOMAKE
2928
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
30-
3129
AC_PREREQ(2.59)
3230

3331
AC_CONFIG_SRCDIR([src/amule.cpp])
3432
AC_CONFIG_HEADERS([config.h])
3533
AC_CONFIG_MACRO_DIR([m4])
34+
AC_CONFIG_AUX_DIR([config])
35+
AM_INIT_AUTOMAKE([subdir-objects foreign])
36+
AC_USE_SYSTEM_EXTENSIONS
3637
AM_MAINTAINER_MODE
3738

3839
dnl Check host system.
@@ -329,8 +330,7 @@ dnl Use the C compiler for the gettext library checks
329330
AC_LANG_POP([C++])
330331
# Checking Native Language Support
331332
dnl Sets gettext version.
332-
dnl AM_GNU_GETTEXT_VERSION *must not* be moved away from configure.ac!
333-
AM_GNU_GETTEXT_VERSION(0.11.5)
333+
AM_GNU_GETTEXT_VERSION(0.12.1)
334334
MULE_CHECK_NLS
335335
AC_LANG_PUSH([C++])
336336

0 commit comments

Comments
 (0)