2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir
=.
9 (test -f $srcdir/configure.
in) ||
{
10 echo -n "**Error**: Directory "\
`$srcdir\'" does not look like the"
11 echo " top-level package directory"
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
17 echo "**Error**: You must have \`autoconf
' installed."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
23 (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
24 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
26 echo "**Error**: You must have \`intltool' installed.
"
27 echo "You can get it from
:"
28 echo " ftp://ftp.gnome.org
/pub
/GNOME
/"
33 (grep "^AM_PROG_XML_I18N_TOOLS
" $srcdir/configure.in >/dev/null) && {
34 (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
36 echo "**Error
**: You must have \
`xml-i18n-toolize' installed."
37 echo "You can get it from:"
38 echo " ftp://ftp.gnome.org/pub/GNOME/"
43 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
44 (libtool --version) < /dev/null > /dev/null 2>&1 || {
46 echo "**Error**: You must have \`libtool
' installed."
47 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
52 (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && {
53 (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \
54 (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
56 echo "**Error**: You must have \`glib' installed.
"
57 echo "You can get it from
: ftp://ftp.gtk.org
/pub
/gtk
"
62 (automake --version) < /dev/null > /dev/null 2>&1 || {
64 echo "**Error
**: You must have \
`automake' installed."
65 echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
71 # if no automake, don't bother testing for aclocal
72 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
74 echo "**Error**: Missing \`aclocal
'. The version of \`automake'"
75 echo "installed doesn
't appear recent enough."
76 echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
80 if test "$DIE" -eq 1; then
85 echo "**Warning**: I am going to run \`configure' with no arguments.
"
86 echo "If you wish to pass any to it
, please specify them on the
"
87 echo \`$0\'" command line.
"
93 am_opt=--include-deps;;
96 for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print`
99 if test -f $dr/NO-AUTO-GEN; then
100 echo skipping $dr -- flagged as no auto-gen
105 aclocalinclude="$ACLOCAL_FLAGS"
107 if grep "^AM_GLIB_GNU_GETTEXT
" configure.in >/dev/null; then
108 echo "Creating
$dr/aclocal.
m4 ...
"
109 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
110 echo "Running glib-gettextize... Ignore non-fatal messages.
"
111 echo "no
" | glib-gettextize --force --copy
112 echo "Making
$dr/aclocal.
m4 writable ...
"
113 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
115 if grep "^AC_PROG_INTLTOOL
" configure.in >/dev/null; then
116 echo "Running intltoolize...
"
117 intltoolize --copy --force --automake
119 if grep "^AM_PROG_XML_I18N_TOOLS
" configure.in >/dev/null; then
120 echo "Running xml-i18n-toolize...
"
121 xml-i18n-toolize --copy --force --automake
123 if grep "^AM_PROG_LIBTOOL
" configure.in >/dev/null; then
124 if test -z "$NO_LIBTOOLIZE" ; then
125 echo "Running libtoolize...
"
126 libtoolize --force --copy
129 echo "Running aclocal
$aclocalinclude ...
"
130 aclocal $aclocalinclude
131 if grep "^AM_CONFIG_HEADER
" configure.in >/dev/null; then
132 echo "Running autoheader...
"
135 echo "Running automake
--gnu $am_opt ...
"
136 automake --add-missing --gnu $am_opt
137 echo "Running autoconf ...
"
143 conf_flags="--enable-maintainer-mode"
146 #if [ -a "$srcdir/include
" ]; then
147 # echo -n Removing old system include behavior emulation...
148 # rm -rf $srcdir/include
151 #echo -n Creating the system include behavior emulation...
152 #mkdir $srcdir/include
153 #mkdir $srcdir/include/ltt
154 #ln -sf ../../LibLTT/ltt.h $srcdir/include/ltt/ltt.h
155 #mkdir $srcdir/include/lttv
156 #ln -sf ../../lttv/module.h $srcdir/include/lttv/module.h
157 #ln -sf ../../lttv/hook.h $srcdir/include/lttv/hook.h
158 #ln -sf ../../lttv/traceWindow.h $srcdir/include/lttv/traceWindow.h
163 if test x$NOCONFIGURE = x; then
164 echo Running $srcdir/configure $conf_flags "$@
" ...
165 $srcdir/configure $conf_flags "$@
" \
166 && echo Now type \`make\' to compile. || exit 1
168 echo Skipping configure process.