aclocal.m4 is generating a wrong configure file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

aclocal.m4 is generating a wrong configure file

Pedro Kröger

this expression in aclocal.m4, around line 694

    # use absolute path.
    if [ "$srcdir" != "." ];  then
        srcdir=$(cd $srcdir;  pwd)
    fi

is generating this code (note there is no brackets) in configure, around
line 1494:

    # use absolute path.
    if  "$srcdir" != "." ;  then
        srcdir=$(cd $srcdir;  pwd)
    fi

which, naturally, raises an error.

I'm using M4 1.4.3 and autoconf 2.59.

Any ideas?

Pedro Kröger


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: aclocal.m4 is generating a wrong configure file

Jan Nieuwenhuizen
Pedro Kröger writes:

>     if [ "$srcdir" != "." ];  then
> srcdir=$(cd $srcdir;  pwd)
>     fi
>
> is generating this code (note there is no brackets) in configure, around
> line 1494:
>
>     # use absolute path.
>     if  "$srcdir" != "." ;  then
> srcdir=$(cd $srcdir;  pwd)
>     fi
>
> which, naturally, raises an error.
>
> I'm using M4 1.4.3 and autoconf 2.59.
>
> Any ideas?

Yes, "if test "$srcdir ..." must be used in autoconf.

Jan.

--
Jan Nieuwenhuizen <[hidden email]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: aclocal.m4 is generating a wrong configure file

Pedro Kröger
Jan Nieuwenhuizen <[hidden email]> writes:

> Yes, "if test "$srcdir ..." must be used in autoconf.

thanks, fixed in cvs.

Pedro Kröger


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel