~ubuntu-branches/ubuntu/trusty/ifeffit/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/configuration_patches/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2010-04-07 07:11:10 UTC
  • Revision ID: james.westby@ubuntu.com-20100407071110-spgaczzxuixbdeo2
Tags: 2:1.2.11d-6
* Clean up build rules to minimize the size of diff.gz
* Switch to dpkg-source 3.0 (quilt) format
* Rename perl wrapper package to libifeffit-perl (Closes: #575933)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2000 Matt Newville <newville@cars.uchicago.edu>
 
2
#
 
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.
 
6
#
 
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)
 
10
AC_PROG_CC(gcc cc )
 
11
AC_PROG_CPP(gcc cc)
 
12
## AC_PROG_F77(gfortran g77 g95 f77 f90)
 
13
 
 
14
AC_ISC_POSIX
 
15
AC_HEADER_STDC
 
16
AC_PROG_RANLIB
 
17
AC_INCLUDES_DEFAULT
 
18
 
 
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)
 
21
 
 
22
AC_CONFIG_SUBDIRS(readline) 
 
23
 
 
24
################################
 
25
FCLIST='gfortran g77 g95 f77 f90 xlf'
 
26
AC_ARG_WITH(fortran, 
 
27
            [ --with-fortran=compiler specify fortran compiler g77 g95 gfortran],  
 
28
            [if test "$withval"; then  FCLIST=$withval; fi])
 
29
 
 
30
AC_PROG_F77($FCLIST)
 
31
AC_F77_LIBRARY_LDFLAGS
 
32
 
 
33
 
 
34
################################
 
35
# get terminal capabilities library (typically -L/usr/lib -lncurses)
 
36
 
 
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])
 
41
 
 
42
AC_SUBST(TERMCAP_LIB)
 
43
 
 
44
################################
 
45
# test selected memory size
 
46
ARRSIZE=large
 
47
AC_ARG_WITH(arraysize, 
 
48
            [  --with-arraysize=size  specify array size:  tiny,small,medium,large,huge],  
 
49
            [if test "$withval" = no; then  
 
50
               ARRSIZE=large; 
 
51
            else     
 
52
               ARRSIZE=$withval;
 
53
            fi])
 
54
AC_SUBST(ARRSIZE)
 
55
##
 
56
##
 
57
VERSION=`$SHELL ./iconf_iff $prefix $ARRSIZE $PACKAGE $ac_default_prefix `
 
58
 
 
59
## simple script to fix bad ordering of FLIBS with gcc
 
60
 
 
61
MN_FLIBS=`$SHELL ./iconf_flib  "$FLIBS"`
 
62
 
 
63
AC_MSG_RESULT([===  Fortran LIBS: $MN_FLIBS])
 
64
 
 
65
AC_SUBST(MN_FLIBS)
 
66
 
 
67
# tests for PGPLOT
 
68
 
 
69
pgdir=''
 
70
use_pgplot=true
 
71
pwd=`pwd`
 
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=''; 
 
76
      else 
 
77
           use_pgplot=true  ; pgdir=$withval ; 
 
78
      fi],  use_pgpglot=true)
 
79
 
 
80
# use test_plot script to test PGPLOT install
 
81
if $use_pgplot; then  PGPLOT_LIBS=`$SHELL ./iconf_pgplot $pgdir`; fi
 
82
 
 
83
 
 
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)
 
89
 
 
90
AC_MSG_RESULT([will link to PGPLOT using $PGPLOT_LIBS])
 
91
AC_SUBST(use_pgplot)
 
92
AC_SUBST(PGPLOT_LIBS)
 
93
AC_SUBST(pgdir)
 
94
################################
 
95
 
 
96
 
 
97
# AC_CONFIG_SUBDIRS(fortran/f2c fortran/libf2c readline)
 
98
#          fortran/Makefile f2c_comp 
 
99
#          readline/Makefile
 
100
 
 
101
AC_OUTPUT([src/Makefile
 
102
          src/pgstub/Makefile  
 
103
          src/cldata/Makefile 
 
104
          src/fefftab/Makefile 
 
105
          src/lib/Makefile 
 
106
          src/cmdline/Makefile 
 
107
          src/autobk/Makefile
 
108
          src/feffit/Makefile
 
109
          src/diffkk/Makefile
 
110
          src/test/Makefile 
 
111
          src/feff6/Makefile
 
112
          Makefile ])
 
113
 
 
114
# $SHELL ./config.status
 
115
 
 
116
AC_MSG_RESULT([===])
 
117
AC_MSG_RESULT([===  $PACKAGE $VERSION Configuration Results:])
 
118
if $use_pgplot ; then
 
119
   AC_MSG_RESULT([===  linking to PGPLOT with: $PGPLOT_LIBS]) ; 
 
120
else
 
121
   AC_MSG_RESULT([===  WARNING: Plotting will not work!]) ;
 
122
fi
 
123
 
 
124
if  test "$TERMCAP_LIB" = "-L -l" ;  then
 
125
   AC_MSG_RESULT([===])
 
126
   AC_MSG_RESULT([===  could not find TERMCAP Libraries : 'make' will fail.]) ; 
 
127
   AC_MSG_RESULT([===])
 
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])
 
130
else
 
131
   AC_MSG_RESULT([===  using TERMCAP_LIB   $TERMCAP_LIB]);
 
132
   AC_MSG_RESULT([===])
 
133
   AC_MSG_RESULT([===  ready for next step: type 'make' then 'make install'])
 
134
fi
 
135
 
 
136