Janis Streib
31.12.21 e9b8708a5c894c6df15f51ca0bedb7689223469c
commit | author | age
4244cc 1 #                                               -*- Autoconf -*-
JS 2 # Process this file with autoconf to produce a configure script.
3
929277 4 AC_PREREQ([2.69])
JS 5 AC_INIT([g4export], [1.0.0], [help@polhemus.com])
4244cc 6 AM_INIT_AUTOMAKE
929277 7 AC_CONFIG_SRCDIR([src/])
4244cc 8 AC_CONFIG_HEADERS([config.h])
JS 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 AC_CONFIG_FILES([Makefile
51                  src/Makefile])
52 AC_OUTPUT