1*7f2fe78bSCy Schubert#!/bin/sh 2*7f2fe78bSCy Schubert 3*7f2fe78bSCy Schubert# Copyright 2003 by the Massachusetts Institute of Technology. 4*7f2fe78bSCy Schubert# All Rights Reserved. 5*7f2fe78bSCy Schubert# 6*7f2fe78bSCy Schubert# Export of this software from the United States of America may 7*7f2fe78bSCy Schubert# require a specific license from the United States Government. 8*7f2fe78bSCy Schubert# It is the responsibility of any person or organization contemplating 9*7f2fe78bSCy Schubert# export to obtain such a license before exporting. 10*7f2fe78bSCy Schubert# 11*7f2fe78bSCy Schubert# WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 12*7f2fe78bSCy Schubert# distribute this software and its documentation for any purpose and 13*7f2fe78bSCy Schubert# without fee is hereby granted, provided that the above copyright 14*7f2fe78bSCy Schubert# notice appear in all copies and that both that copyright notice and 15*7f2fe78bSCy Schubert# this permission notice appear in supporting documentation, and that 16*7f2fe78bSCy Schubert# the name of M.I.T. not be used in advertising or publicity pertaining 17*7f2fe78bSCy Schubert# to distribution of the software without specific, written prior 18*7f2fe78bSCy Schubert# permission. Furthermore if you modify this software you must label 19*7f2fe78bSCy Schubert# your software as modified software and not distribute it in such a 20*7f2fe78bSCy Schubert# fashion that it might be confused with the original M.I.T. software. 21*7f2fe78bSCy Schubert# M.I.T. makes no representations about the suitability of 22*7f2fe78bSCy Schubert# this software for any purpose. It is provided "as is" without express 23*7f2fe78bSCy Schubert# or implied warranty. 24*7f2fe78bSCy Schubert 25*7f2fe78bSCy Schubertecho "Testing if krb5-config outputs shell variables" 26*7f2fe78bSCy Schubertecho " Testing --libs argument" 27*7f2fe78bSCy Schubertif ./krb5-config --libs kdb | egrep -s '\$' > /dev/null; then 28*7f2fe78bSCy Schubert echo "Error './krb5-config --libs kdb' contains shell variables" 29*7f2fe78bSCy Schubert exit 1 30*7f2fe78bSCy Schubertfi 31*7f2fe78bSCy Schubert 32*7f2fe78bSCy Schubertecho " Testing --cflags argument" 33*7f2fe78bSCy Schubertif ./krb5-config --cflags | egrep -s '\$' > /dev/null; then 34*7f2fe78bSCy Schubert echo "Error './krb5-config --cflags' contains shell variables" 35*7f2fe78bSCy Schubert exit 1 36*7f2fe78bSCy Schubertfi 37*7f2fe78bSCy Schubertecho "krb5-config tests pass" 38*7f2fe78bSCy Schubertexit 0 39