diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 24dcbcd1..8ae98bf0 100644 --- a/configure.ac +++ b/configure.ac @@ -119,6 +119,22 @@ AC_DEFUN( [AC_MSG_ERROR([Required tool not found: $2])]) ]) +# Check if install(1) supports --strip-program=... +AC_DEFUN( + [ACX_INSTALL_STRIP_PROGRAM], + [touch conftest + mkdir conftest.dir + AC_MSG_CHECKING([if install takes --strip-program option]) + AS_IF([$INSTALL --strip-program=true -s conftest conftest.dir/conftest 2>/dev/null], + [install_with_strip_program=y + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) + ACX_SET_KCONFIG_OPTION([install_with_strip_program]) + rm -rf conftest.dir + rm -f conftest + ]) + + #-------------------------------------------------------------------- # Allow dummy --{en,dis}able-{static,shared} AC_ARG_ENABLE( @@ -159,6 +175,7 @@ AC_ARG_PROGRAM ACX_WITH_DEPRECATED([install], [INSTALL]) AC_ARG_VAR([INSTALL], [Specify the full path to a BSD-compatible install]) AC_PROG_INSTALL +ACX_INSTALL_STRIP_PROGRAM ACX_WITH_DEPRECATED([grep], [GREP]) AC_ARG_VAR([GREP], [Specify the full path to GNU grep]) |