File: extconf.rb

package info (click to toggle)
libshadow-ruby 1.4.1-8
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 56 kB
  • ctags: 53
  • sloc: ansic: 225; makefile: 101; ruby: 16
file content (26 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#                                          -*- ruby -*-
# extconf.rb
#
# Modified at: <1999/8/19 06:38:55 by ttate> 
#

require 'mkmf'

$CFLAGS = ""
$LDFLAGS = "-lshadow"

if( ! (ok = have_library("shadow","getspent")) )
  $LDFLAGS = ""
  ok = have_func("getspent")
end

ok &= have_func("sgetspent")
ok &= have_func("fgetspent")
ok &= have_func("setspent")
ok &= have_func("endspent")
ok &= have_func("lckpwdf")
ok &= have_func("ulckpwdf")

if ok
  create_makefile("shadow")
end