~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to gr-howto-write-a-block/config/gr_no_undefined.m4

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl Copyright 2005 Free Software Foundation, Inc.
 
3
dnl 
 
4
dnl This file is part of GNU Radio
 
5
dnl 
 
6
dnl GNU Radio is free software; you can redistribute it and/or modify
 
7
dnl it under the terms of the GNU General Public License as published by
 
8
dnl the Free Software Foundation; either version 3, or (at your option)
 
9
dnl any later version.
 
10
dnl 
 
11
dnl GNU Radio is distributed in the hope that it will be useful,
 
12
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
dnl GNU General Public License for more details.
 
15
dnl 
 
16
dnl You should have received a copy of the GNU General Public License
 
17
dnl along with GNU Radio; see the file COPYING.  If not, write to
 
18
dnl the Free Software Foundation, Inc., 51 Franklin Street,
 
19
dnl Boston, MA 02110-1301, USA.
 
20
dnl 
 
21
 
 
22
# GR_NO_UNDEFINED()
 
23
#
 
24
# Detemine whether we need to use the -no-undefined linker flag
 
25
# when building shared libraries.  
 
26
# Sets NO_UNDEFINED to "" or "-no-undefined"
 
27
 
28
# As far as I can tell, we need -no-undefined only when building
 
29
# windows DLLs.  This occurs when using MinGW and Cygwin.
 
30
#
 
31
# For now, we stub this out.
 
32
 
 
33
AC_DEFUN([GR_NO_UNDEFINED],[
 
34
        AC_REQUIRE([AC_CANONICAL_HOST])
 
35
        no_undefined=""
 
36
        case "${host_os}" in
 
37
                *mingw* | *cygwin*)
 
38
 
 
39
                # on MinGW/Cygwin extra LDFLAGS are required
 
40
                no_undefined="-no-undefined"
 
41
                ;;
 
42
        esac
 
43
        AC_SUBST(NO_UNDEFINED,[$no_undefined])
 
44
])