tcpdump mailing list archives
Re: Update configure for libpcap
From: Ali Abdulkadir <autostart.ini () gmail com>
Date: Thu, 12 Jul 2018 08:58:04 +0300
I was on my phone. I should have been more specific. With ‘ANSI compiler check’ I meant the AC_LBL_FIXINCLUDES m4 macro. I can’t succeed because there isn’t a sys/ioctl.h on win32. AC_PROG_CC_C99, however, works fine with MInGW.
Can automake be used with non-GPLed software?
To quote from the docs: “Automake places no restrictions on the distribution of the resulting Makefile.ins. We still encourage software authors to distribute their work under terms like those of the GPL, but doing so is not required to use Automake. Some of the files that can be automatically installed via the --add-missing switch do fall under the GPL. However, these also have a special exception allowing you to distribute them with your package, regardless of the licensing you choose.” https://www.gnu.org/software/automake/manual/automake.html#Distributing
libtool has its own idea of how to name shared library files, so we'd have to work around that
That shouldn’t be a problem. You could link with “-version-info YOUR_OWN_VERSION_STRING_HERE” to hand libtool your preferred version string. You would add that to pcap_la_LDFLAGS in your Makefile.am. From: Guy Harris Sent: Thursday, July 12, 2018 12:23 AM To: Ali Abdulkadir Cc: Petr Vorel; tcpdump-workers () lists tcpdump org Subject: Re: [tcpdump-workers] Update configure for libpcap On Jul 11, 2018, at 1:32 PM, Ali Abdulkadir <autostart.ini () gmail com> wrote:
Nope. Although it wouldn't be super helpful if they were to remove/update the ANSI compiler test. That would make libpcap at least *compile* on windows with the autotools. I think tcpdump's configure script removed that test at some point.
There isn't an "ANSI compiler test". Currently, libpcap *and* tcpdump use the standard autoconf macro AC_PROG_CC_C99, which checks for flags necessary to implement C99 features. We require a subset of C99 features to be available in the compiler, so we *can't* remove that. (Yes, that means older versions of MSVC aren't guaranteed to be able to compile libpcap and can't compile tcpdump. We're not going to change that.)
Linking (shared) is currently not possible though. Fixing that is more complicated as libpcap's Makefiles are mostly handcrafted (don't use e.g. automake which would handle OS specific things such as the setting proper file extensions).
Can automake be used with non-GPLed software? (libtool has its own idea of how to name shared library files, so we'd have to work around that "feature" in a platform-dependent fashion, were we to use it.) _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Update configure for libpcap Petr Vorel (Jul 11)
- Re: Update configure for libpcap Petr Vorel (Jul 11)
- Re: Update configure for libpcap Guy Harris (Jul 11)
- Re: Update configure for libpcap Guy Harris (Jul 11)
- Re: Update configure for libpcap Jan Stary (Jul 12)
- Re: Update configure for libpcap Dagobert Michelsen (Jul 12)
- Re: Update configure for libpcap Jan Stary (Jul 12)
- Re: Update configure for libpcap Ali Abdulkadir (Jul 11)
- Re: Update configure for libpcap Guy Harris (Jul 11)
- Re: Update configure for libpcap Ali Abdulkadir (Jul 11)
- Re: Update configure for libpcap Guy Harris (Jul 11)
- Re: Update configure for libpcap Petr Vorel (Jul 11)