~ubuntu-branches/ubuntu/natty/pd-zexy/natty

« back to all changes in this revision

Viewing changes to build/autoconf/acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, IOhannes m zmölnig, Jonas Smedegaard
  • Date: 2010-08-20 12:17:41 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100820121741-4kxozn8b9rhee9fr
Tags: 2.2.3-1
* New upstream version

[ IOhannes m zmölnig ]
* Adopt package, on behalf of Multimedia Team.
  Closes: #546964
* Simply debian/rules with CDBS, and don't unconditionally strip
  binaries.
  Closes: #437763
* Install into /usr/lib/pd/extra/zexy/. Document usage in REAME.Debian
  and warn about change in NEWS.
* git'ify package. Add Vcs-* stanzas to control file.
* Use dpkg source format 3.0 (quilt). Drop build-dependency on quilt.

[ Jonas Smedegaard ]
* Enable CDBS copyright-check routine.
* Add copyright and licensing header to debian/rules.
* Add myself as uploader.
* Rewrite debian/copyright using rev. 135 of draft DEP5 format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Copyright (C) 2005-2006 IOhannes m zm�lnig
 
2
dnl This file is free software; IOhannes m zm�lnig
 
3
dnl gives unlimited permission to copy and/or distribute it,
 
4
dnl with or without modifications, as long as this notice is preserved.
 
5
 
 
6
# AC_CHECK_CXXFLAGS(ADDITIONAL-CXXFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
 
7
#
 
8
# checks whether the $(CXX) compiler accepts the ADDITIONAL-CXXFLAGS
 
9
# if so, they are added to the CXXFLAGS
 
10
AC_DEFUN([AC_CHECK_CXXFLAGS],
 
11
[
 
12
  AC_MSG_CHECKING([whether $CXX accepts "$1"])
 
13
cat > conftest.c++ << EOF
 
14
int main(){
 
15
  return 0;
 
16
}
 
17
EOF
 
18
if $CXX $CPPFLAGS $CXXFLAGS -o conftest.o conftest.c++ [$1] > /dev/null 2>&1
 
19
then
 
20
  AC_MSG_RESULT([yes])
 
21
  CXXFLAGS="${CXXFLAGS} [$1]"
 
22
  [$2]
 
23
else
 
24
  AC_MSG_RESULT([no])
 
25
  [$3]
 
26
fi
 
27
])# AC_CHECK_CXXFLAGS
 
28
 
 
29
# AC_CHECK_CFLAGS(ADDITIONAL-CFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
 
30
#
 
31
# checks whether the $(C) compiler accepts the ADDITIONAL-CFLAGS
 
32
# if so, they are added to the CFLAGS
 
33
AC_DEFUN([AC_CHECK_CFLAGS],
 
34
[
 
35
  AC_MSG_CHECKING([whether $CC accepts "$1"])
 
36
cat > conftest.c << EOF
 
37
int main(){
 
38
  return 0;
 
39
}
 
40
EOF
 
41
if $CC $CFLAGS [$1] -o conftest.o conftest.c > /dev/null 2>&1
 
42
then
 
43
  AC_MSG_RESULT([yes])
 
44
  CFLAGS="${CFLAGS} [$1]"
 
45
  [$2]
 
46
else
 
47
  AC_MSG_RESULT([no])
 
48
  [$3]
 
49
fi
 
50
])# AC_CHECK_CFLAGS
 
51
 
 
52
# AC_CHECK_FRAMEWORK(FRAMEWORK, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
 
53
#
 
54
#
 
55
AC_DEFUN([AC_CHECK_FRAMEWORK],
 
56
[
 
57
  AC_MSG_CHECKING([for "$1"-framework])
 
58
 
 
59
  temp_check_ldflags_org="${LDFLAGS}"
 
60
  LDFLAGS="-framework [$1] ${LDFLAGS}"
 
61
 
 
62
  AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
 
63
 
 
64
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
65
    AC_MSG_RESULT([yes])
 
66
    [$2]
 
67
  else
 
68
    AC_MSG_RESULT([no])
 
69
    LDFLAGS="$temp_check_ldflags_org"
 
70
    [$3]
 
71
  fi
 
72
])# AC_CHECK_FRAMEWORK
 
73
 
 
74
# AC_CHECK_LDFLAGS(ADDITIONAL-LDFLAGS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
 
75
#
 
76
# checks whether the $(LD) linker accepts the ADDITIONAL-LDFLAGS
 
77
# if so, they are added to the LDFLAGS
 
78
AC_DEFUN([AC_CHECK_LDFLAGS],
 
79
[
 
80
  AC_MSG_CHECKING([whether linker accepts "$1"])
 
81
  temp_check_ldflags_org="${LDFLAGS}"
 
82
  LDFLAGS="$1 ${LDFLAGS}"
 
83
 
 
84
  AC_LINK_IFELSE(AC_LANG_PROGRAM(,), [temp_check_ldflags_success="yes"],[temp_check_ldflags_success="no"])
 
85
 
 
86
  if test "x$temp_check_ldflags_success" = "xyes"; then
 
87
    AC_MSG_RESULT([yes])
 
88
    [$2]
 
89
  else
 
90
    AC_MSG_RESULT([no])
 
91
    LDFLAGS="$temp_check_ldflags_org"
 
92
    [$3]
 
93
  fi
 
94
])# AC_CHECK_LDFLAGS
 
95