Project

General

Profile

Actions

Bug #2468

closed

The autoconf process fails when some options are disabled

Added by Michal Purzynski over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Hello, everyone!!

Some of the autoconf's configure script options make the configuration process fail if libraries for the functionality I want to disable, is not present. For example:

--disable-nflog

causes the configure to fail with

configure: error: libnetfilter_log.h not found ...

There are other switches that make the 'configure' script fail, if libraries for what I'm about to disable, aren't present, such as

Tried to explicitly disable DAG support

checking for dagapi.h... no
ERROR! libdag library not found

Tried to explicitly disable Napatech support

checking for nt.h... no
ERROR! libntapi library not found

Tried to explicitly disable hiredis support

checking for hiredis/hiredis.h... no
ERROR! libhiredis library not found, go get it

The configuration process behaves as if I was trying to enable them, thus it checks if libraries and header files are present, then it disables that functionality.

The correct action here would be to not bother checking for header files, since we are not going to use them anyway.


Related issues 2 (0 open2 closed)

Related to Suricata - Bug #1835: AC_ARG_ENABLE usage is incorrectClosedActions
Related to Suricata - Bug #2473: Please allow disabling every option (add --without-{option})ClosedActions
Actions

Also available in: Atom PDF