bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex.m4 test too strict?


From: Sam Steingold
Subject: Re: regex.m4 test too strict?
Date: Thu, 01 Nov 2007 00:02:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> * Paul Eggert <address@hidden> [2007-10-31 16:47:06 -0700]:
>
> Sam Steingold <address@hidden> writes:
>
>> incidentally, why isn't ac_use_included_regex cached?
>
> Typically we don't cache things that can be computed cheaply.  Can't
> it be computed cheaply, assuming gl_cv_func_re_compile_pattern_working
> is cached?

here is what I have in the subordinate configure.in

# ac_use_included_regex is NOT cached, so we have to duplicate the
# logic of src/glm4/regex.m4!
case $with_included_regex in
  yes|no) ac_use_included_regex=$with_included_regex ;;
  '') case $gl_cv_func_re_compile_pattern_working in
    yes) ac_use_included_regex=no;;
    no) ac_use_included_regex=yes;;
  esac ;;
esac

is this cheap?
and, more importantly, is this correct?!

note also that gl_cv_func_re_compile_pattern_working is not found by
"grep -i regex" ;-(

-- 
Sam Steingold (http://sds.podval.org/) on Fedora release 7 (Moonshine)
http://dhimmi.com http://camera.org http://israelunderattack.slide.com
http://ffii.org http://honestreporting.com http://jihadwatch.org
Trespassers will be shot.  Survivors will be prosecuted.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]