File: configure.in.save

package info (click to toggle)
ifeffit 1:1.3.0-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 13,652 kB
  • ctags: 7,237
  • sloc: fortran: 33,599; ansic: 26,405; sh: 7,184; makefile: 5,469; python: 3,273; perl: 3,146; tcl: 95
file content (108 lines) | stat: -rw-r--r-- 2,998 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Copyright (C) 2000 Matt Newville <newville@cars.uchicago.edu>
#
# This file is free software; the author gives unlimited permission 
# to copy and/or distribute it, with or without modifications, as 
# long as this notice is preserved.
#
AC_INIT(ifeffit, 1.2.2, newville@cars.uchicago.edu)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(ifeffit,1.2.2)
AC_PROG_CC(cc gcc egcs)
AC_PROG_CPP(cc gcc egcs)
AC_PROG_F77(g77 f77 f90 fort77)
AC_F77_LIBRARY_LDFLAGS

AC_ISC_POSIX
AC_HEADER_STDC
AC_PROG_LIBTOOL

AC_PATH_PROGS(PERL,   perl perl5 perl5.005, NO_PERL )
AC_PATH_PROGS(PYTHON, python python2 python2.2 python2.1 python1.5, NO_PYTHON)

# use Debian version of readline
# AC_CONFIG_SUBDIRS(readline) 

# termcap 
BASH_CHECK_LIB_TERMCAP
AC_SUBST(TERMCAP_LIB)


################################
# test selected memory size
ARRSIZE=large
AC_ARG_WITH(arraysize, 
            [  --with-arraysize=size  specify array size:  tiny,small,medium,large,huge],  
	    [if test "$withval" = no; then  
               ARRSIZE=large; 
            else     
               ARRSIZE=$withval;
            fi])
AC_SUBST(ARRSIZE)
##
##
VERSION=`$SHELL ./iconf_iff $prefix $ARRSIZE $PACKAGE $ac_default_prefix `

## simple script to fix bad ordering of FLIBS with gcc
MN_FLIBS=`$SHELL ./iconf_flib  "$FLIBS"`
AC_SUBST(MN_FLIBS)

# tests for PGPLOT

pgdir=$PGPLOT_DIR
use_pgplot=true
pwd=`pwd`
PGPLOT_LIBS="$pwd/src/pgstub/libnopgplot.a";
AC_ARG_WITH(pgplot, [  --with-pgplot=dir       specify directory of libpgplot.a],
     [if test "$withval" = no; then  
           use_pgplot=false ; pgdir=''; 
      else 
           use_pgplot=true  ; pgdir=$withval ; 
      fi],  use_pgpglot=true)

# use test_plot script to test PGPLOT install
if $use_pgplot; then  PGPLOT_LIBS=`$SHELL ./iconf_pgplot $pgdir`; fi


# or specify full link argument!!
AC_ARG_WITH(pgplot-link, 
            [  --with-pgplot-link=link      specify all libraries for PGPLOT linking],
            [if test "$withval" ; then 
                use_pgplot=true; PGPLOT_LIBS=$withval; fi],  use_pgpglot=true)

AC_MSG_RESULT([will link to PGPLOT using $PGPLOT_LIBS])
AC_SUBST(use_pgplot)
AC_SUBST(PGPLOT_LIBS)
AC_SUBST(pgdir)
################################


# AC_CONFIG_SUBDIRS(fortran/f2c fortran/libf2c readline)
#          fortran/Makefile f2c_comp 
#          readline/Makefile

AC_OUTPUT([src/Makefile
	  src/pgstub/Makefile  
	  src/cldata/Makefile 
	  src/fefftab/Makefile 
          src/lib/Makefile 
 	  src/cmdline/Makefile 
          src/autobk/Makefile
          src/feffit/Makefile
          src/diffkk/Makefile
	  src/test/Makefile 
	  src/feff6/Makefile
          Makefile ])

# $SHELL ./config.status

AC_MSG_RESULT([===])
AC_MSG_RESULT([===  $PACKAGE $VERSION Configuration Results:])
if $use_pgplot ; then
   AC_MSG_RESULT([===  linking to PGPLOT with: $PGPLOT_LIBS]) ; 
else
   AC_MSG_RESULT([===  WARNING: Plotting will not work!]) ;
fi

AC_MSG_RESULT([===])
AC_MSG_RESULT([===  ready for next step: type 'make' then 'make install'])