# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(pdnmesh, 0.2.1, pdnmesh-bugs@lists.soureforge.net) # for automake AM_INIT_AUTOMAKE(pdnmesh,0.2.1) # unique file in soure dir to check it really exists AC_CONFIG_SRCDIR(src/pdnmesh.c) AC_CONFIG_HEADERS(config.h) #AM_CONFIG_HEADER(config.h) # Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AM_PROG_LEX AC_PROG_YACC # Checks for libraries. AC_PATH_X AC_PATH_XTRA # GTK AM_PATH_GTKGLEXT_1_0(1.0.0, [LIBS="$LIBS $GTKGLEXT_LIBS" CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS"], AC_MSG_ERROR(Cannot find GTKGLExt. You may need to install this.\ If you have already installed it add pkg-config into PATH and try again.)) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC AC_FUNC_STRTOD AC_CHECK_FUNCS([memset pow sqrt strtol]) ACX_BLAS ACX_LAPACK([LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS" CFLAGS="$CFLAGS -DUSE_LAPACK"], AC_MSG_WARN([Cannot Find LAPACK. If You have LAPACK try again\ with --with-lapack=. Otherwise generic eigenroutines will be used.])) AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile doc/tutorial/Makefile doc/examples/Makefile man/Makefile man/pdnmesh.1 man/pdnmesh_input.5 win32/Makefile win32/res/Makefile pixmaps/Makefile debian/Makefile]) AC_CONFIG_COMMANDS([default],[[echo timestamp > stamp-h ]],[[]]) AC_OUTPUT