Das ist richtig. Ich werde mich bessern.
Das sind die 3 Dateien:
Code:
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ ls
configure.ac main.c makefile.am
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$
und der Inhalt von configure.ac:
Code:
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ cat configure.ac
AC_INIT([helloworld], [0.1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PATH_PROG
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$
beim Start von aclocal gibt es schon eine Fehlermeldung:
Code:
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ aclocal
configure.ac:4: error: AC_SUBST: `' is not a valid shell variable name
../../lib/autoconf/programs.m4:155: AC_PATH_PROG is expanded from...
configure.ac:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$
trotz Fehler wird ein neues Verzeichnis erstellt:
Code:
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ ls
autom4te.cache configure.ac main.c makefile.am
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ ls autom4te.cache/
output.0t requests traces.0t
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$
autoconf liefert diesen Fehler:
Code:
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$ autoconf
configure.ac:4: error: AC_SUBST: `' is not a valid shell variable name
../../lib/autoconf/programs.m4:155: AC_PATH_PROG is expanded from...
configure.ac:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
manfred@manfred-mint:~/Dropbox/Daten/Linux/autotools_test$
Wenn man sehen könnte, was beim Aufruf von aclocal alles abläuft, könnte man genauer
nachsehen.
Lesezeichen