Skip to content

Commit a2b1227

Browse files
authored
Fix wget / curl auto-detection at configure (#9)
* Fix wget / curl auto-detection at configure 1. Fix incorrect third argument in AC_PATH_PROG() macro to find wget or curl. Expected to be value if not found but was search path. 2. Fix mistake in test checking only curl (twice). * Fix typo
1 parent fa91bdf commit a2b1227

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AC_PROG_INSTALL
1414
AC_PROG_LN_S
1515
AC_PROG_MAKE_SET
1616

17-
# Checks for programs/directories which are used by Foomtic
17+
# Checks for programs/directories which are used by Foomatic
1818

1919
SPOOLSEARCHPATH=/var/spool:/usr/spool/:/usr/local/spool:/usr/local/var/spool:/var/local/spool:/var/local
2020
LOGSEARCHPATH=/var/log:/usr/log:/usr/local/log:/usr/local/var/log:/var/local/log:/var/local
@@ -68,10 +68,10 @@ fi
6868
AC_PATH_PROG(CAT,cat,CAT_NOT_FOUND,$BSB)
6969
AC_PATH_PROG(GS,gs,GHOSTSCRIPT_NOT_FOUND,$BSB)
7070
AC_PATH_PROG(A2PS,a2ps,A2PS_NOT_FOUND,$BSB)
71-
AC_PATH_PROG(WGET,wget,$BSB)
72-
AC_PATH_PROG(CURL,curl,$BSB)
73-
if test -z "$CURL" -a -z "$CURL" ; then
74-
AC_MSG_ERROR("cannot find wget and curl. You need to install at least one");
71+
AC_PATH_PROG(WGET,wget,,$BSB)
72+
AC_PATH_PROG(CURL,curl,,$BSB)
73+
if test -z "$WGET" -a -z "$CURL" ; then
74+
AC_MSG_ERROR("cannot find wget or curl. You need to install at least one");
7575
fi
7676
AC_PATH_PROG(PRINTF,printf,$BSB)dnl
7777

0 commit comments

Comments
 (0)