dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
586 stars 395 forks source link

fix(configure): misleading error if C compiler is not installed #2580

Closed aafeijoo-suse closed 6 months ago

aafeijoo-suse commented 7 months ago

While preparing a new system for development, ./configure reaches a point where it fails with:

$ ./configure
dracut needs fts development files.

After installing the fts library, ./configure keeps throwing the same error:

$ rpm -qf /usr/include/fts.h
glibc-devel-2.38-6.1.x86_64
$ ./configure
dracut needs fts development files.

The problem is ${CC} $CFLAGS $LDFLAGS conftest.c can also fail if the compiler referenced by $CC is not installed.

Checklist