changeset 688:36afa9f48cac

Create auxdir if needed.
author zas_
date Mon, 19 May 2008 08:36:06 +0000
parents d100e927488f
children 972ecb45181c
files autogen.sh
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autogen.sh	Mon May 19 08:24:10 2008 +0000
+++ b/autogen.sh	Mon May 19 08:36:06 2008 +0000
@@ -68,6 +68,12 @@
   am_opt=--include-deps;;
 esac
 
+auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *( *\([^ )]*\).*/\1/p' $srcdir/configure.in`"
+if test -n "$auxdir"; then
+  if test ! -d "$srcdir/$auxdir"; then
+    mkdir -p "$srcdir/$auxdir"
+  fi                                                                            fi
+
 for coin in `find $srcdir -name configure.in -print`
 do 
   dr=`dirname $coin`