# "aclocal" will look in that directory twice, and get well and truly
# confused, reporting a ton of duplicate macro definitions.)
#
-# $Id: aclocal-flags,v 1.1 2000/07/26 08:03:40 guy Exp $
+# $Id$
#
#
#
# And where do we want to make sure it looks?
#
-gtk_aclocal_dir=`gtk-config --prefix`/share/aclocal
+gtk_prefix=`gtk-config --prefix 2>/dev/null`
+
+if [ -z "$gtk_prefix" ]
+then
+ gtk_aclocal_dir=""
+else
+ gtk_aclocal_dir=$gtk_prefix/share/aclocal
+fi
+
+ac_missing_dir=`dirname $0`
+echo "-I $ac_missing_dir/aclocal-fallback" | tr -d '\012' | tr -d '\015'
#
# If there's no "aclocal", the former will be empty; if there's no
if [ ! -z "$aclocal_dir" -a ! -z "$gtk_aclocal_dir" \
-a "$aclocal_dir" != "$gtk_aclocal_dir" ]
then
- echo "-I $gtk_aclocal_dir"
+ echo " -I $gtk_aclocal_dir" | tr -d '\012' | tr -d '\015'
fi
+echo
exit 0