1 | # Copyright (C) 2009 International Business Machines. |
---|
2 | # All Rights Reserved. |
---|
3 | # This file is distributed under the Common Public License. |
---|
4 | |
---|
5 | ## $Id: configure.ac 1764 2010-11-03 07:11:58Z stefan $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2009-04-20 |
---|
8 | |
---|
9 | ############################################################################# |
---|
10 | # Names and other basic things # |
---|
11 | ############################################################################# |
---|
12 | |
---|
13 | AC_PREREQ(2.59) |
---|
14 | |
---|
15 | AC_INIT([ThirdPartyMetis],[trunk],[http://projects.coin-or.org/BuildTools/newticket]) |
---|
16 | |
---|
17 | AC_COPYRIGHT([ |
---|
18 | Copyright 2009 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 Common 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(metis-4.0/Lib/balance.c) |
---|
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(Metis) |
---|
34 | |
---|
35 | ############################################################################# |
---|
36 | # Standard build tool stuff # |
---|
37 | ############################################################################# |
---|
38 | |
---|
39 | # Get the system type |
---|
40 | AC_CANONICAL_BUILD |
---|
41 | |
---|
42 | #turn off warnings and pedantic mode since they could make trouble on some platforms, |
---|
43 | #and we couldn't fix them anyway |
---|
44 | coin_skip_warn_cflags=yes |
---|
45 | coin_skip_warn_fflags=yes |
---|
46 | |
---|
47 | # Check if user wants to produce debugging code |
---|
48 | AC_COIN_DEBUG_COMPILE(Metis) |
---|
49 | |
---|
50 | # Get the name of the C compiler |
---|
51 | AC_COIN_PROG_CC |
---|
52 | |
---|
53 | # Check if pkg-config is available (to setup addlibs file) |
---|
54 | AC_COIN_HAS_PKGCONFIG |
---|
55 | |
---|
56 | # Initialize automake |
---|
57 | AC_COIN_INIT_AUTO_TOOLS |
---|
58 | |
---|
59 | # We need to create a dummy header file for Windows |
---|
60 | AC_MSG_CHECKING([whether we need to create a dummy strings.h file]) |
---|
61 | if test "$ac_cv_header_strings_h" = no; then |
---|
62 | AC_MSG_RESULT([yes]) |
---|
63 | touch strings.h |
---|
64 | else |
---|
65 | AC_MSG_RESULT([no]) |
---|
66 | fi |
---|
67 | |
---|
68 | # On some systems, there are no drand48 and srand48. |
---|
69 | # By defining __VC__, we can make Metis use an alternative function |
---|
70 | AC_CHECK_FUNC(drand48,,[CFLAGS="$CFLAGS -D__VC__"]) |
---|
71 | |
---|
72 | METISDIR=metis-4.0 |
---|
73 | AC_SUBST(METISDIR) |
---|
74 | |
---|
75 | AC_CONFIG_FILES([Makefile coinmetis.pc coinmetis-uninstalled.pc]) |
---|
76 | |
---|
77 | AC_COIN_FINALIZE |
---|