=================================================================== RCS file: /cvs/mandoc/configure,v retrieving revision 1.71 retrieving revision 1.73 diff -u -p -r1.71 -r1.73 --- mandoc/configure 2019/07/01 22:56:24 1.71 +++ mandoc/configure 2020/03/13 17:31:44 1.73 @@ -1,8 +1,8 @@ #!/bin/sh # -# $Id: configure,v 1.71 2019/07/01 22:56:24 schwarze Exp $ +# $Id: configure,v 1.73 2020/03/13 17:31:44 schwarze Exp $ # -# Copyright (c) 2014-2019 Ingo Schwarze +# Copyright (c) 2014-2020 Ingo Schwarze # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -41,7 +41,7 @@ OSENUM= OSNAME= UTF8_LOCALE= -CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -` +CC=cc CFLAGS= LDADD= LDFLAGS= @@ -327,8 +327,14 @@ if [ ${HAVE_ENDIAN} -eq 0 -a \ exit 1 fi -if ismanual fts FTS ${HAVE_FTS}; then +if [ "$1" == "-depend" ]; then + HAVE_FTS=0 HAVE_FTS_COMPARE_CONST=0 + echo "tested fts: HAVE_FTS=0 (for make depend)" 1>&2 + echo "tested fts: HAVE_FTS=0 (for make depend)" 1>&3 + echo 1>&3 +elif ismanual fts FTS ${HAVE_FTS}; then + HAVE_FTS_COMPARE_CONST=0 elif runtest fts FTS_COMPARE_CONST -DFTS_COMPARE_CONST; then HAVE_FTS=1 else @@ -406,7 +412,12 @@ if [ ${BUILD_CATMAN} -gt 0 ]; then fi # --- ohash --- -if ismanual ohash OHASH "${HAVE_OHASH}"; then +if [ "$1" == "-depend" ]; then + HAVE_OHASH=0 + echo "tested ohash: HAVE_OHASH=0 (for make depend)" 1>&2 + echo "tested ohash: HAVE_OHASH=0 (for make depend)" 1>&3 + echo 1>&3 +elif ismanual ohash OHASH "${HAVE_OHASH}"; then : elif [ -n "${LD_OHASH}" ]; then runtest ohash OHASH "${LD_OHASH}" || true