~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/openssl/extconf.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  (See the file 'LICENCE'.)
12
12
 
13
13
= Version
14
 
  $Id: extconf.rb 12148 2007-04-05 05:59:22Z technorama $
 
14
  $Id: extconf.rb 12571 2007-06-18 08:56:21Z technorama $
15
15
=end
16
16
 
17
17
require "mkmf"
19
19
dir_config("openssl")
20
20
dir_config("kerberos")
21
21
 
 
22
$defs << "-DRUBY_VERSION_CODE=#{RUBY_VERSION.gsub(/\D/, '')}"
 
23
 
22
24
message "=== OpenSSL for Ruby configurator ===\n"
23
25
 
24
26
##
94
96
have_func("X509_STORE_get_ex_data")
95
97
have_func("X509_STORE_set_ex_data")
96
98
have_func("OBJ_NAME_do_all_sorted")
 
99
have_func("SSL_SESSION_get_id")
97
100
have_func("OPENSSL_cleanse")
98
101
if try_compile("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n")
99
102
  $defs.push("-DHAVE_VA_ARGS_MACRO")