1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

172 Commits

Author SHA1 Message Date
david
f40f6e9549 Don't use CXXFLAGS when making makefile.dep, because that doesn't work with
universal binaries. Instead, put -DNOLUA in CPPFLAGS.
2008-09-16 04:25:39 +00:00
kris
c74ce1f424 Adding Ncat to /nmap. This should have Ncat in the regular build systems for
Windows and UNIX, and install/distro system for the source tarball, RPM, OS X
installer (thanks to David) and the Windows installer.

configure --without-ncat keeps it out on Unix
2008-09-16 01:34:28 +00:00
david
25cb95db56 Make configure fail with an error if the user requests --with-openssl (without
giving a directory) and OpenSSL is not found. This is meant to guard against
mistakenly building an RPM without OpenSSL on a machine where it is not
available.

If you don't give any arguments, configure still works the same way: it checks
for OpenSSL and doesn't use it if it's not present. If you use
--with-openssl=DIR or --without-openssl then configure takes you at your word
without checking anything. If you say --with-openssl and OpenSSL is fine then
Nmap is built with OpenSSL. The only difference this change introduces is if
you say --with-openssl and OpenSSL is not found. Now the configure script
quits, where previously it would continue with a warning.
2008-09-08 23:37:03 +00:00
david
b3eddfe90a Remove the nselib-bin directory. Almost all references to it have been removed
too. The section in scripting.xml about creating C modules is gone. (But maybe
it should be replaced with a tutorial on making static modules?) The only
places where nselib-bin is still referenced are in mswin32/nsis/Nmap.nsi, where
it is still removed on uninstallation; and in mswin32/nmap.vcproj, from where I
don't have the resources now to remove it.
2008-09-05 05:32:06 +00:00
david
ef650e0f67 Delete install-sh. We don't need it because we can use shtool (configure checks
for both).
2008-08-19 18:23:47 +00:00
david
e052c2eaae Link against -lodm and -lcfg on AIX. 2008-06-15 07:05:12 +00:00
david
69cfb4a4d9 In configure.ac, move the line
LUA_CFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN"
out of a case statement so that it becomes the default for all systems but Mac
OS X. Previously it was in the '*' branch of the case statement, so it ran only
for systems that weren't otherwise handled. This may have caused the error
reported at http://seclists.org/nmap-dev/2008/q2/0464.html.
2008-05-27 15:59:43 +00:00
david
7c5fa7a808 Remove an unused LUAFLAVOR=bsd definition in configure.ac. 2008-05-20 05:55:13 +00:00
david
cac1f8cf09 Pass CC to the liblua build. Also simplify the code handling Lua CFLAGS a bit. 2008-05-20 05:52:06 +00:00
david
fac8d52c1c Remove a test for the existence of $CXX in configure.ac. This was already done
better by AC_PROG_CXX and caused a failure when configured with ccache:

