[DVDnav-discuss] r1078 - trunk/libdvdread/autogen.sh

Dan Nicholson dbn.lists at gmail.com
Fri Jun 6 22:38:41 CEST 2008


On Fri, Jun 6, 2008 at 1:33 PM, nicodvb <subversion at mplayerhq.hu> wrote:
> Author: nicodvb
> Date: Fri Jun  6 22:33:00 2008
> New Revision: 1078
>
> Log:
> simplified detect_autoconf() and removed some unexplainable nonsense
>
> Modified:
>   trunk/libdvdread/autogen.sh
>
> Modified: trunk/libdvdread/autogen.sh
> ==============================================================================
> --- trunk/libdvdread/autogen.sh (original)
> +++ trunk/libdvdread/autogen.sh Fri Jun  6 22:33:00 2008
> @@ -39,19 +39,13 @@ detect_configure_ac() {
>  # AUTOCONF
>  #-------------------
>  detect_autoconf() {
> -  set -- `type autoconf 2>/dev/null`
> -  RETVAL=$?
> -  NUM_RESULT=$#
> -  RESULT_FILE=$3
> -  if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
>     AC="`autoconf --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
> -    AUTOCONF_MIN="`echo $AUTOCONF_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
>     if test $AC -lt 100 ; then
>       AC=`expr $AC \* 10`
>     fi
> +    AUTOCONF_MIN="`echo $AUTOCONF_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
>     if [ `expr $AC` -ge $AUTOCONF_MIN ]; then
>       autoconf_ok=yes
> -    fi
>   else
>     echo
>     echo "**Error**: You must have \`autoconf' >= $AUTOCONF_MIN installed to"

Nico, you can honestly drop all of this stuff. Just set
AC_PREREQ(version you want) before AC_INIT in configure.ac and
autoconf will fail if it doesn't meet the version.

http://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fPREREQ-41

--
Dan



More information about the DVDnav-discuss mailing list