Debian package version of polhemus's g4term
Janis Streib
30.03.22 8c7455636f3d259c44540ba6da9d3aaee993eeeb
commit | author | age
8c7455 1 #                                               -*- Autoconf -*-
JS 2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([g4term], [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 have_g4lib=no
16 AC_SEARCH_LIBS([g4_init_sys],[G4Track],[have_g4lib=yes])
17
18 if test "x${have_g4lib}" = xno; then
19    AC_MSG_ERROR([
20 --------------------------------------------------------------------------
21 The G4Term Application requires the G4Track lib to build and run.  Stopping....
22 Check 'config.log' for more information.
23 --------------------------------------------------------------------------])
24 fi
25
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
33 # Checks for typedefs, structures, and compiler characteristics.
34 AC_HEADER_STDBOOL
35 AC_TYPE_UINT32_T
36 AC_TYPE_UINT8_T
37
38 # Checks for library functions.
39 AC_CHECK_FUNCS([memset],[],
40     [AC_MSG_ERROR(["Failure finding required function -- Terminating configure"])])
41
42 # Check for GTK+
43 PKG_CHECK_MODULES([GTK],[gtk+-3.0])
44
45 # Checks for pthreads
46 AX_PTHREAD([
47     AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])
48     LIBS="$PTHREAD_LIBS $LIBS"
49     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
50     CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
51     CC="$PTHREAD_CC"
52     ])
53
54
55 AC_CONFIG_FILES([Makefile
56                  src/Makefile])
57
58 AC_OUTPUT