[gdal-dev] libgeotiff - svn ; problems running autogen.sh

Massimo Di Stefano massimodisasha at yahoo.it
Fri Aug 28 05:03:04 EDT 2009


Hi All,

i'm tring to install libtiff + libgeotiff from the cvs / svn repository
on a VM running sidux-xfce.

(i need to have gdal and ossim compiled against the same libtiff- 
libgeotiff libraries)

unlucky while libtiff compile without problems, libgeotiff give me  
error running the script :

./autogen.sh

seems it fails to find proj files, this the log :

###########################

sasha at epxbox:/usr/local/src/sorcedep/libgeotiff$ ./autogen.sh
Running aclocal
/usr/bin/m4:configure.ac:71: bad expression in eval: m4_Cursor + 2 + 1
/usr/bin/m4:configure.ac:71: bad expression in eval:  > (79)
/usr/bin/m4:configure.ac:71: bad expression in eval (bad input): 4098  
 > (but either projects.h or libproj.a not found!"
  fi
fi


if test "$PROJ_HOME" = "no" ; then
  echo "PROJ.4 support disabled."

elif test "$PROJ_LIB" != "" -a "$PROJ_INC" != "" ; then
  echo "Found $PROJ_LIB"
  echo "Found $PROJ_INC/projects.h"

  LIBS="$PROJ_LIB $LIBS"
  PROJ_INC=-I$PROJ_INC

  PROJ_INC=$PROJ_INC

  $as_echo "@%:@define HAVE_PROJECTS_H 1" >>confdefs.h

  $as_echo "@%:@define HAVE_LIBPROJ 1" >>confdefs.h


  PROJ_CONFIG="yes"
  PROJECTS_H_CONFIG="yes"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_init in - 
lproj" >&5
$as_echo_n "checking for pj_init in -lproj... " >&6; }
if test "${ac_cv_lib_proj_pj_init+set}" = set; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lproj -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pj_init ();
int
main ()
{
return pj_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_proj_pj_init=yes
else
  ac_cv_lib_proj_pj_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:  
$ac_cv_lib_proj_pj_init" >&5
$as_echo "$ac_cv_lib_proj_pj_init" >&6; }
if test "x$ac_cv_lib_proj_pj_init" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
@%:@define HAVE_LIBPROJ 1
_ACEOF

  LIBS="-lproj $LIBS"

fi

  for ac_header in projects.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "projects.h"  
"ac_cv_header_projects_h" "$ac_includes_default"
if test "x$ac_cv_header_projects_h" = x""yes; then :
  cat >>confdefs.h <<_ACEOF
@%:@define HAVE_PROJECTS_H 1
_ACEOF

fi

done

  PROJ_CONFIG="yes"
fi

if test ! x$PROJ_CONFIG = xno; then
  PROJ_IS_CONFIG_TRUE=
  PROJ_IS_CONFIG_FALSE='#'
else
  PROJ_IS_CONFIG_TRUE='#'
  PROJ_IS_CONFIG_FALSE=
fi

if test ! x$PROJECTS_H_CONFIG = xno; then
  PROJECTS_H_IS_CONFIG_TRUE=
  PROJECTS_H_IS_CONFIG_FALSE='#'
else
  PROJECTS_H_IS_CONFIG_TRUE='#'
  PROJECTS_H_IS_CONFIG_FALSE=
fi




CSV_CONFIG="no"
  --enable-incode-epsg    Use C code EPSG tables
@%:@ Check whether --enable-incode-epsg was given.
if test "${enable_incode_epsg+set}" = set; then :
  enableval=$enable_incode_epsg;
else
  enable_incode_epsg=no
fi


if test "$enable_incode_epsg" != "no"  -o "$enable_incode_epsg" =  
""  ; then

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EPSG tables  
will be read from .csv files" >&5
$as_echo_n "checking if EPSG tables will be read from .csv files... "  
 >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    CSV_CONFIG="yes"
else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EPSG tables  
will be read from .csv files" >&5
$as_echo_n "checking if EPSG tables will be read from .csv files... "  
 >&6; }
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
if test ! x$CSV_CONFIG = xno; then
  CSV_IS_CONFIG_TRUE=
  CSV_IS_CONFIG_FALSE='#'
else
  CSV_IS_CONFIG_TRUE='#'
  CSV_IS_CONFIG_FALSE=
fi




ac_config_files="$ac_config_files Makefile libxtiff/Makefile bin/ 
Makefile"


cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/ 
\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*)
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1

  Something went wrong, giving up!

sasha at epxbox:/usr/local/src/sorcedep/libgeotiff$


#############################


i also tried to install proj from source (svn) in /usr/local
but nothing changes :-(

please have you any clue or have you any suggestion on how can i  
install libgeotiff ?
i'm avaiable for any kind of test.

thanks to All

Massimo.


More information about the gdal-dev mailing list