diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-28 18:26:04 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-28 18:26:04 +0000 |
commit | f6b333c29926fba9141491d078c5bd0a85c83172 (patch) | |
tree | d2763f1026198221b8b456565dc2a9e1fbdbba89 /configure | |
parent | 60514309c0a2edc2bbb9bca527e10ceeef0c5691 (diff) |
Firmware object file building does not depend anymore on another object
to be linked into the same module.
That dependency existed solely for checking target binary properties in
make_firmware_object . Those properties are now checked in autoconf.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3198 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 55 |
1 files changed, 51 insertions, 4 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 2999 . +# From configure.ac Revision: 3195 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # @@ -667,6 +667,8 @@ INSTALL_SCRIPT INSTALL_DATA LN_S GNU_MAKE +BDFNAME +BDFARCH HOSTCC GREP LN @@ -3034,6 +3036,48 @@ fi +test_obj=conftest.o + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + + 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/"` + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + # Set the default value of HOSTCC from CC if --host was not provided: HOSTCC=${HOSTCC:=${CC}} @@ -3259,7 +3303,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then @@ -5395,7 +5438,7 @@ esac -ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts" +ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts build_tools/make_firmware_object" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -5967,6 +6010,7 @@ do case $ac_config_target in "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;; "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;; + "build_tools/make_firmware_object") CONFIG_FILES="$CONFIG_FILES build_tools/make_firmware_object" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} @@ -6077,6 +6121,8 @@ INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim LN_S!$LN_S$ac_delim GNU_MAKE!$GNU_MAKE$ac_delim +BDFNAME!$BDFNAME$ac_delim +BDFARCH!$BDFARCH$ac_delim HOSTCC!$HOSTCC$ac_delim GREP!$GREP$ac_delim LN!$LN$ac_delim @@ -6103,7 +6149,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 @@ -6435,6 +6481,7 @@ if test "$no_create" != yes; then $ac_cs_success || { (exit 1); exit 1; } fi +chmod a+x build_tools/make_firmware_object { echo "$as_me:$LINENO: *** Zaptel build successfully configured ***" >&5 echo "$as_me: *** Zaptel build successfully configured ***" >&6;} |