mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
c588520727
Refactor autoconf, use best practices
20 lines
679 B
Plaintext
20 lines
679 B
Plaintext
|
|
dnl test if want to prepend /usr/local/bin to PATH
|
|
dnl AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
|
|
AC_DEFUN([TR_PREPEND_PATH],
|
|
[AC_ARG_WITH(
|
|
[prepend-path],
|
|
[AS_HELP_STRING([--with-prepend-path@<:@=DIR@:>@], [specify a directory to prepend to PATH (default is /usr/local/bin). Use --without-prepend-path for no directory.])],
|
|
[AS_IF(
|
|
[test "x${with_prepend_path}" = xyes],
|
|
[PATH="/usr/local/bin:${PATH}"],
|
|
[AS_IF(
|
|
[test "x${with_prepend_path}" != xno],
|
|
[PATH="${withval}:${PATH}"],
|
|
[]
|
|
)]
|
|
)],
|
|
[]
|
|
)]
|
|
)
|