1# See notes in Makefile.am 2 3# TODO 4# * Probe for necessary headers/libs? 5# * Manage optional libraries for dlopen 6# and also use a more generic name than dl_solver 7 8AC_PREREQ([2.60]) 9AC_INIT([NIDR],[1.201006],[dakota-developers@development.sandia.gov]) 10 11AM_INIT_AUTOMAKE([1.9 foreign]) 12AM_MAINTAINER_MODE 13 14AC_LANG([C]) 15 16dnl DL_SOLVER package check (toggles NIDR DL features and DL_SOLVER). 17AC_ARG_WITH([dl_solver], 18 AS_HELP_STRING([--with-dl_solver], [turn DL_SOLVER support on]), 19 [with_dl_solver=$withval], [with_dl_solver=no]) 20dnl if no dl_solver, -DNO_NIDR_DYNLIB set in src/Makefile.am 21AM_CONDITIONAL([WITH_DL_SOLVER], [test "x$with_dl_solver" = xyes ]) 22 23 24dnl Specification maintenance mode; must be enabled to update NIDR 25dnl itself or the specification of programs depending on it 26AC_ARG_ENABLE([spec-maint], 27 AS_HELP_STRING([--enable-spec-maint], 28 [enable specification maintenance]), 29 [enable_spec_maint=$enableval], [enable_spec_maint=no]) 30AM_CONDITIONAL([ENABLE_SPEC_MAINT], [test "x$enable_spec_maint" = xyes ]) 31 32AC_PROG_CC 33AC_PROG_RANLIB 34 35dnl Probe for programs needed to regenerate spec or NIDR itself 36#if test "x$enable_spec_maint" = xyes; then 37# AC_PROG_LEX 38# AC_PROG_YACC 39# AC_PROG_SED 40#fi 41LEX=lex 42AC_SUBST(LEX) 43YACC="bison -y" 44AC_SUBST(YACC) 45SED=sed 46AC_SUBST(SED) 47 48 49AC_CONFIG_FILES([Makefile]) 50AC_OUTPUT 51