1 | # Copyright (C) 2006 International Business Machines. |
---|
2 | # All Rights Reserved. |
---|
3 | # This file is distributed under the Eclipse Public License. |
---|
4 | |
---|
5 | ## $Id: configure.ac 3496 2015-06-01 19:39:17Z tkr $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | ############################################################################# |
---|
10 | # Names and other basic things # |
---|
11 | ############################################################################# |
---|
12 | |
---|
13 | AC_PREREQ(2.59) |
---|
14 | |
---|
15 | AC_INIT([ThirdPartyFilterSQP],[1.3.3],[http://projects.coin-or.org/BuildTools/newticket]) |
---|
16 | |
---|
17 | AC_COPYRIGHT([ |
---|
18 | Copyright 2006 International Business Machines and others. |
---|
19 | All Rights Reserved. |
---|
20 | This file is part of the open source package Coin which is distributed |
---|
21 | under the Eclipse Public License.]) |
---|
22 | |
---|
23 | # List one file in the package so that the configure script can test |
---|
24 | # whether the package is actually there |
---|
25 | AC_CONFIG_SRCDIR(source/src/filter.f) |
---|
26 | |
---|
27 | # Where should everything be installed by default? Here, we want it |
---|
28 | # to be installed directly in 'bin', 'lib', 'include' subdirectories |
---|
29 | # of the directory where configure is run. The default would be |
---|
30 | # /usr/local. |
---|
31 | AC_PREFIX_DEFAULT([`pwd`]) |
---|
32 | |
---|
33 | AC_COIN_PROJECTDIR_INIT(FilterSQP,4:3:3) |
---|
34 | |
---|
35 | ############################################################################# |
---|
36 | # Standard build tool stuff # |
---|
37 | ############################################################################# |
---|
38 | |
---|
39 | # Get the system type |
---|
40 | AC_CANONICAL_BUILD |
---|
41 | |
---|
42 | # Check if user wants to produce debugging code |
---|
43 | AC_COIN_DEBUG_COMPILE(FilterSQP) |
---|
44 | |
---|
45 | # Get the name of the Fortran compiler and appropriate compiler options |
---|
46 | AC_COIN_PROG_F77 |
---|
47 | |
---|
48 | # Get the linker flags (FLIBS) that are required for linking against this blas library |
---|
49 | AC_COIN_F77_WRAPPERS |
---|
50 | |
---|
51 | # Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files |
---|
52 | FILTERSQP_PCLIBS="$FLIBS" |
---|
53 | AC_SUBST(FILTERSQP_PCLIBS) |
---|
54 | |
---|
55 | # Check if pkg-config is available (to setup addlibs file) |
---|
56 | AC_COIN_HAS_PKGCONFIG |
---|
57 | |
---|
58 | # Initialize automake |
---|
59 | AC_COIN_INIT_AUTOMAKE |
---|
60 | |
---|
61 | # Initialize automake |
---|
62 | AC_COIN_INIT_AUTO_TOOLS |
---|
63 | |
---|
64 | AC_CONFIG_FILES([Makefile coinfiltersqp.pc coinfiltersqp-uninstalled.pc]) |
---|
65 | |
---|
66 | AC_COIN_FINALIZE |
---|
67 | |
---|
68 | ############################################################################## |
---|
69 | ## LIBRARY FOR MINLP/FILTER # |
---|
70 | ############################################################################## |
---|
71 | # |
---|
72 | #if test -z "$FSQPMAKEFLAGS" ; then |
---|
73 | # FSQPMAKEFLAGS= |
---|
74 | # |
---|
75 | # AC_MSG_CHECKING([whether $am_make is the GNU make]) |
---|
76 | # rm -rf conftest.mak |
---|
77 | # ($am_make -v -f conftest.mak > conftest.grp) 2>&5 |
---|
78 | # if $EGREP GNU conftest.grp >&5 ; then |
---|
79 | # AC_MSG_RESULT([yes]) |
---|
80 | # FSQPMAKEFLAGS="-j 1 $FSQPMAKEFLAGS" |
---|
81 | # else |
---|
82 | # AC_MSG_RESULT([no]) |
---|
83 | # fi |
---|
84 | # rm -f conftest.mak conftest.grp |
---|
85 | #fi |
---|
86 | # |
---|
87 | #if test x"$AR" = x; then |
---|
88 | # AR=ar |
---|
89 | #fi |
---|
90 | #if test x"$ARFLAGS" = x; then |
---|
91 | # ARFLAGS=r |
---|
92 | #fi |
---|
93 | # |
---|
94 | #FSQPMAKEFILECMDS="sed -e 's%ar r%$AR $ARFLAGS%' makefile.u " |
---|
95 | #FSQPMAKEFILECMDS="$FSQPMAKEFILECMDS > makefile" |
---|
96 | # |
---|
97 | #AC_ARG_VAR(FSQPMAKEFLAGS,[Makefile flags necessary for compiling the filterSQP library]) |
---|
98 | #AC_SUBST(FSQPMAKEFILECMDS) |
---|
99 | # |
---|
100 | #AC_CONFIG_FILES([Makefile]) |
---|
101 | # |
---|
102 | #AC_COIN_FINALIZE |
---|