forked from lix-project/lix
autoconf: Fix AC_STRUCT_DIRENT_D_TYPE being used before AC_PROG_CC.
That was incorrect, because checking the dirent type already requires a working compiler. It had the effect that setting e.g. `: ${CFLAGS=""}` before `AC_PROG_CC` as per `AC_PROG_CC`'s documentation would have no effect, because `AC_STRUCT_DIRENT_D_TYPE` would automatically set CFLASGS. (In a followup commit `: ${CFLAGS=""}` will be used, so it's important to get this working first.)
This commit is contained in:
parent
fe068eca00
commit
20129bd83d
16
configure.ac
16
configure.ac
|
@ -50,14 +50,6 @@ AC_DEFINE_UNQUOTED(SYSTEM, ["$system"], [platform identifier ('cpu-os')])
|
||||||
test "$localstatedir" = '${prefix}/var' && localstatedir=/nix/var
|
test "$localstatedir" = '${prefix}/var' && localstatedir=/nix/var
|
||||||
|
|
||||||
|
|
||||||
# Solaris-specific stuff.
|
|
||||||
AC_STRUCT_DIRENT_D_TYPE
|
|
||||||
if test "$sys_name" = sunos; then
|
|
||||||
# Solaris requires -lsocket -lnsl for network functions
|
|
||||||
LIBS="-lsocket -lnsl $LIBS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
@ -71,6 +63,14 @@ AC_CHECK_TOOL([AR], [ar])
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
|
||||||
|
# Solaris-specific stuff.
|
||||||
|
AC_STRUCT_DIRENT_D_TYPE
|
||||||
|
if test "$sys_name" = sunos; then
|
||||||
|
# Solaris requires -lsocket -lnsl for network functions
|
||||||
|
LIBS="-lsocket -lnsl $LIBS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check for pubsetbuf.
|
# Check for pubsetbuf.
|
||||||
AC_MSG_CHECKING([for pubsetbuf])
|
AC_MSG_CHECKING([for pubsetbuf])
|
||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
|
|
Loading…
Reference in a new issue