1AC_DEFUN([AX_CHECK_FETCHER], [
2AC_PATH_PROG([WGET],[wget], [no])
3AC_PATH_PROG([FALSE],[false], [/bin/false])
4AS_IF([test x"$WGET" != x"no"], [
5    FETCHER="$WGET -c -O"
6], [
7    AC_PATH_PROG([FTP],[ftp], [no])
8    AS_IF([test x"$FTP" != x"no"], [
9        FETCHER="$FTP -o"
10    ], [
11        FETCHER="$FALSE"
12        AC_MSG_WARN([cannot find wget or ftp])
13    ])
14])
15AC_SUBST(FETCHER)
16])
17