Unexpected behaviour of AM_PATH_GNOME



Hye

There is a behaviour of the aclocal macro I do not understand. An error occurs when using --with-gnome-prefix argument because this argument is used to be added to the gnome_config_args as --prefix=<something>. The problem occurs as gnome-config scripts do not accept a value for this argument. gnome-config --prefix or gnome-config --exec-prefix gives the prefix/exec-prefix. But gnome-config --prefix=<something> or gnome-config --prefix=<something> gives ... an error.

Is there a meaning I missed ? Or is it really a bug ?





This is the code of the aclocal macro:


AC_ARG_WITH(gnome-prefix,[ --with-gnome-prefix=PFX Prefix where GNOME is installed (optional)],
            gnome_config_prefix="$withval", gnome_config_prefix="")
AC_ARG_WITH(gnome-exec-prefix,[ --with-gnome-exec-prefix=PFX Exec prefix where GNOME is installed (optional)],
            gnome_config_exec_prefix="$withval", gnome_config_exec_prefix="")

  if test x$gnome_config_exec_prefix != x ; then
     gnome_config_args="$gnome_config_args --exec-prefix=$gnome_config_exec_prefix"
     if test x${GNOME_CONFIG+set} != xset ; then
        GNOME_CONFIG=$gnome_config_exec_prefix/bin/gnome-config
     fi
  fi
  if test x$gnome_config_prefix != x ; then
     gnome_config_args="$gnome_config_args --prefix=$gnome_config_prefix"
     if test x${GNOME_CONFIG+set} != xset ; then
        GNOME_CONFIG=$gnome_config_prefix/bin/gnome-config
     fi
  fi


--
 		   Remi Cohen-Scali
<Remi Cohen-Scali com> 		<rcoscali rcsnet net>





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