]> git.cameronkatri.com Git - mandoc.git/blobdiff - configure
Start fixing issues that beck@ helped find:
[mandoc.git] / configure
index 1e4788c9d775c6fe5fa568e97246bf59e48696fc..5ddaec1a28928519c7aec0e9b4a20248a958790b 100755 (executable)
--- a/configure
+++ b/configure
@@ -20,8 +20,8 @@ exec > config.h 2> config.log
 CFLAGS="${CFLAGS} -Wno-unused -Werror"
 
 runtest() {
-       echo ${CC} ${CFLAGS} -o test-${1} test-${1}.c 1>&2
-       ${CC} ${CFLAGS} -o "test-${1}" "test-${1}.c" 1>&2 || return 0
+       echo ${CC} ${CFLAGS} ${3} -o test-${1} test-${1}.c 1>&2
+       ${CC} ${CFLAGS} ${3} -o "test-${1}" "test-${1}.c" 1>&2 || return 0
        "./test-${1}" && echo "#define HAVE_${2}" \
                || echo FAILURE: test-${1} returned $? 1>&2
        rm "test-${1}"
@@ -33,7 +33,7 @@ echo "#define VERSION \"${VERSION}\""
 runtest fgetln FGETLN
 runtest getsubopt GETSUBOPT
 runtest mmap MMAP
-runtest ohash OHASH
+runtest ohash OHASH -lutil
 runtest reallocarray REALLOCARRAY
 runtest strcasestr STRCASESTR
 runtest strlcat STRLCAT