aboutsummaryrefslogtreecommitdiffstats
path: root/makeconf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makeconf.sh')
-rwxr-xr-xmakeconf.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/makeconf.sh b/makeconf.sh
index f21378d..179cd68 100755
--- a/makeconf.sh
+++ b/makeconf.sh
@@ -3,7 +3,21 @@
echo Running libtoolize...
libtoolize --automake -c -f
-cp /usr/share/gettext/config.rpath .
+CONFIG_RPATH=/usr/share/gettext/config.rpath
+if ! [ -f $CONFIG_RPATH ]; then
+ CONFIG_RPATH=/usr/local/share/gettext/config.rpath
+fi
+if ! [ -f $CONFIG_RPATH ]; then
+ if [ -f config.rpath ]; then
+ CONFIG_RPATH=
+ else
+ echo "config.rpath not found!" >&2
+ exit 1
+ fi
+fi
+if ! [ -z "$CONFIG_RPATH" ]; then
+ cp "$CONFIG_RPATH" .
+fi
if test ! -z "`which autoreconf`"; then
echo Running autoreconf...