aboutsummaryrefslogtreecommitdiff
path: root/package/mpc/mpc-0.9-configure.patch
blob: 21dd242eaee324f3d15c8e71b4f22d96ccfdd70c (plain)
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

Issue http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
Upstream patch https://gforge.inria.fr/scm/viewvc.php/trunk/configure.ac?root=mpc&r1=932&r2=936

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

--- trunk/configure.ac	2011/02/21 12:18:31	932
+++ trunk/configure.ac	2011/02/21 16:41:09	936
@@ -33,7 +33,7 @@
 AC_CANONICAL_HOST
 AC_CONFIG_MACRO_DIR([m4])
 
-dnl Extra arguments to configure
+# Extra arguments to configure
 AC_ARG_WITH([mpfr_include],
             [AC_HELP_STRING([--with-mpfr-include=DIR],
                             [MPFR include directory])],
@@ -85,18 +85,19 @@
              )
 
 
-dnl Setup CC and CFLAGS
+# Setup CC and CFLAGS
+AC_PROG_CC
+AC_LANG(C)
 
-dnl Check for user specification of CC or CFLAGS
+# Set up LibTool
+AC_PROG_LIBTOOL
+
+# Check for user specification of CC or CFLAGS
 if test -n "$CFLAGS" || test -n "$CC" ; then
    user_redefine_cc=yes
 fi
 
-# Check for programs
-AC_PROG_CC
-AC_LANG(C)
-
-dnl Check GMP Header
+# Check GMP Header
 AC_MSG_CHECKING(for gmp.h)
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 #include "gmp.h"
@@ -105,22 +106,19 @@
  AC_MSG_ERROR([gmp.h can't be found, or is unusable.])
 ])
 
-dnl Check for GMP CFLAGS in gmp.h
+# Check for GMP CFLAGS in gmp.h
 if test -z "$user_redefine_cc" ; then
    MPC_GMP_CC_CFLAGS
 fi
 
 
-dnl Configs for Windows DLLs
+# Configs for Windows DLLs
 case $host in
   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
      MPC_WINDOWS
 esac
 
 
-dnl Finally set up LibTool
-AC_PROG_LIBTOOL
-
 # Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS([complex.h locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h])