comparison configure @ 5748:3ccb4aaf91c7

* configure.ac (makeinfo): Use basic regexp. Avoid autoconf errors on empty version strings. Report version found if insufficient. Lightly tested.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sun, 28 Jul 2013 02:46:02 +0900
parents 9c17f7be0b92
children a9fd35f939a5
comparison
equal deleted inserted replaced
5747:52b9fe8f44c0 5748:3ccb4aaf91c7
10562 10562
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo >= 4.12" >&5 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo >= 4.12" >&5
10564 $as_echo_n "checking for makeinfo >= 4.12... " >&6; } 10564 $as_echo_n "checking for makeinfo >= 4.12... " >&6; }
10565 MAKEINFO= 10565 MAKEINFO=
10566 for prog in `which -a makeinfo`; do 10566 for prog in `which -a makeinfo`; do
10567 mi_verstr=`$prog --version | sed -rn '1s/.*+[[:blank:]]([^[:blank:]]+)$/\1/p'` 10567 mi_verstr=`$prog --version | sed -n '1s/^.* \([0-9][0-9]*\.[0-9][0-9]*\)$/\1/p'`
10568 mi_major=`echo $mi_verstr | cut -d. -f1` 10568 mi_major=`echo $mi_verstr | cut -d. -f1`
10569 mi_minor=`echo $mi_verstr | cut -d. -f2` 10569 mi_minor=`echo $mi_verstr | cut -d. -f2`
10570 if test $mi_major -gt 4 || ( test $mi_major -eq 4 && test $mi_minor -gt 11 ); 10570 if test "$mi_major" -gt 4 || ( test "$mi_major" -eq 4 && test "$mi_minor" -gt 11 );
10571 then 10571 then
10572 MAKEINFO=$prog 10572 MAKEINFO=$prog
10573 break 10573 break
10574 fi 10574 fi
10575 done 10575 done
10576 if test -z $MAKEINFO; then 10576 if test -z $MAKEINFO; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } 10578 $as_echo "no" >&6; }
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Makeinfo 4.12 or later required to build info files." >&5 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Makeinfo $mi_verstr. 4.12 or later required." >&5
10580 $as_echo "$as_me: WARNING: Makeinfo 4.12 or later required to build info files." >&2;} 10580 $as_echo "$as_me: WARNING: Found Makeinfo $mi_verstr. 4.12 or later required." >&2;}
10581 else 10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10583 $as_echo "yes" >&6; } 10583 $as_echo "yes" >&6; }
10584 fi 10584 fi
10585 ac_config_files="$ac_config_files man/Makefile" 10585 ac_config_files="$ac_config_files man/Makefile"