autogen.sh recent changes ???





	As far as I understand autogen.sh has been changed for gtk+ 
to allow compiling in a sub-directory of the source directory. As 
this is somewhat restrictive, I was about to propose the patch below which,
I believed, was a better solution (in particular it does not rely on yet 
another obscure environment variable (OBJ_DIR))... 

Well, as far as I remember, this patch mimiced (from the verb mimic, 
seing it written like this looks weird) what was done in glib's
autogen.sh and now, I see that glib is in sync with gtk+. Can someone
explain the rational of this change which look as a regression to me...
I looked in the Changelog and there is nothing...

	Thank's a lot..

	Theo.

Note: I really believe that building glib, gtk+ and gtk-- (I'm really 
having troubles with this last one since it seems difficult to make 
it compile in an another directory) is a little too difficult (when 
building in an another directory and/or when having another version 
of those lying around) and relies on too much environment variable
settings (AC_LOCAL_FLAGS,LD_LIBRARY_PATH (for glib-config)
and now OBJ_DIR). Of course, after a while, everyone is having a 
small shell script for doing that but that's really suboptimal.
At least, we should put this shell in common...


Index: autogen.sh
===================================================================
RCS file: /cvs/gnome/gtk+/autogen.sh,v
retrieving revision 1.9
diff -c -3 -p -r1.9 autogen.sh
*** autogen.sh	1998/11/20 04:21:48	1.9
--- autogen.sh	1998/11/20 20:22:34
***************
*** 1,6 ****
--- 1,9 ----
  #!/bin/sh
  # Run this to generate all the initial makefiles, etc.
  
+ srcdir=`dirname $0`
+ test -z "$srcdir" && srcdir=.
+ 
  PROJECT=Gtk+
  TEST_TYPE=-d
  FILE=gdk
*************** if test "$DIE" -eq 1; then
*** 35,43 ****
  	exit 1
  fi
  
! test $TEST_TYPE $FILE || {
! 	echo "You must run this script in the top-level $PROJECT directory"
! 	exit 1
  }
  
  if test -z "$*"; then
--- 38,49 ----
  	exit 1
  fi
  
! (test -f $srcdir/configure.in \
!   && test -d $srcdir/gtk \
!   && test -d $srcdir/gdk) || {
!     echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
!     echo " top-level $PKG_NAME directory"
!     exit 1
  }
  
  if test -z "$*"; then
*************** fi
*** 48,69 ****
  case $CC in
  *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
  esac
- 
- aclocal $ACLOCAL_FLAGS
  
! # optionally feature autoheader
! (autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader
  
! automake $am_opt
! autoconf
! 
! if [ -z "$OBJ_DIR" ]; then
! 	./configure "$@"
! else
! 	mkdir -p "$OBJ_DIR"
! 	cd "$OBJ_DIR"
! 	../configure "$@"
! fi
  
  echo 
  echo "Now type 'make' to compile $PROJECT."
--- 54,70 ----
  case $CC in
  *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
  esac
  
! (cd $srcdir;  \
! aclocal $ACLOCAL_FLAGS ; \
!  \
! # optionally feature autoheader \
! (autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader ; \
!  \
! automake $am_opt; \
! autoconf)
  
! $srcdir/configure "$@"
  
  echo 
  echo "Now type 'make' to compile $PROJECT."



 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]