CXX="ccache /usr/bin/g++-4.0" ./configure
checking build system type... i386-apple-darwin9.2.2 
checking host system type... i386-apple-darwin9.2.2 
checking for gcc... ccache /usr/bin/gcc-4.0 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... none needed 
checking for inline... inline 
checking for gcc... (cached) ccache /usr/bin/gcc-4.0 
checking whether we are using the GNU C compiler... (cached) yes 
checking whether ccache /usr/bin/gcc-4.0 accepts -g... (cached) yes 
checking for ccache /usr/bin/gcc-4.0 option to accept ISO C89... 
(cached) none needed 
checking whether we are using the GNU C++ compiler... yes 
checking whether ccache /usr/bin/g++-4.0 accepts -g... yes 
checking for ccache /usr/bin/g++-4.0... MISSING 
configure: error: Could not locate a C++ compiler. If it exists, add it 
to your PATH or give configure the CXX=path_to_compiler argument. 
Otherwise, install a C++ compiler such as g++ or install a binary 
package of Nmap (see http://nmap.org/download.html ))
2008-05-20 05:31:53 +00:00
fyodor
bad1caa2e0 o Fixed a bug which caused Nmap to send bad checksums on Solaris 10
x86.  This was due to a workaround for an Ancient Solaris 2.1 bug
  which activated when the OS string matched "solaris2.1*".  The
  problem has now been resolved until Solaris 20 comes out and hits
  our "solaris2.2*" bug workarounds. Thanks to Nathan Bills for the
  problem report.  Fixed by Fyodor.
2008-05-06 23:28:34 +00:00
david
4fa44aecbf Split Zenmap uninstallation into its own makefile target uninstall-zenmap, to
make it easier when we actually support uninstalling Zenmap with the makefile.
2008-05-05 18:33:21 +00:00
fyodor
d622c98e4b o Fix a couple bugs in the way the Nmap built system checked for an
existing LUA library.  A bashism caused one test to fail on system
  which don't use bash as /bin/sh, and another bug fixed --with-liblua
  configure option for specifying your own liblua. [Daniel
  Roethlisberger]
2008-05-04 19:27:34 +00:00
kris
9a89b403f9 Moving Nmap's config.h[.in] to nmap_config.h[.in] 2008-04-28 17:53:32 +00:00
david
b6f898d573 Put CFLAGS in LUAFLAGS from configure. liblua needs these in order to be built
universal and linked against a universal nmap binary.
2008-04-27 03:53:02 +00:00
david
e902f3be2e Accumulate include directories in CPPFLAGS, not CXXFLAGS, in the configure
script. This is to enable us to use just CPPFLAGS where we don't want CXXFLAGS
also. An example of this is when we are generating dependencies with -MM. The
Apple GCC won't let us use this flag when we also give "-arch ppc -arch i386"
in CXXFLAGS, as we would when generating a universal binary.
2008-04-25 23:51:26 +00:00
david
cfb8d87874 Add --with-libdnet=included to the configure --help output and clarify that it
is the default.
2008-04-10 21:00:09 +00:00
david
e025ff4173 Fix the test for liblua (on my computer it requires also linking with libm) and
simplify the Lua check in configure.ac.
2008-04-10 20:44:11 +00:00
fyodor
29c912f394 URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
diman
c0f07c99ac adding nselib nselib-bin second (should work on unix now) 2007-11-27 22:18:59 +00:00
fyodor
7c7cec7c1d better detection and support for systems which use pcre/pcre.h rather than just pcre.h. Bug reported by Lionel Cons 2007-11-27 19:32:49 +00:00
david
1f1e8bcb1d Check for Python only if Zenmap is requested, and bail out if Zenmap is
explicitly requested and Python is not available.
2007-11-22 08:37:34 +00:00
david
672f9fc527 Fix a typing error in configure.ac: with_nsock -> with_libnsock. This made it impossible to name an alternative nsock directory with something like --with-libnsock=/home/david/nsock.w 2007-11-22 07:45:28 +00:00
david
70425e715d Make nmap be rebuilt when something in a subdirectory changes. Rather than
"all" depending on libpcre/libpcre.a, it now depends on a target pcre_build,
which always runs and does the build in the subdirectory. "nmap" depends on
libpcre/libpcre.a itself. The same thing happens for other subdirectory builds.
Subdirectory builds are prerequisites of "all" and "make nmap" happens in the
body of "all" so the subdirectories are always built first.
2007-11-22 07:43:59 +00:00
david
d63bb4db35 Use literal directory names (not variable references) in calls to
AC_CONFIG_SUBDIRS to avoid this warning:

$ autoconf
configure.ac:689: warning: AC_CONFIG_SUBDIRS: you should use literals
autoconf/status.m4:929: AC_CONFIG_SUBDIRS is expanded from...
configure.ac:689: the top level
2007-11-19 21:49:56 +00:00
david
d029d1d75a Look for strip in configure and strip nmap with strip -x on install. install -s
or strip with no arguments was stripping dynamically loaded NSE functions on
Mac OS X. The difference between plain strip and strip -x was so slight on
Linux that I just made it unconditional.
2007-11-19 21:36:21 +00:00
david
891abf25c3 Move the call to AC_CANONICAL_HOST up higher in configure.ac. 2007-11-19 21:01:33 +00:00
david
6af91e9519 Link with -ldl whenever we include liblua, independent of whether we use
OpenSSL.
2007-11-13 01:55:37 +00:00
david
fa31f0ae5e Check if -lnsl is required in configure. 2007-11-11 20:04:58 +00:00
david
21ee718329 Check for sys/sockio.h in configure and include sys/sockio.h in tcpip.cc. This is where SIOCGIFCONF is on Solaris 9. 2007-11-11 19:34:19 +00:00
david
4b8325988a Check for Python in configure and substitute PYTHON in the makefile. 2007-11-09 15:56:09 +00:00
david
b17c82a0b0 Remove NmapFE. 2007-11-01 07:45:43 +00:00
fyodor
02db0e5981 Rename Umit to Zenmap to reduce confusion between the version we ship with Nmap as the integrated GUI and the version maintained separately at umit.sourceforge.net 2007-10-24 21:45:50 +00:00
david
d41f9ee095 Fix the test for GTK+ in configure.ac and move the macro RECVFROM_ARG6_TYPE from aclocal.m4 to acinclude.m4. 2007-10-22 23:27:22 +00:00
kris
2de3c2062f Fixing a LUAFLAGS assignment in configure 2007-10-19 18:15:07 +00:00
david
8bc752b155 Link with -lcrypto when testing for -lssl in the main configure. 2007-10-18 04:20:41 +00:00
david
a26783da29 Add a separate build-umit step to the main makefile. This means that the build phase of Umit can occur as a non-root user, which means that "make clean" won't bomb out because it can't delete the directories created by root. 2007-09-21 22:10:54 +00:00
david
39878e619f Have "make clean" clean up umit as well. 2007-09-21 21:27:33 +00:00
fyodor
4fa5dfe4f7 merge soc07 r5280 - fix config optimization bug 2007-08-11 06:03:50 +00:00
fyodor
3da2091ba4 merge soc07 r5245:5252 - update winpcap libs; fix config optimization bug 2007-08-11 06:01:12 +00:00
fyodor
d02249d459 merge soc07 r5244 - nmap config optimisations 2007-08-11 05:58:21 +00:00
fyodor
5528726e5b merge soc07 r5124:5142 - build/install system updates; changelog updates; umit install code; compilation fixes; integrate umit 2007-08-11 05:41:41 +00:00
fyodor
1ec0823730 merge soc07 r5119:5124 - changed configure.ac to search for dlopen in -ldl; modified the nsis installer - to copy the nselib dir; more install system fixes 2007-08-11 05:37:46 +00:00
fyodor
25267a44d4 merge soc07 r5042 - Fixed some bugs on nse-C-modules - it now compiles and works (or should work) on linux, macosx, freebsd 2007-08-11 04:53:27 +00:00
fyodor
80ade54171 merge soc07 r5016:5022 - Added support for C-modules; converted the nse_bitlib to such a module; adapted dns-test-open-recursion.nse to use the new module; Moved make_buffer to stdnse and updated the documentation 2007-08-11 04:49:25 +00:00
fyodor
8d74bbcd8a merge soc07 r4871:4884 and r4888 - renaming __FUNCTION__ to __func__ and changing hardcoded func names to __func__ 2007-08-11 04:06:09 +00:00
kris
ff6055805c A small change in ordering in the configure script. We'll now test for inline and '' _after_ the host type testing. is tested for when doing the inline stuff, but doesn't seem to be set until (or can be reset during) the host type testing. 2007-02-01 03:28:58 +00:00
kris
811df5594f Remove inet_aton() checks from configure and HAVE_INET_ATON from config.h.in 2007-01-27 00:29:47 +00:00
kris
4cbb311bc4 Change __BSD_SOURCE references to _BSD_SOURCE. The __FAVOR_BSD and __USE_BSD have double underscores in front, the *_SOURCE only have one. 2007-01-26 22:32:42 +00:00
fyodor
b361685be8 NSE committed 2006-12-11 00:34:26 +00:00