@@ -333,14 +333,31 @@ OWNTONE_ARG_DISABLE([include default web interface], [webinterface], [WEBINTERFA
333
333
[ AS_IF ( [ [ test -f "$srcdir/web-src/htdocs/index.html"] ] ,
334
334
[ AM_MISSING_PROG ( [ NPM] , [ [ npm] ] )
335
335
AC_MSG_NOTICE ( [ [
336
- npm not found, but a prebuilt web interface seems to be present.
337
- If you modify any web interface files, you will need to install it .
336
+ npm not found, but a prebuilt web interface is present.
337
+ If you modify any web interface source files, you will need to install npm .
338
338
] ] ) ] ,
339
339
[ AC_MSG_ERROR ( [ [ npm required, please install it.] ] ) ] )
340
340
]
341
341
) ] )
342
342
AM_CONDITIONAL([ COND_WEBINTERFACE] , [ [ test "x$enable_webinterface" = "xyes"] ] )
343
343
344
+ dnl Use prebuilt webinterface even if npm is available
345
+ AC_ARG_WITH ( [ prebuilt-webinterface] ,
346
+ [ AS_HELP_STRING ( [ --with-prebuilt-webinterface] ,
347
+ [ Use prebuilt webinterface even if npm is available (default=no)]
348
+ ) ] ,
349
+ [ AS_IF ( [ [ test -f "$srcdir/web-src/htdocs/index.html"] ] ,
350
+ [ [ with_prebuilt_webinterface=yes] ] ,
351
+ [ AC_MSG_ERROR ( [ [ No prebuilt web interface found.] ] ) ]
352
+ ) ] ,
353
+ [ [ with_prebuilt_webinterface=] ] )
354
+ if test "x$with_prebuilt_webinterface" = "xyes"; then
355
+ BUILD_WEBINTERFACE=
356
+ else
357
+ BUILD_WEBINTERFACE=true
358
+ fi
359
+ AC_SUBST ( [ BUILD_WEBINTERFACE] )
360
+
344
361
dnl Creating and defining users and groups
345
362
OWNTONE_ARG_ENABLE([ having 'make install' add user/group and 'make uninstall' delete] , [ install_user] , [ INSTALL_USER] ,
346
363
[ AC_PATH_PROG ( [ GETENT] , [ [ getent] ] , [ ] , [ $PATH$PATH_SEPARATOR/usr/sbin] )
0 commit comments