]> git.lyx.org Git - lyx.git/blobdiff - autogen.sh
make .po.pox work when builddir != srcdir
[lyx.git] / autogen.sh
index e07b3560e1be086e080d2744b28ab703a894853a..247d070e77e83d880bc13d5abecaf8b772f9ab30 100755 (executable)
@@ -6,6 +6,9 @@ AUTOMAKE="automake -a -c --foreign"
 AUTOCONF=autoconf
 GNUM4=
 
+ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 sigc++.m4 qt2.m4 gtk--.m4 gnome--.m4 gnome.m4 pspell.m4"
+SIGCPP_ACINCLUDE_FILES="libtool.m4"
+
 echo -n "Locating GNU m4... "
 for prog in $M4 gm4 gnum4 m4 ; do
   case `$prog --version 2>&1` in
@@ -22,30 +25,18 @@ fi
 
 # Generate acinclude.m4
 echo -n "Generate acinclude.m4... "
-rm -f acinclude.m4 sigc++/acinclude.m4 boost/acinclude.m4
-touch acinclude.m4
-for fil in config/lyxinclude.m4 config/libtool.m4 config/gettext.m4 config/lcmessage.m4 config/progtest.m4 config/sigc++.m4 config/kde.m4 config/qt2.m4 config/gtk--.m4 config/gnome--.m4 config/gnome.m4 config/pspell.m4; do
-    cat $fil >> acinclude.m4
-done
-touch sigc++/acinclude.m4
-for fil in config/libtool.m4 ; do
-    cat $fil >> sigc++/acinclude.m4
-done
-touch boost/acinclude.m4
-for fil in config/boost.m4 config/libtool.m4 ; do
-    cat $fil >> boost/acinclude.m4
-done
+rm -f acinclude.m4 sigc++/acinclude.m4
+(cd config ; cat ${ACINCLUDE_FILES} >../acinclude.m4)
+(cd config ; cat ${SIGCPP_ACINCLUDE_FILES} >../sigc++/acinclude.m4)
 echo "done."
 
 # Generate the Makefiles and configure files
 if ( aclocal --version ) </dev/null > /dev/null 2>&1; then
        echo "Building macros..."
-       for dir in . lib/reLyX sigc++ boost ; do
+       for dir in . lib/reLyX sigc++ ; do
            echo "        $dir"
            ( cd $dir ; $ACLOCAL )
        done
-#      $ACLOCAL ; ( cd lib/reLyX; $ACLOCAL ) ; ( cd sigc++; $ACLOCAL ) 
-#      ( cd boost; $ACLOCAL ) 
        echo "done."
 else
        echo "aclocal not found -- aborting"
@@ -54,11 +45,10 @@ fi
 
 if ( autoheader --version ) </dev/null > /dev/null 2>&1; then
        echo "Building config header template..."
-       for dir in . sigc++ boost ; do
+       for dir in . sigc++ ; do
            echo "        $dir"
            ( cd $dir ; $AUTOHEADER )
        done
-#      $AUTOHEADER ; ( cd sigc++; $AUTOHEADER ) ; ( cd boost; $AUTOHEADER ) 
        echo "done."
 else
        echo "autoheader not found -- aborting"
@@ -67,12 +57,10 @@ fi
 
 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
        echo "Building Makefile templates..."
-       for dir in . lib/reLyX sigc++ boost ; do
+       for dir in . lib/reLyX sigc++ ; do
            echo "        $dir"
            ( cd $dir ; $AUTOMAKE )
        done
-#      $AUTOMAKE ; ( cd lib/reLyX ; $AUTOMAKE ) ; ( cd sigc++; $AUTOMAKE ) 
-#      ( cd boost; $AUTOMAKE )
        echo "done."
 else
        echo "automake not found -- aborting"
@@ -81,12 +69,10 @@ fi
 
 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
        echo "Building configure..."
-       for dir in . lib/reLyX sigc++ boost ; do
+       for dir in . lib/reLyX sigc++ ; do
            echo "       $dir"
            ( cd $dir ; $AUTOCONF )
        done
-#      $AUTOCONF ; ( cd lib/reLyX ; $AUTOCONF ) ; ( cd sigc++; $AUTOCONF )
-#      ( cd boost; $AUTOCONF ) 
        echo "done."
 else
        echo "autoconf not found -- aborting"