~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to helpers/negotiate_auth/squid_kerb_auth/do.sh

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-05-04 11:15:49 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (20.3.1 squeeze) (21.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100504111549-1apjh2g5sndki4te
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# Linux:
4
 
# -D__LITTLE_ENDIAN__
5
 
# Solaris:
6
 
# -D__BIG_ENDIAN__
7
 
#
8
 
CC=gcc
9
 
#CFLAGS="-Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow -O2"
10
 
CFLAGS="-Wall -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -O2"
11
 
if [ "$1" = "HEIMDAL" ]; then
12
 
  DEFINE="-DHEIMDAL -D__LITTLE_ENDIAN__"
13
 
  INCLUDE="-I/usr/include/heimdal -Ispnegohelp"
14
 
  LIBS="-lgssapi -lkrb5 -lcom_err -lasn1 -lroken"
15
 
else
16
 
if [ "$1" = "SOLARIS" ]; then
17
 
#MIT
18
 
  CC=cc
19
 
  CFLAGS=""
20
 
  DEFINE="-D__BIG_ENDIAN__ -DSOLARIS_11"
21
 
  INCLUDE="-Ispnegohelp -Iinclude -Iinclude/kerberosv5"
22
 
  LIBS="-R/usr/lib/gss -L/usr/lib/gss -lgss /usr/lib/gss/mech_krb5.so -lsocket"
23
 
else
24
 
#MIT
25
 
  DEFINE="-D__LITTLE_ENDIAN__"
26
 
  INCLUDE=-Ispnegohelp
27
 
  LIBS="-lgssapi_krb5 -lkrb5 -lcom_err"
28
 
fi
29
 
fi
30
 
SPNEGO="spnegohelp/derparse.c  spnegohelp/spnego.c  spnegohelp/spnegohelp.c  spnegohelp/spnegoparse.c"
31
 
SOURCE="squid_kerb_auth.c base64.c"
32
 
$CC -g $CFLAGS -o squid_kerb_auth $DEFINE $INCLUDE $SOURCE $SPNEGO $LIBS