kopia lustrzana https://github.com/jamescoxon/dl-fldigi
40 wiersze
1.5 KiB
Plaintext
40 wiersze
1.5 KiB
Plaintext
|
AC_DEFUN([AC_FLDIGI_FLTK], [
|
||
|
AC_ARG_VAR([FLTK_CFLAGS], [C compiler flags for FLTK, overriding fltk-config])
|
||
|
AC_ARG_VAR([FLTK_LIBS], [linker flags for FLTK, overriding fltk-config])
|
||
|
if test "x$FLTK_CFLAGS" = "x" && test "x$FLTK_LIBS" = "x"; then
|
||
|
AC_PATH_PROG([FLTK_CONFIG], [fltk-config], [no])
|
||
|
if test "$FLTK_CONFIG" = "no"; then
|
||
|
AC_MSG_ERROR([
|
||
|
*** The fltk-config script could not be found. Please install the development
|
||
|
*** headers and libraries for FLTK 1.1.x, or set PATH to the directory that
|
||
|
*** contains fltk-config.
|
||
|
])
|
||
|
fi
|
||
|
HAVE_FLTK_API_VERSION=no
|
||
|
FLTK_API_VERSION=`$FLTK_CONFIG --api-version`
|
||
|
if test "x$FLTK_API_VERSION" = "x1.1" || "x$FLTK_API_VERSION" = "x1.2"; then
|
||
|
HAVE_FLTK_API_VERSION=yes
|
||
|
fi
|
||
|
if test "${HAVE_FLTK_API_VERSION}" = "no"; then
|
||
|
AC_MSG_ERROR([
|
||
|
*** The version of FLTK found on your system provides API version $FLTK_API_VERSION.
|
||
|
*** To build $PACKAGE you need a FLTK version that provides API 1.1.
|
||
|
])
|
||
|
fi
|
||
|
FLTK_CFLAGS=`$FLTK_CONFIG --cxxflags`
|
||
|
if test "x$ac_cv_static" != "xyes"; then
|
||
|
FLTK_LIBS=`$FLTK_CONFIG --ldflags --use-images`
|
||
|
else
|
||
|
FLTK_LIBS=`$FLTK_CONFIG --ldstaticflags --use-images`
|
||
|
fi
|
||
|
else
|
||
|
AC_MSG_NOTICE([not checking for FLTK])
|
||
|
fi
|
||
|
AC_SUBST([FLTK_CFLAGS])
|
||
|
AC_SUBST([FLTK_LIBS])
|
||
|
|
||
|
AC_ARG_VAR([FLUID], [Fast Light User-Interface Designer])
|
||
|
AC_CHECK_PROG([FLUID], [fluid], [fluid])
|
||
|
AM_CONDITIONAL([HAVE_FLUID], [test -n "$FLUID"])
|
||
|
])
|