Hello; I am compiling on uname -a Linux dogma 2.6.24.7-92.fc8 #1 SMP Wed May 7 16:26:02 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux Fedora 8 autoconf version autoconf --version autoconf (GNU Autoconf) 2.61 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. I have a problem with AC_CHECK_TARGET_TOOL setting the standard environment variables It finds the system version tools like ar instead of x86_64-ar and notes them, it finds '/usr/bin/ar" but then doesn't set AR properly. In the configure.ac I have a section looking for tools with target canonical names AC_CHECK_TARGET_TOOL([CPP], cpp [], []) AC_CHECK_TARGET_TOOL([CC], gcc, [], []) AC_CHECK_TARGET_TOOL([CXX], g++, [], []) AC_CHECK_TARGET_TOOL([RANLIB], ranlib, [], []) AC_CHECK_TARGET_TOOL([LD], ld, [], []) AC_CHECK_TARGET_TOOL([AR], ar, [], []) AC_CHECK_TARGET_TOOL([AS], as, [], []) AC_CHECK_TARGET_TOOL([READELF], readelf, [], []) AC_CHECK_TARGET_TOOL([OBJDUMP], objdump, [], []) AC_CHECK_TARGET_TOOL([OBJCOPY], objcopy, [], []) AC_CHECK_TARGET_TOOL([SIZE], size, [], []) AC_CHECK_TARGET_TOOL([NM], nm, [], []) AC_CHECK_TARGET_TOOL([STRIP], strip, [], []) AC_SUBST(CPP) AC_SUBST(CC) AC_SUBST(CXX) AC_SUBST(RANLIB) AC_SUBST(LD) AC_SUBST(AR) AC_SUBST(AS) AC_SUBST(READELF) AC_SUBST(OBJDUMP) AC_SUBST(OBJCOPY) AC_SUBST(SIZE) AC_SUBST(NM) AC_SUBST(STRIP) And then when configure is finished, the config.log has some sort of intermediate values instead of the final environment values like AR='ac_ct_AR' which then crashes when I try and use AR. Why is configure not putting the target variables into the common environment variables? For example CPP='ac_ct_CPP' CXX='ac_ct_CXX' And yet CC is set properly CC='gcc' Here is an excerpt from config.log: ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=x86_64-unknown-linux-gnu ac_cv_objext=o ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_AS=as ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CPP='cpp ' ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_LD=ld ac_cv_prog_ac_ct_NM=nm ac_cv_prog_ac_ct_OBJCOPY=objcopy ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_READELF=readelf ac_cv_prog_ac_ct_SIZE=size ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_make_make_set=yes ac_cv_target=x86_64-unknown-linux-gnu am_cv_CC_dependencies_compiler_type=gcc3 ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/dave/src/nscorpion/missing --run aclocal-1.10' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /home/dave/src/nscorpion/missing --run tar' AR='ac_ct_AR' AS='ac_ct_AS' AUTOCONF='${SHELL} /home/dave/src/nscorpion/missing --run autoconf' AUTOHEADER='${SHELL} /home/dave/src/nscorpion/missing --run autoheader' AUTOMAKE='${SHELL} /home/dave/src/nscorpion/missing --run automake-1.10' AWK='gawk' CC='gcc' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2 -mtune=nocona' CPP='ac_ct_CPP' CPPFLAGS='' CXX='ac_ct_CXX' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DRDC_PREFIX='/home/dave/' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='ac_ct_LD' LDFLAGS=' -L/usr/lib64' LIBOBJS='' LIBS='' LIB_VER='0:1:0' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /home/dave/src/nscorpion/missing --run makeinfo' NM='ac_ct_NM' OBJCOPY='ac_ct_OBJCOPY' OBJDUMP='ac_ct_OBJDUMP' OBJEXT='o' PATH_SEPARATOR=':' RANLIB='ac_ct_RANLIB' READELF='ac_ct_READELF' REL_VER='0' SET_MAKE='' SHELL='/bin/sh' SIZE='ac_ct_SIZE' STRIP='ac_ct_STRIP' TARGET_OS='gnu' VERSION='0.1' ac_ct_CC='gcc' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-unknown-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='/home/dave//include' infodir='${datarootdir}/info' install_sh='$(SHELL) /home/dave/src/nscorpion/install-sh' libdir='/home/dave//lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/dave' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-unknown-linux-gnu' target_alias='' target_cpu='x86_64' target_os='linux-gnu' target_vendor='unknown' Thanks, Dave ___________________________________________ _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf