dnl CF_TD_CONFIG version: 4 updated: 2010/10/23 15:52:32
dnl ------------
dnl Test if we have the 'td_config' utility, or if its source is available.
dnl If the latter, compile it for use in CF_SED_CONFIG_H.
dnl
dnl $1 = the location where we look for the source file
AC_DEFUN([CF_TD_CONFIG],
[AC_PROGRAM_PATH(TD_CONFIG,td_config)
if test -z "$ac_cv_path_TD_CONFIG"
then
    ifelse($1,,,[
    AC_MSG_CHECKING(for td_config compiled)
    if ( ${CC:-cc} -o td_config $CFLAGS $CPPFLAGS $LDFLAGS $1 $LIBS 1>&AC_FD_CC )
    then
        ac_cv_path_TD_CONFIG=`pwd`/td_config
    fi
    AC_MSG_RESULT($ac_cv_path_TD_CONFIG)
fi
])])dnl
