richter     01/09/20 13:26:05

  Modified:    driver   Tag: Embperl2c eplibxslt.MAKEPL epxalan.MAKEPL
  Log:
  fix typo
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +54 -54    embperl/driver/Attic/eplibxslt.MAKEPL
  
  Index: eplibxslt.MAKEPL
  ===================================================================
  RCS file: /home/cvs/embperl/driver/Attic/eplibxslt.MAKEPL,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- eplibxslt.MAKEPL  2001/09/20 06:01:39     1.1.2.2
  +++ eplibxslt.MAKEPL  2001/09/20 20:26:05     1.1.2.3
  @@ -1,54 +1,54 @@
  -
  -
  -$win32 = ($^O eq 'MSWin32') ;
  -
  -
  -if (!$win32)
  -    {
  -    if (!open (C, "xml2-config --version|"))
  -        {
  -        print "Cannot execute xml2-config ($!). libxml2 and libxslt will not be 
linked into Embperl\n" ;
  -        return undef ;
  -        }
  -    chomp ($version = <C>)  or die ("Cannot execute xml2-config to get version.") ;
  -    close C ;
  -
  -    open C, "xml2-config --prefix --libs --cflags|" or die ("Cannot execute 
xml2-config ($!).") ;
  -    chomp ($prefix = <C>) ;
  -    chomp ($libs = <C>) ;
  -    chomp ($cflags = <C>) ;
  -    close C ;
  -
  -    print "Found libxml2 $version installed under $prefix\n" ;
  -
  -    if (!open (C, "xslt-config --version|"))
  -        {
  -        print "Cannot execute xslt-config ($!). libxml2 and libxslt will not be 
linked into Embperl\n" ;
  -        return undef ;
  -        }
  -    chomp ($version2 = <C>)  or die ("Cannot execute xslt-config to get version.") 
;
  -    close C ;
  -
  -    open C, "xslt-config --prefix --libs |" or die ("Cannot execute xslt-config 
($!).") ;
  -    chomp ($prefix2 = <C>) ;
  -    chomp ($libs2 = <C>) ;
  -    close C ;
  -
  -    open C, "xslt-config --cflags|" or die ("Cannot execute xslt-config ($!).") ;
  -    chomp ($cflags2 = <C>) ;
  -    close C ;
  -
  -    print "Found libxslt $version2 installed under $prefix2\n" ;
  -    
  -    
  -    return { cflags => "$cflags $cflags2", 
  -             libs => "$libs $libs2", 
  -             inc => $prefix eq $prefix2?"-I$prefix/include":"-I$prefix/include 
-I$prefix2/include",
  -             defines => '-DLIBXSLT',
  -             objects => 'driver/eplibxslt$(OBJ_EXT)',
  -             save    => { '$LIBXSLTVERSION' => $version2 }} ;
  -    }
  -
  -print "Win32 currently does not support libxml2\n" ;
  -return undef ;
  -
  +
  +
  +$win32 = ($^O eq 'MSWin32') ;
  +
  +
  +if (!$win32)
  +    {
  +    if (!open (C, "xml2-config --version|"))
  +        {
  +        print "Cannot execute xml2-config ($!). libxml2 and libxslt will not be 
linked into Embperl\n" ;
  +        return undef ;
  +        }
  +    chomp ($version = <C>)  or die ("Cannot execute xml2-config to get version.") ;
  +    close C ;
  +
  +    open C, "xml2-config --prefix --libs --cflags|" or die ("Cannot execute 
xml2-config ($!).") ;
  +    chomp ($prefix = <C>) ;
  +    chomp ($libs = <C>) ;
  +    chomp ($cflags = <C>) ;
  +    close C ;
  +
  +    print "Found libxml2 $version installed under $prefix\n" ;
  +
  +    if (!open (C, "xslt-config --version|"))
  +        {
  +        print "Cannot execute xslt-config ($!). libxml2 and libxslt will not be 
linked into Embperl\n" ;
  +        return undef ;
  +        }
  +    chomp ($version2 = <C>)  or die ("Cannot execute xslt-config to get version.") ;
  +    close C ;
  +
  +    open C, "xslt-config --prefix --libs |" or die ("Cannot execute xslt-config 
($!).") ;
  +    chomp ($prefix2 = <C>) ;
  +    chomp ($libs2 = <C>) ;
  +    close C ;
  +
  +    open C, "xslt-config --cflags|" or die ("Cannot execute xslt-config ($!).") ;
  +    chomp ($cflags2 = <C>) ;
  +    close C ;
  +
  +    print "Found libxslt $version2 installed under $prefix2\n" ;
  +    
  +    
  +    return { cflags => "$cflags $cflags2", 
  +             libs => "$libs $libs2", 
  +             inc => $prefix eq $prefix2?"-I$prefix/include":"-I$prefix/include 
-I$prefix2/include",
  +             defines => '-DLIBXSLT',
  +             objects => 'driver/eplibxslt$(OBJ_EXT)',
  +             save    => { '$LIBXSLTVERSION' => $version2 }} ;
  +    }
  +
  +print "libxml2/libxslt is currently not supported on Win32\n" ;
  +return undef ;
  +
  
  
  
  1.1.2.4   +96 -96    embperl/driver/Attic/epxalan.MAKEPL
  
  Index: epxalan.MAKEPL
  ===================================================================
  RCS file: /home/cvs/embperl/driver/Attic/epxalan.MAKEPL,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- epxalan.MAKEPL    2001/09/20 08:23:56     1.1.2.3
  +++ epxalan.MAKEPL    2001/09/20 20:26:05     1.1.2.4
  @@ -1,96 +1,96 @@
  -
  -use File::Find ;
  -use Cwd ;
  -
  -$win32 = ($^O eq 'MSWin32') ;
  -
  -
  -if (!$win32)
  -    {
  -    $path = GetString ("Enter path of XALAN base directory or single dot for not 
using XALAN", $XALANPATH) ;
  -
  -    if (!$path || $path eq '.')
  -        {
  -        print "Xalan will not be linked into Embperl\n" ;
  -        return undef ;
  -        }
  -
  -    if (!-f "$path/src/XalanTransformer/XalanTransformer.hpp")
  -        {
  -        if (!-f "$path/c/src/XalanTransformer/XalanTransformer.hpp")
  -            {
  -            if (!-f "$path/xml-xalan/c/src/XalanTransformer/XalanTransformer.hpp")
  -                {
  -                print "Xalan sources not found\n" ;
  -                return undef ;
  -                }
  -            else
  -                {
  -                $path = "$path/xml-xalan/c/" ;
  -                }
  -            }
  -        else
  -            {
  -            $path = "$path/c/" ;
  -            }
  -        }
  -
  -    my $currdir = Cwd::fastcwd ;
  -
  -    eval { find (\&xalanlib, "$path/lib") ; } ;
  -    $@ = '' ;
  -    chdir ($currdir);
  -    if (!$xalanlib)
  -        {
  -        print "Xalan library not found under $path\n" ;
  -        return undef ;
  -        }
  -
  -    my $xpath = Cwd::fast_abs_path ("$path/../..") ;
  -    eval { find (\&xerceslib, $xpath) ; } ;
  -    $@ = '' ;
  -    chdir ($currdir);
  -    if (!$xerceslib)
  -        {
  -        print "Xerces library not found under $xpath/../..\n" ;
  -        return undef ;
  -        }
  -
  -
  -    print "Found Xalan library $xalanlib at $xalanlibpath\n" ;
  -    print "Found Xerces library $xerceslib at $xerceslibpath\n" ;
  -
  -    "$xalanlib $xerceslib" =~ /^lib(.*?)\.so lib(.*?)\.so$/ ;
  -
  -    return { cflags => "-I$path/src -I$xerceslibpath/../include -instances=static 
-D_REENTRANT ", 
  -             libs => "-L$xalanlibpath -L$xerceslibpath -l$1 -l$2", 
  -             defines => '-DXALAN',
  -             objects => 'driver/epxalan$(OBJ_EXT)',
  -             save    => { '$XALANPATH' => $path }} ;
  -    }
  -
  -print "Xalan is currently does not supported on Win32\n" ;
  -return undef ;
  -
  -
  -sub xalanlib
  -
  -    {
  -    if (/^libxalan.*\.so/)
  -        {
  -        $xalanlibpath = $File::Find::dir ;
  -        die $xalanlib = $_ ;
  -        }
  -    }
  -
  -
  -sub xerceslib
  -
  -    {
  -    if (/^libxerces.*\.so/)
  -        {
  -        $xerceslibpath = $File::Find::dir ;
  -        die $xerceslib = $_ ;
  -        }
  -    }
  -
  +
  +use File::Find ;
  +use Cwd ;
  +
  +$win32 = ($^O eq 'MSWin32') ;
  +
  +
  +if (!$win32)
  +    {
  +    $path = GetString ("Enter path of XALAN base directory or single dot for not 
using XALAN", $XALANPATH) ;
  +
  +    if (!$path || $path eq '.')
  +        {
  +        print "Xalan will not be linked into Embperl\n" ;
  +        return undef ;
  +        }
  +
  +    if (!-f "$path/src/XalanTransformer/XalanTransformer.hpp")
  +        {
  +        if (!-f "$path/c/src/XalanTransformer/XalanTransformer.hpp")
  +            {
  +            if (!-f "$path/xml-xalan/c/src/XalanTransformer/XalanTransformer.hpp")
  +                {
  +                print "Xalan sources not found\n" ;
  +                return undef ;
  +                }
  +            else
  +                {
  +                $path = "$path/xml-xalan/c/" ;
  +                }
  +            }
  +        else
  +            {
  +            $path = "$path/c/" ;
  +            }
  +        }
  +
  +    my $currdir = Cwd::fastcwd ;
  +
  +    eval { find (\&xalanlib, "$path/lib") ; } ;
  +    $@ = '' ;
  +    chdir ($currdir);
  +    if (!$xalanlib)
  +        {
  +        print "Xalan library not found under $path\n" ;
  +        return undef ;
  +        }
  +
  +    my $xpath = Cwd::fast_abs_path ("$path/../..") ;
  +    eval { find (\&xerceslib, $xpath) ; } ;
  +    $@ = '' ;
  +    chdir ($currdir);
  +    if (!$xerceslib)
  +        {
  +        print "Xerces library not found under $xpath/../..\n" ;
  +        return undef ;
  +        }
  +
  +
  +    print "Found Xalan library $xalanlib at $xalanlibpath\n" ;
  +    print "Found Xerces library $xerceslib at $xerceslibpath\n" ;
  +
  +    "$xalanlib $xerceslib" =~ /^lib(.*?)\.so lib(.*?)\.so$/ ;
  +
  +    return { cflags => "-I$path/src -I$xerceslibpath/../include -instances=static 
-D_REENTRANT ", 
  +             libs => "-L$xalanlibpath -L$xerceslibpath -l$1 -l$2", 
  +             defines => '-DXALAN',
  +             objects => 'driver/epxalan$(OBJ_EXT)',
  +             save    => { '$XALANPATH' => $path }} ;
  +    }
  +
  +print "Xalan is currently not supported on Win32\n" ;
  +return undef ;
  +
  +
  +sub xalanlib
  +
  +    {
  +    if (/^libxalan.*\.so/)
  +        {
  +        $xalanlibpath = $File::Find::dir ;
  +        die $xalanlib = $_ ;
  +        }
  +    }
  +
  +
  +sub xerceslib
  +
  +    {
  +    if (/^libxerces.*\.so/)
  +        {
  +        $xerceslibpath = $File::Find::dir ;
  +        die $xerceslib = $_ ;
  +        }
  +    }
  +
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to