~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to wiretap/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: configure.in 18524 2006-06-20 18:30:54Z gerald $
 
1
# $Id: configure.in 20410 2007-01-12 21:04:33Z guy $
2
2
#
3
3
AC_INIT(wtap.c)
4
4
 
92
92
                CFLAGS="-no-cpp-precomp $CFLAGS"
93
93
                AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp)
94
94
                ;;
95
 
        cygwin*)
96
 
                #
97
 
                # Shared libraries in cygwin/Win32 must never contain
98
 
                # undefined symbols.
99
 
                #
100
 
                LDFLAGS="$LDFLAGS -no-undefined"
101
 
                AC_MSG_RESULT(CygWin GCC - added -no-undefined to LDFLAGS)
102
 
                ;;
103
95
        *)
104
96
        AC_MSG_RESULT(none needed)
105
97
        ;;
106
98
        esac
107
99
fi
108
100
 
 
101
 
 
102
#
 
103
# Add any platform-specific linker flags needed.
 
104
#
 
105
AC_MSG_CHECKING(for platform-specific linker flags)
 
106
case "$host_os" in
 
107
darwin*)
 
108
        #
 
109
        # Add -Wl,-single_module to the LDFLAGS used with shared
 
110
        # libraries, to fix some error that show up in some cases;
 
111
        # some Apple documentation recommends it for most shared
 
112
        # libraries.
 
113
        #
 
114
        LDFLAGS_SHAREDLIB="-Wl,-single_module"
 
115
        #
 
116
        # Add -Wl,-search_paths_first to make sure that if we search
 
117
        # directories A and B, in that order, for a given library, a
 
118
        # non-shared version in directory A, rather than a shared
 
119
        # version in directory B, is chosen (so we can use
 
120
        # --with-pcap=/usr/local to force all programs to be linked
 
121
        # with a static version installed in /usr/local/lib rather than
 
122
        # the system version in /usr/lib).
 
123
        #
 
124
        LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
 
125
        AC_MSG_RESULT(Apple linker - added -Wl,-single_module and -Wl,-search_paths_first)
 
126
        ;;
 
127
cygwin*)
 
128
        #
 
129
        # Shared libraries in cygwin/Win32 must never contain
 
130
        # undefined symbols.
 
131
        #
 
132
        LDFLAGS="$LDFLAGS -no-undefined"
 
133
        AC_MSG_RESULT(CygWin GNU ld - added -no-undefined)
 
134
        ;;
 
135
*)
 
136
        AC_MSG_RESULT(none needed)
 
137
        ;;
 
138
esac
 
139
AC_SUBST(LDFLAGS_SHAREDLIB)
 
140
 
109
141
AC_ARG_ENABLE(profile-build,
110
142
[  --enable-profile-build  build profile-ready binaries.  [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
111
143
AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)