configure: fix some bsd issues
authorJon Trulson <jon@radscan.com>
Fri, 3 Jan 2020 02:14:16 +0000 (19:14 -0700)
committerJon Trulson <jon@radscan.com>
Fri, 3 Jan 2020 02:20:53 +0000 (19:20 -0700)
1. On OpenBSD, and check is made for only bison or byacc.  yacc is
present, but not usable apparently.  So - need to install bison on the
BSD's.

2. the libjpeg.h check fails as it is located in a non-standard
location (/usr/local) on BSD systems.  Just remove the check for now
until we have a better way to check that stuff (like X11 and Xm
headers too).

cde/configure.ac

index 9f805160d89a8323a72caad2c725e1263cc12695..bac15e087a957a63559748c00aa104d6d51db7df 100644 (file)
@@ -245,12 +245,12 @@ AM_PROG_LIBTOOL
 dnl make sure it's installed
 AC_PROG_YACC
 if test -z "$ac_cv_prog_YACC"; then
-   AC_MSG_ERROR([please install bison or yacc])
+   MISSING_PROGS="[bison or byacc] ${MISSING_PROGS}"
 fi
 
 AM_PROG_LEX
 if test -z "$ac_cv_prog_LEX"; then
-   AC_MSG_ERROR([please install flex or lex])
+   MISSING_PROGS="[flex or lex] ${MISSING_PROGS}"
 fi
 
 AC_PROG_INSTALL
@@ -332,7 +332,6 @@ fi
 dnl headers
 AC_HEADER_STDC
 AC_CHECK_HEADERS([locale.h])
-AC_CHECK_HEADERS([jpeglib.h], ,[AC_MSG_ERROR([libjpeg headers not found])])
 
 dnl libraries
 AC_CHECK_LIB(m, cosf)