diff --git a/configure b/configure index 4558ad1aa2..ac785ca94b 100755 --- a/configure +++ b/configure @@ -981,6 +981,9 @@ echores "$_kstat" echocheck "posix4" +cat > $TMPC << EOF +int main(void) { return 0; } +EOF _posix4=no cc_check -lposix4 && _posix4=yes if test "$_posix4" = yes ; then @@ -1101,12 +1104,12 @@ echores "$_sys_soundcard" echocheck "termcap" -if test "$termcap" = auto ; then +if test "$_termcap" = auto ; then _termcap=no cat > $TMPC < $TMPC << EOF +#include +int main(void) { return 0; } +EOF _sdl=no if "$_sdlconfig" --version >/dev/null 2>&1 ; then if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then