diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6ee7523..5ef2cbd 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,14 @@ AC_PROG_INSTALL AC_PROG_LN_S AST_CHECK_GNU_MAKE +test_obj=conftest.o +AC_COMPILE_IFELSE(AC_LANG_SOURCE(),[ + BDFNAME=`LANG=C objdump -f $test_obj | grep -e "$test_obj:" | sed "s/.*file format \(.*\)/\1/"` + BDFARCH=`LANG=C objdump -f $test_obj | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"` +],[]) +AC_SUBST(BDFNAME) +AC_SUBST(BDFARCH) + # Set the default value of HOSTCC from CC if --host was not provided: HOSTCC=${HOSTCC:=${CC}} AC_SUBST(HOSTCC) @@ -116,8 +124,9 @@ esac AC_SUBST(PPPD_VERSION) -AC_CONFIG_FILES([build_tools/menuselect-deps makeopts]) +AC_CONFIG_FILES([build_tools/menuselect-deps makeopts build_tools/make_firmware_object]) AC_OUTPUT +chmod a+x build_tools/make_firmware_object AC_MSG_NOTICE(*** Zaptel build successfully configured ***) |