summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac133
1 files changed, 0 insertions, 133 deletions
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 3c93dc0..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,133 +0,0 @@
-AC_INIT([argyll], [1.3.7])
-AM_INIT_AUTOMAKE([1.9 foreign])
-
-AC_PROG_CC
-LT_INIT
-AC_PROG_INSTALL
-
-AM_PROG_LIBTOOL
-AC_PROG_LIBTOOL
-
-AC_CONFIG_MACRO_DIR([m4])
-AM_CONFIG_HEADER([config.h])
-
-AC_PATH_XTRA
-
-AC_CHECK_LIB(m, sqrt)
-AC_CHECK_LIB(pthread, pthread_create)
-
-AC_CHECK_LIB(tiff, TIFFOpen, TIFF_LIBS="-ltiff", , -lm)
-AC_SUBST([TIFF_LIBS])
-
-AC_CHECK_LIB(rt, clock_gettime)
-
-AC_ARG_WITH(system-libicc, [ --with-system-libicc use system libicc instead of argyllcms copy],system_libicc=$withval,system_libicc=no)
-AC_MSG_CHECKING([whether to use system libicc or not])
-if test x$system_libicc = xno ; then
- HAVE_ICC=false
- AC_MSG_RESULT(no)
-else
- AC_MSG_RESULT(yes)
- AC_CHECK_LIB(icc, new_icmFileStd_name, HAVE_ICC="true", , -lm)
- if test "$HAVE_ICC" != "true" ; then
- AC_MSG_ERROR([system libicc missing or not compatible with argyllcms])
- fi
-fi
-if test "$HAVE_ICC" = "true" ; then
- ICC_LIBS="-licc"
-else
- ICC_LIBS='$(top_srcdir)/icc/libicc.la'
- ICC_CFLAGS='-I$(top_srcdir)/icc'
- ICC_SUBDIRS='icc'
-fi
-AC_SUBST([ICC_LIBS])
-AC_SUBST([ICC_CFLAGS])
-AC_SUBST([ICC_SUBDIRS])
-
-AC_ARG_WITH(system-libyajl, [ --with-system-libyajl use system libyajl instead of argyllcms copy],system_libyajl=$withval,system_libyajl=no)
-AC_MSG_CHECKING([whether to use system libyajl or not])
-if test x$system_libyajl = xno ; then
- HAVE_YAJL=false
- AC_MSG_RESULT(no)
-else
- AC_MSG_RESULT(yes)
- AC_CHECK_LIB(yajl, yajl_gen_c_comment, HAVE_YAJL="true", , -lm)
- if test "$HAVE_YAJL" != "true" ; then
- AC_MSG_ERROR([system libyajl missing or not compatible with argyllcms])
- fi
-fi
-if test "$HAVE_YAJL" = "true" ; then
- YAJL_LIBS="-lyajl"
-else
- YAJL_LIBS='$(top_srcdir)/jcnf/yajl/libyajl.la'
- YAJL_CFLAGS='-I$(top_srcdir)/jcnf/yajl'
- YAJL_SUBDIRS='yajl'
-fi
-AC_SUBST([YAJL_LIBS])
-AC_SUBST([YAJL_CFLAGS])
-AC_SUBST([YAJL_SUBDIRS])
-
-AC_CHECK_LIB(X11, XOpenDisplay, X_LIBS="$X_LIBS -lX11")
-AC_CHECK_LIB(Xext, XextFindDisplay, X_LIBS="$X_LIBS -lXext",,-lX11)
-AC_CHECK_LIB(Xss, XScreenSaverSuspend, X_LIBS="$X_LIBS -lXss",,-lXext -lX11)
-AC_CHECK_LIB(Xrandr, XRRRootToScreen, X_LIBS="$X_LIBS -lXrandr",,-LXext -lX11)
-AC_CHECK_LIB(Xinerama, XineramaQueryScreens, X_LIBS="$X_LIBS -lXinerama",,-LXext -lX11)
-AC_CHECK_LIB(Xxf86vm, XF86VidModeGetGamma, X_LIBS="$X_LIBS -lXxf86vm",,-lXext -lX11)
-AC_SUBST([X_LIBS])
-
-AC_SUBST(OS_LINUX)
-AC_SUBST(OS_BSD)
-case $host in
- *-linux*)
- OS_LINUX=1
- OS_BSD=0
- AC_DEFINE([OS_LINUX],[1],[Linux kernel])
- AM_CONDITIONAL([OS_LINUX],[true])
- ;;
- *-freebsd*|*-kfreebsd*-gnu|*-openbsd*|*-netbsd*)
- OS_LINUX=0
- OS_BSD=1
- AC_DEFINE([OS_LINUX],[0],[Linux kernel])
- AM_CONDITIONAL([OS_LINUX],[false])
- ;;
- *)
- OS_LINUX=0
- OS_BSD=0
- AC_DEFINE([OS_LINUX],[0],[Linux kernel])
- AM_CONDITIONAL([OS_LINUX],[false])
- ;;
-esac
-AC_DEFINE([API_EXPORTED],[],[Default visibility])
-
-AC_C_BIGENDIAN
-if test "$ac_cv_c_bigendian" = "yes"; then
- BIGENDIAN="1"
-else
- BIGENDIAN="0"
-fi
-AC_SUBST(BIGENDIAN)
-
-AC_CONFIG_FILES([Makefile
- h/Makefile
- doc/Makefile
- ref/Makefile
- numlib/Makefile
- cgats/Makefile
- plot/Makefile
- rspl/Makefile
- icc/Makefile
- gamut/Makefile
- xicc/Makefile
- link/Makefile
- spectro/Makefile
- profile/Makefile
- tweak/Makefile
- scanin/Makefile
- render/Makefile
- target/Makefile
- imdi/Makefile
- jcnf/Makefile
- jcnf/yajl/Makefile
- ucmm/Makefile])
-
-AC_OUTPUT