mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
30 lines
555 B
Bash
30 lines
555 B
Bash
#! /bin/sh
|
|
#
|
|
# $NetBSD: unwrap-config.sh,v 1.1.1.1 2004/08/28 06:17:21 jlam Exp $
|
|
#
|
|
# This is a dummy *-config script that is used to test whether these
|
|
# files are correctly "unwrapped" at post-build time.
|
|
|
|
prefix="@PREFIX@"
|
|
exec_prefix="${prefix}"
|
|
|
|
includedir="${prefix}/include"
|
|
libdir="${exec_prefix}/lib"
|
|
|
|
output=""
|
|
for option do
|
|
case $option in
|
|
--cflags)
|
|
output="$output -O2 -I${includedir}"
|
|
;;
|
|
--ldflags)
|
|
output="$output -L${libdir} @COMPILER_RPATH_FLAG@${libdir}"
|
|
;;
|
|
--libs)
|
|
output="$output -lreadline"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
echo $output
|