Configure modification to allow better control

From: Noam Rathaus (noamrat_private)
Date: Sat May 04 2002 - 11:24:29 PDT

  • Next message: Noam Rathaus: "Configure for nessus-core"

    Hi,
    
    I modified the libnasl to allow better control over some values that might
    be needed to be controled without using the values returned by the compiled
    programs:
    
    export  ac_regexp_imp=0 \
    ac_whether_root=1 \
    ac_bsd_byte_order=0
    
    Patch (for configure of libnasl):
    ----
    Index: configure
    ===================================================================
    RCS file: /usr/local/cvs/libnasl/configure,v
    retrieving revision 1.50
    diff -r1.50 configure
    7656a7657,7659
    > if eval "test \"`echo '$''{'ac_regexp_imp'+set}'`\" = set"; then
    >   echo $ac_n "(cached) $ac_c" 1>&6
    > else
    7706c7709,7713
    <
    ---
    > fi
    > echo "$ac_t""$ac_regexp_imp" 1>&6
    > cat >> confdefs.h <<EOF
    > #define HAVE_REGEX_SUPPORT $ac_regexp_imp
    > EOF
    7711a7719,7721
    > if eval "test \"`echo '$''{'ac_whether_root'+set}'`\" = set"; then
    >   echo $ac_n "(cached) $ac_c" 1>&6
    > else
    7731a7742,7752
    > else
    >  echo "$ac_t""no" 1>&6;
    > fi
    >
    > rm -fr conftest*
    > fi
    >
    > fi
    > echo "$ac_t""yes" 1>&6;
    >
    >
    7733a7755,7757
    > if eval "test \"`echo '$''{'ac_bsd_byte_order'+set}'`\" = set"; then
    >   echo $ac_n "(cached) $ac_c" 1>&6
    > else
    7814,7822d7837
    <   echo "$ac_t""no" 1>&6
    < fi
    < rm -fr conftest*
    < fi
    <
    < else
    <   echo "configure: failed program was:" >&5
    <   cat conftest.$ac_ext >&5
    <   rm -fr conftest*
    7837a7853,7857
    > fi
    > echo "$ac_t""$ac_bsd_byte_order" 1>&6
    > cat >> confdefs.h <<EOF
    > #define BSD_BYTE_ORDERING $ac_bsd_byte_order
    > EOF
    ----
    
    Thanks
    Noam Rathaus
    http://www.BeyondSecurity.com
    http://www.SecuriTeam.com
    
    
    



    This archive was generated by hypermail 2b30 : Sat May 04 2002 - 10:25:07 PDT