diff --git a/config/usrp_sdcc.m4 b/config/usrp_sdcc.m4
index 3aae0bf..e40f17c 100644
--- a/config/usrp_sdcc.m4
+++ b/config/usrp_sdcc.m4
@@ -1,6 +1,6 @@
 # Check for sdcc support.             		-*- Autoconf -*-
 
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004,2011 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,13 +23,16 @@ AC_DEFUN([USRP_SDCC],
 	AC_CHECK_PROG(XCC, sdcc, sdcc -mmcs51 --no-xinit-opt,no)
 	AC_CHECK_PROG(XAS, asx8051, asx8051 -plosgff,no)
 
+	AC_ARG_VAR([XCC], [SDCC executable])
+	AC_ARG_VAR([XAS], [ASX8051 executable])
+
 	if test "$XCC" = "no" -o "$XAS" = "no" ; then
 		AC_MSG_RESULT([USRP requires sdcc version 2. sdcc not found. See http://sdcc.sf.net])
 		sdccok=no
 	else
 		sdcc_version_min=$1
 
-		sdcc_version=`sdcc --version 2>&1 | \
+		sdcc_version=`$XCC --version 2>&1 | \
 			sed  's/\(SDCC.* \)\([[0-9]]*\.[[0-9]]*\.[[0-9]]*\)\( .*$\)/\2/'`
 
 	        AC_MSG_CHECKING([sdcc_version "$sdcc_version"])
