configure.ac
changeset 2617 559f2f9c5b08
parent 2600 1a969896d52e
equal deleted inserted replaced
2616:f99e5b11806c 2617:559f2f9c5b08
   812     [regalias=0]
   812     [regalias=0]
   813 )
   813 )
   814 
   814 
   815 if test "x${regalias}" = "x1"; then
   815 if test "x${regalias}" = "x1"; then
   816     AC_DEFINE([EC_REGALIAS], [1], [Read alias adresses from register])
   816     AC_DEFINE([EC_REGALIAS], [1], [Read alias adresses from register])
       
   817     AC_MSG_RESULT([yes])
       
   818 else
       
   819     AC_MSG_RESULT([no])
       
   820 fi
       
   821 
       
   822 #------------------------------------------------------------------------------
       
   823 # Force the reference clock to OP even if unconfigured
       
   824 #------------------------------------------------------------------------------
       
   825 
       
   826 AC_MSG_CHECKING([whether to force the reference clock to OP])
       
   827 
       
   828 AC_ARG_ENABLE([refclkop],
       
   829     AS_HELP_STRING([--enable-refclkop],
       
   830                    [Force reference clock to OP (default: no)]),
       
   831     [
       
   832         case "${enableval}" in
       
   833             yes) refclkop=1
       
   834                 ;;
       
   835             no) refclkop=0
       
   836                 ;;
       
   837             *) AC_MSG_ERROR([Invalid value for --enable-refclkop])
       
   838                 ;;
       
   839         esac
       
   840     ],
       
   841     [refclkop=0]
       
   842 )
       
   843 
       
   844 if test "x${refclkop}" = "x1"; then
       
   845     AC_DEFINE([EC_REFCLKOP], [1], [Force refclk to OP])
   817     AC_MSG_RESULT([yes])
   846     AC_MSG_RESULT([yes])
   818 else
   847 else
   819     AC_MSG_RESULT([no])
   848     AC_MSG_RESULT([no])
   820 fi
   849 fi
   821 
   850