Assisted by Albert Villa who says it is safe to assume sys/param.h is
available, which is needed for FreeBSD version check on whether to
include xlocale.h in mlt_property.h.
TARGET = $(NAME).$(version)
SONAME = $(NAME).$(soversion)
SHFLAGS += -Wl,-soname,$(SONAME)
- ifeq ($(targetos), FreeBSD)
- ifdef HAVE_SYS_PARAM_H
- CFLAGS += -DHAVE_SYS_PARAM_H
- endif
- endif
endif
OBJS = mlt_frame.o \
echo "framework -I$prefix/include -I$prefix/include/mlt -D_REENTRANT -L$libdir -lmlt" >> ../../packages.dat
echo > config.mak
-if [ "$(uname -s)" = "FreeBSD" ]
-then
- printf "#include <sys/param.h>\n int main(){ return 0;}" | $CC -c -x c - >/dev/null 2>&1
- [ "$?" -eq 0 ] && echo "HAVE_SYS_PARAM_H=1" >> config.mak
-fi
-exit 0
#include "mlt_types.h"
-#ifdef HAVE_SYS_PARAM_H
+#if defined(__FreeBSD__)
+/* This header has existed since 1994 and defines __FreeBSD_version below. */
#include <sys/param.h>
#endif