mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 12:56:26 +00:00
check for trick-offline during configure
This commit is contained in:
parent
dc71d7cd19
commit
eb510bd65e
@ -291,7 +291,10 @@ AC_SUBST([TRICK_FORCE_32BIT])
|
||||
AC_ARG_ENABLE([offline],
|
||||
AS_HELP_STRING([--enable-offline], [Compile Trick in offline mode. Un-tar the trick-offline directory in TRICK_HOME to use this feature]),
|
||||
AS_IF([test "x$enable_offline" = xyes],
|
||||
[TRICK_OFFLINE="1"],
|
||||
[
|
||||
[TRICK_OFFLINE="1"]
|
||||
AC_CHECK_FILE([trick-offline], [], AC_MSG_ERROR([Offline mode requires an uncompressed directory named "trick-offline" in TRICK_HOME]))
|
||||
],
|
||||
[TRICK_OFFLINE="0"]
|
||||
),
|
||||
[TRICK_OFFLINE="0"]
|
||||
|
25
configure
vendored
25
configure
vendored
@ -3847,7 +3847,30 @@ fi
|
||||
# Check whether --enable-offline was given.
|
||||
if test "${enable_offline+set}" = set; then :
|
||||
enableval=$enable_offline; if test "x$enable_offline" = xyes; then :
|
||||
TRICK_OFFLINE="1"
|
||||
|
||||
TRICK_OFFLINE="1"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trick-offline" >&5
|
||||
$as_echo_n "checking for trick-offline... " >&6; }
|
||||
if ${ac_cv_file_trick_offline+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
test "$cross_compiling" = yes &&
|
||||
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||
if test -r "trick-offline"; then
|
||||
ac_cv_file_trick_offline=yes
|
||||
else
|
||||
ac_cv_file_trick_offline=no
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_trick_offline" >&5
|
||||
$as_echo "$ac_cv_file_trick_offline" >&6; }
|
||||
if test "x$ac_cv_file_trick_offline" = xyes; then :
|
||||
|
||||
else
|
||||
as_fn_error $? "Offline mode requires an uncompressed directory named \"trick-offline\" in TRICK_HOME" "$LINENO" 5
|
||||
fi
|
||||
|
||||
|
||||
else
|
||||
TRICK_OFFLINE="0"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user