aboutsummaryrefslogtreecommitdiffstats
path: root/m4/fetcher.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/fetcher.m4')
-rw-r--r--m4/fetcher.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/fetcher.m4 b/m4/fetcher.m4
new file mode 100644
index 0000000000..86f33b3937
--- /dev/null
+++ b/m4/fetcher.m4
@@ -0,0 +1,14 @@
+AC_DEFUN([AX_CHECK_FETCHER], [
+AC_PATH_PROG([WGET],[wget], [no])
+AS_IF([test x"$WGET" != x"no"], [
+ FETCHER="$WGET -c -O"
+], [
+ AC_PATH_PROG([FTP],[ftp], [no])
+ AS_IF([test x"$FTP" != x"no"], [
+ FETCHER="$FTP -o"
+ ], [
+ AC_MSG_ERROR([cannot find wget or ftp])
+ ])
+])
+AC_SUBST(FETCHER)
+])