1
# Copyright (C) 2000 Matt Newville <newville@cars.uchicago.edu>
3
# This file is free software; the author gives unlimited permission
4
# to copy and/or distribute it, with or without modifications, as
5
# long as this notice is preserved.
7
AC_INIT(ifeffit, 1.2.10, newville@cars.uchicago.edu)
8
AM_CONFIG_HEADER(config.h)
9
AM_INIT_AUTOMAKE(ifeffit,1.2.10)
12
## AC_PROG_F77(gfortran g77 g95 f77 f90)
19
AC_PATH_PROGS(PERL, perl perl5 perl5.8 perl5.6 perl5.005, NO_PERL )
20
AC_PATH_PROGS(PYTHON, python python2 python2.5 python2.4 python2.3 python2.2 python2.1, NO_PYTHON)
22
AC_CONFIG_SUBDIRS(readline)
24
################################
25
FCLIST='gfortran g77 g95 f77 f90 xlf'
27
[ --with-fortran=compiler specify fortran compiler g77 g95 gfortran],
28
[if test "$withval"; then FCLIST=$withval; fi])
31
AC_F77_LIBRARY_LDFLAGS
34
################################
35
# get terminal capabilities library (typically -L/usr/lib -lncurses)
37
TERMCAP_LIB=`$SHELL ./iconf_term`
38
AC_ARG_WITH(termcap-link,
39
[ --with-termcap-link=libraries to use for linking terminal capabilities],
40
[if test "$withval" ; then TERMCAP_LIB=$withval; fi])
44
################################
45
# test selected memory size
47
AC_ARG_WITH(arraysize,
48
[ --with-arraysize=size specify array size: tiny,small,medium,large,huge],
49
[if test "$withval" = no; then
57
VERSION=`$SHELL ./iconf_iff $prefix $ARRSIZE $PACKAGE $ac_default_prefix `
59
## simple script to fix bad ordering of FLIBS with gcc
61
MN_FLIBS=`$SHELL ./iconf_flib "$FLIBS"`
63
AC_MSG_RESULT([=== Fortran LIBS: $MN_FLIBS])
72
PGPLOT_LIBS="$pwd/src/pgstub/libnopgplot.a";
73
AC_ARG_WITH(pgplot, [ --with-pgplot=dir specify directory of libpgplot.a],
74
[if test "$withval" = no; then
75
use_pgplot=false ; pgdir='';
77
use_pgplot=true ; pgdir=$withval ;
78
fi], use_pgpglot=true)
80
# use test_plot script to test PGPLOT install
81
if $use_pgplot; then PGPLOT_LIBS=`$SHELL ./iconf_pgplot $pgdir`; fi
84
# or specify full link argument!!
85
AC_ARG_WITH(pgplot-link,
86
[ --with-pgplot-link=link specify all libraries for PGPLOT linking],
87
[if test "$withval" ; then
88
use_pgplot=true; PGPLOT_LIBS=$withval; fi], use_pgpglot=true)
90
AC_MSG_RESULT([will link to PGPLOT using $PGPLOT_LIBS])
94
################################
97
# AC_CONFIG_SUBDIRS(fortran/f2c fortran/libf2c readline)
98
# fortran/Makefile f2c_comp
101
AC_OUTPUT([src/Makefile
114
# $SHELL ./config.status
117
AC_MSG_RESULT([=== $PACKAGE $VERSION Configuration Results:])
118
if $use_pgplot ; then
119
AC_MSG_RESULT([=== linking to PGPLOT with: $PGPLOT_LIBS]) ;
121
AC_MSG_RESULT([=== WARNING: Plotting will not work!]) ;
124
if test "$TERMCAP_LIB" = "-L -l" ; then
126
AC_MSG_RESULT([=== could not find TERMCAP Libraries : 'make' will fail.]) ;
128
AC_MSG_RESULT([=== Please set TERMCAP_LIB in src/cmdline/Makefile or use the])
129
AC_MSG_RESULT([=== --termcap-link argument before running make])
131
AC_MSG_RESULT([=== using TERMCAP_LIB $TERMCAP_LIB]);
133
AC_MSG_RESULT([=== ready for next step: type 'make' then 'make install'])