mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
c588520727
Refactor autoconf, use best practices
19 lines
516 B
Plaintext
19 lines
516 B
Plaintext
|
|
dnl look for X windows libraries and headers we need to compile
|
|
AC_DEFUN([TR_XWINDOWS], [
|
|
AC_PATH_X
|
|
AS_IF([test "$no_x" = "yes"],
|
|
[
|
|
USE_X_WINDOWS=0
|
|
],
|
|
[
|
|
USE_X_WINDOWS=1
|
|
AS_IF([test "x$x_includes" = "x"],[],[X_INCLUDE_DIR=-I$x_includes])
|
|
AS_IF([test "x$x_libraries" = "x"],[],[X_LIB_DIR=-L$x_libraries])
|
|
AC_CHECK_HEADER([X11/Intrinsic.h],[],AC_MSG_ERROR([could not find libxt development headers]))
|
|
TR_JSC_DIRS([])
|
|
]
|
|
)
|
|
AC_SUBST([USE_X_WINDOWS])
|
|
AC_SUBST([X_LIB_DIR])
|
|
]) |