summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9398b85)
raw | patch | inline | side by side (parent: 9398b85)
author | Brandon Casey <casey@nrlssc.navy.mil> | |
Fri, 10 Jul 2009 17:10:45 +0000 (12:10 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 11 Jul 2009 06:50:29 +0000 (23:50 -0700) |
Commit 003b33a8 recently added a call to basename(). On IRIX 6.5, this
function resides in libgen and -lgen is required for the linker.
Update configure.ac too.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
function resides in libgen and -lgen is required for the linker.
Update configure.ac too.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/Makefile b/Makefile
index 4be508e877cafc0eff363c8d342d7e1c7a9af6c7..6d1a38fde1ff85d48d167e34250222cdebc4b8eb 100644 (file)
--- a/Makefile
+++ b/Makefile
#
# Define NO_LIBGEN_H if you don't have libgen.h.
#
+# Define NEEDS_LIBGEN if your libgen needs -lgen when linking
+#
# Define NO_SYS_SELECT_H if you don't have sys/select.h.
#
# Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
endif
EXTLIBS += $(ICONV_LINK) -liconv
endif
+ifdef NEEDS_LIBGEN
+ EXTLIBS += -lgen
+endif
ifdef NEEDS_SOCKET
EXTLIBS += -lsocket
endif
diff --git a/configure.ac b/configure.ac
index 1885674e396d31cc625d34d029835e15b279dc8d..74d0af52a5d4f2443a49e16127bab652daa80697 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_SUBST(NEEDS_RESOLV)
test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
+AC_CHECK_LIB([gen], [basename],
+[NEEDS_LIBGEN=],
+[NEEDS_LIBGEN=YesPlease])
+AC_SUBST(NEEDS_LIBGEN)
+test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
+
## Checks for header files.
AC_MSG_NOTICE([CHECKS for header files])
#