Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

OI is latest 151a7. Fresh install, total newbie, installed ss-dev, gcc-dev, sunstudio, a few other packages I thought were relevant based on what I read. Just want to compile LXDE from source because when I look at installing from components ( ) well not all the newer QT based stuff is there plus I get errors configuring so it's not even easier. So I use instead i.e. let's start with lxde-common-qt. Clone that. complains automake is not there. export AUTOMAKE="automake-1.10" as trying automake+tab yields that (I know this is not the best way of doing this, but using export guarantees I don't screw up in any lasting fashion). This works, as autogen goes further. Here it starts:

+ [ x != x ]
+ aclocal ./[25]: aclocal: not found [No such file or directory]
+ automake-1.10 --add-missing --copy --include-deps no proper invocation of AM_INIT_AUTOMAKE was found. You should verify that invokes AM_INIT_AUTOMAKE, that aclocal.m4 is present in the top-level directory, and that aclocal.m4 was recently regenerated (using aclocal). installing `./install-sh' man/ ENABLE_REGENERATE_MAN does not appear in AM_CONDITIONAL
+ autoconf error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation. error: possibly undefined macro: AM_CONDITIONAL
+ rm -rf autom4te.cache

So let's take a look at

AC_INIT(lxde-common-qt,[0.5.5], [],lxde-common-qt)
dnl  AC_PROG_INTLTOOL(, [no-xml])

Checks for programs. AC_PROG_INSTALL AC_PROG_LN_S

               [regenerate roff man pages from Docbook @<:@default=no@:>@])],
       [enable_man=no] )  xsessions data of path for GDM AC_ARG_WITH([xsession-path],
        [set the install path of xsession data [[DATAROOTDIR/xsessions]]]),
        [test x$withval != x && xsesspath="$withval"],
        [xsesspath="\${datarootdir}/xsessions"]) AC_SUBST(xsesspath)

if test x"$enable_man" = x"yes"; then
    AC_PATH_PROG([XSLTPROC], [xsltproc])
    if test -z "$XSLTPROC"; then

    dnl check for DocBook DTD and stylesheets in the local catalog.
        [DocBook XML DTD V4.1.2], [], enable_man=no)
        [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no) fi

AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")

AC_OUTPUT([   Makefile   startlxde-qt   lxde-logout-qt   LXDE-Qt.desktop   lxde-logout-qt.desktop   lxpanel/panel   openbox/rc.xml   man/Makefile ])

if test x"$sysconfdir" != x'/etc'; then
    echo 'Error: sysconfdir is not /etc.'
    echo 'Please consider passing --sysconfdir=/etc to configure.';
    echo 'Otherwise default config files will be installed to wrong place.'
    echo fi

Sure I see AM_INIT_AUTOMAKE is empty, so I tried putting all sorts of variations of "[lxde-common-qt 0.5.5]" but not success...

I mean no, nothing has ever been compiled on this and I don't have much experience. Usually I'll try to install missing packages, use export a bit for obvious things, but those automake errors... what is that. There's no aclocal.m4 file in the project folder:

lxpanel configure

Do I need to use something like a *m4_pattern_allow([^m4_cv_])* entry in the file?

share|improve this question
Instead of writing the answer you found yourself in an update, you should provide that part as an answer, and possible accept it. Then everyone can see this question has an acceptable answer without having to wade through it. – Anthon Aug 2 '13 at 7:25

1 Answer 1

up vote 0 down vote accepted

The solution is to remove those 2 parentheses from the AM_INIT_AUTOMAKE() line in the file - so what remains is just AM_INIT_AUTOMAKE. After that I was able to have a configure file and install! Why it was like that in the first place will remain a mystery!

Well, when you have to change these by hand, it might also be that your PATH variable is not properly set, etc. so tools are not found or chained properly. Here's a sample of my new PATH, which seemingly takes care of those AM errors without having to edit the file...:

share|improve this answer
Thank you Anthon for you suggestion. I did just that! – Làchus'n'AI Aug 2 '13 at 10:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.