2009-07-24 13:43:04 +06:00
|
|
|
AC_INIT([netgen],[4.9.10],[],[])
|
2009-01-13 23:32:10 +05:00
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
|
|
|
|
|
2009-01-16 01:41:14 +05:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2009-01-18 00:37:57 +05:00
|
|
|
AC_PREFIX_DEFAULT(["/opt/netgen"])
|
|
|
|
|
2009-01-16 01:41:14 +05:00
|
|
|
|
2009-01-18 19:47:12 +05:00
|
|
|
# Tcl/Tk configuration:
|
|
|
|
|
2009-01-16 01:41:14 +05:00
|
|
|
TEA_INIT([3.6])
|
|
|
|
|
|
|
|
TEA_PATH_TCLCONFIG
|
|
|
|
TEA_LOAD_TCLCONFIG
|
2009-01-16 04:03:40 +05:00
|
|
|
|
|
|
|
TEA_PATH_TKCONFIG
|
2009-01-18 05:25:35 +05:00
|
|
|
TEA_LOAD_TKCONFIG
|
2009-01-16 01:41:14 +05:00
|
|
|
|
2009-01-17 01:09:52 +05:00
|
|
|
TEA_PUBLIC_TCL_HEADERS
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-14 02:14:02 +05:00
|
|
|
|
2009-01-13 23:32:10 +05:00
|
|
|
AC_ARG_ENABLE([occ],
|
2009-01-15 22:37:07 +05:00
|
|
|
[ --enable-occ compile with OpenCascade geometry kernel],
|
2009-01-14 22:27:44 +05:00
|
|
|
[occon=true
|
2009-01-15 22:37:07 +05:00
|
|
|
occfl="-DOCCGEOMETRY"
|
2009-01-31 03:23:56 +05:00
|
|
|
occlfl="-lTKernel -lTKGeomBase -lTKMath -lTKG2d -lTKG3d -lTKXSBase -lTKOffset -lTKFillet -lTKShHealing -lTKMesh -lTKMeshVS -lTKTopAlgo -lTKGeomAlgo -lTKBool -lTKPrim -lTKBO -lTKIGES -lTKBRep -lTKSTEPBase -lTKSTEP -lTKSTL -lTKSTEPAttr -lTKSTEP209 -lTKXDESTEP -lTKXDEIGES -lTKXCAF -lTKDCAF -lTKLCAF" ],
|
2009-01-13 23:32:10 +05:00
|
|
|
[occon=false] )
|
|
|
|
|
2009-01-15 22:37:07 +05:00
|
|
|
AC_ARG_WITH([occ],
|
|
|
|
[ --with-occ=dir use OpenCascade installed in directory dir],
|
|
|
|
[occdir=$withval]
|
|
|
|
[occincfl="-I$withval/inc"]
|
|
|
|
[occlibfl="-L$withval/lib"],
|
|
|
|
)
|
|
|
|
|
2009-01-18 19:47:12 +05:00
|
|
|
|
2009-01-15 22:37:07 +05:00
|
|
|
AC_ARG_WITH([togl],
|
|
|
|
[ --with-togl=dir directory containing libTogl1.7],
|
|
|
|
[togldir=$withval]
|
2009-01-20 14:08:01 +05:00
|
|
|
[togllibfl="-L$withval$"]
|
2009-01-15 22:37:07 +05:00
|
|
|
)
|
2009-01-20 14:08:01 +05:00
|
|
|
# [togllibfl="-L$(TK_BIN_DIR)/Togl1.7"]
|
|
|
|
# [togllibfl="-L/usr/local/lib/Togl1.7"]
|
2009-01-15 22:37:07 +05:00
|
|
|
|
|
|
|
|
2009-01-18 19:47:12 +05:00
|
|
|
AC_ARG_ENABLE([nglib],
|
|
|
|
[ --enable-nglib generate shared library nglib],
|
|
|
|
[ nglibon=true ],
|
|
|
|
[ nglibon=false ])
|
|
|
|
|
|
|
|
|
2009-01-25 07:54:27 +05:00
|
|
|
AC_ARG_ENABLE([parallel],
|
|
|
|
[ --enable-parallel enable mpi parallelization],
|
2009-01-26 00:24:07 +05:00
|
|
|
[AC_SUBST([MPI_INCLUDES], "-I/opt/mpich/include -DPARALLEL -I/usr/share/metis/Lib -DMETIS")
|
2009-06-14 16:49:08 +06:00
|
|
|
AC_SUBST([MPI_LIBS], "-lmetis -L/opt/mpich/ch-p4/lib -lmpich")
|
2009-01-25 07:54:27 +05:00
|
|
|
]
|
2009-04-05 21:10:33 +06:00
|
|
|
)
|
|
|
|
|
2009-01-25 07:54:27 +05:00
|
|
|
|
2009-01-26 00:24:07 +05:00
|
|
|
# [AC_SUBST([MPI_INCLUDES], "-I/opt/mpich/include -DPARALLEL -I/home/joachim/download/metis-4.0/Lib -DMETIS")
|
|
|
|
# AC_SUBST([MPI_LIBS], "-L/home/joachim/download/metis-4.0 -lmetis -L/opt/mpich/ch-p4/lib64 -lmpich")
|
2009-01-25 07:54:27 +05:00
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
|
2009-04-05 21:10:33 +06:00
|
|
|
|
|
|
|
AC_ARG_ENABLE([jpeglib],
|
2009-04-07 19:15:21 +06:00
|
|
|
[AS_HELP_STRING([--enable-jpeglib],[enable snapshots using library libjpeg])],
|
2009-04-05 21:10:33 +06:00
|
|
|
[AC_SUBST([JPEGLIB_INCLUDES], "-DJPEGLIB")
|
2009-04-07 19:15:21 +06:00
|
|
|
AC_CHECK_LIB(jpeg, jpeg_start_compress,
|
|
|
|
AC_SUBST([JPEGLIB_LIBS], "-ljpeg") ,
|
|
|
|
AC_MSG_ERROR([no usable library libjpeg found]))
|
2009-04-05 21:10:33 +06:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([ffmpeg],
|
2009-04-07 19:15:21 +06:00
|
|
|
[AS_HELP_STRING([--enable-ffmpeg],[enable video recording with FFmpeg, uses libavcodec])],
|
2009-04-05 21:10:33 +06:00
|
|
|
[AC_SUBST([FFMPEG_INCLUDES], "-DFFMPEG")
|
|
|
|
AC_SUBST([FFMPEG_LIBS], "-lavutil -lavformat -lavcodec -lavutil -lswscale -lz -lbz2")
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
2009-01-14 21:43:39 +05:00
|
|
|
# AC_HEADER_STDC
|
2009-01-14 02:14:02 +05:00
|
|
|
AC_CONFIG_HEADERS(config.h)
|
2009-01-18 19:47:12 +05:00
|
|
|
AC_DISABLE_STATIC
|
|
|
|
|
2009-01-16 01:41:14 +05:00
|
|
|
AC_LANG([C++])
|
2009-01-13 04:40:13 +05:00
|
|
|
AC_PROG_CXX
|
2009-01-18 19:47:12 +05:00
|
|
|
AC_PROG_LIBTOOL
|
2009-01-16 01:41:14 +05:00
|
|
|
LT_INIT
|
2009-01-13 04:40:13 +05:00
|
|
|
|
2009-01-14 21:29:22 +05:00
|
|
|
|
2009-01-18 04:18:51 +05:00
|
|
|
# AM_CONDITIONAL([OCC], [test x$occon = xtrue])
|
2009-01-18 19:47:12 +05:00
|
|
|
AM_CONDITIONAL([NGLIB], [test x$nglibon = xtrue])
|
2009-01-15 22:37:07 +05:00
|
|
|
|
|
|
|
# AC_SUBST([OCCFLAGS], [$occfl])
|
|
|
|
AC_SUBST([OCCFLAGS], ["$occfl $occincfl"])
|
|
|
|
AC_SUBST([OCCLIBS], ["$occlfl $occlibfl"])
|
|
|
|
AC_SUBST([TOGLLIBDIR], ["$togllibfl"])
|
2009-01-14 02:14:02 +05:00
|
|
|
|
2009-01-14 22:27:44 +05:00
|
|
|
AC_CHECK_HEADER(pthread.h)
|
|
|
|
AC_CHECK_HEADER([togl.h])
|
2009-02-05 04:09:28 +05:00
|
|
|
AC_CHECK_HEADER([GL/gl.h])
|
2009-01-14 22:27:44 +05:00
|
|
|
|
2009-01-14 02:14:02 +05:00
|
|
|
AC_CHECK_HEADER([iostream],[OCCFLAGS="$OCCFLAGS -DHAVE_IOSTREAM"])
|
|
|
|
AC_CHECK_HEADER([iostream.h],[OCC_FLAGS="$OCCFLAGS -DHAVE_IOSTREAM_H"])
|
|
|
|
AC_CHECK_HEADER([limits],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS"])
|
|
|
|
AC_CHECK_HEADER([limits.h],[OCCFLAGS="$OCCFLAGS -DHAVE_LIMITS_H"])
|
|
|
|
|
2009-01-14 22:31:36 +05:00
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
2009-01-16 04:03:40 +05:00
|
|
|
# AC_SEARCH_LIBS(Tcl_Init, [tcl8.5 tcl8.4])
|
2009-01-16 01:41:14 +05:00
|
|
|
|
|
|
|
|
2009-02-05 04:09:28 +05:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# __CHANGE__
|
|
|
|
# Choose OpenGL platform (borrowed from Togl1.7)
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
case "${TEA_WINDOWINGSYSTEM}" in
|
|
|
|
aqua)
|
|
|
|
AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_AGL)
|
|
|
|
TEA_ADD_LIBS([-framework AGL -framework OpenGL -framework ApplicationServices])
|
|
|
|
# libGLU is implicit in OpenGL framework
|
|
|
|
LIBGLU=
|
|
|
|
;;
|
|
|
|
x11)
|
|
|
|
AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_X11)
|
|
|
|
TEA_ADD_LIBS([-lGL -lXmu])
|
|
|
|
LIBGLU=-lGLU
|
|
|
|
;;
|
|
|
|
win32)
|
|
|
|
AC_SUBST(TOGL_WINDOWINGSYSTEM,TOGL_WGL)
|
|
|
|
TEA_ADD_LIBS([opengl32.lib user32.lib gdi32.lib])
|
|
|
|
if test "$GCC" = "yes" ; then
|
|
|
|
LIBGLU=-lglu32
|
|
|
|
else
|
|
|
|
LIBGLU=glu32.lib
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([Unsupported windowing system: ${TEA_WINDOWINGSYSTEM}])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(LIBGLU)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-01-16 01:41:14 +05:00
|
|
|
AC_CHECK_FUNCS([pow])
|
|
|
|
AC_CHECK_FUNCS([floor])
|
|
|
|
AC_CHECK_HEADERS([limits.h])
|
|
|
|
|
2009-01-13 23:32:10 +05:00
|
|
|
|
2009-01-18 19:47:12 +05:00
|
|
|
AC_CONFIG_FILES(Makefile libsrc/Makefile libsrc/csg/Makefile
|
|
|
|
libsrc/general/Makefile libsrc/geom2d/Makefile libsrc/gprim/Makefile
|
|
|
|
libsrc/include/Makefile libsrc/interface/Makefile
|
|
|
|
libsrc/linalg/Makefile libsrc/meshing/Makefile libsrc/occ/Makefile
|
2009-01-26 00:37:49 +05:00
|
|
|
libsrc/stlgeom/Makefile
|
2009-01-26 00:24:07 +05:00
|
|
|
libsrc/visualization/Makefile ng/Makefile nglib/Makefile
|
2009-02-01 02:07:21 +05:00
|
|
|
tutorials/Makefile doc/Makefile windows/Makefile )
|
2009-01-13 23:32:10 +05:00
|
|
|
|
2009-01-14 02:14:02 +05:00
|
|
|
AC_OUTPUT
|