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