Skip to content

Commit

Permalink
fix httpd path detection
Browse files Browse the repository at this point in the history
  • Loading branch information
icing committed Jan 13, 2025
1 parent 80a320f commit 1a016a1
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,23 @@ HTTPD="$sbindir/httpd"
if test -x "$HTTPD"; then
: # all fine
else
AC_PATH_PROG([HTTPD], [httpd])
if test "x$HTTPD" = "x"; then
AC_PATH_PROG([HTTPD], [apache2])
fi
if test "x$HTTPD" = "x"; then
AC_MSG_ERROR([httpd/apache2 not in PATH])
HTTPD="$sbindir/apache2"
if test -x "$HTTPD"; then
: # all fine
else
HTTPD=""
AC_PATH_PROG([HTTPD], [httpd])
if test -x "$HTTPD"; then
: # ok
else
HTTPD=""
AC_PATH_PROG([HTTPD], [apache2])
if test -x "$HTTPD"; then
: # ok
else
AC_MSG_ERROR([httpd/apache2 not in PATH])
fi
fi
fi
fi
AC_SUBST(HTTPD)
Expand Down

0 comments on commit 1a016a1

Please sign in to comment.