Debian package version of polhemus's g4display
Janis Streib
30.03.22 48e3f3ec6672ba89420338fdfa76018e46750c9e
commit | author | age
69b66f 1 #                                               -*- Autoconf -*-
JS 2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([g4display], [1.0.0], [help@polhemus.com])
6 AM_INIT_AUTOMAKE
7 AC_CONFIG_SRCDIR([src/FilterDlg.h])
8 AC_CONFIG_HEADERS([config.h])
9
10 # Checks for programs.
11 AC_PROG_CXX
12 AC_PROG_CC
13
14 # Checks for libraries.
15 AC_SEARCH_LIBS([sqrt],[m])
16 have_g4lib=no
17 AC_SEARCH_LIBS([g4_init_sys],[G4Track],[have_g4lib=yes])
18
19 if test "x${have_g4lib}" = xno; then
20    AC_MSG_ERROR([
21 --------------------------------------------------------------------------
22 The G4Display Application requires the G4Track lib to build and run.  Stopping....
23 Check 'config.log' for more information.
24 --------------------------------------------------------------------------])
25 fi
26
27
28 # Checks for header files.
29 AC_CHECK_HEADERS([stdlib.h string.h unistd.h G4TrackIncl.h],[],
30         [AC_MSG_ERROR(["Failure finding required header file -- Terminating configure"])])
31
32 # Checks for typedefs, structures, and compiler characteristics.
33 AC_HEADER_STDBOOL
34 AC_TYPE_UINT32_T
35 AC_TYPE_UINT8_T
36
37 # Checks for library functions.
38     AC_CHECK_FUNCS([memset sqrt],[],
39                  [AC_MSG_ERROR(["Failure finding required function -- Terminating configure"])])
40            
41
42 # Checks for GTK+
43 PKG_CHECK_MODULES([GTK],[gtk+-2.0],[],
44     [AC_MSG_ERROR(["gtk+-2.0 is required for this project -- Terminating configure"])])
45
46 #Checks for GTKGLEXT (OpenGL ext for GTK)
47 PKG_CHECK_MODULES([GLEXT],[gtkglext-1.0],[],
48     [AC_MSG_ERROR(["gtkglext-1.0 is required for this project -- Terminating configure"])])
49
50 # Checks for pthreads
51 AX_PTHREAD([
52     AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])
53     LIBS="$PTHREAD_LIBS $LIBS"
54     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
55     CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
56     CC="$PTHREAD_CC"
57     ])
58
59 AC_CONFIG_FILES([Makefile
60                  src/Makefile])
61 AC_OUTPUT